Selling a Home After a Spouse Dies: $500,000 Exclusion, Step-Up
Some links pay us a referral fee; each one says so. Disclosure
Quick answer
A surviving spouse who has not remarried and sells the home not later than 2 years after the date of death can exclude up to $500,000 of gain; after that the limit drops to $250,000 (26 U.S.C. 121(b)(4) and (b)(1)). How much gain there is depends on the basis the survivor ends up with: in the nine community property states the whole house is stepped up to its value at death, while a house the spouses held as joint tenants in a common-law state is stepped up on one half only (26 U.S.C. 1014(b)(6) and 2040(b)(1); IRS Publication 523 (2025)). Our worked example (our arithmetic), a house bought for $200,000 in 1990, worth $1,200,000 at a death in 2026 and sold for $1,250,000, gives a 2026 federal tax of $82.50 if sold inside the 2-year window in a common-law state, $41,382.50 if the same sale comes after it, and $0 in a community property state. Our pages on the home sale exclusion and the step-up in basis explain each rule on its own; this page puts them side by side with dollar figures, the sale price at which each case starts to owe tax, and the filing-status thresholds.
Key takeaways
- The window is in the statute: for an unmarried individual whose spouse is deceased on the date of the sale, the limit is $500,000 “if such sale occurs not later than 2 years after the date of death of such spouse and the requirements of paragraph (2)(A) were met immediately before such date of death” (26 U.S.C. 121(b)(4)). Congress added it by Pub. L. 110-142, for sales after December 31, 2007.
- In our example the 2-year window is worth $41,300 of federal tax in a common-law state with joint title ($82.50 inside the window against $41,382.50 after it, including $3,800 of net investment income tax) and nothing in a community property state, where the full step-up leaves only $50,000 of gain (our arithmetic).
- Title decides the basis. Joint tenants with right of survivorship, or tenants by the entirety, who are the only owners have one-half of the value included in the first spouse's estate (26 U.S.C. 2040(b)(1)-(2)), so the survivor's basis is half the original cost plus half the value at death: $700,000 in our example. A house in the decedent's name alone is stepped up in full ($1,200,000); a house in the survivor's name alone is not stepped up at all ($200,000) (26 U.S.C. 1014(a)(1); our arithmetic).
- Sale price at which federal tax starts, inside the window: $1,200,000 for joint title in a common-law state, $1,700,000 for community property or a house in the decedent's name, $700,000 for a house in the survivor's name alone. After the window the same prices are $250,000 lower: $950,000, $1,450,000 and $450,000 (our arithmetic, no improvements or selling costs).
- Remarrying before the sale ends the rule: the regulation treats the late spouse's ownership and use as the survivor's only if the taxpayer “has not remarried” at the sale (26 CFR 1.121-4(a)(1)(ii)), and IRS Publication 523 (2025) lists “You haven't remarried at the time of the sale” as a condition of the $500,000 limit.
- All dollar thresholds are 2026 figures (Rev. Proc. 2025-32 section 4.03 for the 0% and 15% capital gains limits; 26 U.S.C. 1411 for the 3.8% tax). The worked tax uses single-filer figures, no other income and no deductions, so it is a clean comparison between cases and not a prediction of any one return.
CSV · 134 rows
Selling a home after a spouse dies: the 2-year window, basis by title and state, and worked 2026 tax
134 rows: the Code, regulation and IRS publication text behind the window and the step-up, the nine community property states, five opt-in trust statutes, 2026 rate thresholds, and worked examples, break-even prices and a sale-price grid marked as our arithmetic.
What the rule says, condition by condition
Section 121(a) excludes the gain on a home that the taxpayer owned and used as a principal residence for periods adding up to 2 years or more in the 5-year period ending on the sale date, up to $250,000 under section 121(b)(1). A married couple filing jointly gets $500,000 if either spouse meets the ownership test, both meet the use test and neither is barred by the once-in-2-years rule (26 U.S.C. 121(b)(2)(A)). Section 121(b)(4) keeps that second figure for a survivor for a limited time. It was added by Pub. L. 110-142 and applies to sales after December 31, 2007, so for a spouse who died before that law the older rules applied (our reading of the effective-date note).
| Condition | Where it is written | What the document says | Why it matters to a survivor |
|---|---|---|---|
| Unmarried on the sale date | 26 U.S.C. 121(b)(4); 26 CFR 1.121-4(a)(1)(ii); Pub. 523 (2025) | Pub. 523: “You haven't remarried at the time of the sale.” The regulation treats the late spouse's time as the survivor's only if the survivor “has not remarried”. | A survivor who remarries before closing is outside the rule; the new couple would be tested on its own use and ownership. |
| Sale not later than 2 years after the date of death | 26 U.S.C. 121(b)(4) | “if such sale occurs not later than 2 years after the date of death of such spouse” | Counted from the date of death, not from the end of the year. A death on December 15, 2026 gives a window through December 15, 2028 on the statute's words (our reading); a closing near the last day is a question for the tax adviser. |
| Joint-return conditions met just before the death | 26 U.S.C. 121(b)(2)(A)(i)-(iii), referred to by 121(b)(4) | Either spouse met the ownership test, both met the use test, and neither was barred by the once-in-2-years rule of 121(b)(3). | If the late spouse never lived in the house, or the couple used the exclusion on another home within the previous 2 years, the $500,000 limit is not available. |
| Ownership and use for 2 of the last 5 years | 26 U.S.C. 121(a), (d)(2); 26 CFR 1.121-4(a) | The survivor's period “shall include the period such deceased spouse owned and used such property before death” (121(d)(2)). | The regulation's example: death on August 15, 2000, sale on September 1, 2000, and W “will be considered to have satisfied the ownership and use requirements of section 121”. |
| No other section 121 sale in the 2 years before | 26 U.S.C. 121(b)(3); Pub. 523 (2025) | Pub. 523 lists as a condition that “Neither you nor your late spouse took the exclusion on another home sold less than 2 years before the date of the current home sale.” | A downsizing sale earlier in the year of the death can use up the exclusion. |
| Gain the exclusion does not cover | 26 U.S.C. 121(b)(5)(A), (d)(6) | Gain allocated to periods of nonqualified use is not excluded, and neither is gain up to depreciation taken after May 6, 1997. | A house that was a rental for some years has gain outside both limits. Our [home sale exclusion guide](/articles/capital-gains-tax-home-sale-exclusion-2026) works those cases. |
Two rules are often run together. Section 121(d)(2) decides whether the survivor passes the 2-of-5-year test (the late spouse's time counts), and section 121(b)(4) decides whether the cap is $500,000 or $250,000. A child or other heir who inherits and sells is not an “unmarried individual whose spouse is deceased” in the sense of 121(b)(4) and starts from the heir's own ownership and use (our reading); our step-up guide covers heirs.
What the survivor's basis is: it depends on how the house was titled
The exclusion limit is only half of the answer. The gain it is applied to is the sale price minus the basis, and the death resets part or all of the basis under 26 U.S.C. 1014(a)(1): the basis of property acquired from a decedent is “the fair market value of the property at the date of the decedent’s death”. Which part of the house counts as acquired from the decedent depends on title and state.
| How the house was held | Rule | Basis after the first death (our arithmetic, cost $200,000, value at death $1,200,000) | Source |
|---|---|---|---|
| Community property (a community property state, house bought as community property) | The survivor's half is treated as acquired from the decedent if at least one-half of the whole community interest was in the gross estate: both halves take the date-of-death value | $1,200,000 | 26 U.S.C. 1014(b)(6); Pub. 551 (Rev. December 2025); Pub. 523 (2025) |
| Spouses only, as joint tenants with right of survivorship or tenants by the entirety (common-law state) | One-half of the value is in the first spouse's estate; the survivor keeps the cost of the other half. Pub. 523 says “you will each be considered to have owned one-half of the home” | $700,000: half of the $200,000 cost plus half of the $1,200,000 value | 26 U.S.C. 2040(b)(1)-(2); Pub. 523 (2025); Pub. 551 |
| In the decedent's name alone | The whole house is acquired from the decedent | $1,200,000 | 26 U.S.C. 1014(a)(1) |
| In the survivor's name alone (common-law state) | Nothing is acquired from the decedent, so the original basis continues | $200,000 | 26 U.S.C. 1014(a)(1) read with 2040(b) (our reading) |
Publication 551 puts the community property rule in one sentence: “When either spouse dies, the total value of the community property, even the part belonging to the surviving spouse, generally becomes the basis of the entire property.” Its example has a community interest worth $100,000 at the death, so the survivor's half gets a $50,000 basis whatever it cost. For joint tenancy, Publication 523 gives the matching example: a jointly owned home with an adjusted basis of $50,000 and a value of $100,000 at the spouse's death has a new basis of $75,000, which is $25,000 for half of the old basis plus $50,000 for half of the value.
Value at death needs a document. Publication 523 says that if Form 706 was filed or required, the value listed on it is the basis, and that if Form 706 did not have to be filed, “your basis in the home is the same as its appraised value at the date of death, for purposes of state inheritance or transmission taxes.” In practice that makes a date-of-death appraisal the record behind the basis (our reading). Our guide to adding someone to a deed shows why a house moved onto a child's title years earlier does not follow these rules, and the tenancy by the entirety list shows which states offer that form of title.
Worked example: the same house, six ways (our arithmetic)
Assumptions, all ours: the couple bought in 1990 for $200,000 and made no improvements; the house was worth $1,200,000 when the first spouse died in 2026; the survivor sells for $1,250,000 with no selling costs and no depreciation; the survivor has no other income and we ignore deductions, so taxable income equals the taxable gain; single-filer 2026 thresholds. Long-term capital gain is taxed at 0% up to $49,450 of taxable income, 15% up to $545,500 and 20% above (Rev. Proc. 2025-32 section 4.03, “All Other Individuals”). The 3.8% net investment income tax applies to the lesser of net investment income or the income over $200,000 (26 U.S.C. 1411(a)(1) and (b)); gain that is excluded under section 121 is outside taxable income and so outside the tax (26 U.S.C. 1411(c)(1)(A)(iii)).
| Case | Basis after death | Gain at $1,250,000 | Exclusion limit | Taxable gain | Federal tax, 2026 (our arithmetic) |
|---|---|---|---|---|---|
| A. Common-law state, joint title, sold inside the 2-year window | $700,000 | $550,000 | $500,000 | $50,000 | $82.50 (15% of the $550 above the $49,450 zero-rate amount); no net investment income tax |
| B. Same house, sold after the window | $700,000 | $550,000 | $250,000 | $300,000 | $37,582.50 capital gains tax plus $3,800 net investment income tax = $41,382.50 |
| C. Community property state, sold any time | $1,200,000 | $50,000 | $250,000 or $500,000 | $0 | $0 |
| D. Common-law state, house in the decedent's name alone, sold inside the window | $1,200,000 | $50,000 | $500,000 | $0 | $0 |
| E. Common-law state, house in the survivor's name alone, sold inside the window | $200,000 | $1,050,000 | $500,000 | $550,000 | $75,307.50 plus $13,300 net investment income tax = $88,607.50 |
| F. Same, sold after the window | $200,000 | $1,050,000 | $250,000 | $800,000 | $125,307.50 plus $22,800 net investment income tax = $148,107.50 |
How case B is built: gain $550,000 minus the $250,000 exclusion leaves $300,000; the 15% rate on the $250,550 between $49,450 and $300,000 is $37,582.50; the net investment income tax is 3.8% of the lesser of $300,000 and the $100,000 above $200,000, which is $3,800. In case A the same arithmetic leaves $50,000 of taxable gain, and only the $550 above the zero-rate amount is taxed. If the sale in case A closes in the year of the death and the survivor files jointly (see the filing-status section below), the $50,000 is under the $98,900 zero-rate amount and the federal tax is $0.
Reading the table. Where the survivor's basis is low, the 2-year window carries most of the tax saving: in case B against A it is $41,300, and for a house in the survivor's name alone (F against E) it is $59,500 (our arithmetic). Where the house gets a full step-up (C and D) the window has no effect in this example, because the remaining gain is under $250,000 anyway. The window matters more as the post-death price rises, as the grid below shows.
The sale price at which each case starts to owe federal tax
Federal income tax on the sale starts when the sale price exceeds the basis plus the exclusion limit. With no improvements, selling costs or depreciation (our arithmetic; each of those would lower the gain):
| How the house was held | Basis (value at death $1,200,000, cost $200,000) | Tax starts above this price, sold inside the window | Tax starts above this price, sold after the window |
|---|---|---|---|
| Joint title, common-law state | $700,000 | $1,200,000 | $950,000 |
| Community property, or the decedent's name alone | $1,200,000 | $1,700,000 | $1,450,000 |
| The survivor's name alone | $200,000 | $700,000 | $450,000 |
The first row shows a quirk of the joint-title case: with the exclusion at $500,000 the basis plus the exclusion equals the value at death, so a sale inside the window at or below $1,200,000 owes no federal income tax, while the same sale after the window starts to owe above $950,000, which is below the value at death (our arithmetic).
Same house, different sale prices: the total federal tax
The same assumptions as the worked example, with the sale price changed (our arithmetic, total of capital gains tax and net investment income tax):
| Sale price | Joint title, inside window | Joint title, after window | Community property, inside window | Community property, after window | Survivor's name alone, inside window | Survivor's name alone, after window |
|---|---|---|---|---|---|---|
| $1,000,000 | $0 | $82.50 | $0 | $0 | $41,382.50 | $88,607.50 |
| $1,200,000 | $0 | $31,982.50 | $0 | $0 | $78,982.50 | $136,207.50 |
| $1,250,000 | $82.50 | $41,382.50 | $0 | $0 | $88,607.50 | $148,107.50 |
| $1,500,000 | $41,382.50 | $88,607.50 | $0 | $82.50 | $148,107.50 | $207,607.50 |
| $2,000,000 | $148,107.50 | $207,607.50 | $41,382.50 | $88,607.50 | $267,107.50 | $326,607.50 |
| $3,000,000 | $386,107.50 | $445,607.50 | $267,107.50 | $326,607.50 | $505,107.50 | $564,607.50 |
The amounts are federal only. State income tax, selling costs, improvements and any depreciation change them, and none of them is in the table.
Which return the sale is on: the year of the death and after
A spouse who dies during the year leaves the survivor “considered married for the whole year for filing status purposes”, and a survivor who has not remarried can file jointly with the deceased spouse (Publication 501 (2025); 26 U.S.C. 6013(a)(2)). So a sale in the same calendar year as the death can use joint-return thresholds. A sale in a later year is on the survivor's own return. The thresholds that move are these (2026 figures):
| Return | 0% capital gains up to (taxable income) | 15% up to (taxable income) | Net investment income tax threshold | Source |
|---|---|---|---|---|
| Joint return for the year of the death | $98,900 | $613,700 | $250,000 | Rev. Proc. 2025-32 section 4.03; 26 U.S.C. 1411(b) |
| Single, later years | $49,450 | $545,500 | $200,000 | Rev. Proc. 2025-32 section 4.03; 26 U.S.C. 1411(b) |
| Surviving spouse as defined in section 2(a), later years | $98,900 | $613,700 | $250,000 | Rev. Proc. 2025-32 section 4.03 (“Surviving Spouse” row); 26 U.S.C. 1411(b) |
Section 1411(b) gives $250,000 for “a taxpayer making a joint return under section 6013 or a surviving spouse (as defined in section 2(a))” and $200,000 in any other case. Which survivors qualify under section 2(a), and the other tax changes that follow a death (single brackets, Medicare premium tiers, Social Security taxation), are in our widow's tax penalty page. Our 2026 capital gains page has the full rate table, and the 2027 breakpoints page has the figures for a sale in 2027.
By state: community property and the five opt-in trust statutes
IRS Publications 523, 551 and 555 list the same nine community property states: Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington and Wisconsin. Five other states have statutes that let spouses opt into community property by putting property in a trust. We read the text of the statutes in the table below, saved on October 30, 2026; we did not read any other state's rules on title for this page, and we do not describe a state we did not read.
| State or group | Statute we read | What it says about a death | Effect on a house, on the statute's words |
|---|---|---|---|
| Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington, Wisconsin | IRS Publication 555 (Rev. December 2024), Introduction; Publication 551 (Rev. December 2025) | Married individuals domiciled in these states are covered by the community property rules of the publication | Full step-up on the house if it is community property and at least one-half of the community interest is in the gross estate (26 U.S.C. 1014(b)(6)); a house held as separate property is not covered by that rule (our reading) |
| Alaska | AS 34.77.100 | A trust with a qualified Alaska trustee that expressly declares property to be community property; spouses may agree on the disposition at death | Whether the federal rule applies to such a trust is a question under 26 U.S.C. 1014(b)(6); our [opt-in trust page](/articles/community-property-trust-double-step-up-basis-section-1014-b-6-five-opt-in-states-2026) covers it |
| Florida | Fla. Stat. 736.1503, 736.1507 | On the death of a spouse one-half of the value in the trust reflects the share of the survivor and one-half the share of the decedent | Same federal question; the trust must exist before the death |
| Kentucky | 2020 Ky. Acts ch. 25 (HB 155), section 3(3) | On death one-half of the value reflects the survivor and one-half the decedent | Same federal question; the current KRS compilation was not re-read |
| South Dakota | SDCL 55-17-3, 55-17-5 | Each spouse's interest is fifty percent unless the instrument says otherwise; for 26 U.S.C. 1014(b)(6) a special spousal trust is treated as formed under the state's community property laws | The only one of the five that speaks to the federal section in its text |
| Tennessee | Tenn. Code Ann. 35-17-107 (Public Chapter 658, 2010) | On death one-half of the value reflects the survivor and one-half the decedent | Same federal question; the current compiled Code was not re-read |
A trust has to exist and hold the house before the first death for any of this to matter; it cannot be set up after the death to change the basis (our reading). The widow or widower with a house in an ordinary common-law-state title is in the second row of the basis table above.
What a reader can do with this
What the documents let you check before talking to anyone:
- Write down the date of death and count 2 years from it. The statute's window ends 2 years after that date (26 U.S.C. 121(b)(4)). Add the date of any earlier home sale by either spouse; a sale of another home within the previous 2 years can remove the exclusion (121(b)(3)).
- Find out how the house is titled. The deed decides which row of the basis table applies: community property, joint tenants or tenants by the entirety, the decedent's name, or the survivor's name. A house in a revocable trust is a different case that our step-up guide covers.
- Get a date-of-death value in writing. Publication 523 ties the basis to the value on Form 706 or, if none was required, to the appraised value at the date of death.
- Collect the original cost, the improvements and any depreciation or rental years. Gain is measured from adjusted basis, and rental years and depreciation can leave gain outside the exclusion (26 U.S.C. 121(b)(5) and (d)(6)).
- Check marital status on the sale date. A remarriage before closing ends the survivor rule.
- Compare the price you expect with the break-even prices above. If the expected price is under the figure in the table for your title, no federal income tax is expected on the gain (our arithmetic); if it is over, the grid shows the size of the tax, with state tax on top.
The decision, and who makes it. Whether to sell inside the window or later, whether to file a joint return for the year of the death, and whether the deed and the appraisal support the basis are choices for the CPA who prepares the return and, for title and state law, an estate-planning or real estate attorney. A financial adviser can model what holding the house costs against selling it. Nothing here is a recommendation to sell or to keep a house.
This is analysis of public documents, not investment, legal or tax advice.
FAQ
Update alert · free
An email when the selling a home after a spouse dies numbers change
When a rate, rule or filing behind this page changes: what changed, the one number that matters, and the source to check it yourself.
Sources, read and saved on November 24, 2026: 26 U.S.C. 121, 1014, 1411, 2040 and 6013 and 26 CFR 1.121-2 and 1.121-4 (Legal Information Institute text); Pub. L. 110-142 section 7(b) (effective-date note under section 121); IRS Publication 523 (2025), Publication 551 (Rev. December 2025), Publication 555 (Rev. December 2024) and Publication 501 (2025); Rev. Proc. 2025-32 (sections 4.03 and 4.14); Alaska Statutes 34.77.100, Florida Statutes 736.1503 and 736.1507, 2020 Kentucky Acts chapter 25, South Dakota Codified Laws 55-17-3 and 55-17-5 and Tennessee Public Chapter 658 (2010), as saved on October 30, 2026. Worked examples are our arithmetic. This is analysis of public documents, not investment, legal or tax advice.