A surviving spouse who sells the family home can exclude up to $500,000 of capital gain from federal tax under the Section 121 exclusion after the death of a spouse, but only if the sale closes within two years of the date of death. Combined with a stepped-up cost basis that erases most or all of the pre-death appreciation, that exclusion often wipes out the tax bill entirely. Miss the two-year window or misjudge the basis, and the cost can run into tens of thousands.
The Two-Year Window
A single filer normally excludes only $250,000 of gain on the sale of a principal residence. A surviving spouse keeps access to the full $500,000 that was available to the couple, provided the sale closes no later than two years after the date of death.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Two other conditions apply. The surviving spouse must not have remarried before the sale date, and the couple must have satisfied the ownership-and-use requirements immediately before the death.
Close one day past the two-year mark and the exclusion drops to $250,000. The clock runs from the actual date of death to the closing date, so work backward from that date when you list the property. The surviving spouse also cannot have used the Section 121 exclusion on a different home sale within the two years before this one.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
One boundary worth flagging: if the home is sold by the deceased spouse’s estate rather than by the surviving spouse personally, the exclusion generally isn’t available. A short-lived exception allowing estates and certain trusts to claim it was repealed for decedents dying after 2009.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Get title into the surviving spouse’s name before closing.
Who Meets the Ownership and Use Tests
To claim any Section 121 exclusion, the taxpayer must have owned and used the home as a principal residence for at least two years during the five-year period ending on the sale date. The two years of ownership and two years of use don’t need to be consecutive, and they don’t need to overlap.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
A tacking rule makes these tests much easier for a surviving spouse. You can count your deceased spouse’s periods of ownership and use as your own.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence If your spouse owned and lived in the home for 15 years and you were only added to the title a year before the death, you still satisfy both tests. Tacking applies no matter how title was held.
The $500,000 amount adds one more layer. The joint-return requirements had to be met “immediately before” the date of death, which means both spouses used the home as their principal residence for two of the five years ending on that date. If one spouse moved to a nursing home four years before death and never returned, the joint use test may fail as of the date of death, which can knock the exclusion down to $250,000 even inside the two-year window.
How the Stepped-Up Basis Reduces the Gain
Your gain is the difference between the net sale price and the property’s adjusted basis. When a spouse dies, the basis is adjusted to the home’s fair market value on the date of death, erasing appreciation that built up while the couple owned it.2Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent How much of the property gets stepped up depends on how title was held and which state you live in.
Sole Ownership by the Deceased Spouse
If your spouse was the sole owner and you inherit the entire property, the full basis steps up. Say your spouse bought the home for $150,000, it was worth $500,000 at death, and you inherited it. Your new basis is $500,000, and any taxable gain is only the appreciation between the date of death and the date you sell.
Joint Ownership in a Common Law State
Most states follow common law property rules. When spouses jointly own a home in a common law state, only the deceased spouse’s half of the property steps up. Your half keeps its original basis.2Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent
The math: a couple paid $200,000 for a home worth $600,000 at death. The deceased spouse’s half steps up from $100,000 to $300,000. The surviving spouse’s half stays at $100,000. Combined new basis is $400,000. Sell for $600,000, and the gain is $200,000, comfortably inside the $500,000 exclusion.
Community Property States
In the nine community property states (Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington, and Wisconsin), both halves of the home step up to fair market value at the date of death.2Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent With the same numbers, the entire basis jumps from $200,000 to $600,000. Sell for $600,000 and the gain is zero. The difference between a common law and community property state can mean hundreds of thousands of dollars in erased gain on the same sale.
What Remarriage Does to the Exclusion
Remarrying before the sale eliminates the special $500,000 surviving spouse provision. The statute requires the seller to be unmarried on the date of sale to use that rule.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence That doesn’t automatically drop you to $250,000. If you and your new spouse file jointly, the couple can claim up to $500,000 under the standard joint-return rules, as long as both spouses meet the use test, at least one meets the ownership test, and neither used the exclusion on another sale in the prior two years.3Internal Revenue Service. Publication 523, Selling Your Home
The practical catch is the use test. Your new spouse almost certainly hasn’t lived in the home for two of the past five years. If only you meet it, the couple is capped at $250,000 on a joint return. If a remarriage is on the horizon and the home is going to sell, closing before the wedding is usually the cleaner path.
Renting or Leaving the Home Vacant
A surviving spouse often doesn’t sell right away. The home may sit empty through probate, or you may rent it to cover carrying costs while you decide. The law carves out a helpful exception here: any period after the last date the home was used as a principal residence by you or your spouse is not treated as nonqualified use.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Leave the house vacant or rent it out after your spouse dies, and that post-residence stretch doesn’t cut into your excludable gain.
The trap is on the front end. If the property had a nonqualified use period before it became your principal residence (you bought it as a rental, then moved in later), that earlier period reduces the portion of gain eligible for exclusion. Gain gets allocated proportionally between qualified and nonqualified periods.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
Renting after the death creates a separate depreciation issue. You’re required to depreciate the property while it’s rented, and depreciation claimed after May 6, 1997 cannot be excluded under Section 121 even if the rest of the gain qualifies. Recaptured depreciation is taxed at a rate of up to 25%.
Homes Held in a Revocable Trust
Many couples hold their home in a revocable living trust. The IRS treats a grantor trust as if the grantor personally owns the property, so as long as the surviving spouse is treated as the trust’s owner under the grantor trust rules, a sale by the trust is treated as a sale by the surviving spouse for Section 121 purposes.4eCFR. 26 CFR 1.121-1 – Exclusion of Gain From Sale or Exchange of a Principal Residence All the ownership, use, and exclusion rules apply normally.
The picture changes if the trust becomes irrevocable after the death and the surviving spouse is no longer treated as its owner for tax purposes. An irrevocable trust filing its own return generally can’t claim the exclusion, because the trust doesn’t “use” the home as a principal residence. Before selling, confirm with the trustee or the estate’s tax preparer that title (or grantor-trust status) sits with the surviving spouse.
Partial Exclusion When You Can’t Meet the Tests
Sometimes even the tacking rule isn’t enough. Maybe the couple bought the home recently, or the sale has to happen fast. The death of a spouse is a safe harbor “unforeseen circumstance” under IRS regulations, which entitles the surviving spouse to a reduced exclusion rather than none at all.3Internal Revenue Service. Publication 523, Selling Your Home
To calculate it, take the shortest of three periods: how long you lived in the home during the five-year lookback, how long you owned it, or the time since you last used the Section 121 exclusion. Divide by two years (730 days or 24 months), then multiply by $250,000, or $500,000 if you otherwise qualify for the surviving spouse amount.3Internal Revenue Service. Publication 523, Selling Your Home Own and live in the home for 18 months before selling, and your partial exclusion works out to 18/24 × $250,000 = $187,500.
Reporting the Sale and Documenting the Basis
Once you know your basis and your exclusion, the calculation is direct. Subtract the adjusted basis from the net sale price (sale price minus commissions and transfer taxes) to get total gain. Subtract the exclusion. Whatever remains is a long-term capital gain, because inherited property is always treated as long-term regardless of how quickly you sell.
An example, common law state: you inherited half the basis at $100,000 and got a stepped-up half at $350,000, for a combined $450,000. The home sells for $925,000 with $50,000 in selling costs, so the net is $875,000. The gain is $425,000. If the sale closed within two years of the death, the entire $425,000 is excluded, and there’s no reporting requirement unless you received a Form 1099-S at closing.
Any taxable gain above the exclusion goes on Form 8949 and flows to Schedule D on your Form 1040.5Internal Revenue Service. Topic No. 701, Sale of Your Home Long-term capital gains rates for 2026 are 0%, 15%, or 20%, depending on income. High-income sellers may also owe the 3.8% net investment income tax on the taxable portion.
One reporting quirk catches people. If you receive a Form 1099-S from the title company or closing agent, you must report the sale on your return even if the gain is fully excluded.5Internal Revenue Service. Topic No. 701, Sale of Your Home You won’t owe anything, but you need to file Form 8949 to show the IRS the exclusion covers it. Skipping this can trigger an automated notice that assumes tax is due on the full sale price.
Your stepped-up basis is only as strong as the paperwork behind it. Get a professional appraisal by a licensed appraiser stating the property’s fair market value as of the date of death. Residential appraisals typically run $300 to $600. Other acceptable documentation includes the value reported on a federal estate tax return (Form 706), if one was filed, or a comparative market analysis dated near the death. Property tax assessments alone are usually not reliable because assessed values lag the market. Keep the appraisal, the death certificate, and records of any improvements made after the date of death. If the IRS challenges the basis, the burden of proof is on you, and a contemporaneous appraisal is what carries you through.