How the Home Sale Exclusion Works
The profit from selling your main home is called a gain. Under Topic no. 701, you can generally exclude up to $250,000 of gain from your taxable income, or up to $500,000 if you file a joint return with your spouse. Gain that is excluded is not taxed.
To qualify, you generally need to pass two tests:
- You owned the home for at least 24 months (2 years) of the last 5 years.
- You lived in the home as your main residence for at least 2 of the last 5 years.
You’re generally not eligible if you excluded gain from another home in the 2 years before this sale.
The $500,000 Exclusion for Surviving Spouses
Publication 523 lets a surviving spouse who hasn’t remarried count the late spouse’s ownership and residence time. You can take the full $500,000 only if all four conditions are true:
| Condition | What it means for you |
|---|---|
| Sell within 2 years | You sell within 2 years of your spouse’s death. |
| Not remarried | You haven’t remarried at the time of the sale. |
| No recent exclusion | Neither of you took the exclusion on another home sold less than 2 years before this sale. |
| Ownership and residence | You meet the 2-year ownership and residence tests, counting your late spouse’s time. |
If you miss any condition, check whether you qualify for the full $250,000 limit as a single person or a partial exclusion.
An Example of the 2-Year Window
Say your spouse died and you sell the home 18 months later. You haven’t remarried, and your gain is $420,000. Because you sold within 2 years, you can exclude all of the gain as long as the other two conditions are also met.
If you sell 2.5 years later instead, your limit is generally $250,000, so part of that gain could be taxable.
Your Filing Status and the 2-Year Window
In the year your spouse dies, you can generally still file as married filing jointly. In later years, your filing status will change, for example to qualifying surviving spouse. Whatever status you use, the 2-year home-sale window starts on the date of death.
How a Spouse’s Death Changes the Basis
Your gain is figured from your basis, the starting value the IRS subtracts from your sale price. A higher basis means a smaller gain, and the surviving spouse basis rules can raise yours.
If you owned the home jointly, your spouse’s interest gets a new basis, called a stepped-up basis. It equals that interest’s fair market value on the date of death (or the alternate valuation date). Your own interest keeps its basis, and your new basis in the home is the total of the two.
Joint Tenants and Community Property States
If you owned the home as tenants by the entirety or joint tenants with right of survivorship, each of you is considered to own one-half. Your spouse’s half is the share that gets a stepped-up basis.
Community property states follow a different rule. In those states, the total fair market value of the community property generally becomes the basis of the entire home when either spouse dies. This is only the case if at least half the value of the home is includible in your late spouse’s gross estate.
The community property states are Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington, and Wisconsin.
Reporting the Home Sale on Your Tax Return
You may need to report the sale even if you owe no tax. If you receive Form 1099-S, Proceeds From Real Estate Transactions, you must report the sale even if the gain is excludable. You also must report it if you can’t exclude all of your gain.
When you e-file, report the sale on these forms:
- Schedule D (Form 1040), Capital Gains and Losses
- Form 8949, Sales and Other Dispositions of Capital Assets
Sources
- IRS, Topic no. 701, Sale of your home
- IRS, Publication 523, Selling Your Home
- IRS, About Form 1099-S, Proceeds from Real Estate Transactions
- IRS, About Form 8949, Sales and other Dispositions of Capital Assets
- Credit Karma, How Does Filing Status Affect Your Taxes?
- Credit Karma, What Is the Qualifying Widow Tax Status?