How Does Selling a Home Soon After a Spouse’s Death Affect the Capital-Gain Exclusion?

Ross Marino |

After a spouse dies, selling the home may feel like one decision with one tax question: “How much gain can I exclude?” The answer can depend on the sale date, but timing is only one part of the calculation.

A special federal rule may preserve an exclusion of as much as $500,000 for a qualifying surviving spouse who sells no later than two years after the spouse’s death. A separate basis adjustment at death may also reduce the gain. Neither result should be assumed before the ownership history and tax records are connected.

Why can the sale date matter?

Ordinarily, an individual can exclude up to $250,000 of gain from selling a main home after meeting the ownership and use tests. The general tests look for at least two years of ownership and two years of use as a principal residence during the five-year period ending on the sale date. The exclusion generally cannot be used if the taxpayer excluded gain from another home sale during the preceding two years.[1]

For a surviving spouse, federal law can substitute $500,000 for $250,000 when the survivor is unmarried on the sale date, the sale occurs no later than two years after death, and the joint-return eligibility requirements were met immediately before death.[2] IRS guidance also requires that neither spouse used the exclusion on another home sold less than two years before this sale and allows certain ownership and residence periods of the late spouse to count.[3] “Within two years” is therefore a statutory boundary, not a general suggestion to sell quickly.

How does the sale date connect to the calculation?

Sale-side amount

Sale price minus eligible selling expenses

Property-side amount

Adjusted basis, including any qualifying adjustment at death

Subtract to find gain → then apply the exclusion supported by the sale date and eligibility history → the remainder may be taxable

Why is the basis adjustment a separate question?

The exclusion removes qualifying gain from income after gain is calculated. Basis helps determine how much gain exists in the first place. Adjusted basis may begin with purchase cost, then change for certain settlement costs, capital improvements, depreciation, casualty adjustments, and other events. Selling expenses generally reduce the amount realized rather than increase basis.[4]

At death, property acquired from a decedent generally receives a basis tied to fair market value at death, subject to applicable valuation and consistency rules.[5] But the portion adjusted depends on how the home was owned and on state marital-property law. In a common-law ownership arrangement, the deceased spouse’s interest may adjust while the survivor’s own interest retains its prior basis. Qualifying community property can be treated differently, potentially adjusting both spouses’ interests.[6]

That is why a recent appraisal, the deed, prior closing statement, improvement records, and any estate valuation belong in the same calculation. A quick sale near a supportable date-of-death value may produce little gain even before an exclusion is applied. A later sale can still qualify for an exclusion, but the available maximum may be $250,000 rather than the special surviving-spouse amount.

Dovetail Principle: Timing Can Change Which Options Remain

The two-year window can preserve a larger exclusion, but that doesn't automatically make an early sale better. Timing deserves attention because it can change the tax option available—not because tax should decide where or when you live.

What should be known before choosing a sale date?

Begin with the exact date of death and a tentative closing range. Then confirm whether the survivor will be unmarried on the sale date; whether the home was the principal residence; each spouse’s ownership and use history; and whether either spouse claimed a home-sale exclusion during the relevant prior two years. Filing a joint return for the year of death and using the special post-death rule are related but distinct routes. The return filed for the sale year does not, by itself, establish the larger exclusion.

Next, build the gain estimate from documents rather than memory: expected sale price, broker commission and other qualifying selling costs, original acquisition records, improvement invoices, depreciation history if any portion was rented or used for business, ownership form, state of domicile, and a defensible date-of-death value. The home-sale rules can become more complex after rental use, nonqualified use, multiple parcels, a prior exchange, or a sale before the full tests are met.[7]

How should timing fit the larger decision?

Ask a qualified tax professional to compare at least two realistic closing dates using the same sale assumptions. The comparison should show adjusted basis, any basis adjustment at death, selling expenses, total gain, the exclusion supported under each date, estimated taxable gain, federal and state consequences, and any depreciation that cannot be excluded.

Then place the tax difference beside the human difference. More time may provide room to settle the estate, prepare the home, choose the next place, or decide whether selling is right at all. An earlier closing may preserve a larger exclusion. The useful decision is the sale date that reflects both the verified tax window and the life the survivor is ready to support.

Related Reading: After the Spouse Who Handled the Finances Dies, What Needs Attention First? helps separate immediate continuity work from larger decisions that can wait.

About the author

Ross Marino, CFP®, CeFT®, is the Founder & CEO of Dovetail Financial and creator of Human-First Financial Guidance®. He helps people nearing or living in retirement connect their lives and wealth so that financial decisions become clearer, more personal, and easier to navigate.

Search another retirement question

Describe the question or enter a few topic words. You do not need to know the exact article title.

 

Notes

  1. Publication 523 (2025), Selling Your Home, Internal Revenue Service.
  2. 26 U.S. Code § 121—Exclusion of Gain From Sale of Principal Residence, Cornell Legal Information Institute.
  3. Tax Consequences of the Family Home for the Surviving Spouse, University of Illinois Tax School.
  4. Understanding Capital Gains Taxes on Your Home, Fidelity Investments.
  5. Publication 551 (2025), Basis of Assets, Internal Revenue Service.
  6. Community Property and the Step-Up in Basis, The CPA Journal.
  7. Beyond the 101 of IRC § 121: Further Study of a Common Tax Exclusion, Financial Planning Association.

Disclosure

This content is provided by Dovetail Financial Group LLC (“Dovetail Financial”) for informational and educational purposes only. It is not intended as, and should not be construed as, individualized investment, tax, legal, or accounting advice; a recommendation to buy or sell any security; or a recommendation to adopt any investment strategy. Because each person’s situation is unique, readers should consult their own financial, tax, and legal professionals before taking action based on this content. Information contained herein is believed to be reliable, but its accuracy or completeness is not guaranteed. Any opinions expressed are current as of the date of publication and are subject to change without notice. All investing involves risk, including the possible loss of principal. Asset allocation and diversification do not guarantee profits or protect against losses in declining markets. Past performance is not a guarantee of future results. Dovetail Financial Group LLC is a registered investment adviser. Registration does not imply a certain level of skill or training. Additional information about Dovetail Financial Group LLC, including Form ADV Part 2A and Form CRS, is available at adviserinfo.sec.gov. © 2026 Dovetail Financial Group LLC. All rights reserved.