Capital Gains Tax Calculator

See the tax on a sale before you sell.

Your numbers

The sale
$

Purchase price plus fees and reinvested dividends.

$
$
Your other income
$

Wages and other ordinary income, before deductions.

%

Most states tax gains as regular income. 0 if none.

Based on 2026 IRS figuresOfficial 2026 numbers, last checked Nov 5, 2026. New figures out? Update them here. Update figures

These figures change once a year. When newer official numbers come out, type them in here and every result updates. See all 2026 figures and sources.

%

The IRS raises bracket thresholds for inflation every fall. Enter the published increase (for example 2.7) to estimate a newer year.

$

Set by the IRS each year.

$
$

Results update as you type. Nothing you enter leaves your browser.

Your results

Tax on this gain

$2,850

$2,250 federal and $600 state on a $15,000 long-term gain.

Effective rate on the gain
19%
You keep
$22,150
Federal bracket on other income
22%
If held a year or less
$3,900

Holding over a year saves you $1,050 in federal tax compared with a short-term sale.

See the full breakdown

Uses official 2026 tax figures (editable under the inputs). Estimates based on your inputs and the assumptions listed below. Not tax, financial or lending advice. Disclaimer

Your full breakdown

Short-term vs. long-term

Federal tax on the same gain, depending on how long you owned it.

  • Long-term (held over a year) Best$2,250

    Taxed at 0%, 15% or 20% depending on income.

  • Short-term (a year or less)$3,300

    Taxed like wages, at your 22% bracket.

How your long-term gain is taxed

2026 thresholds for single filers: 0% up to $49,450 of taxable income, 15% up to $545,500, then 20%. Your gain sits on top of your other income.

RatePart of your gainTax
0%$0$0
15%$15,000$2,250
20%$0$0

Ways to lower it

  • Sell losing investments in the same year to offset the gain (tax-loss harvesting). Watch the wash-sale rule if you buy back within 30 days.
  • Spreading a large sale across two tax years can keep more of it in a lower bracket.
  • Selling your main home? Up to $250,000 of gain ($500,000 married filing jointly) is generally tax free if you owned and lived in it 2 of the last 5 years.
  • Gains inside a 401(k), IRA or HSA aren't taxed when you sell.

Short answer

Long-term gains (assets held over a year) are taxed at 0%, 15% or 20% depending on your taxable income. Short-term gains are taxed like wages. High earners may also owe a 3.8% net investment income tax. The calculator stacks your gain on top of your other income to find the exact tax.

Example

Selling for $25,000 an investment bought for $10,000 after more than a year, with $85,000 of other income as a single filer, the $15,000 gain owes about $2,250 in federal tax in 2026. Sold within a year, it would owe about $3,300.

How it's calculated

Gain = sale price - cost basis - selling costs. Federal tax on the gain = total tax with the gain - total tax without it, so the gain is taxed at the rates it actually reaches. Long-term gains use the 2026 0/15/20% thresholds; short-term gains use the regular brackets. Net investment income tax is 3.8% of the smaller of the gain or income above $200,000 ($250,000 joint).

Assumptions

  • One sale, with your other income treated as wages.
  • State tax is a flat rate you enter.
  • Collectibles, real estate depreciation recapture and home-sale exclusions are not modeled.

Frequently asked questions

What are the 2026 long-term capital gains tax rates?

0% on taxable income up to $49,450 for single filers ($98,900 married filing jointly), 15% up to $545,500 ($613,700 joint), and 20% above that.

How long do I have to hold an investment for long-term rates?

More than one year from the day after you bought it to the day you sell.

Can capital losses lower my taxes?

Yes. Losses offset gains first, then up to $3,000 of other income a year ($1,500 if married filing separately). Unused losses carry forward.

Do I pay capital gains tax when I sell my house?

Often not. If you owned and lived in it for 2 of the last 5 years, up to $250,000 of gain ($500,000 married filing jointly) is generally excluded.

Sources

  1. Topic no. 409, Capital gains and losses IRS
  2. Rev. Proc. 2025-32 (2026 inflation adjustments) IRS
  3. Topic no. 559, Net investment income tax IRS
  4. Topic no. 701, Sale of your home IRS

Formulas and figures last checked Nov 5, 2026.

Go deeper

Related guides and calculators