The IRS Section 121 exclusion lets most homeowners exclude up to $250,000 (single) or $500,000 (married filing jointly) of home-sale gains from federal capital gains tax. Here's what qualifies, what doesn't, and what the depreciation recapture rule means if you ever rented part of the property.
The IRS Section 121 exclusion shields up to $250,000 (single filers) or $500,000 (married filing jointly) of home-sale gain from federal capital gains tax — if you owned and used the home as your primary residence for at least 2 of the 5 years before the sale. Gain above the exclusion is taxed at long-term capital gains rates (0%, 15%, or 20%). If you ever rented the home or claimed a home-office deduction, depreciation recapture can apply separately.
> Disclaimer: This is general financial education on federal tax law. It is not personalized tax or legal advice. Tax rules change — verify current guidance at irs.gov or consult a qualified CPA or enrolled agent for guidance specific to your situation.
Brian's video from the @clearvaluetax9382 channel covers the federal rule that lets most homeowners walk away from a home sale without owing capital gains tax on a substantial portion of the gain. This companion goes deeper: what the IRS actually requires to qualify, what reduces or eliminates the exclusion, and when past depreciation creates a surprise tax bill even on a technically "excludable" sale.
IRS Publication 523 is the authoritative source. Here's what it says in plain terms:
Under IRC Section 121, if you sell your primary residence, you can exclude up to $250,000 of gain from federal income tax if you file as single — or up to $500,000 if you're married filing jointly and both spouses meet the use test (only one spouse needs to meet the ownership test).
"Gain" means your net profit: the sale price, minus selling costs (commissions, closing costs), minus your adjusted basis (what you originally paid for the home plus the cost of qualifying capital improvements).
Three constraints matter:
Your net proceeds depend partly on what the settlement statement shows at closing. The CFPB's Owning a Home toolkit explains every line on the Loan Estimate and Closing Disclosure — useful for reconstructing the deductible selling costs that reduce your taxable gain.
IRS Topic No. 701 lays out the two requirements — both must be satisfied independently:
Ownership test: You must have owned the home for at least 24 months within the 60-month window (5 years) immediately before the sale date.
Use test: You must have used the home as your primary residence for at least 24 months within the same 60-month window.
The two tests run independently. The 24 months don't need to be continuous — scattered periods of ownership or residency count, as long as the cumulative total reaches 24 months within the 5-year lookback.
For the married filing jointly $500,000 exclusion: both spouses must independently meet the use test. Only one needs to satisfy the ownership test.
Military exception: Active-duty service members can suspend the 5-year test window for up to 10 years of qualified extended duty — meaning the clock effectively stops while on active orders. Publication 523 covers the specifics.
Surviving spouse exception: If your spouse dies and you haven't remarried, you can still claim the full $500,000 MFJ exclusion if you sell within two years of the date of death and otherwise meet the requirements.
If your net gain exceeds $250,000 (or $500,000), the excess is taxable as a capital gain.
Because most primary residences are held well over a year, the excess qualifies for long-term capital gains rates — currently 0%, 15%, or 20% depending on your taxable income, as described in IRS Topic No. 409. The IRS adjusts the income thresholds for inflation each year; Topic 409 has the current numbers.
For high earners: an additional 3.8% Net Investment Income Tax (NIIT) applies to net investment income — including taxable home-sale gain — when modified AGI exceeds $200,000 (single) or $250,000 (married filing jointly). This is on top of the capital gains rate. Topic 409 covers the NIIT as well. The SEC's investor.gov has a broader overview of how capital gains interact with investment accounts, for readers coordinating a home sale with other investments in the same tax year.
A practical example: a couple (MFJ) buys a home for $400,000, makes $50,000 in qualifying improvements (adjusted basis: $450,000), and sells for $1,050,000 — net proceeds after $50,000 in selling costs: $1,000,000. Gain: $550,000. After the $500,000 MFJ exclusion, $50,000 is taxable at long-term capital gains rates.
If you ever used part of your home for business — a home office you claimed on Schedule C, or periods when you rented out a room or the whole property — the Section 121 exclusion doesn't cover that portion of the gain.
Specifically: any depreciation deductions you claimed over the years reduce your adjusted basis. That portion of the gain is called unrecaptured Section 1250 gain and is taxed at a maximum rate of 25%, separate from (and in addition to) any capital gains calculation. This runs through IRS Form 4797 and Schedule D.
The surprise: depreciation recapture can apply even when your overall gain falls well within the exclusion. Example: single filer sells a home with $180,000 of total gain — within the $250,000 exclusion — but $30,000 of that gain is attributable to depreciation taken on a home office. That $30,000 is recaptured at up to 25% even though the remaining $150,000 is fully excluded. If you ever claimed a home office or rented any portion of the home, a CPA familiar with mixed-use property is worth the fee.
The IRS provides a prorated partial exclusion if you didn't meet the full 2-year test but sold for a qualifying reason. Per IRS Publication 523 and Rev. Proc. 2005-14:
Qualifying reasons include: - Job change — your new workplace is at least 50 miles farther from the sold home than your prior workplace - Health — a doctor-recommended move, or a move to care for a sick family member - Unforeseen circumstances — job loss, divorce, multiple births from one pregnancy, natural disaster damage, involuntary conversion
The partial exclusion is proportional: you multiply the full exclusion by the fraction of the 2-year requirement you met. If you used the home as your primary residence for 14 months out of the required 24, you get 14/24 × $250,000 = approximately $145,800 excluded (single filer).
Homeowners navigating a forced or distress sale can find HUD-approved housing counselors at hud.gov — free advisors who help with options before and during a sale, including situations involving divorce, hardship, or foreclosure prevention.
---
For more on real estate as part of a long-term investing framework, see Real Estate Investing for Beginners. If you're buying again and evaluating loan structures, compare 15-Year vs. 30-Year Mortgages. For putting sale proceeds to work in the market, How to Start Investing: A Beginner's Framework covers the sequence.
---
This article is general financial education. ClearValue Lending is not a CPA, tax attorney, or financial advisor. IRS rules, thresholds, and revenue procedures change — consult a qualified tax professional (CPA or enrolled agent) for guidance specific to your situation and tax year.
In most cases, no. If your gain is below the exclusion amount, you meet both tests, and you didn't receive a Form 1099-S from the closing agent, you generally aren't required to report the sale at all. However, you must report it if you received a Form 1099-S, if any portion of the gain isn't excludable (depreciation recapture, for example), or if you don't meet the ownership and use tests. IRS Publication 523 details exactly when reporting is required. When in doubt, consult a CPA — the cost of filing unnecessarily is low compared to the cost of an omission.
Your adjusted basis starts with your original purchase price. Add qualifying capital improvements — a new roof, room addition, central HVAC replacement, new windows. These are permanent improvements that add value or prolong the home's useful life, not ordinary repairs or maintenance. Subtract any depreciation you claimed if any part of the home was used for business or rental. The result is your adjusted basis. Subtracting it from your net sale proceeds (sale price minus closing costs, commissions, and selling expenses) gives you your taxable gain. IRS Publication 523 provides the complete list of what counts as a capital improvement.
Yes, if you sold for a qualifying reason. The IRS allows a prorated partial exclusion if the sale was due to: a job change where your new workplace is at least 50 miles farther from the home than your prior workplace; a health issue requiring the move; or an unforeseen circumstance (job loss, divorce, natural disaster, multiple births from one pregnancy). The partial exclusion equals the full exclusion multiplied by the fraction of the 2-year requirement you met. For example, 12 months of use out of the required 24 gives you 50% of the maximum exclusion — $125,000 single, $250,000 MFJ. Rev. Proc. 2005-14 details the safe harbors for qualifying unforeseen circumstances.
If you ever rented out any portion of your home, claimed a home-office deduction, or used the property for business, you likely took depreciation deductions over those years. Depreciation reduces your adjusted basis. When you sell, the gain attributable to those depreciation deductions can't be excluded under Section 121 — it's taxed as unrecaptured Section 1250 gain at a maximum federal rate of 25%, regardless of whether your overall gain falls within the exclusion. This catches many former landlords off guard. If this applies to you, Form 4797 and Schedule D are both in scope — a CPA familiar with mixed-use property is particularly useful.
No. The Section 121 exclusion is strictly for your primary residence — the home where you primarily live. Investment properties and vacation homes don't qualify even if you spend significant time there. Sales of investment properties are fully taxable capital gains transactions (often with depreciation recapture layered on top), reported on Schedule D and Form 4797. The IRS applies the facts-and-circumstances test to determine primary residence if ownership of multiple properties raises questions.