How is capital gains tax actually calculated?
It all comes down to how long you held the asset. Sell within a year of buying and your profit is taxed like ordinary income — anywhere up to 37%. Hold for more than a year and you unlock the friendlier long-term rates: 0%, 15%, or 20%, depending on your income. And if you're a high earner, there's a 3.8% surtax that can stack on top.
That's the whole framework. Everything else — the brackets, the exceptions, the strategies — hangs off those two ideas: the one-year line, and your income level. Get those right and the rest is details.
The one-year line: short-term vs long-term
This is where the money is. The IRS draws a hard line at one year: hold an asset for a year or less and the gain is "short-term," taxed at your regular income tax rates. Hold it for more than a year — a year and a day, to be precise — and it's "long-term," taxed at the preferential rates.
The clock starts the day *after* you buy, by the way. People mess this up constantly. Buy on March 1, 2025 and sell on March 1, 2026? That's exactly one year — short-term. Sell on March 2 and you're long-term. A single day can be worth thousands of dollars, which is why anyone sitting on a big gain near the one-year mark should be counting days, not months.
Most people get this wrong in the other direction, too: they assume "long-term" means something like five years. Nope. Thirteen months qualifies. The tax code rewards patience, but it doesn't demand that much of it.
The 2026 long-term brackets, in plain English
Here are the long-term rates and roughly where they kick in for 2026 (the IRS adjusts these for inflation each year, so treat the thresholds as approximate):
- 0% — if your taxable income is up to about $49,000 single (about $98,000 married filing jointly). Yes, zero. You can realize gains and owe nothing.
- 15% — the big middle bracket, covering most earners: up to roughly $545,000 single.
- 20% — above that, for the highest earners.
One subtlety that trips people up: these stack on top of your ordinary income. If your salary already fills up the 0% space, your entire capital gain lands in the 15% bracket. The brackets apply to your *total* taxable income, not the gain in isolation. Want to see where you'd land? The capital gains tax calculator handles the stacking for you.
The 3.8% surtax nobody warns you about
On top of everything above, there's the Net Investment Income Tax — a 3.8% surtax on investment income (including capital gains) once your modified adjusted gross income crosses $200,000 single or $250,000 married filing jointly. It doesn't adjust for inflation, so every year it quietly catches more people.
So a high earner in the 20% long-term bracket is really paying 23.8% on gains. Not the end of the world, but it's the kind of thing that turns a "tax-efficient" sale into an unpleasant April surprise if you didn't plan for it.
A worked example: the $5,500 gain
Let's put it together. In 2022 you bought 100 shares at $40 — $4,000 total. In 2026 you sell at $95 — $9,500. Your gain is $5,500, and you've held for over three years, so it's long-term.
Say you're single with $90,000 of taxable income. Your gain stacks on top, landing squarely in the 15% bracket: 15% × $5,500 = $825 in tax. You keep $8,675 of the $9,500.
Now imagine you'd panic-sold the same shares after eight months, while in the 22% income bracket: 22% × $5,500 = $1,210. Same shares, same gain — $385 more in tax, purely for selling early. And in the 32% bracket the gap gets brutal: $1,760 short-term versus $825 long-term. Patience isn't just a virtue here; it's a line item.
Losses aren't just bad news
Here's the consolation prize for your losers: capital losses offset capital gains dollar for dollar. Lost $3,000 on one stock and gained $5,500 on another? You're only taxed on $2,500. If your losses exceed your gains, you can deduct up to $3,000 a year against ordinary income and carry the rest forward. Just don't trip the wash-sale rule — if you sell at a loss and buy the same security back within 30 days, the IRS disallows the loss. Wait the 31 days.
Frequently asked questions
Do I owe capital gains tax when I sell my house?
Probably less than you fear. If it's been your primary residence for at least two of the last five years, you can exclude $250,000 of gain ($500,000 for married couples filing jointly). Most middle-class home sales fall entirely inside that exclusion. Investment properties and second homes get no such break — the full gain is taxable.
Is "more than a year" really the rule for long-term?
Yes — more than one year, measured from the day after purchase. Exactly one year is still short-term. This is one of the most commonly misstated tax facts on the internet, and getting it wrong in the wrong direction costs real money.
Are dividends taxed as capital gains?
Qualified dividends are taxed at the same preferential long-term rates (0/15/20%), which is why dividend investors care about holding periods too. Non-qualified dividends — from REITs, for example — are taxed as ordinary income. Your brokerage's 1099-DIV breaks this out for you.
Do states add their own capital gains tax?
Most do. The federal rates are only half the picture in states like California, which taxes capital gains as ordinary income — up to 13.3% on top of federal. A handful of states (Texas, Florida, Washington, and a few others) have no income tax at all. When people quote "the" capital gains rate, they're almost always forgetting their state.
Related tools
You can also use Explore all free online tools and Read more helpful articles as part of your workflow.
Using a capital gains tax rates 2026 can make this task easier and more efficient when you need a simple online solution.
A capital gains tax rates 2026 is especially useful when you want a quick browser-based workflow.