Home sale tax exclusion rules for U.S. homeowners

A homeowner who relocated for work last year rented out the old house for two years, then sold it at a sizable profit. The Section 121 exclusion covered most of the gain, but the depreciation claimed during those rental years was not excludable, and the resulting tax bill came as a genuine surprise. That gap between what the exclusion covers and what it doesn’t is where most planning mistakes happen.

Depreciation recapture after renting a former home

Most guides on the home sale tax exclusion focus on the $250,000 single/$500,000 joint filing thresholds. The less-discussed constraint is that gain tied to depreciation cannot be excluded, even when every other Section 121 requirement is satisfied.

Read also: Child tax credit eligibility and planning for 2026

When you convert a principal residence into a rental property, the IRS requires (or allows) depreciation deductions each year the home produces rental income. At sale, any gain attributable to that depreciation, whether actually deducted or merely “allowable,” gets taxed as unrecaptured Section 1250 gain at a rate of up to 25%. The 2025 edition of IRS Publication 523 confirms this rule applies to depreciation allowed or allowable for rental or business use after May 6, 1997.

This means the exclusion and depreciation recapture operate on separate tracks. You could qualify for the full $250,000 or $500,000 exclusion on the non-depreciation portion of your gain while still owing tax on the depreciation slice. Owners who rented a home for several years before selling often find this slice is larger than expected, especially in markets where they claimed substantial annual depreciation.

Further reading: Charitable donation tax deductions: records and rules for 2026

Sell now or sell later: how the five-year window shifts your tax bill

Timing a sale around a move is not just a real estate decision. It is a tax decision driven by a rigid calendar. The IRS tests ownership and residence within the five-year period ending on the closing date, not from the original purchase. You need at least two years of residence inside that lookback window.

A woman in her 50s reviewing home sale tax documents and IRS forms at a kitchen table, representing the process of calculating the U.S. home sale capital gains tax exclusion.

Consider a straightforward scenario. You lived in your home for eight years, moved to another state, then rented the property. If you sell within three years of moving out, you still have at least two years of residence inside the five-year window. Wait longer, and those qualifying residence years start dropping out of the window.

Comparing immediate sale versus deferred sale

Selling before the residence years expire from the lookback window keeps the full exclusion on the table (minus depreciation recapture). Deferring the sale to collect more rental income can erode or eliminate the exclusion entirely, while also stacking up more depreciation that will be recaptured at sale.

The tradeoff looks roughly like this:

Scenario Section 121 exclusion available? Depreciation recapture
Sell immediately after moving out (0 years rented) Yes, full exclusion None (no rental depreciation taken)
Sell after renting 2 years Yes, full exclusion (residence years still in window) Taxed at up to 25% on depreciation claimed
Sell after renting 4+ years Possibly reduced or lost (residence may fall outside the window) Larger recapture amount

The decision is not always obvious. Rental income and local appreciation might justify a later sale. But owners who assume the exclusion will simply be waiting for them when they finally list the property are making a bet against the calendar.

Partial exclusion for early sales: qualifying unforeseen circumstances

Not every homeowner gets to plan the timing. A job transfer, a health crisis, or certain unforeseen events can force a sale before the two-year residence threshold is met. The IRS allows a reduced exclusion prorated to the time actually lived in the home.

IRS Publication 523 (2025) specifies that this partial exclusion is not automatic for any early sale. It applies when the sale is driven by:

  • A health condition that makes it medically necessary to sell or move
  • Specific unforeseen circumstances defined in IRS regulations, such as divorce, death of a co-owner, or natural disaster damage

That fraction alone can shelter a substantial gain, but only if the reason for selling actually qualifies under the IRS criteria.

Form 1099-S reporting when the gain is fully excluded

Sellers who owe nothing often assume they have nothing to report. That assumption breaks down when Form 1099-S enters the picture. The closing agent or title company typically issues this form for any real estate transaction, and receiving Form 1099-S generally triggers a reporting obligation on your tax return, even when the entire gain qualifies for the exclusion.

IRS guidance does describe a narrow exception: a closing agent can skip issuing the form if the seller provides a written certification that the full gain is excludable. In practice, many title companies issue the form anyway to avoid liability.

If you receive a 1099-S, the sale must be reported. For most homeowners, that means completing Form 8949 and Schedule D to show the IRS that the gain falls within the exclusion. Failing to report a 1099-S sale, even a fully excluded one, can generate an automated IRS notice and an unnecessary headache.

What to keep in your records

  • Closing statements (HUD-1 or Closing Disclosure) from both purchase and sale
  • Receipts for capital improvements that increase your cost basis (renovations, additions, not routine maintenance)
  • Documentation of your residence dates if you moved in and out of the property
  • Any depreciation schedules from years the home was rented or used for business

A real estate agent handing house keys to a new homeowner couple inside an empty home, symbolizing a completed home sale and the application of U.S. home sale tax exclusion rules.

Ownership and residence tests when circumstances change

Divorce, remarriage, and late-in-life moves add complexity. If you receive a home through a divorce settlement, the IRS lets you count your former spouse’s period of ownership as your own for the ownership test. That can keep the exclusion alive even if your name was only recently added to the deed.

For married couples filing jointly, both spouses must meet the use test (two years of residence), but only one spouse needs to satisfy the ownership test. A spouse who never owned the home can still benefit from the exclusion if the ownership spouse qualifies and both lived there.

The exclusion can only be claimed once every two years. Selling two properties in quick succession means the second sale will not qualify, regardless of how long you lived in either home. Planning around this frequency limit matters for anyone who relocates often or owns multiple residences.

The Section 121 exclusion is generous, but it rewards preparation. The owners who benefit most are the ones who track residence dates, understand how depreciation interacts with the exclusion, and time a sale with the five-year lookback window in mind rather than assuming the tax break will apply by default.

Don't miss any news