IRS Section 121 Exclusion Guide – Selling your primary home in the United States can trigger capital gains taxes, but IRS Section 121 offers one of the most powerful tax breaks available to homeowners. Commonly known as the home sale exclusion or principal residence exclusion, this rule lets eligible taxpayers exclude up to $250,000 ($500,000 if married filing jointly) of gain from taxable income. This comprehensive IRS Section 121 exclusion guide explains the rules, eligibility tests, calculations, exceptions, and reporting requirements using the latest official guidance from IRS Publication 523 (2025) and Topic No. 701.
What Is the IRS Section 121 Exclusion?
The IRS Section 121 exclusion allows you to exclude from gross income the gain realized on the sale or exchange of your principal residence (main home), subject to certain limits and eligibility tests. It applies whether you sell a house, condominium, cooperative apartment, mobile home, or houseboat—as long as it qualifies as your main home under facts-and-circumstances rules.
The exclusion is not automatic. You must meet specific ownership and use requirements during the 5-year period ending on the sale date. If you qualify, the first $250,000 of gain ($500,000 for married filing jointly in most cases) is completely tax-free. Any gain above the limit is taxed as long-term capital gain (if you owned the home more than one year).
Who Qualifies for the Section 121 Home Sale Exclusion?
To claim the full exclusion, you must pass the Eligibility Test in IRS Publication 523. Key requirements include:
- You did not acquire the home through a like-kind (Section 1031) exchange in the past 5 years.
- You are not subject to the expatriate tax.
- You meet the ownership and use tests (detailed below).
- You have not claimed the exclusion on another home sale within the 2-year period ending on the date of the current sale.
Only one main home qualifies at a time. If you own multiple properties, the IRS uses a facts-and-circumstances test—primarily where you spend the most time—to determine your principal residence.
Ownership and Use Tests: The Key Eligibility Requirements
You must satisfy both tests during the 5-year look-back period ending on the sale date. The periods do not have to overlap.
Ownership Test: You (or your spouse, for joint returns) must have owned the home for at least 24 months (730 days, which can be non-consecutive) out of the last 5 years.
Use Test (Residence Test): You must have lived in the home as your principal residence for at least 24 months (730 days) out of the last 5 years. Short absences for vacations or seasonal stays generally count as residence time. For married filing jointly, only one spouse needs to meet the ownership test, but both must meet the use test individually.
Special note for disabled taxpayers: If you become physically or mentally unable to care for yourself and lived in the home as your main residence for at least 12 months in the 5-year period, time spent in a licensed care facility (nursing home) counts toward the use test.
Maximum Exclusion Amounts Under Section 121
- $250,000 for single filers, head of household, or married filing separately.
- $500,000 for married filing jointly (if one spouse meets ownership and both meet use and look-back rules).
- Surviving spouse: You may qualify for the full $500,000 exclusion if the home was jointly owned, your spouse died within the 2 years before the sale, you have not remarried, and you meet the other tests.
You can claim the exclusion only once every 2 years.
How to Calculate Your Gain on Home Sale?
Gain = Amount realized − Adjusted basis.
Amount realized = Selling price − Selling expenses (commissions, legal fees, etc.) + any buyer-assumed liabilities or taxes paid by the buyer.
Adjusted basis = Purchase price + cost of improvements and additions − depreciation claimed (or allowable) − casualty losses − any energy credits or subsidies received.
Use the worksheets in IRS Publication 523 to compute your adjusted basis and gain accurately. Routine repairs (painting, fixing leaks) do not increase basis; only capital improvements do.
Nonqualified Use and Depreciation Rules That Limit the Exclusion
Even if you qualify for the exclusion, some gain may not be excludable:
- Nonqualified use: Gain allocable to periods after December 31, 2008, when the home was not used as your (or your spouse’s/former spouse’s) principal residence is not excludable. Exceptions include up to 10 years of qualified official extended duty (military, Foreign Service, intelligence community) or up to 2 years of temporary absence for employment, health, or unforeseen circumstances. Prorate the gain using days of nonqualified use versus total ownership days.
- Depreciation recapture: You cannot exclude gain equal to depreciation allowed or allowable after May 6, 1997, for business or rental use. This portion is reported on Form 4797 and may be taxed as unrecaptured Section 1250 gain (up to 25%). If business use was only within the living space, no allocation of gain is needed beyond the depreciation recapture.
Partial Exclusion for Special Circumstances
If you fail the ownership/use tests or the 2-year look-back rule, you may still qualify for a reduced (partial) exclusion if the primary reason for the sale was:
- Change in place of employment (new job at least 50 miles farther from the home).
- Health reasons.
- Unforeseen circumstances (IRS provides safe harbors such as natural disasters, death of a co-owner, divorce, or multiple births from the same pregnancy).
The reduced exclusion is calculated by taking the shortest of three periods (ownership time, use time, or time since last exclusion) divided by 730 days (or 24 months), then multiplying by $250,000 (or $500,000 for joint returns).
Special Rules for Military, Disabled, and Other Taxpayers
- Military and government personnel: You may elect to suspend the 5-year test period for up to 10 years while on qualified official extended duty (Uniformed Services, Foreign Service, or intelligence community) at a duty station 50+ miles away or in government housing.
- Installment sales: The exclusion still applies; report under the installment method unless you elect out.
- Foreclosures or short sales: The exclusion can still apply to any gain.
How to Report the Sale and Claim the Exclusion on Your Taxes?
- If your entire gain is excludable and you do not receive Form 1099-S, you generally do not need to report the sale.
- Otherwise, report the sale on Form 8949 and Schedule D (Form 1040). Use IRS worksheets in Publication 523 to calculate the excludable amount.
- Depreciation recapture goes on Form 4797.
- Keep records of purchase, improvements, and sale documents for at least 3 years after filing.
Common Mistakes to Avoid with Section 121
- Forgetting to adjust basis for improvements or depreciation.
- Claiming the exclusion on a second home or vacation property.
- Missing the 2-year look-back rule after a prior exclusion.
- Not prorating for nonqualified use or business depreciation.
- Assuming short-term rentals automatically disqualify the home.
2026 Updates and Recent Developments on Section 121
As of 2026, the exclusion limits remain $250,000/$500,000 with no inflation adjustment or major legislative changes enacted. Publication 523 (2025) continues to govern the rules. Proposed bills to increase or eliminate the limits have not become law. Always check IRS.gov/Pub523 for the latest future developments.
Frequently Asked Questions About IRS Section 121 Exclusion
Can I use Section 121 more than once?
Yes, every 2 years if you meet the tests each time.
Does the exclusion apply to rental properties?
Only the portion used as your principal residence qualifies; nonqualified use and depreciation rules apply.
What if I sell at a loss?
No exclusion needed, and losses on personal residences are not deductible.
Do I need a tax professional?
This guide is for informational purposes only and is not tax or legal advice. Rules can be complex—consult a qualified tax advisor or CPA for your specific situation.
By understanding and properly applying the IRS Section 121 exclusion, most U.S. homeowners can sell their primary residence with significant tax savings. For the full details and worksheets, download the latest Publication 523 directly from IRS.gov. Plan ahead, keep excellent records, and make the most of this valuable tax benefit when selling your home.