home / capital gains tax calculator

Capital Gains Tax Calculator (2026)

Enter your gain and your other income to see the federal tax on it. Long-term gains, on assets held more than a year, are taxed at 0%, 15% or 20%; short-term gains are taxed like wages. A single filer earning $75,000 with a $20,000 long-term gain pays $3,000 and keeps $17,000.

Change any value and the result updates. Calculate jumps to the result.

Enter a loss as a negative number, for example −5,000.

Result

Federal tax on your gains: $3,000.00 (15%). You keep $17,000.00.

Part of the calculationAmount
Long-term gains taxed at 0%$0.00
Long-term gains taxed at 15%$20,000.00
Long-term gains taxed at 20%$0.00
Net investment income tax (3.8%)$0.00
Federal income tax without the gains$7,670.00
Federal tax with the gains, including the 3.8%$10,670.00

Taxable income $78,900 after the $16,100 standard deduction.

Federal tax only, with the standard deduction and no credits. Not included: the 25% rate on unrecaptured section 1250 gain (depreciation on real estate), the 28% rate on collectibles, the alternative minimum tax and state tax.

2026 capital gains tax rates

Long-term capital gains and qualified dividends are taxed at 0%, 15% or 20%. The rate depends on your total taxable income, including the gain itself: gains fill the brackets after your wages and other ordinary income.

RateSingleMarried filing jointlyHead of household
0%up to $49,450up to $98,900up to $66,200
15%$49,450 – $545,500$98,900 – $613,700$66,200 – $579,600
20%over $545,500over $613,700over $579,600

Taxable income. Source: IRS Revenue Procedure 2025-32, section 3.03. A single filer can have up to $65,550 of long-term gains with no other income and pay no federal tax on them ($49,450 at 0% plus the $16,100 standard deduction).

2027 capital gains tax rates

RateSingleMarried filing jointlyHead of household
0%up to $51,050up to $102,100up to $68,350
15%$51,050 – $563,200$102,100 – $633,600$68,350 – $598,400
20%over $563,200over $633,600over $598,400

Source: IRS Revenue Procedure 2026-35, section 3.03.

Short-term vs. long-term capital gains

A gain is long-term if you held the asset for more than one year before selling it, and short-term if you held it for one year or less. Short-term gains are added to your wages and taxed at your ordinary income tax rate (10% to 37%), so waiting can save a lot. A single filer earning $100,000 who sells with a $50,000 gain pays $11,564 in federal tax if it is short-term and $7,500 if it is long-term: $4,064 less for holding past one year.

Tax on a long-term gain by income

Other incomeTax on a $10,000 gainTax on a $50,000 gainTax on a $100,000 gain
$30,000$0$2,168$9,668
$60,000$668$6,668$14,168
$100,000$1,500$7,500$15,000
$200,000$1,880$9,400$18,800
$400,000$1,880$9,400$18,800

Single filer, 2026, standard deduction, federal income tax and net investment income tax on the gain.

Net investment income tax (3.8%)

On top of the capital gains rate, an extra 3.8% applies to investment income when your modified adjusted gross income is above $200,000 (single or head of household) or $250,000 (married filing jointly). It is charged on the smaller of your investment income or the part of your income above the threshold, so the top federal rate on long-term gains is 23.8%. The thresholds are written into the law (section 1411 of the Internal Revenue Code) and do not rise with inflation.

Capital losses

Losses offset gains: short-term losses reduce short-term gains first, long-term losses reduce long-term gains, and any remainder offsets the other type. If you end the year with a net loss, up to $3,000 of it reduces your other income ($1,500 if married filing separately), and the rest carries forward to later years. The calculator applies these rules: enter a loss as a negative number.

Selling your home

If you owned and lived in your home as your main residence for at least two of the five years before the sale, up to $250,000 of the gain is excluded from income, or $500,000 for married couples filing jointly. Only the gain above that is taxed, at the long-term rates if you owned the home for more than a year.

State taxes on capital gains

Most states with an income tax add capital gains to your other income and tax them at the regular state rate, and a few exclude part of them. Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Wyoming do not tax capital gains. Washington has no income tax on wages but has its own capital gains tax on large long-term gains, starting at 7%. To estimate your state tax, add the gain to your income in the state income tax calculator.

Common questions

What is the capital gains tax rate for 2026?

Long-term gains (assets held more than one year) are taxed at 0%, 15% or 20% depending on your total taxable income. For a single filer, the 0% rate applies up to $49,450 of taxable income and the 15% rate up to $545,500; above that the rate is 20%. For married couples filing jointly the limits are $98,900 and $613,700. Short-term gains are taxed at your ordinary income tax rate, from 10% to 37%.

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

It depends on your other income. A single filer earning $75,000 who sells an investment held for more than a year with a $20,000 gain pays $3,000 in federal tax (15%) and keeps $17,000. With no other income, the same gain would be tax-free, because it falls inside the standard deduction and the 0% band.

How do I avoid capital gains tax legally?

Hold investments for more than one year to get the lower long-term rates; sell in a year when your income is low enough for the 0% rate (taxable income up to $49,450 single, $98,900 married filing jointly in 2026); offset gains with losses; and use tax-advantaged accounts such as a 401(k) or IRA, where gains are not taxed when you sell. Gains on your main home are excluded up to $250,000, or $500,000 for married couples, if you owned and lived in it for at least two of the last five years.

Do I pay capital gains tax if I reinvest the money?

Yes, in a regular taxable account. The tax is due in the year you sell at a gain, whether you keep the cash or buy another investment. Reinvesting without tax only happens inside tax-advantaged accounts (401(k), IRA, HSA) or with special rules such as a like-kind exchange of real estate.

Can capital losses reduce my taxes?

Yes. Losses first offset gains of the same type, then gains of the other type. If you still have a net loss, you can deduct up to $3,000 of it from your other income each year ($1,500 if married filing separately) and carry the rest forward to future years with no time limit.

What is the 3.8% net investment income tax?

An extra 3.8% federal tax on investment income, including capital gains, when your modified adjusted gross income is above $200,000 (single or head of household) or $250,000 (married filing jointly). It applies to the smaller of your investment income or the amount of income above the threshold. These thresholds are set by law and are not adjusted for inflation.

Do states tax capital gains?

Most states with an income tax treat capital gains as ordinary income, and a few exclude part of them. Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Wyoming have no tax on capital gains. Washington has no income tax but taxes large long-term capital gains under its own capital gains tax, starting at 7%.

See how your wages are taxed in the federal income tax calculator and the tax bracket calculator, or estimate your refund with the tax refund calculator.

Updated November 2026. Sources: IRS Revenue Procedure 2025-32 (2026) and 2026-35 (2027); Form 1040 instructions, Qualified Dividends and Capital Gain Tax Worksheet; Schedule D instructions; Internal Revenue Code sections 121, 1211 and 1411.

about us | editorial policy | methodology | accuracy | news | changelog | add a calculator to your site | contact | privacy | cookies | terms of use

© 2026 PaycheckGauge. Estimates only, not tax advice.