Selling a Home After a Spouse Dies: Basis and the Gain Exclusion
Calculate inherited home basis, test the surviving-spouse home-sale exclusion, preserve improvement records, and model tax before choosing a closing date.

Selling a home after a spouse dies can involve three separate tax calculations: adjusted basis, realized gain, and the portion of gain eligible for the main-home exclusion. A surviving spouse may qualify for an exclusion of up to $500,000 on a sale within two years after death, but only when every statutory condition is met.
Do not choose a closing date from the exclusion amount alone. Establish ownership, residence history, date-of-death value, improvements, prior depreciation, and who will legally sell the property. Then compare the tax result with the financial and personal cost of keeping the home.
Identify the seller and the ownership history
Start with the deed, purchase closing file, marital-property agreement, trust, will, probate documents, and mortgage records. Determine who owned the property before death, what interest passed at death, who owns it now, and whether the seller will be the surviving spouse, the estate, a trust, or multiple beneficiaries.
The main-home exclusion is available to an eligible individual taxpayer; an estate’s sale is not automatically treated as the widow’s sale. A trust sale can depend on trust status and occupancy. Do not sign a listing agreement until counsel confirms title and the tax preparer identifies the reporting taxpayer.
Record every period the widow and deceased spouse owned and used the property as a main home during the five years ending on the proposed sale date. Include absences, rental periods, second-home use, health moves, and any prior home-sale exclusion claimed by either spouse.
Calculate the home’s inherited basis correctly
The home’s starting basis before death generally includes purchase price and qualifying acquisition costs, increased by capital improvements and reduced by adjustments such as depreciation, casualty reimbursements, or certain credits.
At death, the inherited interest generally receives a basis tied to fair market value under the inherited-property rules. The survivor’s preexisting interest may retain its adjusted basis. In a qualifying community-property situation, both halves may receive a date-of-death adjustment. Joint-tenancy and contribution rules can produce a different result.
Obtain a qualified date-of-death appraisal and a written allocation showing each ownership share before and after death. Use the inherited-property basis guide to build a permanent record. A property-tax assessment, current online estimate, or later listing price is not automatically the required valuation evidence.
Reconstruct capital improvements
Capital improvements generally add value, prolong useful life, or adapt the property to a new use. Examples can include additions, major remodeling, a new roof, permanent landscaping, central systems, and accessibility improvements. Ordinary repairs and maintenance generally do not increase basis unless they are part of a larger qualifying improvement project.
Search canceled checks, bank and credit-card statements, permits, contractor invoices, warranties, photographs, insurance files, emails, property disclosures, and prior refinancing appraisals. Separate improvement cost from deductible expenses, personal property, financing charges, and routine maintenance.
Create a schedule showing date, project, vendor, amount, tax treatment, ownership period, and supporting document. Do not double-count an improvement already reflected in another basis adjustment.
Compute amount realized and gain
The tax calculation does not begin and end with sale price. Publication 523 explains that the amount realized generally reflects sale price reduced by qualifying selling expenses and adjusted for amounts paid or received at closing. Compare that amount with adjusted basis to determine gain or loss.
Review brokerage commission, transfer taxes, legal and recording fees, seller-paid points, staging, repairs, concessions, mortgage payoff, property-tax prorations, and settlement adjustments separately. Some reduce amount realized, some affect basis, some are currently deductible in another context, and some are personal nondeductible costs.
A loss on the sale of a personal main home is generally not deductible. Gain may be fully excluded, partly excluded, or taxable depending on eligibility, depreciation, nonqualified use, and the exclusion limit.
Test the ordinary ownership, use, and look-back rules
Publication 523 generally requires ownership and use of the home as a main residence for at least 24 months during the five-year period ending on the sale date. The ownership and use periods do not always need to be the same 24 months.
The look-back rule generally prevents another exclusion when the taxpayer excluded gain from another home sold during the two years before the current sale. Military, Foreign Service, intelligence, Peace Corps, disability, separated-spouse, and other special rules can modify parts of the test.
Build a month-by-month timeline and retain evidence: driver’s licenses, voter registration, tax returns, utility bills, insurance, mailing address, employment, medical records, and other proof of main-home use. Ownership on a deed without residence is not enough to satisfy both tests.
Apply the surviving-spouse $500,000 rule precisely
For a qualifying surviving spouse, Publication 523 permits an exclusion of up to $500,000 when all of these conditions are met:
- The home is sold no later than two years after the spouse’s death.
- The surviving spouse has not remarried at the time of sale.
- Neither spouse used the exclusion on another home sold during the two years before the current sale.
- The ownership and residence requirements are satisfied, including eligible periods of the deceased spouse’s ownership and residence.
The two-year period is measured to the sale, not the listing date, contract date, or decision date. Confirm how the closing date is treated and leave operational margin for financing, title, repair, or probate delays.
If the higher limit is unavailable, the survivor may still qualify for the ordinary exclusion of up to $250,000 or a reduced exclusion. The exclusion caps gain; it is not a deduction from sale price and cannot create a loss.
Consider reduced exclusions without assuming eligibility
A taxpayer who fails the full ownership, use, or look-back requirement may qualify for a reduced exclusion when the primary reason for sale is a work-related move, health-related move, or qualifying unforeseeable event under Publication 523.
The reduced limit uses a fraction based on the shortest qualifying ownership, residence, or look-back period. Publication 523 lists the death of the taxpayer’s spouse, a co-owner, or anyone else who lived in the home as an unforeseeable event that meets the standard requirements when it occurred while the seller owned and lived in the home as a main residence. A facts-and-circumstances showing that the event was the primary reason for the sale is needed only when no listed event applies.
Document the timeline, medical or employment evidence, household facts, and adviser conclusion. Do not claim a reduced exclusion for an unlisted life event unless the facts show it was the primary reason for the sale.
Isolate depreciation and nonqualified use
Gain attributable to depreciation allowed or allowable for business or rental use after May 6, 1997, generally cannot be excluded under the main-home rule. A home office, rental period, accessory unit, or conversion of the entire property can therefore change the calculation even when the residence tests are met.
Periods of nonqualified use after 2008 can make part of the remaining gain ineligible for exclusion, subject to detailed exceptions. Publication 523 treats some absences after the last period of main-home use differently, so chronological facts matter.
Collect every Schedule E, Form 8829, depreciation schedule, prior return, rental agreement, and conversion valuation. Depreciation “allowable” can matter even if it was never claimed, making missing returns especially risky.
Coordinate the sale year and filing status
The home-sale exclusion’s surviving-spouse rule is distinct from income-tax filing status. A widow may qualify for the higher home-sale exclusion while filing a non-joint return, or may file jointly for the year of death under separate rules.
Model capital gain, depreciation recapture, net investment income tax, estimated payments, state tax, withholding, credits, Medicare income-related adjustments, and the timing of other income. State home-sale exclusions and inherited-basis rules may not match federal treatment.
If the home is sold by the estate or trust, determine which return reports the transaction and whether a distribution carries any tax item to a beneficiary. Do not report the same sale on both Form 1040 and Form 1041.
Review Form 1099-S and return reporting
The closing agent may issue Form 1099-S reporting gross proceeds. Compare the taxpayer name, identification number, property, closing date, and gross proceeds with the settlement statement. Request a correction promptly when factual fields are wrong.
Publication 523 and current Form 8949 instructions determine when a sale must appear on the return. A taxpayer who receives Form 1099-S generally must report the transaction even if all gain is excluded. Taxable gain and depreciation-related amounts require appropriate reporting.
Keep the appraisal, basis schedule, improvement support, eligibility timeline, exclusion worksheet, closing disclosure, Form 1099-S, filed return, and e-file acceptance together permanently.
Compare tax timing with the real housing decision
Prepare at least three scenarios: a sale within the surviving-spouse window, a later sale, and no immediate sale. Include estimated proceeds, exclusion, taxable gain, carrying cost, maintenance, insurance, property tax, financing, moving, replacement housing, and investment consequences.
A larger exclusion does not make a rushed sale prudent. Nor should a modest potential tax cost keep someone in an unsafe, unaffordable, inaccessible, or isolating home. Quantify the tax difference so it can inform (not control)the decision.
Use conservative closing assumptions and write down the last practical date for preserving a tax option. Recalculate when the price, closing date, ownership, occupancy, or other income changes.
Home-sale tax checklist
- Confirm the current owner and taxpayer who will sell.
- Build the five-year ownership and main-home-use timeline.
- Establish inherited basis and each spouse’s ownership share.
- Reconstruct improvements and all post-death basis adjustments.
- Compute amount realized and preliminary gain from the settlement estimate.
- Test the ordinary exclusion and two-year look-back rule.
- Test every condition for the surviving-spouse $500,000 limit.
- Identify depreciation, rental periods, home-office use, and nonqualified use.
- Model federal and state tax under realistic closing dates.
- Reconcile Form 1099-S and preserve the complete calculation.
This article provides general U.S. federal tax education, not tax, legal, valuation, real-estate, or investment advice. Home-sale treatment depends on ownership, use, marital and filing status, date of death, basis, depreciation, prior exclusions, seller identity, closing date, and state law. Have qualified tax and legal professionals review the transaction before setting a tax-driven deadline.
Primary sources
- IRS Publication 523: Selling Your Home
- IRS Topic 701: Sale of Your Home
- IRS Publication 551: Basis of Assets
- IRS Publication 555: Community Property
- IRS Publication 527: Residential Rental Property
This article provides general education, not individualized legal, tax, investment, insurance, or benefits advice. Rules and deadlines change; verify the current requirement with the agency and a qualified professional.


