Logo

Retirement & Investing calculator

Capital Gains Tax Calculator

Enter what you paid, what you sold for and your other income to see the federal, NIIT and state tax on the gain, and the proceeds left after tax.

Tax years 2026 and 2027 · IRS Rev. Proc. 2025-32 and 2026-35 · Reviewed November 2026

Your numbers

For a home, the calculator assumes you owned and lived in it for at least 2 of the last 5 years.

The sale

$

Your cost basis: what you paid plus purchase fees and, for a home, the cost of improvements.

$

$

Commissions, agent fees, transfer taxes and closing costs.

Your tax picture

$

Your taxable income before this gain, after the standard or itemized deduction.

%

Enter 0 if your state has no income tax.

Estimated tax on the sale

$12,000*

Long-term gain, taxed at up to 15% federal. You keep $88,000 of the proceeds.

Taxed at 15%100%
Gain on the sale$60,000
Taxable gain$60,000
Federal capital gains tax$9,000
Net investment income tax (3.8%)$0
State tax$3,000
Total tax$12,000
Net proceeds after tax$88,000
Effective tax rate on the gain20.0%

*Estimate based on the figures you entered and tax years 2026 and 2027, IRS Rev. Proc. 2025-32 and 2026-35.

Want exact numbers for your situation?

A uTaxes CPA or enrolled agent can review it with you. The first consultation is free.

Book a consultation

*This estimates tax treatment only and is not investment advice. It uses simplified assumptions about your other income, holding period and state tax, and does not model loss carryovers, the alternative minimum tax or wash sales. Review a sale, conversion or withdrawal with a tax professional before you act; these transactions usually cannot be undone. The results are for informational and directional guidance only. Actual results may vary. uTaxes does not in any way warrant the results from using this calculator.

How this calculator works

Your gain is the sale price minus selling costs and your cost basis. A long-term gain, on an asset held more than a year, is stacked on top of your other taxable income and each slice is taxed at 0%, 15% or 20% depending on where it lands. For 2026 the 0% rate reaches $49,450 of taxable income for single filers and $98,900 for joint filers, and the 20% rate starts above $545,500 and $613,700. A short-term gain is simply added to your income and taxed at ordinary rates.

For a primary home the calculator subtracts the exclusion of up to $250,000, or $500,000 on a joint return, and assumes you meet the test of owning and living in the home for 2 of the 5 years before the sale. The 3.8% net investment income tax applies once income passes $200,000 single or $250,000 joint. It is estimated here from your other taxable income plus the gain, which slightly understates your modified adjusted gross income.

Not modeled: the 28% maximum rate on collectibles, the 25% rate on depreciation recapture for real estate you rented out, losses carried over from earlier years, the wash sale rule, a partial home exclusion, the alternative minimum tax, and state rules that tax gains differently from other income.

Related tools

Common questions

Short answers to what people ask most about this topic.

How much is capital gains tax in 2026?

Long-term gains are taxed at 0%, 15% or 20%. In 2026 a single filer pays 0% on gains that fall within the first $49,450 of taxable income and 20% on gains above $545,500; for joint filers the figures are $98,900 and $613,700. Everything in between is taxed at 15%.

Short-term gains, on assets held one year or less, are taxed at your ordinary income rates. Higher earners may also owe the 3.8% net investment income tax, and most states tax gains as regular income.

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

Often not. If you owned the home and used it as your main home for at least 2 of the 5 years before the sale, you can exclude up to $250,000 of gain, or $500,000 if you file jointly. Only the gain above that amount is taxed.

Keep records of what you paid and of improvements such as an addition or a new roof, since they raise your basis and reduce the gain. Any depreciation you claimed for a home office or rental use is taxed even when the exclusion applies.

What happens if I sell an investment at a loss?

A capital loss first offsets capital gains from the same year. If losses exceed gains, up to $3,000 of the excess can be deducted against other income, and the rest carries forward to future years without expiring.

The wash sale rule disallows a loss on stock or securities if you buy the same or a substantially identical investment within 30 days before or after the sale. A loss on a personal home or car is not deductible at all.

Talk to uTaxes

Want a professional to run your numbers?

Our CPAs and enrolled agents handle tax filing, bookkeeping and payroll for individuals and small businesses. The first consultation is free.

Related services

Keep exploring

All resources

This page is general information, not tax, legal or financial advice. Tax rules change and depend on your situation; talk to a qualified professional before acting on it.