You bought a stock. It went up. You sold. Congratulations - the government wants a cut. That cut is the capital gains tax, and how much you owe depends largely on one thing: how long you held on.
Let's break down how capital gains tax works, why patient investors pay less, and a few legal ways to keep more of your gains.
We help investors think about money like this every morning in Market Briefs, our free daily newsletter.
Quick note: this is general education, not tax advice. Tax rules change, and
California's specific state rates can shift, so confirm the latest numbers with a
licensed tax professional in your area.
What Is Capital Gains Tax?
A capital gain is the profit you make when you sell something for more than you paid.
Buy a stock at $1,000, sell it at $1,500, and you have a $500 capital gain. Capital gains tax is the tax owed on that $500.
Here's the key idea most beginners miss: you generally don't owe the tax until you sell. A stock that doubles on paper isn't taxed while you hold it. The tax event happens when you lock in the gain.
This is one reason investing is so powerful. Your money can grow for years untouched by taxes, compounding the whole time.
Long-Term vs. Short-Term Capital Gains Tax
The single biggest factor in your capital gains tax bill is your holding period.
- Short-term capital gains come from selling something you held for a short period. They're taxed at your regular income tax rate, which can be high.
- Long-term capital gains come from selling something you held longer. They get a lower, investor-friendly rate.
At the federal level, long-term capital gains are taxed at preferential rates of 0%, 15%, or 20%, depending on your income.
The tax code is built to reward patient owners. Consider this: a top wage earner can face a federal income rate as high as 37%, while a long-term investor's top capital gains rate tops out around 20%.
That gap is exactly why investors like Warren Buffett, who earns enormous sums from investments, can pay a lower rate than a salaried employee earning far less.
How Capital Gains Tax Works in California
Here's where California adds a layer.
You owe federal capital gains tax. On top of that, California applies its own state-level tax to investment gains.
The project's general principle holds: California taxes are an extra cost layered onto the federal rules above. The exact California rate and brackets depend on your income and change over time, so treat the specific percentages as something to confirm with a current source or a tax professional rather than a fixed number.
What doesn't change is the playbook. The same investor-friendly habits that lower your federal bill help with the overall hit:
- Holding longer to qualify for the gentler long-term treatment.
- Using account types and strategies that reduce what counts as taxable income.
- Planning sales with the help of an advisor instead of selling on impulse.
Three Kinds of Income, Three Different Tax Treatments
To really understand capital gains tax, it helps to see where it fits among the main types of income.
| Income type | Where it comes from | How it's taxed |
|---|---|---|
| Earned income | Your job or salary | Highest rates, fewest breaks |
| Portfolio income | Stock market gains and dividends | Often lower, especially long-term |
| Passive income | Real estate and similar | Lower, with extra deductions available |
The lesson is simple. The more your money comes from owning assets rather than trading your time, the more friendly the tax code tends to be. Building a capitalist economy mindset - earning from ownership - is itself a tax strategy.
How to Legally Lower Your Capital Gains Tax
You can't avoid taxes, but you can be smart about them.
Hold for the long term. The clearest move. Crossing into long-term territory swaps a high rate for a lower one.
Use tax-loss harvesting. This is selling losers to offset winners. Say one stock gained $5,000 and another lost $3,000. Sell both, and you only owe capital gains tax on the $2,000 net.
There's a catch called the wash sale rule: if you buy back the same or a nearly identical security within 30 days, you can't claim the loss. So timing matters. You can, however, buy a similar-but-different investment to stay in the market.
Keep your records. Your broker sends a Form 1099-B listing every sale to you and the IRS. They already know what you sold. Report it.
Get help when it's complex. If you have lots of transactions, options trading, or large gains, a tax professional often saves more than they cost. Pair it with broader wealth planning and a long-term view.
The Bottom Line on Capital Gains Tax
Capital gains tax is the price of a win, and it's a good problem to have - it means you made money.
The two things to remember: you usually owe it only when you sell, and holding longer almost always means a smaller bill. Pair that with tax-loss harvesting and good records, and you keep far more of what you earn.
It also connects to bigger choices, like when to sell a stock, how you handle dividends, and how you protect what you build over a lifetime of investing toward your first million dollars.
Want tax-smart investing ideas in plain English? Join Market Briefs, our free daily newsletter and keep more of what your money earns.

