Account

What new tool do you want?

Personal Finance

Capital Gains Tax Calculator 2026

Calculate federal tax on stock, crypto or property gains for 2026 — short-term vs long-term (0%, 15%, 20%), stacked on your other income, plus the 3.8% net investment income tax.

Estimates only — not tax advice. Tax rules change and depend on your situation; check with the tax authority or a tax professional.

How to use

  1. 1Enter your other taxable income (after deductions) and filing status.
  2. 2Enter short-term and long-term gains.
  3. 3See the tax on your gains and the rate you pay.

How it's calculated

Short-term gains are taxed as ordinary income. Long-term gains stack on top of ordinary taxable income: 0% up to $49,450 single / $98,900 joint, 15% up to $545,500 / $613,700, then 20%. NIIT 3.8% applies above $200,000 / $250,000 of MAGI.

Frequently asked questions

What counts as long-term?

Assets held more than one year. Held one year or less is short-term and taxed like wages.

Can I really pay 0% on gains?

Yes — if your taxable income including the gains stays under $49,450 (single) or $98,900 (married filing jointly) in 2026.

Are collectibles and real estate depreciation different?

Yes: collectibles gains are taxed up to 28% and depreciation recapture on real estate up to 25%. This calculator covers stocks, funds, crypto and other capital assets.

Sources

Why holding an asset one extra day can change its tax rate completely

An asset sold at exactly one year or less of ownership is short-term and taxed as ordinary income at rates up to 37% — the same asset sold one day after the one-year mark is long-term and taxed at the much lower 0%, 15% or 20% rates. There's no gradual transition between the two; the holding period is a hard line, which is why checking the exact purchase date before selling near the one-year anniversary can be worth real money.

Worked example: Capital Gains Tax Calculator 2026

A single filer with $40,000 of other taxable income and $20,000 of long-term gains sees $9,450 of those gains taxed at 0% (filling the remaining room under the $49,450 threshold) and the remaining $10,550 taxed at 15%, for total tax of $1,582.50 and no NIIT. A married couple filing jointly with $50,000 of other income and $40,000 of long-term gains has all $40,000 taxed at 0%, since their combined income plus gains stays entirely under the $98,900 joint 0% threshold — a real example of the often-overlooked fact that long-term capital gains can be taxed at 0% for middle-income households, not just very low earners.

Why a net short-term loss can rescue a long-term gain from higher tax

Short-term losses offset long-term gains dollar-for-dollar before either rate schedule is applied — a trader with a $10,000 short-term loss and a $15,000 long-term gain only pays long-term rates on the net $5,000, not the full $15,000, which is a meaningfully better outcome than if the two gain/loss types were calculated in separate silos. This netting happens automatically within the same tax year, before the IRS's $3,000 annual limit on deducting losses against ordinary income ever comes into play.

Why the net investment income tax is a separate line, not folded into the capital gains rate

The 3.8% net investment income tax (NIIT) is calculated on a completely different basis than the 0/15/20% capital gains brackets — it applies above a fixed MAGI threshold ($200,000 single, $250,000 joint) regardless of how the gain itself is split across the regular brackets, and it layers on top of whatever capital gains tax is already owed rather than replacing any part of it. A high earner can find themselves paying the top 20% long-term rate and the 3.8% NIIT simultaneously on the same dollar of gain, which is why this calculator reports them as two distinct output lines rather than blending them into a single combined rate.

Why collectibles and real estate depreciation need a different calculator entirely

This tool's 0/15/20% rate structure applies to typical capital assets like stocks, funds and crypto, but gains on collectibles (art, precious metals, certain coins) are taxed at up to 28%, and the portion of a real estate gain attributable to depreciation already claimed is recaptured at up to 25% — both meaningfully different rate structures that this calculator doesn't model. Running a collectibles or real estate sale with depreciation through this tool as if it were an ordinary stock sale would understate the actual tax owed on those specific categories.

Related tools

More: Personal Finance