Capital Gains When You Sell Your Home

How the home sale exclusion works, who qualifies, and what happens when gain exceeds the exclusion or the home was ever rented out.

Selling a primary residence is one of the few real estate transactions with a built-in tax break most owners never have to think much about, because the gain on a typical sale falls entirely under the exclusion. That changes once a home has appreciated significantly, was ever rented out, or belonged to someone who did not live there long enough to qualify.

The Section 121 Exclusion in Practice

A single filer can exclude up to $250,000 of gain, and a married couple filing jointly can exclude up to $500,000, on the sale of a home they owned and used as their primary residence for at least two of the five years before the sale. The two years of ownership and two years of use do not need to be continuous or overlap with the same two-year period, and the exclusion can generally be used again on a future home sale as long as the ownership and use tests are met again.

What Happens Above the Exclusion Cap

Gain beyond $250,000 or $500,000 is taxed as a standard long-term capital gain, assuming the home was held over a year, at the applicable federal rate plus any state tax. In fast-appreciating markets, sellers who bought decades ago sometimes find their gain well past the cap even on a modest home, which turns a portion of what felt like a tax-free sale into a real bill.

When a Home Was Also a Rental

  • Depreciation claimed during any rental period is recaptured and taxed separately, even on an otherwise qualifying primary residence sale
  • Gain allocated to periods of nonqualified use, generally time after 2008 when the home was not the owner's primary residence, may not qualify for the exclusion
  • A home converted from rental to primary residence needs the ownership and use tests satisfied independently of the rental history
  • Mixed-use history is one of the more commonly miscalculated areas of the exclusion, worth a CPA's review rather than a quick online estimate

Divorce, Death, and Partial-Year Exceptions

A surviving spouse selling within two years of a spouse's death can generally still claim the full $500,000 exclusion if the ownership and use tests were met while the spouse was alive. Divorced owners who transferred the home as part of a settlement have their own set of rules for counting the transferring spouse's ownership period. Sellers who move for a job change, health reason, or other unforeseen circumstance before meeting the full two-year test may qualify for a reduced, prorated exclusion rather than none at all.

Why This Exclusion Does Not Carry Over to Investment Property

The $250,000 and $500,000 amounts are specific to a primary residence under Section 121 and have no equivalent for investment or rental property. An owner who wants to defer gain on a property that was never a primary residence, or that stopped qualifying as one, is generally looking at a Section 1031 exchange instead, which defers rather than excludes and only applies to property held for investment or business use.

Some owners end up using both provisions on the same property at different points in its history, claiming the exclusion on the portion tied to qualified primary-residence use and separately evaluating an exchange for a period when the home was converted to a rental before sale. Sorting out which years count toward which benefit is a detailed calculation, and it is one worth working through with a CPA before listing rather than after the closing numbers are already final.

Common Questions

Can I use the home sale exclusion more than once?

Yes, generally once every two years, as long as the ownership and use tests are met again for the new sale. There is no lifetime limit on how many times the exclusion can be claimed.

Does the exclusion apply if I rented out a room while living in the home?

Renting a room while still living in the home as a primary residence typically does not disqualify the exclusion, though any depreciation claimed on the rented portion is still recaptured separately at sale.

What if I lived in the home for only one year before selling?

Without meeting the full two-year use test, the exclusion generally does not apply in full, though a partial exclusion may be available for specific circumstances like a job relocation, health issue, or other qualifying unforeseen event.

Is the home sale exclusion the same thing as a 1031 exchange?

No, they serve different purposes and apply to different property types. The exclusion is specific to a primary residence and does not defer tax, it removes gain up to a cap entirely, while a 1031 exchange defers gain on investment property and requires reinvestment through a qualified intermediary.

Ready to talk through your exchange?

Share the dates, property details, and open questions for your Atlanta exchange.

Start Exchange Review
ServicesLocationsAboutContactStart Exchange Review(404) 975-1635
(404) 975-1635