FinanceCalcAI
Taxes5 min read

Capital Gains Tax When Selling Your Home: The $250,000/$500,000 Exclusion Explained

Most homeowners pay zero capital gains tax when they sell — but the exclusion has specific rules about ownership time, use, and how much profit it actually covers.

Share:XFacebook

When you sell a home for more than you paid for it, that profit is technically a capital gain — but most homeowners never pay a cent of tax on it, thanks to a specific exclusion built for primary residences. Understanding exactly how it works matters most for anyone whose home has appreciated significantly or who's selling a property that isn't their main home.

The $250,000 / $500,000 Rule

If you've owned and lived in the home as your primary residence for at least 2 of the 5 years before the sale, you can exclude up to $250,000 of profit from capital gains tax if you're single, or up to $500,000 if you're married filing jointly. Profit here means sale price minus your cost basis (what you paid, plus qualifying improvements) — not the full sale price.

The 2-Out-of-5-Years Test

The 24 months of ownership and use don't need to be continuous or the most recent 2 years — they just need to add up to 24 months within the 5 years before the sale date. This matters for people who moved out and rented the home for a period before selling: as long as they lived there at least 2 of the last 5 years, they can still qualify.

You Generally Can't Use It Every Year

The exclusion is limited to one sale every 2 years. If you sold a home and used the exclusion recently, you typically need to wait until the 2-year mark before you can use it again on a different home — one exception being certain partial exclusions for a sale forced by a job change, health issue, or other unforeseen circumstance.

What Happens Above the Exclusion

Any profit above the $250,000/$500,000 threshold is taxed as a regular capital gain — long-term rates if you owned the home more than a year, which is nearly always the case for a primary residence. This mainly matters in high-appreciation markets or for long-term owners: a couple who bought a home decades ago for $150,000 and sells for $900,000 has a $750,000 gain, $250,000 of which is still taxable even after the full $500,000 exclusion.

It Doesn't Apply to Investment Properties

This exclusion is specifically for a primary residence — a rental property, vacation home, or house flip doesn't qualify unless it was genuinely your primary residence for 2 of the last 5 years. Investment property sales are subject to full capital gains tax (and often depreciation recapture on top of it), which is why many real estate investors use a 1031 exchange instead to defer that tax.

💡 Keep records of major home improvements (not routine repairs) for as long as you own the home — a new roof, an addition, or a kitchen remodel all increase your cost basis, which directly reduces the taxable gain if you're ever near the exclusion limit.

See how home price appreciation factors into what you can afford to buy next.

Try Home Affordability Calculator
SponsoredAffiliate disclosure

Send Money Worldwide in Minutes

Transfer funds to 200+ countries with Western Union. Competitive rates, multiple payout options — bank account, cash pickup, or mobile wallet.

Send Money Now

Found this helpful? Share it:

Share:XFacebook