By Harry Prabandham · Updated September 28, 2026
Tax Planning
Selling Your Home: The Section 121 Exclusion Explained
Section 121 excludes up to $250,000 of home-sale gain ($500,000 for most married couples) if you owned and lived in it 2 of the last 5 years.
Selling Your Home: The Section 121 Exclusion Explained
1 / 7
How much home-sale gain is tax-free?
- Section 121 lets you exclude up to $250,000 of gain on the sale of your main home, or up to $500,000 for most married couples filing jointly.
- The exclusion applies to gain, meaning sale price less selling costs and adjusted basis, not to the sale price.
- You do not need to buy another home or reinvest the proceeds.
- The dollar limits are fixed in the statute and have not been indexed for inflation since 1997.
Try Our Free Tools
Full Guide
How much home-sale gain is tax-free?
- Section 121 lets you exclude up to $250,000 of gain on the sale of your main home, or up to $500,000 for most married couples filing jointly.
- The exclusion applies to gain, meaning sale price less selling costs and adjusted basis, not to the sale price.
- You do not need to buy another home or reinvest the proceeds.
- The dollar limits are fixed in the statute and have not been indexed for inflation since 1997.
Do you meet the ownership and use tests?
- You must have owned the home and lived in it as your main home for at least two years during the five years before the sale.
- The two years need not be continuous, and the ownership and use periods do not have to overlap.
- For the $500,000 joint limit, either spouse can meet the ownership test, but both must meet the use test.
- You generally cannot use the exclusion if you excluded gain on another home sale within the prior two years.
Is a partial exclusion available if you sell early?
- If you fall short of the two-year tests, you may get a reduced exclusion when the main reason for selling is a change of workplace, health, or unforeseen circumstances.
- IRS regulations include safe harbors, such as a new job location at least 50 miles farther from the home than the old one.
- The reduced amount is generally based on the portion of the two-year period you did meet.
- Whether your reason qualifies is fact-specific; confirm with a CPA before counting on it.
What if the home was once a rental?
- Gain is generally allocated to periods of nonqualified use after 2008, such as renting the home before you moved in, and that portion is taxable.
- Time after you move out, within the five-year window before sale, generally does not count as nonqualified use.
- Depreciation claimed after May 6, 1997 cannot be excluded and is generally taxed at up to 25%.
- A home acquired through a 1031 exchange must be owned for five years before the exclusion can apply.
How do divorce and a spouse's death affect the exclusion?
- A spouse who receives the home in a divorce can count the former spouse's ownership period.
- A spouse who moves out can count time the other spouse lives there under a divorce or separation instrument.
- A surviving spouse who has not remarried can use the $500,000 limit on a sale within two years of the spouse's death, if requirements were met.
- Inherited homes usually get a stepped-up basis at death, which can reduce gain separately from Section 121.
What reduces taxable gain beyond the exclusion?
- Records of capital improvements, such as additions or a new roof, raise your basis and lower the gain.
- Selling costs, including commissions and certain closing costs, reduce the amount realized.
- Gain above the exclusion is a capital gain and may also face the 3.8% net investment income tax and state tax.
- California generally follows the federal exclusion, but gain above it is taxed as ordinary income at California rates.
Key takeaways
- Up to $250,000, or $500,000 for most joint filers, of home-sale gain can be excluded.
- Two years of ownership and use in the five years before sale is the core test.
- Rental periods, depreciation, and 1031 history can make part of the gain taxable.
- Keep improvement records and confirm eligibility with a CPA before you sell.
Related Topics
Primary Residence Tax Benefits: Mortgage Interest, SALT, and the Home Sale Exclusion
Itemizers can deduct mortgage interest on up to $750,000 of debt and property taxes within the SALT cap; up to $250K/$500K of sale gain can be excluded.
Tax PlanningCapital Gains Tax Rates for 2026: Brackets, NIIT, and Netting Rules
In 2026, long-term gains are taxed at 0% up to $49,450 single ($98,900 joint), 15% up to $545,500 ($613,700), and 20% above, plus possible NIIT.
Tax PlanningHow a 1031 Exchange Works: Deadlines, Boot, and Trade-offs
A 1031 exchange defers tax on the sale of investment real estate if the proceeds buy like-kind property within strict 45- and 180-day deadlines.