Finance

Capital Gains Tax Calculator

Estimate your 2026 tax on investment gains: long-term gains get preferential 0%, 15%, or 20% rates stacked on your income, while short-term gains are taxed like wages.

Last updated: October 2026

Your gains

Long-term gain thresholds are approximate 2026 figures. Confirm against IRS publications before filing.

Estimated tax on long-term gains
$0
of your gains taxed at 0%
Tax on ordinary + short-term
$0
Total federal tax
$0
Gains at 0%
$0
Gains at 15%
$0

Short-term vs. long-term: the holding period decides

The tax code rewards patience. Sell an investment you held for one year or less and the profit is a short-term gain, taxed exactly like wages at your ordinary marginal rate. Hold it more than one year and the profit is a long-term gain, taxed at the preferential rates of 0%, 15%, or 20%. The one-year line is a cliff, not a slope: selling on day 364 versus day 366 can change the tax on the same profit dramatically.

Long-term gains stack on top of ordinary taxable income: 0% below the threshold, 15% up to the next threshold, 20% above it

How stacking works

Long-term gains do not get their own separate brackets; they pile on top of your ordinary taxable income and fill the preferential thresholds upward. Your wages and short-term gains fill the 0% and 15% buckets first, so high earners push their gains into the 15% or 20% zone while modest earners may pay 0% on part of their gains. This is why the same $20,000 gain can be tax-free for one person and cost $3,000 for another: the rate depends on what sits underneath it.

Approximate 2026 long-term gain thresholds

For 2026, the 0% long-term rate applies to taxable income up to roughly $48,350 for single filers and $96,700 for married filing jointly. The 15% rate then runs up to roughly $533,400 single / $600,050 joint, with 20% on gains above that. These are approximate, inflation-adjusted figures: the IRS finalizes them late in the year, so confirm against official publications before you file or make a large sale. Note that the thresholds measure taxable income (after the standard deduction), not gross income.

Filing status0% rate up to (approx.)15% rate up to (approx.)20% above (approx.)
Single$48,350$533,400$533,400
Married filing jointly$96,700$600,050$600,050
Head of household$64,550$566,700$566,700
How this is calculated: short-term gains are added to ordinary taxable income and taxed with the 2026 ordinary brackets. Long-term gains stack on top: the portion fitting under the 0% threshold for your filing status is untaxed, the next portion up to the 15% threshold is taxed at 15%, and the rest at 20%. Thresholds are approximate 2026 figures. The 3.8% net investment income tax, AMT, and state taxes are not included.

Worked example

A single filer has $40,000 of ordinary taxable income and $20,000 of long-term gains. The 0% threshold is about $48,350, and $40,000 of ordinary income already sits under it, leaving $8,350 of room. So $8,350 of the gains is taxed at 0% and the remaining $11,650 is taxed at 15% = $1,747.50. The ordinary $40,000 is taxed separately with the regular brackets. If this filer had $60,000 of ordinary income instead, the 0% room would be gone and the full $20,000 gain would face 15%.

Timing strategies that actually work

Hold past the one-year mark whenever the gain is large enough to matter; it is the single biggest lever. Harvest losses to offset gains: selling losers in the same year cancels winners dollar for dollar, and up to $3,000 of net loss can shelter ordinary income. Mind the threshold: if you are near the 0% line, realizing gains across two tax years can keep more of them at 0%. And remember the home-sale exclusion: up to $250,000 of gain ($500,000 joint) on a primary residence you have owned and lived in for two of the last five years is excluded entirely.

Edge cases worth knowing

The one-year clock starts the day after you buy, and the gain is long-term only if you sell after the one-year anniversary, so mark the calendar rather than eyeballing it. Mutual fund capital gain distributions in December are taxable to you even if you just bought the fund, which surprises new investors every year. Collectibles such as art and coins face a special 28% maximum rate instead of the 20% cap. And the wash-sale rule disallows a loss if you buy the same security 30 days before or after the sale, so harvested losses need genuinely different replacement holdings. None of these change the stacking math above, but each can change the number on your return.

Capital Gains FAQs

What is the difference between short-term and long-term capital gains?

It is the holding period: sell an asset held one year or less and the gain is short-term, taxed as ordinary income at your marginal rate. Hold it more than one year and the gain is long-term, taxed at the preferential 0%, 15%, or 20% rates.

How do the 0%, 15%, and 20% rates work?

Long-term gains stack on top of your ordinary taxable income. The portion of gains that fits under the 0% threshold is tax-free; the next chunk up to the 15% threshold is taxed at 15%; anything above is taxed at 20%. Your ordinary income fills the thresholds first.

What are the approximate 2026 long-term gain thresholds?

Approximately: the 0% rate applies up to about $48,350 of taxable income for single filers and $96,700 for married filing jointly; the 15% rate runs up to roughly $533,400 single / $600,050 joint, with 20% above. Treat these as estimates and confirm with the IRS before filing.

Are capital gains taxed by my state too?

Usually yes, and most states tax gains as ordinary income with no preferential rate. A few states exempt or partially exclude gains. This calculator covers federal tax only.

Can losses offset my gains?

Yes. Capital losses first offset capital gains dollar for dollar, and up to $3,000 of net loss per year ($1,500 if married filing separately) can offset ordinary income. Unused losses carry forward to future years.

What is the net investment income tax?

A 3.8% surtax applies to investment income (including capital gains) for higher earners: above $200,000 single or $250,000 married filing jointly in modified AGI. This calculator does not include it.

Does selling my home trigger capital gains tax?

Possibly, but homeowners get a big exclusion: up to $250,000 of gain ($500,000 for married couples filing jointly) on a primary residence is excluded if you owned and lived in it at least two of the last five years.