Skip to main content
My Consumer Finance

Section 121 primary-residence capital gains exclusion basics

Section 121 primary-residence capital gains exclusion basics: ownership and use tests, $250,000 / $500,000 ceilings, and what usually does not qualify—tax education only, not mortgage shopping.

When you sell a home you actually lived in, IRS Section 121 may let you exclude a large slice of the gain from taxable income—commonly up to $250,000 for single filers and $500,000 for joint filers who both qualify. This is tax education about ownership and use tests, not a guide to mortgage rates, refinance shopping, or lender comparison.

General gain/loss mechanics: Capital gains basics. Holding-period labels for other assets: Capital gains holding periods. Basis after an inheritance is a different rule set: Stepped-up basis.

Ownership test and use test

TestPlain-English cue (verify current IRS Pub 523)
OwnershipYou owned the home for at least 2 years during the 5 years ending on the sale date
Use (main home)You lived in it as your main home for at least 2 years during that same 5-year window
FrequencyYou generally have not excluded gain on another home sale in the prior 2 years

The two years of ownership and use do not have to be continuous or simultaneous in every fact pattern, but short vacation stays do not turn a rental into your main home. Military and certain disability / work-move exceptions can shorten tests—read IRS materials or a tax pro for those facts.

What the exclusion usually covers (and skips)

Often in scope: Gain on the sale of your qualifying main home up to the dollar ceiling.

Often outside or limited:

  • Depreciation you took for a home office or rental period (may be taxable even when Section 121 applies to other gain)
  • Gain above the $250k / $500k ceiling
  • Second homes and pure investment properties that never met the use test
  • Partial business use in some mixed-use situations

Selling costs and improvements affect basis (what you subtract from the sale price to measure gain). Keep closing disclosures, improvement receipts, and prior Form 1099-S paperwork with your tax file. Filing workflow context: Filing taxes for beginners.

Worked example

Jordan and Taylor (married filing jointly) bought a condo for $320,000 in 2016, lived there as their only home through 2024, and never rented it out. Selling costs net them an adjusted amount realized of $610,000. Capital improvements they documented add $40,000 to basis, so adjusted basis is $360,000. Realized gain: $250,000.

They meet ownership and use tests and have not used Section 121 in the prior two years. The entire $250,000 gain fits under the $500,000 joint ceiling in this simplified story—so none of that gain is taxable under Section 121 (illustrative; state taxes and other federal rules can still matter).

If the same couple instead realized $620,000 of gain, roughly $120,000 could sit above the exclusion and face capital gains tax—possibly alongside net investment income tax depending on income. Whether they itemize other deductions that year is separate: Standard vs itemized deductions.

Partial exclusion and special situations

  • Job change, health, unforeseen circumstances — A reduced exclusion may apply if you sell before hitting full two-year tests; IRS worksheets decide the fraction.
  • Divorce / surviving spouse — Ownership and use credits can transfer in specific ways; document title history.
  • Converted rental — Nonqualified use periods after 2008 can limit the exclusion even if you later move back in.

This page does not cover shopping mortgage products, comparing lenders, or timing a refinance. If you need housing payment education later, keep it separate from the tax exclusion decision.

Checklist

  1. Confirm main-home use and ownership months inside the five-year window.
  2. Tally adjusted basis: purchase price + documented improvements − depreciation taken.
  3. Estimate gain before you spend the exclusion in your head.
  4. Check whether you used Section 121 on another sale in the last two years.
  5. Set aside depreciation recapture and “above the ceiling” gain for tax software or a preparer.
  6. Store closing docs and improvement receipts with that year’s return.

Educational only. Not tax, legal, or real-estate advice. Section 121 facts are individual—confirm with IRS Publication 523 or a qualified tax professional. Not mortgage or lender guidance.