TaxesJune 3, 202610 min read

Understanding Capital Gains Taxes When Selling Real Estate

The Section 121 exclusion can shield up to $500,000 of gain on your primary residence — but only if you qualify. Here's how capital gains on real estate actually work for homeowners and investors.

Rising bar chart made of houses with a gold dollar sign
Share

Capital gains, the short version

A capital gain on real estate is the difference between your net sale price and your adjusted basis. Long-term gains (held more than a year) are taxed at preferential federal rates — typically 0%, 15%, or 20% depending on income, plus a possible 3.8% net investment income tax on high earners. State tax may apply on top.

Adjusted basis: the number that determines your tax

Adjusted basis is not just what you paid. It includes:

  • Original purchase price
  • Closing costs you paid as a buyer
  • Capital improvements (new roof, kitchen remodel, addition) — NOT repairs
  • Selling costs (agent commissions, title fees, transfer tax) reduce the realized gain

Keep receipts. Improvements over 10+ years of ownership often add tens of thousands to basis.

The Section 121 primary residence exclusion

This is the big one. If you owned and lived in the home as your primary residence for at least 2 of the last 5 years before sale, you can exclude:

  • $250,000 of gain if filing single
  • $500,000 of gain if married filing jointly

Each spouse must meet the use test; only one needs to meet the ownership test. You can use the exclusion once every two years.

Partial exclusions

Don't quite meet the 2-of-5 rule? You may still qualify for a partial exclusion if you sold because of a change in employment, health, or other unforeseen circumstances. The exclusion is prorated by months of use.

Investment property: a different game

Investment properties don't qualify for Section 121. You pay capital gains on the appreciation AND depreciation recapture — the IRS reclaims the depreciation you deducted (or could have deducted) at up to 25%. That recapture often catches investors by surprise.

Planning strategies

  • Time the sale around income — a sabbatical year may drop you into the 0% long-term gain bracket
  • Establish residency early (the 2-year clock starts the day you move in)
  • For investors, consider a 1031 exchange to defer the gain
  • For owners with massive appreciation, an installment sale can spread the gain across years
  • Charitable strategies (donor-advised funds, CRTs) can convert gain into deduction

When to call a CPA

Anytime the gain might exceed the exclusion. Anytime a property has been rented out, converted, or jointly owned across a divorce. The cost of a tax pro is trivial compared to the cost of getting basis wrong.

Frequently asked

Do I owe tax if I reinvest the proceeds into another home?+

For a primary residence, no — the old 'rollover' rule was replaced by the Section 121 exclusion in 1997. For investment property, the 1031 exchange is the mechanism.

What counts as a capital improvement vs a repair?+

Improvements add value or extend useful life (new roof, addition). Repairs maintain the property (patching, painting). Only improvements increase basis.

Are agent commissions tax-deductible?+

Not as a deduction, but they reduce your realized gain, which has the same effect as a deduction against the gain.

Does the exclusion apply to a second home?+

No. Only your primary residence qualifies. Vacation homes are taxed on the full gain unless converted to primary status for the required 2 years.

A
ADK Real Estate Team

The ADK Real Estate Team builds tools for realtors and the clients they serve — financial intelligence, listing performance, and the reports that win listings.

Win the listing with better reports

Net Sheet, True Payment, Wealth Report, Listing Health, and Seller Update — branded for your business.

Keep reading