Plenty of property owners live in one part of their building and rent out the rest, whether it is a duplex with a rented downstairs unit, a triplex where two units are leased out, or a house with a converted rental unit in the back. When it comes time to sell, these owners are often surprised to learn they may be able to use two different tax provisions at once. A 121 exclusion 1031 exchange combination allows the personal-use portion of a mixed-use property to qualify for the Section 121 home-sale exclusion, while the rental portion is exchanged tax-deferred under Section 1031. This guide explains how the allocation works, why it requires careful analysis, and why professional guidance is essential to get it right.
If you own a mixed-use property and are planning a sale, talk with the Aspen Exchange team before you list it so the allocation between the two tax provisions is set up correctly from the start.
How the Two Tax Breaks Work Separately
Before combining them, it helps to understand each provision on its own:
- Section 121 allows an individual to exclude a substantial amount of gain from the sale of a primary residence, provided the owner has owned and used the home as their principal residence for at least two of the five years before the sale. This exclusion applies once every two years and does not require reinvesting proceeds into another home.
- Section 1031 allows an owner of investment or business-use property to defer capital gains tax by exchanging into replacement property of a like kind, using a qualified intermediary to hold proceeds throughout the process. Unlike Section 121, gain here is deferred, not excluded, and the basis carries over into the replacement property.
These two provisions sit in different parts of the tax code and generally apply to different types of property, personal residence versus investment property, which is exactly why a mixed-use property creates the opportunity, and the complexity, of using both.
Why Mixed-Use Property Can Use Both
When a single property has both a personal-use component and an investment-use component, such as a duplex where the owner occupies one unit and rents the other, the IRS generally treats the sale as two separate transactions for tax purposes, even though only one closing occurs. The portion of the property allocated to the owner’s personal residence can potentially qualify for the Section 121 exclusion, while the portion allocated to the rental unit can potentially be exchanged under Section 1031, deferring gain on that portion into a new investment property.
This combined treatment has been addressed in IRS guidance for the specific case of a property containing both a dwelling unit used as a primary residence and separate rental space, and it generally requires that the two components be treated according to their own respective rules, applied to their own allocated share of the sale.
How the Allocation Is Determined
The core challenge in combining these two provisions is determining what portion of the property, and its gain, belongs to the personal-use side versus the investment side. There is no single mandatory formula in the tax code, but the allocation generally needs to be reasonable and consistently supportable, and common approaches include:
- Square footage. Many owners allocate gain based on the relative square footage of the personal-use unit versus the rental unit or units, which is straightforward when units are similarly finished and sized.
- Number of units. In a simple duplex or triplex where units are comparable in size and value, an equal per-unit allocation is sometimes used.
- Fair market value of each portion. A more precise approach, sometimes supported by an appraisal, allocates gain based on the relative fair market value of the personal-use and rental portions, which can differ from a pure square-footage split if the units have different finishes, views, or income potential.
- Historical depreciation records. The rental portion’s allocated basis is also affected by depreciation taken over the years, which needs to be tracked separately from the personal-use portion since depreciation recapture applies specifically to the investment side.
Whichever method is used, the allocation should be documented clearly, applied consistently with how the property was actually used and reported on past tax returns, and ideally supported by an appraisal or other objective evidence if the rental and personal portions differ meaningfully in size or value.
A Practical Example of the Concept
Consider an owner of a duplex who has lived in the upstairs unit for several years while renting out the identical downstairs unit at fair market rent, reporting that rental income and taking depreciation on Schedule E the whole time. When the owner sells the building, the transaction is generally analyzed as two roughly equal halves. The upstairs unit’s allocated gain can potentially qualify for the Section 121 exclusion, assuming the ownership and use tests are met for that portion, while the downstairs unit’s allocated gain, along with any recaptured depreciation, can potentially be deferred by exchanging into a new investment property through a 1031 exchange with a qualified intermediary. This is a simplified illustration, not a calculation template, since actual allocations depend heavily on the specific property and its history.
Why Professional Guidance Matters Here
This is one of the more technically demanding areas of real estate tax planning, and getting the details wrong can be costly. A few reasons this transaction type requires close coordination with your CPA and qualified intermediary:
- The allocation method affects both tax outcomes at once. An aggressive allocation toward the personal-use side might increase the Section 121 exclusion but shrink the amount eligible for 1031 deferral, and vice versa, so the two calculations are linked rather than independent.
- Depreciation recapture only applies to the rental portion. Any depreciation claimed on the rental unit over the years generally must be accounted for separately and is not eligible for the Section 121 exclusion, even if that portion of gain is otherwise excludable.
- Timing and use history both matter. The owner generally needs to satisfy the two-out-of-five-year ownership and use test for the personal-use portion, and the rental portion generally needs a genuine history of investment use to qualify for 1031 treatment, so recent changes in how either portion was used can complicate the analysis.
- The qualified intermediary can only handle the 1031 side. A QI holds and transfers proceeds allocated to the investment portion of the sale; the Section 121 exclusion is handled through your tax return and does not involve the QI directly, so proceeds need to be clearly divided at closing.
- Errors can jeopardize both benefits. An improperly documented allocation risks the IRS challenging either the Section 121 exclusion, the 1031 deferral, or both, which is why this transaction type benefits from planning well before the property is listed for sale, not after an offer is already in hand.
Steps to Prepare for a Combined Sale
- Gather historical records showing how each portion of the property has been used, including lease agreements, rental income records, and any personal occupancy history.
- Work with your CPA early to determine a reasonable, supportable allocation method between the personal-use and rental portions.
- Consider an appraisal that separately values the personal-use and rental components if square footage alone would not reasonably reflect their relative value.
- Engage a qualified intermediary before the sale closes to handle the portion of proceeds allocated to the 1031 exchange, since those funds generally cannot pass through your hands at any point.
- Confirm your ownership and use history supports the Section 121 exclusion for the personal-use portion, including the two-out-of-five-year requirement.
- Keep clear documentation of how the closing proceeds were divided between the excluded and deferred portions for your tax records.
For background on how the 1031 side of this transaction works on its own, see our guide on what a 1031 exchange is and our step-by-step guide to completing an exchange.
Frequently Asked Questions
Can I really use both Section 121 and Section 1031 on the same property sale?
In many cases involving a mixed-use property, such as a duplex with a personal-use unit and a rental unit, yes. Each provision generally applies to its own allocated portion of the property and its gain, but the specific facts of your ownership and use history need to support both.
How is the property divided between the two tax provisions?
There is no single required method. Common approaches include allocating based on relative square footage, number of comparable units, or fair market value of each portion, sometimes supported by an appraisal. The method should be reasonable and consistently applied.
Does depreciation affect the Section 121 exclusion?
Depreciation recapture generally applies only to the rental portion of the property and is not eligible for the Section 121 exclusion, even when the exclusion applies to the personal-use portion’s gain. This is one of several reasons the calculation requires professional help.
Do I need a qualified intermediary for the entire sale or just the rental portion?
Generally just the portion of proceeds allocated to the investment side that will be exchanged under Section 1031. The Section 121 exclusion is handled through your tax return and does not require a qualified intermediary, but the two portions of the sale proceeds generally need to be clearly divided at closing.
What ownership and use history do I need for the personal-use portion?
Generally, you need to have owned and used that portion of the property as your primary residence for at least two of the five years before the sale to qualify for the Section 121 exclusion, consistent with the standard requirements for that provision.
Is this strategy only for duplexes?
No. It can apply to any property with a genuine mix of personal and investment use, such as a triplex with an owner-occupied unit, a farmhouse with rented outbuildings, or similar configurations, as long as the personal and investment portions can be reasonably identified and allocated.
Plan Your Exchange Before You Sell
Combining the Section 121 exclusion with a 1031 exchange on a mixed-use property can meaningfully reduce your overall tax bill, but only when the allocation is handled carefully and supported by good records. Contact our exchange team to talk through your property’s specific mix of personal and rental use, or open an exchange with Aspen Exchange once you are ready to move forward with the investment portion of your sale.
This article is educational information, not tax, legal, or investment advice. Consult your own qualified advisors regarding your transaction.








