GainsCalc

Capital gains on selling a house: what you owe in 2026

By GainsCalc editorial · 2026-05-28

In short: When you sell your main home, you can exclude up to $250,000 of gain ($500,000 married filing jointly) if you owned and lived in it for 2 of the last 5 years. Gain above the exclusion is taxed at long-term rates (0/15/20% plus the 3.8% NIIT for high earners). Second homes and rentals get no exclusion, and rentals also face depreciation recapture.

For most homeowners, selling the family home produces no capital gains tax at all - thanks to one of the most generous breaks in the code, the Section 121 exclusion. But the details matter.

The exclusion

SituationGain you can exclude
Single, main home, 2-of-5-year test met$250,000
Married filing jointly, both meet the use test$500,000
Second / vacation home$0
Rental property$0 (plus depreciation recapture)

To qualify you must have owned the home and lived in it as your main home for at least two of the five years before the sale (they need not be consecutive), and you generally cannot use the full exclusion more than once every two years.

When you actually owe

You owe capital gains tax only on the gain above the exclusion. A couple with a $700,000 gain excludes $500,000 and pays long-term tax on the remaining $200,000 - at 15% or 20% depending on income, plus the 3.8% NIIT if their income is high, plus any state tax.

Two groups commonly owe: long-time owners in hot markets whose gain exceeds the cap, and owners of second homes or rentals (no exclusion). Rentals also face depreciation recapture at up to 25% - see collectibles and Section 1250.

Lower your taxable gain

Your gain is sale price minus cost basis - and basis includes capital improvements (a new roof, an addition, a renovation). Keeping receipts can shave tens of thousands off a taxable gain. More on the math in how to calculate capital gains tax and the home-sale page.

General information, not tax advice. Verify with the IRS or a tax professional.

Frequently asked questions

How much can I make on a home sale tax-free?

Up to $250,000 of gain if single, or $500,000 if married filing jointly, provided you owned and used the home as your main home for at least 2 of the 5 years before the sale. Gain above that is taxed at long-term capital gains rates.

Do I pay capital gains tax on a second home?

Yes. The Section 121 exclusion only covers your main home. Gains on a second home or vacation home are fully taxable at long-term capital gains rates, with no exclusion.

What is depreciation recapture on a rental?

When you sell a rental you depreciated, the gain attributable to past depreciation is 'unrecaptured Section 1250 gain,' taxed at up to 25% federally - separate from, and on top of, the normal long-term rates on the rest of the gain.

Related articles

Last updated: 2026-05-28