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.
The $250,000 / $500,000 exclusion: what Section 121 does
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:
- Federal only. The exclusion covers federal capital gains tax. State treatment varies — many states conform; others don't. Check your state's rules separately.
- Once every two years. You can only use the exclusion once per two-year period. If you used it on a prior home sale within the last two years, it's unavailable now.
- Primary residence only. Investment properties and vacation homes don't qualify under Section 121, regardless of how much time you spend there.
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.
The ownership test and the use test
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.
Deciding what to do with home-sale proceeds?
If you're weighing your next real estate move or investing the proceeds, our real estate and investing guides walk through the options — no product pitch, just the framework.
Read the investing framework →What happens to gains above the exclusion
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.
Depreciation recapture: the home-office and rental wrinkle
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.
Special situations: partial exclusion
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.