§121 Primary Home Exclusion
"$500,000 of tax-free profit on the family home. Every 2 years if you live in it. Combine with a duplex house-hack and you defer the rental side, too."
The 60-second pitch
Sell your primary residence and exclude $250,000 of gain if single, or $500,000 of gain if married filing jointly — completely federal-tax-free. This is the single biggest tax break ordinary Americans get, and most homeowners use it once in their lives without thinking about it. Sophisticated owners use it three or four times.
The rules under §121 are clean:
Ownership test: You owned the home for at least 2 of the last 5 years.
Use test: You used it as your principal residence for at least 2 of the last 5 years.
Frequency rule: You haven't excluded a gain under §121 in the prior 2 years.
Beyond the standard exclusion, there are three power plays:
(1) Partial exclusion for unforeseen circumstances (job, health, divorce) — even if you don't hit 2 years.
(2) "Live in your rental" conversion — move into a rental, hit the 2-year use test, and unlock §121 on what was a passive property.
(3) Duplex house-hack — live in one unit (§121 on that half), rent the other (§1031 on that half) when you sell.
The §121 exclusion has no inflation adjustment — it's been $250K/$500K since 1997. With appreciation, more sellers now bump up against it. Plan the sale.
Real-world example
The setup. Carlos and Diane bought their Wash Park bungalow in 2008 for $385,000. They put $120K into renovations over 17 years (adds to basis). Adjusted basis: $505,000. In June 2025, with the kids out of the house, they sell for $1,180,000. Selling costs: $70K. Net proceeds: $1.11M.
The gain math. Amount realized $1,110,000 − adjusted basis $505,000 = $605,000 gain.
The §121 exclusion. They've lived in the home as their principal residence for 17 of the last 17 years and haven't used §121 within the prior 2 years. They qualify for the full $500,000 MFJ exclusion.
The result. Of the $605K gain, $500K is excluded under §121 and disappears federally. The remaining $105,000 is long-term capital gain, taxed at 15% federal LTCG ($15,750) + 3.8% NIIT on a portion ($3,990) + 4.4% Colorado ($4,620). Total tax: ~$24,360.
Without §121: $605K full LTCG, total federal+state tax would be ~$143,000. Savings from §121: ~$119,000.
The replay. They buy a new condo in Boulder for $720K, live in it 2 years, and sell for $920K. Another $200K gain — entirely excluded under §121. They can do this every 2 years for the rest of their lives.
The step-by-step checklist
- Confirm 2-out-of-5-year ownership AND use. You can move out and rent for up to 3 years and still qualify — as long as you used it as primary for 2 of the last 5 prior to sale. The days don't have to be consecutive.
- Track your adjusted basis carefully. Original purchase price + closing costs + every capital improvement (kitchen reno, new roof, addition, finished basement). Subtract: any prior depreciation taken (if you ever rented it). Most sellers under-track this and overpay tax.
- Document the principal residence claim. Driver's license, voter registration, mail, utility bills, banking address — all at the property during the use years. The IRS uses "facts and circumstances" — a paper trail wins.
- Sell BEFORE moving out, when possible. Once you move out, the clock starts on the 3-year tail (you must have lived there 2 of the last 5). Some sellers wait 4 years and accidentally disqualify.
- If selling at a partial qualification (job change, health, unforeseen circumstance), claim the partial exclusion under
§121(c): prorated based on the months of ownership/use as a fraction of 24. - Watch for nonqualified use periods under §121(b)(5). Any period the home was used non-primarily AFTER January 1, 2009 (e.g., rented before you moved in, or used as a vacation home) reduces the exclusion proportionally. Time as primary residence followed by rental does NOT trigger this — only nonqualified use that's not "transition out."
- For duplex / house-hack: split the basis. Allocate basis between the personal-residence unit (your half) and the rental unit (their half) using square footage or another reasonable method. §121 applies to your half. §1031 (if you exchange) applies to the rental half.
- Recapture any §1250 depreciation on a previously-rented portion. The §121 exclusion does NOT cover depreciation recapture — that's always taxable up to 25%. Compute and report on Form 4797.
- File Form 8949 + Schedule D reporting the gain and the §121 exclusion. The exclusion is a negative adjustment in column (g) with code "H."
- Plan the 2-year clock for the next sale. The frequency rule under §121(b)(3): can't claim §121 again within 2 years of the prior §121 sale. Plan accordingly if you "serial house-hack."
- For widows/widowers: a surviving spouse can claim the $500K MFJ exclusion for up to 2 years after the deceased spouse's death (per §121(b)(4)) — a critical planning window for older clients.
- If the gain exceeds the exclusion, consider an installment sale under §453 to spread the taxable portion. Or, if there's a rental portion, layer in a §1031 on that half.
IRS code & authority
- §121(a) The core exclusion rule. Up to $250K single / $500K MFJ of gain from sale of principal residence.
- §121(b)(2) The MFJ $500K rule. Either spouse must meet ownership; both must meet use; neither can have used §121 in prior 2 years.
- §121(b)(3) The 2-year frequency limit. No second §121 within 2 years of the prior §121 sale.
- §121(b)(4) Surviving spouse rule. Sole-filer surviving spouse can claim the $500K MFJ exclusion for up to 2 years after the spouse's death.
- §121(b)(5) Nonqualified use rules. Periods after 1/1/2009 of non-primary-residence use reduce the exclusion proportionally (the "post-2009 nonqualified use period" rule).
- §121(c) Partial exclusion for change-of-employment, health, or unforeseen circumstances. Prorate based on months met / 24 months.
- §121(d)(6) Depreciation recapture exception. Any depreciation taken after May 6, 1997 is NOT excluded — always taxable as §1250 unrecaptured gain (up to 25%).
- §121(d)(10) Anti-flip rule: if you acquired the home via §1031, you must own it for at least 5 years before §121 applies (kills the §1031→§121 quick conversion).
- Reg §1.121-1(b) Defines "principal residence" by facts and circumstances.
- Reg §1.121-3 Defines "unforeseen circumstances" — divorce, multiple births from same pregnancy, job change requiring 50+ mile relocation, death, etc.
- Pub 523 IRS publication on selling your home — the practical guide.
Audit risk flags
- Claiming §121 on a second home. Only the principal residence qualifies. The IRS looks at where you spend the majority of nights, where your kids go to school, and where you vote. Defense: Documentation — driver's license, registration, taxes, mail.
- §121 within 2 years of a prior §121 claim. Hard rule — no second exclusion. Defense: Track the date of the prior sale; if forced to sell early, claim partial exclusion under §121(c).
- Hidden depreciation recapture. If you rented the home (or part of it for a home office) for any period after May 6, 1997, you owe §1250 recapture on the depreciation, even if you claim §121 on the rest. Defense: Compute recapture separately on Form 4797; don't try to bury it.
- Underreported basis. Missing capital improvements increase the gain and the tax. Defense: Keep a "basis file" with every renovation invoice for the life of the home.
- Selling a converted rental too soon after move-in. If you owned it as a rental, then moved in for only 6 months and tried to claim §121 — the IRS will look at the §121(b)(5) nonqualified-use prorate, plus you need 2 years of use. Defense: Live in it 2+ years post-conversion before selling.
- Acquired via §1031 + sold under §121 within 5 years. §121(d)(10) blocks this anti-abuse loophole. Defense: Wait 5 full years before selling under §121.
- Partial exclusion claim without proper qualifying event. "I just felt like moving" doesn't count. The qualifying events are listed in Reg §1.121-3(d)/(e). Defense: Document the unforeseen circumstance with paperwork (new employment offer letter, doctor's note, divorce decree).
- Foreign property issues. §121 applies to U.S. and foreign principal residences alike — but state tax treatment varies. Defense: Coordinate with state tax counsel.
When NOT to do this
- Your gain is well under $250K/$500K. §121 simply applies — there's nothing to "do." You just file the return.
- Your gain is way over $500K and the home is in a market you believe in. A §1031 exchange isn't available (it's your primary home, not investment), but holding longer + step-up at death may beat selling and paying gain over the limit.
- You've used §121 within the last 2 years. You're locked out — wait for the 24-month clock to reset.
- You rented the home for years and just moved back in 6 months. The 2-of-5 use test isn't met, and nonqualified-use periods cut the exclusion further. Wait until you've satisfied the use test in full.
- You're under MFJ status but only one spouse meets the use test. You only get a $250K exclusion, not $500K. Some couples can plan around this if they wait — others have to accept the smaller exclusion.
- You're trying to convert a rental to a residence purely to use §121. The IRS knows this game. You need genuine principal-residence facts (mail, voter registration, time spent) for 2 years. Half-measures will be challenged.
- Heavy state tax state. Even with §121 federal exclusion, your state may not conform. California taxes the gain in full regardless of §121 — verify state rules.
Stack §121 and §1031 on the duplex you live in
PilePilot's Books agent tracks basis improvements on your home, computes the split-allocation if you house-hack a duplex, and flags the §121 exclusion exactly when you can use it. Built for small businesses who's done this play.
Start your free trial →No credit card. Your data is private and isolated — export or delete it anytime.
Disclaimer. The §121 exclusion is one of the most common — and most miscomputed — tax provisions. Common errors: forgetting depreciation recapture on a prior home-office year, missing the post-2009 nonqualified use prorate, claiming the exclusion within 2 years of a prior claim. Always coordinate with a tax professional before listing.