Selling the family home to fund retirement looks like a clean financial move until tax season arrives.
Quick Answer: How Does the Home Sale Capital Gains Exclusion Work?
The Section 121 exclusion lets single filers exclude up to $250,000 in capital gains and married couples filing jointly exclude up to $500,000 from the sale of a primary residence.You must meet a two-year ownership and use requirement.
Any gain above the threshold is taxable.
What Section 121 Actually Does
Section 121 of the Internal Revenue Code shields a portion of your home sale profit from federal capital gains tax.| Filing Status | Maximum Exclusion |
| Single | $250,000 |
| Married Filing Jointly | $500,000 |
The Two-of-Five-Year Rule
To claim the exclusion, you must satisfy both parts of the ownership and use test:- You must have owned the home for at least two of the five years before the sale date.
- You must have used it as your primary residence for at least two of those same five years.
Your Adjusted Basis Matters More Than You Think
Capital gains are calculated on the difference between your sale price and your adjusted basis, not just your original purchase price. Your adjusted basis includes:- The price you originally paid for the home
- Eligible closing costs from your purchase
- The cost of capital improvements, such as a new roof, an addition, or a full kitchen renovation
The Widow’s Penalty: Timing Has Real Consequences
When both spouses are alive, a married couple qualifies for the full $500,000 exclusion. After one spouse dies, the surviving spouse loses that higher threshold once they begin filing as single. The transition window is narrow:- The sale may need to close in the same tax year the spouse died to preserve the full $500,000 exclusion.
- A two-year window may be available under specific conditions, but the details depend on how the use test is satisfied.
Step-Up in Basis: Why Inherited Homes Are Different
When you inherit a home, the cost basis resets to fair market value on the date of the original owner’s death. This is called a step-up in basis.Two Costs That Can Still Catch You Off Guard
Even after the exclusion, gains above the threshold can trigger additional costs:- Net Investment Income Tax (NIIT): A 3.8 percent surtax applies to taxpayers with modified adjusted gross income above $200,000 (single) or $250,000 (married filing jointly).
-
Income-Related Monthly Adjustment Amount (IRMAA) Surcharges: A spike in income from a home sale can raise your Medicare Part B and Part D premiums the following year.
Talk to a Tax Professional Before You List
These calculations need to happen before you sign a listing agreement, not after you accept an offer.FAQs About Home Sale Capital Gains Exclusion
What Happens if My Profit Exceeds the Section 121 Exclusion Limit?
Any gain above the exclusion threshold is subject to federal capital gains tax. If you have owned the home for more than one year, the rate is zero percent, 15 percent, or 20 percent, depending on your taxable income for that year.High-income taxpayers may also owe the 3.8 percent Net Investment Income Tax on the excess gain.
State capital gains taxes may apply as well, depending on where you live.
Can I Claim the Exclusion if I Moved Out Before Selling?
Yes, as long as you meet the two-of-five-year test. You do not need to be living in the home at the time of the sale. You need to have used it as your primary residence for at least two of the five years before the closing date, and those two years do not need to be consecutive.If you rented the home out during part of that period, depreciation recapture rules may apply.
Do Adult Children Pay Capital Gains Tax on a Parent’s Home They Inherit?
Inheriting a home typically triggers a step-up in basis, which resets the cost basis to fair market value on the date of death. If the home is sold shortly afterward at a price close to that value, the taxable gain is often minimal.The Section 121 exclusion does not apply to inherited property unless the heir also lived in the home and meets the use test.
Community property state rules differ, so consult a tax advisor for your specific situation.







