Licensed Fiduciary AdvisorsServing property owners & investors nationwide
Tax Strategy · 6 min read

One building, two tax breaks: splitting a duplex between Section 121 and a 1031

You live upstairs and rent downstairs. When you sell, the IRS is willing to treat that as two transactions, and each half gets a different, genuinely valuable break.

A owner sells the duplex she has lived in for twelve years, occupying the upstairs unit and renting the downstairs one the entire time. One building, one buyer, one closing.

Her assumption is that she has to pick a lane: either it is her home, or it is a rental. It is neither, and that turns out to be better than either.

The IRS is willing to treat this as two transactions inside one sale, and the two halves get different treatment. The residence portion can use the Section 121 exclusion, which erases gain rather than deferring it. The rental portion can go into a 1031 exchange, deferring the rest. Revenue Procedure 2005-14 addresses how the provisions interact.

Used together on the same building, they are more powerful than either alone.

Why the combination is unusually good

These two provisions do fundamentally different things, which is exactly why pairing them works.

Section 121 excludes up to $250,000 of gain for a single filer or $500,000 for a married couple filing jointly, provided you owned and used the property as your principal residence for at least two of the last five years. Excluded means gone, not postponed.

Section 1031 defers gain on investment property, rolling it into a replacement rather than eliminating it, as we cover throughout our exchange material.

On a mixed-use property, you get to apply the eraser to one portion and the deferral to the other. Contrast that with the sequential approach in converting a rental into your home, which is powerful but requires years of patience. Here the split happens at a single closing.

The allocation is the entire game

Everything turns on how the property divides between personal and business use. The allocation percentage drives the outcome, and once established, the entire sales price and the closing expenses are allocated between the residence portion and the 1031-eligible portion.

Common bases for the split include relative square footage, the number of units, or a reasoned appraisal. A true 50/50 duplex is straightforward. A house with a converted basement apartment, or a storefront with an apartment above, requires more thought.

Two practical points matter here. Allocations set out in the purchase and sale agreement, where the parties have genuinely adverse interests, are generally respected unless they are unrealistic. And regardless, you have to be able to support the allocation if it is examined later. This is not a number to improvise.

Residence portion Rental portion
Provision Section 121 Section 1031
Effect on gain Excluded, permanently Deferred into replacement property
Limit $250K single / $500K married No dollar cap
Requirement Owned and used 2 of last 5 years Held for investment, 45/180 deadlines
Proceeds Can be taken in cash Must go through a qualified intermediary

That last row deserves emphasis because it is where mechanics get missed. The 1031 portion of the proceeds must be handled by a qualified intermediary and never touch your hands. The Section 121 portion can come to you as cash. The closing has to be structured so the right dollars go to the right place, which means telling your intermediary and closing agent about the split well before settlement.

Where owners lose value

  • Treating the whole thing as a residence. If the rental portion's gain exceeds what Section 121 could shelter anyway, ignoring the 1031 side leaves real money on the table.
  • Treating the whole thing as investment property. The reverse error. Section 121 erases gain permanently, which is strictly better than deferral on that slice.
  • Deciding at closing. The allocation, the intermediary, and the settlement instructions all need to exist before the closing statement is drafted.
  • Forgetting depreciation. Depreciation claimed on the rental portion carries its own recapture consequences, and Section 121 does not erase that.

Mixed-use sales are one of the more favorable situations in the code and one of the easier ones to fumble, because the answer requires two specialists to coordinate at a single closing. Your CPA determines the defensible allocation and how each provision applies to your facts. Getting that conversation started before the property is listed is exactly what our exchange process is built to do.

Common questions about Section 121 and 1031 together

Can I use both on the same property?

Yes, on a mixed-use property. The portion used as your principal residence may qualify for the Section 121 exclusion while the investment portion may qualify for 1031 deferral.

How is the property split between the two?

By a reasonable allocation, commonly based on square footage, unit count, or an appraisal. The sales price and closing costs are allocated on that same basis, and you must be able to support it.

How much gain can Section 121 exclude?

Up to $250,000 for a single filer or $500,000 for a married couple filing jointly, subject to the requirement that you owned and used it as your principal residence for two of the last five years.

Can I take the Section 121 cash at closing?

Generally yes for that portion. The 1031 portion is different: those funds must go to a qualified intermediary and cannot be received by you, so the closing has to be structured deliberately.

Does Section 121 wipe out depreciation recapture?

No. Depreciation taken on the rental portion carries its own consequences, which your CPA calculates separately from the exclusion.

Talk Through Your Options