Sailboat heeling in the wind near a green island at sunset

Situations · Former home

Former Home Turned Rental: Section 121 Exclusion vs a 1031

Sell within three years of moving out and §121 still excludes $250k or $500k. Rev. Proc. 2005-14 lets one closing carry both the exclusion and a 1031.

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

The short answer

You keep the home-sale exclusion until the 2-of-5 test fails, which in practice means selling within three years of the day you moved out. While that window is open you do not have to choose: Rev. Proc. 2005-14 applies §121 to the gain first and §1031 to whatever is left, on one transaction. Once the window shuts, §1031 is the only deferral left, and the depreciation you claimed as a landlord was never excludable anyway.

At a glance

The testOwned and used as principal residence 2 of the 5 years ending on the sale date
Practical deadlineAbout 3 years after move-out, once 2 residence years still sit in the lookback
Exclusion$250,000 single, $500,000 joint; §121(b)(3) allows one sale every 2 years
OrderingRev. Proc. 2005-14 §4.02(1): §121 applies to realized gain before §1031
BootCounted only to the extent it exceeds the gain excluded under §121
DepreciationPost-May 6, 1997 depreciation is excluded from §121 but can ride in the §1031
Replacement basisOld basis plus excluded gain, less cash received (Rev. Proc. 2005-14 §4.03)
ReportingForm 8824 line 19, marked "Section 121 exclusion"

The exclusion lives about three years past your move-out date, and then it is simply gone

§121(a) excludes gain if, during the five-year period ending on the sale date, the property was owned and used as your principal residence for periods aggregating two years or more. Nothing requires it to be your residence when you sell.

So a house you left in June 2024 still carries a full exclusion on a sale through roughly June 2027, because two residence years remain inside the five-year lookback. On a sale in late 2027 the lookback contains fewer than two residence years and the exclusion disappears entirely — there is no sliding scale unless the sale is caused by a change of employment, health or an unforeseen circumstance under §121(c).

That single date drives the whole decision. Put it on the calendar before you talk to an agent, because a 60-day escrow can move a closing across it.

You do not have to choose: Rev. Proc. 2005-14 runs §121 first and §1031 on what is left

Rev. Proc. 2005-14 exists precisely for this transaction, and its section 4.02(1) is one sentence: "Section 121 must be applied to gain realized before applying §1031."

Three consequences follow. Gain attributable to depreciation is ineligible for the exclusion under §121(d)(6), but section 4.02(2) confirms §1031 can defer it. Cash boot is taken into account "only to the extent the boot exceeds the gain excluded under §121," so a modest cash pull-out can be free. And section 4.03 adds the excluded gain to the basis of the replacement property, which is why the deferral is smaller than the arithmetic first suggests.

The revenue procedure applies only if the property also satisfies the held-for-investment requirement at the time of the exchange, so the rental period has to be genuine.

Worked example: $610,000 of gain, $500,000 excluded, $110,000 deferred, and $20,000 of cash that costs nothing

Hypothetical, round numbers. A married couple buys a house in 2019 for $400,000, lives in it until mid-2024, then rents it and claims $30,000 of depreciation. In 2026 they exchange it for $20,000 of cash and a $960,000 rental. Amount realized is $980,000 against a $370,000 adjusted basis, so realized gain is $610,000.

Section 121 goes first and excludes $500,000. The remaining $110,000, including the $30,000 of depreciation gain, is deferred under §1031. The $20,000 of cash is not taxed, because it does not exceed the excluded gain. Basis in the replacement is $370,000 plus $500,000 less $20,000, or $850,000, leaving exactly $110,000 of gain riding inside a $960,000 building.

The comparison case is a plain sale at the same price: the same $500,000 is excluded, $80,000 of long-term gain and $30,000 of unrecaptured §1250 gain are taxed, and the couple walks away with cash. Whether the roughly twenty thousand dollars of federal tax that the exchange defers is worth committing $960,000 to real estate is the actual question, and it is one to model with your CPA.

Renting it out after you leave does not shrink the exclusion, which is the opposite of what most owners assume

Nonqualified use under §121(b)(5) taxes the share of gain matching the periods after 2008 when the property was not your principal residence, but the statute carves out the stretch of the five-year lookback that comes after the last day you lived there.

That carve-out is the whole reason this plan works. Years as a landlord at the end of your ownership do not enter the fraction, so a house you occupied for eight years and rented for two gives you the full exclusion, not eighty percent of it.

The fraction bites in the mirror-image case: a property you rented first and moved into later. If you are contemplating that direction instead, the arithmetic is on our page about exchanging into a future home.

Depreciation is the one slice §121 never touches, and it decides how much the exchange is worth

Every year of rental use produced a depreciation deduction whether or not you claimed it, and Publication 523 is blunt that gain equal to post-May 6, 1997 depreciation adjustments cannot be excluded and is reported under §1250.

For an accidental landlord of two or three years that slice is small, which is why a straight sale inside the window is usually the simpler answer. For someone who rented the old house for eight years, depreciation alone can run past $100,000 and a 25% rate on it is the first reason to consider the exchange.

Depreciation you never deducted still reduces basis, so an owner who filed no Schedule E during the rental years should get that corrected before the closing rather than after.

A decision rule: compare the gain to the exclusion, then compare the exclusion to another year of rent

Run the same four lines with your own numbers and have your CPA or attorney confirm them, because state tax, filing status and the depreciation history move the result.

  • Gain below the exclusion and no appetite to stay a landlord: sell inside the window, exclude everything but depreciation, and skip the intermediary entirely.
  • Gain far above the exclusion: sell inside the window and do both. This is the single most valuable moment in the property's tax life, and it does not come back.
  • Window already closed: §1031 is what is left, and the question becomes which replacement, not which statute.
  • Window closing but the property is performing: price the exclusion before you let it lapse. For a couple at a 20% capital-gains rate plus the 3.8% net investment income tax, a full $500,000 exclusion is worth about $119,000 of federal tax, which is a lot of rent.

Two timing rules and one reporting line that quietly cancel the plan

§121(b)(3) allows the exclusion only once in any two-year period, so a couple who excluded gain on a different home last year cannot use it again on this one. And if this house itself was acquired in a prior exchange, §121(d)(10) blocks the exclusion for five years from that acquisition date.

The reporting is straightforward once you know where it goes: the Instructions for Form 8824 tell you to enter the excluded amount on line 19 with the notation "Section 121 exclusion," and ordinary income recapture, if any, shows on line 21 and carries to Form 4797.

Everything else follows the normal sequence — intermediary engaged before closing, identification by day 45, purchase by day 180 — described on our page about the critical deadlines.

Related questions

I moved out four years ago. Is the exclusion really gone?

Yes, unless you qualify for the §121(d)(9) suspension available to members of the uniformed services, the Foreign Service or the intelligence community. Otherwise the five-year lookback no longer contains two years of residence.

If I move back in for two years, does the exclusion come back?

The 2-of-5 test can be re-satisfied, but the rental years that now sit before that second residence period become nonqualified use under §121(b)(5), so only part of the gain would be excludable.

Can I split a duplex where I lived in one unit and rented the other?

Yes. Rev. Proc. 2005-14 works through exactly that fact pattern, allocating basis and amount realized between the residential and business portions, and it treats a separate structure differently from two uses inside one dwelling unit.

Does taking $20,000 of cash out really cost nothing in the example?

In that example, yes, because section 4.02(3) counts boot only to the extent it exceeds the gain excluded under §121. Boot above the excluded amount is taxable in the ordinary way.

What if the gain is $1,500,000 on a house we lived in for twenty years?

Then the exclusion covers a third of it at most, and the exchange is doing the heavy lifting. That is the case where replacement choice — another rental, a DST interest or a mix — matters more than the statute.

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. Rev. Proc. 2005-14, applying §§121 and 1031 to one exchange (IRS)
  2. 26 U.S.C. §121, exclusion of gain from sale of a principal residence (Cornell LII)
  3. IRS Publication 523, Selling Your Home
  4. 26 U.S.C. §1031 (Cornell LII)
  5. IRS Instructions for Form 8824, Like-Kind Exchanges
  6. IRS Topic no. 409, Capital gains and losses
  7. Rev. Proc. 2025-32, inflation-adjusted amounts for 2026 (IRS)

Is your exclusion window still open?

Send us your move-out date, your basis and the depreciation you have claimed. We will show what the exclusion covers, what a 1031 would defer, and which replacement fits. Website form only.

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.