Skip to content
Bracketflex
Menu

Capital Gains Tax Calculator

A single filer earning $60,000 who sells an investment held over a year for a $20,000 gain owes about $2,167.50 in federal tax for 2026, an effective 10.8%. Sold within a year, the same gain costs $3,750.00. Enter your sale below.

Updated for tax year 2026 · Figures last verified

What you sold the asset for, after selling costs if you prefer to net them here.

What you paid, plus improvements and buying or selling costs.

How long did you own it?

Wages, self-employment profit, interest. The gain is taxed on top of this.

Leave blank to use the 2026 standard deduction ($16,100).

Federal tax on the gain, 2026

$2,167.50

Effective rate on the gain 10.8% · top rate 15% · you keep $27,832.50 of the sale

Capital gains tax breakdown
Capital gain$20,000.00
Taxable gain$20,000.00
Taxed at 0%$5,550.00
Taxed at 15%$14,450.00
Taxed at 20%$0.00
Taxable income with the sale$63,900.00
Income tax on the gain$2,167.50
Total federal tax on the gain$2,167.50

Federal only. Doesn't include state tax, collectibles (28%) or depreciation recapture on rental property.

2026 capital gains tax rates

A capital gain is the profit when you sell an asset for more than you paid: stocks, funds, crypto, a rental property, a business, land. If you held it for more than a year, the gain is long-term and gets lower rates than wages. The rate depends on your total taxable income, including the gain:

2026 long-term capital gains tax rates by taxable income
Filing status0% up to15% up to20% above
Single$49,450$545,500$545,500
Married filing jointly$98,900$613,700$613,700
Head of household$66,200$579,600$579,600
Married filing separately$49,450$306,850$306,850

These are taxable income amounts, after the standard deduction ($16,100 single, $32,200 married filing jointly for 2026). Short-term gains on assets held a year or less have no special rate: they are added to your income and taxed at 10% to 37%.

How the gain is stacked on your income

Your other income fills the brackets first and the long-term gain sits on top. That is why the same gain can be taxed at different rates for different people, and why part of one gain can fall at 0% and the rest at 15%. For a single filer with $60,000 of other income, taxable income before the sale is $43,900. A $20,000 gain fills the rest of the 0% band ($5,550.00) and the remaining $14,450.00 is taxed at 15%, for $2,167.50.

The same $20,000 gain at different incomes, single filer:

Federal tax on a $20,000 gain by other income, single, 2026
Other incomeHeld over 1 yearHeld 1 year or less
$30,000$0.00 (0.0%)$2,400.00 (12.0%)
$60,000$2,167.50 (10.8%)$3,750.00 (18.8%)
$120,000$3,000.00 (15.0%)$4,764.00 (23.8%)
$250,000$3,760.00 (18.8%)$7,160.00 (35.8%)

Holding past the one-year mark is often the single biggest way to cut the tax on a sale.

The 3.8% net investment income tax

Higher earners pay an extra 3.8% on investment income, including capital gains. It applies when modified adjusted gross income is over $200,000 single or head of household, $250,000 married filing jointly or $125,000 married filing separately, and it is charged on the smaller of your investment income or the amount over the threshold. The IRS doesn't adjust these thresholds for inflation, so more people cross them each year. With $250,000 of other income, the $20,000 gain above adds $760.00 of this tax.

Selling your home

Most homeowners pay no federal tax on a home sale. If it was your main home and you owned and lived in it for at least 2 of the 5 years before the sale, you can exclude up to $250,000 of gain, or $500,000 if married filing jointly. You can use the exclusion once every two years. Only the gain above it is taxed, at long-term rates, and the excluded part isn't subject to the 3.8% tax. For example, a single filer earning $90,000 who sells for $650,000 a home bought for $350,000 has a $300,000 gain: $250,000 is excluded and the remaining $50,000 costs $7,500.00. Your cost basis includes the purchase price, improvements and buying costs, so keep those records. A rental or second home doesn't qualify.

Capital losses

If you sell for less than you paid, the loss first offsets your gains. Any net loss left can reduce your other income by up to $3,000 a year ($1,500 if married filing separately), and the rest carries forward to future years. A $10,000 loss for the single filer above uses $3,000 this year, saving $360.00, and carries $7,000 forward.

What this calculator leaves out

  • State income tax on gains. Most states tax them as regular income; use the income tax calculator for your state.
  • Collectibles such as art and coins (up to 28%) and depreciation recapture on rental property (up to 25%).
  • Several sales in one year, qualified dividends, the alternative minimum tax and credits.
  • Partial home exclusions for moves due to work, health or unforeseen events.

For a large sale, especially property or a business, a tax professional can check the basis and timing.

Frequently asked questions

What are the capital gains tax rates for 2026?

Long-term gains are taxed at 0%, 15% or 20%, depending on your taxable income. For a single filer, 0% applies up to $49,450 of taxable income and 15% up to $545,500; married filing jointly, $98,900 and $613,700. Short-term gains are taxed as ordinary income at 10% to 37%.

How much tax do I pay on a $20,000 capital gain?

It depends on your other income. For a single filer earning $60,000, a long-term gain of $20,000 costs about $2,167.50 in federal tax in 2026, because part of it falls in the 0% bracket. Sold within a year, the same gain costs about $3,750.00.

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

More than one year. If you sell one year or less after buying, the gain is short-term and taxed at your regular income tax rate.

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

Usually not on the first $250,000 of gain ($500,000 married filing jointly), if you owned and lived in the home as your main home for at least 2 of the 5 years before the sale and haven't used the exclusion in the past 2 years. Gain above that is taxed at long-term rates.

What is the 3.8% net investment income tax?

An extra 3.8% on investment income, including capital gains, when your modified AGI is over $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). It applies to the smaller of your investment income or the amount over the threshold. The thresholds are not adjusted for inflation.

Are crypto gains taxed the same way?

Yes, if you hold crypto as an investment. The IRS considers digital assets property, not currency. Selling crypto, trading it for other crypto or using it to pay for goods or services is a disposal, and the result is a capital gain or loss at the same short-term or long-term rates as stocks. You must report digital asset transactions even when there is no gain.

Sources