Sailboat heeling in the wind near a green island at sunset

Property types · Former home rental

1031 Exchange for a Former Home (Primary Residence) Converted to a Rental

Sell within 3 years of moving out and §121 shields $250k/$500k of gain; after that only a 1031 defers it. Rev. Proc. 2005-14 lets you use both in one closing.

By Breakwater Exchange · Reviewed by our 1031 advisory team · Last reviewed

The short answer

A former home can go through a 1031 exchange once it is genuinely held as a rental, and if you still meet the 2-of-5-year use test you can apply the §121 exclusion first and defer the rest under Rev. Proc. 2005-14. The date that decides the strategy is the third anniversary of moving out: close by then and $250,000 ($500,000 on a joint return) of gain disappears; miss it and the exclusion is gone, leaving deferral as the only shelter. Depreciation taken while renting is never excluded, only deferred.

At a glance

§121 exclusion$250,000 single / $500,000 joint if you owned and lived in the home 2 of the last 5 years
Last day to keep §121Third anniversary of moving out (24 months of use inside the 5-year lookback)
Rental after move-outNot 'nonqualified use' under §121(b)(5)(C)(ii)(I), so it does not shrink the exclusion
Depreciation after May 6, 1997Never excludable; taxed at up to 25% or deferred through §1031
Investment-intent safe harborRev. Proc. 2008-16: owned 24 months, rented 14+ days a year at a fair rental
Moving into a 1031 replacement§121(d)(10): no exclusion unless sold 5+ years after the exchange
Military PCS§121(d)(9) suspends the 5-year clock for up to 10 years of extended duty
Depreciable basis at conversionLesser of adjusted basis or fair market value on the conversion date (Pub. 527)

The third anniversary of moving out is the date that decides everything

You keep the full §121 exclusion as long as you sell within three years of moving out, because two years of living there still fit inside the five-year lookback that ends on the sale date. The statute carves rental time after your last day as a principal residence out of 'nonqualified use', so those rented years do not dilute the exclusion. Once the third anniversary passes, the use test fails and no partial exclusion is available on these facts.

Take the situation this page is built around: you lived in the house from 2016 to September 2023, moved for work and have rented it since. A closing on or before the September 2026 anniversary keeps $250,000 ($500,000 on a joint return) of gain out of income; a closing in October 2026 keeps none of it. Rental periods before you moved in, by contrast, would be nonqualified use and would prorate the exclusion by days owned.

  • Ownership and use are counted in aggregate days, so a gap in occupancy is fine as long as 24 months of use fall inside the window.
  • The five-year window ends on the closing date, so a long escrow or a delayed buyer can push you past the line.
  • The exclusion is unavailable if you claimed it on another home within the prior two years.

Rev. Proc. 2005-14 lets you take the exclusion and defer the rest in one closing

When the house qualifies under both sections, the IRS applies §121 first and then applies §1031 to whatever gain is left, including the depreciation gain that §121 cannot touch. Cash you receive at closing counts as boot only to the extent it exceeds the excluded gain, and the excluded amount is added to your basis in the replacement property. The relinquished property must be investment property on the day of the exchange, which is why the rental record matters even inside the §121 window.

Hypothetical: a married couple bought the house for $300,000, rented it for two years while claiming $17,000 of depreciation, and sell it for $800,000 through a qualified intermediary. Realized gain is $517,000 ($800,000 minus $283,000 adjusted basis); §121 excludes $500,000 and the remaining $17,000 rolls into a replacement rental or DST. Their basis in the replacement becomes $783,000 ($283,000 plus the $500,000 excluded), so most of the gain has been erased rather than postponed.

The revenue procedure's own Example 1 walks through a taxpayer who rented a former home for less than three years, excluded $250,000, deferred $30,000 that included $20,000 of depreciation, and took $10,000 of cash without recognizing any gain.

Depreciation you never claimed is recaptured anyway, and §121 cannot shelter it

From the day a home becomes a rental, its depreciable basis is the lesser of your adjusted basis or its fair market value on the conversion date, recovered over 27.5 years with a mid-month convention and reported on Schedule E. Gain equal to depreciation allowed or allowable after May 6, 1997 is carved out of the exclusion and taxed as unrecaptured §1250 gain at a maximum federal rate of 25%, plus the 3.8% net investment income tax if your income exceeds $200,000 ($250,000 joint).

Skipping the deduction does not help: Publication 527 reduces basis by depreciation you 'deducted or could have deducted', so an unclaimed $17,000 still produces $17,000 of recapture. A fully deferred exchange carries that recapture into the replacement property instead of taxing it now.

  • Form 4562 claims the depreciation in each rental year; Form 4797 reports the rental-use gain and recapture at sale.
  • Form 8949 and Schedule D carry the residence portion; Form 8824 reports the exchange itself.
  • Publication 523 contains the worksheet that splits gain between the excluded and taxable pieces.

After the window closes, only the rental record makes the house investment property

No statute sets a minimum rental period for a former residence, and the Form 8824 instructions simply bar property 'used solely as your personal residence at the time of the exchange'. The nearest bright line is the Rev. Proc. 2008-16 safe harbor for dwelling units: own the home for the 24 months before the exchange, rent it at a fair rental for at least 14 days in each of the two 12-month periods, and keep personal use at or below the greater of 14 days or 10% of rented days. Meet it and the IRS will not challenge investment intent; fall short and intent is judged on the facts.

Two full years of arm's-length leases, Schedule E filings and landlord insurance make a far stronger file than a six-month lease to a relative at a discount, because a below-market family rental is not a 'fair rental' under the safe harbor. Exchanging after a single year of renting is not prohibited, but it leaves you arguing intent rather than pointing to a safe harbor.

  • Signed leases at market rent, with the listing or advertising that produced the tenant
  • Schedule E returns showing rent, expenses and depreciation for each rental year
  • A landlord policy in place of homeowner's insurance, and any homestead exemption removed
  • A rental bank account kept separate from personal funds

Sell now with §121, hold and exchange later, or keep it for the step-up: the same numbers three ways

Using the $800,000 sale above, a sale inside the window costs federal tax only on $17,000 of recapture, roughly $4,250 at 25%, while $500,000 of gain is permanently excluded. Holding past the window and exchanging later defers the entire gain, but the $500,000 exclusion is gone for good and every dollar stays embedded in the replacement's basis until a taxable sale or death.

Keeping the house until death wipes out both the gain and the recapture through the §1014 step-up, at the price of years of tenant turnover, a low-rate mortgage that an exchange cannot carry forward, and the risk that the rules change. The exchange path is strongest when the gain runs far beyond $500,000, or when you want the equity in passive real estate such as a DST while deferring everything.

  • Sell by the anniversary: $500,000 excluded, $17,000 of recapture taxed, cash in hand, no exchange deadlines.
  • Exchange inside the window: $500,000 excluded and added to basis, $17,000 deferred, 45- and 180-day clocks apply.
  • Exchange after the window: $517,000 deferred, nothing excluded, a $283,000 basis carries over, and any mortgage paid off must be replaced with new debt or cash.
  • Hold until death: heirs take a basis equal to date-of-death value under §1014.

PCS orders stretch the §121 window by up to ten years

Members of the uniformed services, the Foreign Service and the intelligence community can elect to suspend the five-year test period for up to ten years while on qualified official extended duty, meaning more than 90 days or an indefinite period at a station at least 50 miles from the home or in government quarters. A servicemember who lived in the house for two years, rented it through twelve years of postings and then sells can still exclude gain, because the clock stopped for ten of those years.

Those duty years are also carved out of nonqualified use, so gain is not prorated against them. Depreciation claimed during the rental years remains taxable or deferrable exactly as it does for civilian landlords, and the 1031 option is identical once the exclusion is used or lost.

Mistakes that turn a former home into a tax problem

Ask your CPA to run the §121 dates and the depreciation figure before you list; the rules above are general and your own calendar controls the result.

  • Letting escrow slip past the third anniversary; the exclusion is all-or-nothing on these facts.
  • Renting to family below market and expecting the house to count as investment property.
  • Moving into the 1031 replacement quickly: §121(d)(10) denies the exclusion unless you sell at least five years after acquiring it, and you still need two years of use.
  • Paying off the mortgage at closing without replacing the debt, which creates taxable mortgage boot.
  • Treating a house bought to flip as a rental because a tenant signed a lease; property held primarily for sale never qualifies.
  • Ignoring state rules; California, for one, tracks deferred gain on out-of-state replacements every year.

Related questions

Can I do a 1031 exchange if I have rented my former home for only one year?

Nothing in §1031 forbids it, but you fall outside the 24-month Rev. Proc. 2008-16 safe harbor, so the IRS judges intent from leases, rent level and personal use. If you are still inside the §121 window, the exclusion applies regardless and the exchange only matters for gain above it.

If I exchange into a rental and later move in, can I use §121 on that house?

Only if you sell at least five years after acquiring it in the exchange and have used it as your main home for two of the last five years; the earlier rental years count as nonqualified use and prorate the exclusion.

Does renting to my adult child kill the exchange?

Renting at market rent under a written lease is fine; renting below market fails the 'fair rental' test and is treated as your own personal use, which undermines investment intent.

Which forms report a former-home sale that uses both §121 and §1031?

Form 8824 for the exchange, Form 4797 for the rental-use gain and recapture, and Form 8949 with Schedule D for the residence portion; Publication 523 has the worksheet.

Is the 3.8% net investment income tax due on the excluded gain?

No. Gain excluded under §121 is not net investment income; the surtax applies only to recognized gain and recapture once your income passes $200,000 ($250,000 joint).

Sources

Checked against these publications on September 19, 2026. Rules and figures change; confirm the current version with your CPA or attorney before you act. This page is general information, not tax or legal advice.

  1. 26 U.S.C. §121 (Legal Information Institute)
  2. IRS Publication 523 (2025), Selling Your Home
  3. Rev. Proc. 2005-14 (§121 and §1031 in one exchange)
  4. Rev. Proc. 2008-16 (dwelling-unit safe harbor)
  5. IRS Publication 527 (2025), Residential Rental Property
  6. IRS Publication 3 (2025), Armed Forces' Tax Guide
  7. Instructions for Form 8824 (2025)
  8. IRS Topic 409, Capital Gains and Losses
  9. IRS Topic 559, Net Investment Income Tax

Inside the §121 window and weighing a 1031?

Send your move-out date, expected sale price and depreciation through our form. We will lay out the exclusion, the deferral and DST replacement options side by side, drawing on more than 20 years and over a billion dollars of DST placements.

Free 1031 proposal

Access Investment Offerings Other Brokers Can’t Provide

Breakwater Exchange’s expert guidance helps you maximize returns while minimizing tax exposure, so you can invest with clarity and confidence.

years of experience
20+
in DST transactions
$1B+
states licensed
50
vetted national sponsors
8

Tell us about your exchange

Share the basics and an advisor will reach out with next steps.

No obligation. A Breakwater Exchange advisor reviews every request personally.