Opens in a new tab
Elder Law & Estate Planning
Request Consultation

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.

Posted on April 15, 2022 (updated on September 20, 2026)

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

    Save the Date

    Friday, Oct 9th at 2:30pm



    FREE WEBINAR

    5 Things to Know About

    Estate Planning

    When You Turn Sixty-Five


      Save the Date

      Friday, Oct 9th at 2:30pm

      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.

      Stay updated on how to protect everything you’ve worked for so hard during your life.

        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...

        A wall of framed family photographs and artwork representing the personal property and estate assets an executor in New Jersey is responsible for managing and distributing after a loved one dies.

        What Does an Executor Actually Do? A Plain-Language Guide for New Jersey Families

        October 4, 2026
        Being named executor of someone's estate feels like an honor until the paperwork arrives. The role carries real legal responsibility, a defined set of tasks…
        An older hand and a younger hand reaching toward each other with the words "Doing the Math" — how long-term care costs are erasing inheritances and what New Jersey families can do

        Long-Term Care Is Erasing the Inheritance You Expected. Here Is What Families in New Jersey Can Do About It.

        October 1, 2026
        In late July, The Washington Post published a detailed analysis of federal data tracking how Americans spend money in their final decade. The findings were…
        A grand Gilded Age mansion with formal gardens and the words "Vanderbilt vs. Rockefeller" — what two American dynasties teach us about estate planning and multi-generational wealth

        Two Families, Two Fortunes, Two Very Different Outcomes: What the Rockefellers and Vanderbilts Teach Us About Estate Planning

        September 27, 2026
        Cornelius Vanderbilt died in 1877 with an estimated fortune of $105 million. Measured as a share of the American economy at the time, The New…
        fountain pen resting on an open handwritten journal with the words "Generations Strong" — what is a dynasty trust and how it works for multi-generational wealth planning in New Jersey

        What Is a Dynasty Trust and Is It Right for Your Family?

        September 24, 2026
        A dynasty trust is an irrevocable trust designed to hold family wealth across multiple generations, with the goal of passing assets to children, grandchildren, and…
        Back To blog

        Table of Contents

        FREE WEBINAR

        5 Things to Know About

        Estate Planning

        When You Turn Sixty-Five


          Save the Date

          Friday, Oct 9th at 2:30pm

          Privacy Policy

          This Privacy Statement describes how Milvidskiy Law Group P.C. collects, uses, and discloses certain personal information obtained through our public web site at www.milvidlaw.com (the “Web Site”). This Privacy Statement does not address information collection through other sources such as in-person seminars, workshops, or in-person consultations and contacts.

          SMS Privacy Policy

          Milvidskiy Law Group P.C. may disclose Personal Data and other information as follows:

          Third Parties that Help Provide the Messaging Service: We will not share your opt-in to an SMS short code campaign with a third party for purposes unrelated to supporting you in connection with that campaign. We may share your Personal Data with third parties that help us provide the messaging service, including, but not limited to, platform providers, phone companies, and other vendors who assist us in the delivery of text messages.

          Additional Disclosures: Affiliates: We may disclose the Personal Data to our affiliates or subsidiaries; however, if we do so, their use and disclosure of your Personal Data will be subject to this Policy. All the above categories exclude text messaging originator opt-in data and consent; this information will not be shared with any third parties.

          Personal Information Collection and Use

          In general, you can visit our Web Site without telling us who you are or revealing any information about yourself. There are times, however, when we ask for personally identifiable information from you, such as your name, company, e-mail address, phone number, and address (“Personal Information”). We request this information in order to correspond with you, to provide you with a subscription to a newsletter or publication, to notify you about events, or otherwise to respond to your requests or provide you with information that we consider may be of interest to you. Where applicable, we will differentiate between personal data fields that are optional and those that are mandatory to obtain the requested information.

          If you receive a marketing e-mail from Milvidskiy Law Group P.C., you will be provided with an automated way to opt out (unsubscribe) from that particular communication or from all marketing e-mails sent by our firm. Please follow the instructions on the e-mail you received. If you have received unwanted e-mail from our firm, please forward a copy of that e-mail to [email protected].

          Please note that if you reply to a Milvidskiy Law Group P.C. address in one of our marketing e-mails or otherwise send a communication to us, your communication will not create an attorney-client relationship with us. Do not send us any information that you or anyone else considers to be confidential or secret unless we have first agreed to be your lawyers in that matter. Any information you send us before we agree to be your lawyers cannot be protected from disclosure.

          Data Sharing

          We may share Personal Information among our member attorneys for purposes of responding to your requests or otherwise as necessary for the purposes described above. We may also in limited circumstances share Personal Information with government authorities or others as required to protect the interests of the firm or others, as necessary in connection with the sale or transfer of all or a portion of the business, or as required by applicable law or court order.

          International Data Transfers

          This Web Site is hosted on a web server in the United States. If you are located in a non-US jurisdiction, your provision of Personal Information or other access to our Web Site constitutes your transfer of such data to the United States, a jurisdiction that may not provide a level of data protection equivalent to the laws in your home country.

          Security Measures

          Milvidskiy Law Group P.C. maintains appropriate technical and organizational security measures to protect the security of your Personal Information against the loss, misuse, unauthorized access, disclosure or alteration.

          Links to Other Web Sites

          The privacy practices set forth in this Privacy Statement are for our web site only. This web site may contain links to other sites. Milvidskiy Law Group P.C. is not responsible for the privacy practices or the content of such sites. If you link to or otherwise visit any other site, please review the privacy policies posted at that site.

          Cookies and Passive Tracking

          A “cookie” is an element of data that can be sent to your browser. Your browser may then store it on your system based on the preferences you have set on your browser. Cookies gather information about your operating system including, but not limited to, browser type, and Internet Protocol (IP) address. The Web Site uses this information to analyze the traffic on our web site, and better serve you when you return to our web site. It is not our intention to use such information to personally identify a user. You have the option to configure your Internet browser to notify you when you receive a cookie, giving you the chance to decide whether to accept it. Further, you have the option to block all cookies. Please note, however, that if you refuse or otherwise block cookies you may not be able to use all of the functionality available on the web site.

          Access and Correction

          If you wish to access or update the Personal Information you submit through our web site, or to make any inquiries about the processing of such information, please contact us as described below. We provide individuals with access to their Personal Information where we believe appropriate, including in situations where you are entitled to access and review your Personal Information under applicable data protection and privacy laws.

          Google ReCaptcha Spam Protection

          This site is protected by reCAPTCHA and the Google.
          Privacy Policy and
          Terms of Serice apply.

          Revisions to this Privacy Statement

          Milvidskiy Law Group P.C. reserves the right to change this Privacy Policy from time to time. Please check the Privacy Statement frequently and particularly before you submit additional personal information via the Web Site. All revisions to this Privacy Statement will be posted on the web site via a link from the homepage. We also display the effective date of the Privacy Statement on the top of this page.

          Close

          Disclaimer

          Attorney Advertising. The information presented on this website is for informational purposes only and should not be construed as a legal advice. Viewing of, responding to, or otherwise transmitting the information on this website is not intended to create, and receipt of the same does not constitute, an attorney-client relationship. The information provided on this website should not be relied upon without first seeking professional legal counsel. The information on this website is provided only as general information which may or may not reflect the most current developments of law. Prior results and cases discussed on this website do not imply and do not guarantee a similar outcome in any other case. The links to other websites contained herein do not constitute a referral or endorsement of any kind.
          Close
          Sign up for our newsletter to be updated on all the latest news in Elder Law and Estate Planning.

            Every plan starts with a conversation. Tell us a little about your situation, and our Client Services Coordinator will reach out to help you schedule your consultation.

              This site is protected by reCAPTCHA and the Google.
              Privacy Policy and Terms of Service apply.

              Open chat Call us Close chat
              Start a conversation
              Team member Team member Team member
              Contact us to protect what matters most to you and your loved ones