Do You Pay Capital Gains Tax When You Sell Your House After Your Spouse Dies?
The short answer: usually not, and almost never in the first two years. Two federal rules work together for a surviving spouse. First, the deceased spouse’s half of the house receives a new tax basis equal to its value at death, so the appreciation that built up on that half during the marriage disappears for income tax purposes. Second, a surviving spouse who sells within two years of the death may still exclude up to 500,000 dollars of gain, the married couple’s amount, rather than the 250,000 dollars allowed to a single person. After two years the exclusion drops to 250,000 dollars, but the stepped-up basis remains, and for most homes that combination still leaves little or no tax to pay.
This article walks through the arithmetic, the two-year rule, what happens after it passes, how the answer differs if the house was in a trust or in one spouse’s name, and the other costs a surviving spouse should weigh before deciding whether to sell.
Takeaways:
- When a spouse dies owning the home jointly, half the home gets a new basis equal to its value at death under Sections 1014 and 2040(b); the survivor’s half keeps its original basis
- A surviving spouse who has not remarried and sells within two years of the death may exclude up to $500,000 of gain under Section 121; after two years the limit is $250,000
- A house held in one spouse’s name alone, or in a revocable trust, gets a full step-up if it was the deceased spouse’s; a house given away during life gets none
- New Jersey charges no inheritance tax on a spouse’s share, and none of the three states taxes the survivor on inheriting the home, but New York and Connecticut estate tax can apply to large estates
FREE WEBINAR
5 Things to Know About
Estate Planning
When You Turn Sixty-Five
How Is the Gain on a Home Sale Calculated?
Gain is the sale price, less selling costs, less the adjusted basis. Basis starts with what the couple paid, plus closing costs that could not be deducted, plus capital improvements over the years, as explained in our article on cost basis in real estate and how to prove it. A couple who bought a house in 1988 for 180,000 dollars, added a 60,000-dollar kitchen and a 40,000-dollar roof and addition, and never rented it out has a basis of 280,000 dollars. If the house is worth 900,000 dollars, the built-in gain is 620,000 dollars. For a married couple filing jointly, the 500,000-dollar exclusion would leave 120,000 dollars taxable on a sale. The death of one spouse changes both numbers.
What Happens to the Basis When a Spouse Dies?
Under Section 1014 of the Internal Revenue Code, property acquired from a decedent takes a basis equal to its fair market value on the date of death. For a home owned by spouses jointly or as tenants by the entirety, Section 2040(b) provides that exactly one-half of the value is treated as the deceased spouse’s, so exactly one-half of the home receives the new basis. The surviving spouse’s original half keeps its original basis.
Using the example: the home is worth 900,000 dollars when the first spouse dies. The deceased spouse’s half steps up from 140,000 dollars to 450,000 dollars. The survivor’s half remains 140,000 dollars. The survivor’s new basis in the whole house is 590,000 dollars, and the built-in gain has fallen from 620,000 dollars to 310,000 dollars overnight, without anyone doing anything.
Two variations matter. If the house was titled in the deceased spouse’s name alone, or held in the deceased spouse’s revocable trust, the entire house passes from the decedent and the entire basis steps up to 900,000 dollars, leaving no gain at all on an immediate sale. If the house was in the survivor’s name alone, nothing steps up, because nothing passed from the decedent. And in the nine community property states, both halves step up on the first death, a rule that does not apply in New Jersey, New York, or Connecticut. Our article on the step-up in basis for inherited property covers the exceptions, including property in irrevocable trusts.
Under Section 1223(9), the inherited half is treated as held for more than one year no matter when the survivor sells, so any gain on it is long-term.
What Is the Two-Year Rule for Surviving Spouses?
Section 121 lets a taxpayer exclude gain on the sale of a home owned and used as a principal residence for at least two of the five years before the sale: up to 250,000 dollars for a single person, and up to 500,000 dollars for a married couple filing jointly where both spouses meet the use test and at least one meets the ownership test. A surviving spouse files jointly only for the year of death, so without a special rule the exclusion would fall to 250,000 dollars the following January.
The statute provides that rule. A surviving spouse who sells within two years after the spouse’s death, and who has not remarried by the date of sale, may use the 500,000-dollar figure if the couple would have qualified for it immediately before the death. In the example, the survivor’s gain after the step-up is 310,000 dollars. A sale within two years excludes all of it. A sale in year three excludes 250,000 dollars and leaves 60,000 dollars taxable as long-term capital gain, at federal rates of 0, 15, or 20 percent depending on the survivor’s income, plus state income tax.
The two years run from the date of death, not from the end of the year. A spouse who died in March 2026 leaves a window that closes in March 2028, and the closing must occur, not merely the contract, within it.
Should a Surviving Spouse Sell Within Two Years?
Not necessarily. The two-year rule saves tax only when the gain after the step-up exceeds 250,000 dollars, and for many homes it does not. In the example the extra exclusion is worth the tax on 60,000 dollars, roughly 9,000 to 12,000 dollars at federal rates before state tax. That is real money, but it should not force a grieving spouse out of a home they want to keep. The decision belongs with the other questions a widow or widower faces: whether the house is affordable on one income, whether it suits the survivor’s health and mobility, and whether the survivor wants to stay in the neighborhood.
A surviving spouse who keeps the house also keeps the stepped-up basis, and when the survivor later dies, the whole house steps up again for the children under Section 1014. A family that inherits the home after the second death typically sells with little or no gain regardless of how long the survivor stayed.
What About State Taxes?
None of the three states imposes an inheritance tax on a spouse’s share of a home. New Jersey’s inheritance tax exempts spouses entirely as Class A beneficiaries, and New Jersey has had no estate tax for deaths after 2017. New York and Connecticut have no inheritance tax, but each has an estate tax on large estates, with exemptions of 7,350,000 dollars in New York and 15 million dollars in Connecticut for deaths in 2026. Property passing to a spouse qualifies for the marital deduction in both, so the first death rarely produces state estate tax; the issue arises at the second death, when the survivor’s estate includes the house and everything else.
On sale, each state taxes the gain as income at its own rates, generally following the federal exclusion. A New Jersey resident survivor pays New Jersey gross income tax on any gain above the federal exclusion. A New Jersey house sold by a survivor who has moved out of state triggers New Jersey’s estimated tax payment at closing of at least 2 percent of the sale price, credited against the actual tax when a nonresident return is filed.
What Records Should the Survivor Gather?
The stepped-up basis is only as good as the proof of value at death. The survivor should obtain a retrospective appraisal of the home as of the date of death, even if no estate tax return is due, and keep it with the closing statement from the original purchase and receipts for improvements. Without the appraisal, the IRS may question the date-of-death value years later when the house is sold. A deed showing how title was held on the date of death establishes which half stepped up. If the house was in a trust, the trust instrument establishes whose trust it was.
What Else Changes for a Surviving Spouse Who Keeps the House?
- Title. A home held by spouses as tenants by the entirety or joint tenants passes to the survivor automatically. A certified death certificate recorded with the county, and in New Jersey a Form L-9 or its equivalent where the estate requires one, clears the record. A home held in the deceased spouse’s name alone passes under the will and requires probate before it can be sold.
- Mortgage. Federal law bars a lender from calling the loan when a home passes to a spouse, and the survivor may continue paying under the existing terms. The survivor should notify the servicer and consider whether the payment is sustainable.
- Property tax relief. New Jersey, New York, and Connecticut each offer senior and income-based property tax programs, some of which require the survivor to reapply in their own name after a spouse’s death. The local assessor or tax collector can confirm what continues.
- Insurance. The homeowner’s policy should be reissued in the survivor’s name, and any mortgage life insurance should be claimed.
- The survivor’s own plan. The house is now the survivor’s alone, and the survivor’s will, trust, and power of attorney should be reviewed. Our article on how to update a will in New Jersey explains what changes and what does not when a spouse dies.
Plan Well. Live Better.
The months after a spouse’s death are the wrong time to make an irreversible decision about the family home under tax pressure, and for most surviving spouses the tax pressure is smaller than it first appears. At Milvidskiy Law Group, we help widows and widowers understand what they own, what they would owe, and what their options are before they decide. Learn more about our estate planning services.
This article is for general informational purposes only and does not constitute legal or tax advice. Reading it does not create an attorney-client relationship. The tax result on a home sale depends on how title was held, the basis and value of the property, the survivor’s other income, and the timing of the sale. Code sections and figures cited were verified in September 2026 and should be confirmed with a tax advisor before acting.
More from our blog...
What Does an Executor Actually Do? A Plain-Language Guide for New Jersey Families
Long-Term Care Is Erasing the Inheritance You Expected. Here Is What Families in New Jersey Can Do About It.
Two Families, Two Fortunes, Two Very Different Outcomes: What the Rockefellers and Vanderbilts Teach Us About Estate Planning
What Is a Dynasty Trust and Is It Right for Your Family?
Recent blog posts
Long-Term Care Is Erasing the Inheritance You Expected. Here Is What Families in New Jersey Can Do About It.
Two Families, Two Fortunes, Two Very Different Outcomes: What the Rockefellers and Vanderbilts Teach Us About Estate Planning
What Is a Dynasty Trust and Is It Right for Your Family?
What Should You Check Before Signing a Nursing Home or Assisted Living Admission Agreement?
How Do You Choose an Assisted Living Facility?
Table of Contents
FREE WEBINAR
5 Things to Know About
Estate Planning
When You Turn Sixty-Five



