Live in One Unit, Rent the Other: Combining the Section 121 Home-Sale Exclusion With a 1031 Exchange
We spoke recently with a woman who owns a duplex here in the Puget Sound region. She lives in one unit and rents the other. The two units are the same size. After many years of ownership she is ready to sell — partly because a national big-box retailer has been circling the block and wants her corner. The property is worth roughly $1 million. She wants to walk away with as little tax as possible, and she does not want to take on a mortgage on whatever she buys next. There is, however, existing debt on the duplex that will be paid off when it sells.
That single conversation touches almost every interesting question in 1031 planning: how to split a property between personal and investment use, how to combine two different tax provisions on one sale, how to handle debt you are relieved of, and how to keep a clean audit trail through closing. This article walks through exactly how we would structure her sale — and how the same approach applies to anyone selling a property that is part residence, part investment.
First Principle: A Mixed-Use Property Is Two Properties
For federal tax purposes, the duplex is not one asset. It is two: the half she lives in, and the half she rents out. Each half is governed by a different section of the Internal Revenue Code, and each gets very different treatment.
The residence half is governed by IRC §121 — the home-sale exclusion. If you have owned and used a home as your primary residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain if you are single, or $500,000 if you are married filing jointly. That excluded gain is not deferred — it is permanently tax-free.
The rental half is governed by IRC §1031 — the like-kind exchange. Gain on property held for investment or productive use in a trade or business can be tax-deferred if the proceeds are reinvested through a qualified intermediary into like-kind replacement real property within the statutory deadlines.
The IRS expressly blesses using both provisions on the same sale. Revenue Procedure 2005-14 is the controlling guidance. It confirms that a taxpayer selling a mixed-use property applies §121 first to the residence portion, then §1031 to the business portion — and that the two provisions work together rather than canceling each other out.
Step One: Allocate the Sale Price
Because the property is really two assets, the very first task is to allocate the economics between them. In our caller's case the allocation is straightforward: the two units are identical in square footage, so a 50/50 split is reasonable and easily defensible. On a $1 million sale, that is $500,000 attributable to the residence and $500,000 attributable to the rental.
The allocation is not just about the sale price. You allocate everything that runs through the closing along the same lines:
- The sale price ($500,000 / $500,000)
- The transaction costs — commissions, title, excise tax, escrow fees
- The debt being paid off at closing
Where units are not identical, a reasonable allocation method — square footage, a separate appraisal of each portion, or relative fair market value — will support the split. The key is that the method is reasonable, documented, and applied consistently.
Step Two: The Residence Half Comes Out Tax-Free
Under §121, the gain attributable to the residence unit is excluded — up to $250,000 single or $500,000 married filing jointly. For an owner who bought many years ago and has substantial appreciation, that exclusion can shelter the entire residence-side gain.
Here is the part many people miss: the cash from the residence side can go straight into the seller's pocket at closing. Because that portion is a §121 home sale and not part of the §1031 exchange, there is no "constructive receipt" problem. She can receive those funds directly — tax-free — without touching the exchange.
Step Three: The Rental Half Goes Into a 1031 Exchange
The rental-side gain — including any depreciation she has claimed on the rented unit over the years — is deferred under §1031, provided she reinvests through a qualified intermediary into like-kind replacement property and follows the 45-day identification and 180-day completion deadlines.
To achieve full deferral on the rental side, the classic rule applies: she must acquire replacement property of equal or greater value, reinvest all of the rental-side equity, and either replace the debt she is relieved of or offset it with new cash. That last point is exactly where her two goals — defer the gain and own the next property free of debt — appear to collide. They do not. Here is the move.
The Elegant Part: Using Tax-Free Cash to Offset Mortgage Boot
When the duplex sells, the mortgage gets paid off. The portion of that debt allocated to the rental side is debt she is being relieved of inside the exchange. Debt relief that is not replaced creates mortgage boot — and boot is taxable. (For a full treatment of how cash boot and mortgage boot are taxed, see our companion article, What Is Boot in a 1031 Exchange?)
Normally you offset mortgage boot by taking on equal or greater debt on the replacement property. But she does not want debt. Fortunately, there is a second way to offset mortgage boot: adding new cash to the purchase of the replacement property. Dollar for dollar, fresh cash invested into the replacement offsets debt relief.
And where does that fresh cash come from? The tax-free proceeds she received from the residence side. She takes a portion of her §121 cash — money that already came out completely tax-free — and contributes it as additional equity toward the replacement property. That additional cash plugs the mortgage-boot hole created by the rental-side debt relief, so the exchange is fully deferred and the replacement property carries no mortgage.
A Worked Example
Let us put round numbers to it. Assume she is married filing jointly, the duplex sells for $1,000,000, there is a $300,000 mortgage paid off at closing, and total transaction costs are $80,000. With a 50/50 allocation:
Residence side (§121): - Sale value: $500,000 - Less allocated debt payoff: $150,000 - Less allocated costs: $40,000 - Cash to her at closing: $310,000 — and because her residence gain falls within the $500,000 married-filing-jointly exclusion, every dollar of it is tax-free.
Rental side (§1031): - Sale value: $500,000 - Less allocated debt payoff: $150,000 - Less allocated costs: $40,000 - Net exchange equity to the qualified intermediary: $310,000
Now she buys a $500,000 replacement property all cash, no mortgage. The $310,000 of exchange equity covers most of it; she is short by $190,000. She funds that $190,000 gap from her tax-free residence cash. That $190,000 of new cash more than offsets the $150,000 of rental-side debt relief, so the mortgage boot is fully neutralized.
The result: - Residence gain: excluded under §121 — $0 tax - Rental gain: fully deferred under §1031 — $0 tax - Replacement property: owned free and clear, exactly as she wanted - And she still walks away with about $120,000 of completely tax-free cash in her pocket
One caveat worth flagging: depreciation she claimed on the rented unit is carried into the §1031 exchange and deferred there — it is not erased. The §121 exclusion never shelters depreciation. In a clean duplex case like this one, all of the depreciation sits on the rental side and rides along inside the deferral.
The Audit Trail: Separate Seller Settlement Statements
Here is the practitioner detail that makes the whole structure hold up. We instruct the escrow officer to prepare two separate seller settlement statements — one for the residence portion and one for the rental portion — each reflecting its allocated share of the price, the costs, and the debt.
Why this matters:
- It creates a clean, contemporaneous audit trail showing exactly which dollars belong to the §121 home sale and which belong to the §1031 exchange.
- It documents that the residence-side cash was paid to the seller directly, while only the rental-side proceeds flowed to the qualified intermediary — which is precisely what keeps the exchange funds out of her constructive receipt.
- If the return is ever examined, the two statements tell the whole story on their face.
“My Escrow Company Says They Can’t Do That”
Be ready for resistance. Some escrow agents will tell you they are incapable of producing two separate seller statements. With respect, that is almost never true — it is a matter of willingness, not capability. We have had escrow and closing agents all over the country produce separate settlement statements many times. When an officer pushes back, it usually helps to say, politely but plainly, that experienced exchange professionals request this routinely and that escrow agents across the country handle it without difficulty. More often than not, they relent.
This is one of those places where working with a qualified intermediary who has actually done this — repeatedly — makes the difference between a structure that works and one that falls apart at the closing table.
A Washington Note
For sellers here, there is one more piece of good news. Washington has no general income tax, and even under the state's capital gains tax, gains from the sale of real property are excluded (ESSB 6346 §302). So for a Tacoma or Pierce County owner selling a mixed-use property, the planning above addresses the federal exposure without a competing state-level tax on the real estate gain.
The Takeaway
Selling a property that is part home and part investment is not a problem to be avoided — it is an opportunity to use two of the most powerful provisions in the tax code at the same time. Done correctly, the residence side comes out permanently tax-free, the rental side is fully deferred, debt can be eliminated rather than re-created, and the seller can still pocket meaningful tax-free cash.
The execution is detailed: the allocation has to be reasonable, the boot has to be offset deliberately, the settlement statements have to be split, and the timing has to be right. That is exactly the kind of structuring a qualified intermediary should be handling for you.
If you own a duplex, a live-in rental, a former home you converted to a rental, or any property with mixed personal and investment use, talk to us before you list it. The structure has to be set up in advance — once the closing happens, the planning window has closed.
Jeff Helsdon, CES® Certified Exchange Specialist since 2003
Disclaimer: This article is for informational purposes only and does not constitute legal, tax, or financial advice. Section 121 exclusion amounts, depreciation recapture, and boot calculations depend on your specific facts, filing status, and history with the property. Consult your own attorney, CPA, and financial advisor before making decisions about your 1031 exchange.

