
1031 Exchange and Primary Residence: What Homeowners Need to Know
Why a primary residence does not qualify for a 1031 exchange, the conversion strategy that may bridge the gap, and how to combine Section 121 with a like-kind exchange when gains exceed exclusion limits.
Key Takeaway
A primary residence generally does not qualify for a 1031 exchange because the property is generally required to be “held for productive use in a trade or business or for investment.” However, homeowners may be able to convert a primary residence to a rental property and, after potentially meeting IRS safe harbor requirements (at least two years of qualifying rental activity), may be able to sell through a 1031 exchange. When gains exceed the Section 121 exclusion limits (under current law, $250,000 single / $500,000 married), combining the exclusion with a 1031 exchange can address both the excluded and excess portions of the gain.
This article is for educational purposes only and does not constitute tax or legal advice. Tax laws are complex and subject to change. Consult a qualified tax professional for advice specific to your situation.
Homeowners sitting on significant appreciation in their primary residence often wonder whether a 1031 exchange can help them defer capital gains taxes when they sell. The short answer is generally no. Under IRC Section 1031, a primary residence generally does not qualify for a like-kind exchange because the property is generally required to be “held for productive use in a trade or business or for investment.” A home used as a personal residence is generally classified as personal-use property, and it typically falls outside that definition.
That distinction makes or breaks whether a property owner can defer capital gains. Section 1031 is designed for investment and business property. Section 121 is the provision that applies to primary residences, offering a separate capital gains exclusion. These are two different sections of the tax code serving two different purposes.
However, the story does not end with a flat “no.” There are strategies that may bridge the gap between these two provisions. Some homeowners convert their primary residence to a rental property before selling. Others combine the Section 121 exclusion with a 1031 exchange to address gains that exceed the exclusion limits. And some investors do the reverse, converting a 1031 exchange property into a future primary residence.
This guide covers each of those strategies in detail: the conversion process and IRS safe harbor rules, the Section 121 and 1031 combination approach with worked examples, the reverse conversion and its five-year holding requirement, and the key pitfalls that trip up homeowners who attempt these strategies without proper planning.
The intersection of Sections 121 and 1031 involves complex tax rules with real financial consequences. This article is for educational purposes only. Consult a qualified tax professional before making any decisions about your specific situation.
For a comprehensive overview of how 1031 exchanges work, see our complete 1031 exchange guide.
Why Primary Residences Do Not Qualify for 1031 Exchanges
IRC Section 1031(a)(1) states that “no gain or loss shall be recognized on the exchange of real property held for productive use in a trade or business or for investment” when that property is exchanged for like-kind property to be held for the same purposes. Both the relinquished property (the one being sold) and the replacement property (the one being acquired) are generally required to satisfy this requirement.
Property used primarily for personal purposes is generally understood not to meet this standard under current guidance. That includes a primary residence, a second home, and a vacation home used primarily for personal enjoyment. Section 1031 is generally understood to encourage the continued reinvestment of capital in productive business and investment assets, and is generally not applied to the sale of personal-use property.
“Held for investment” means the taxpayer owns the property with the intent to generate rental income or benefit from capital appreciation in a business or investment capacity. Personal occupancy is generally not considered to constitute investment use, even if the homeowner views their home as a financial asset. This is a common misconception. Many homeowners believe that because their home has appreciated in value, it qualifies as an investment. Under current guidance, appreciation alone, without genuine investment or business use, is generally not considered sufficient to establish investment intent.
Investment intent is generally evaluated based on facts and circumstances. Relevant factors may include whether the property was reported as rental or investment property on tax returns, whether it was actively rented to tenants at fair market value, the frequency and duration of personal use, and the length of time the property was held in its claimed capacity. The taxpayer generally carries the burden of establishing that the property was genuinely held for investment.
None of this means homeowners are left without options. Section 121 provides its own form of tax relief for primary residence sales, and conversion strategies allow some homeowners to eventually qualify a former residence for 1031 exchange treatment.
For the full list of requirements a property must meet, see our guide to the 7 key IRS 1031 exchange rules.
Section 121 Exclusion: The Primary Residence Tax Break
While Section 1031 does not apply to primary residences, homeowners may benefit from the Section 121 capital gains exclusion. Under current law, a homeowner may be able to exclude up to $250,000 of capital gain from the sale of a principal residence. Married couples filing jointly can exclude up to $500,000.
To qualify, the homeowner is generally required to meet two tests within the five-year period ending on the date of sale. The ownership test generally requires that the taxpayer owned the property for at least two years during that five-year window. The use test generally requires that the taxpayer used the property as their principal residence for at least two years during the same period. These two years do not need to be consecutive, and the ownership and use periods do not need to overlap. For married couples filing jointly, only one spouse generally must meet the ownership test, but both spouses generally must independently satisfy the use test to claim the full $500,000 exclusion.
The exclusion is generally available once every two years. Specifically, the taxpayer generally cannot have excluded gain from the sale of another home during the two-year period ending on the date of the current sale.
For many homeowners, Section 121 provides more than enough tax relief. A single filer with $200,000 in gain may potentially owe no capital gains tax on the sale under this exclusion. A married couple with $450,000 in gain may similarly fall within the exclusion limits. The exclusion may potentially eliminate the tax entirely on qualifying gains within its limits.
The strategy becomes more nuanced when gains exceed these thresholds. A homeowner with $700,000 in gain, for example, faces taxes on the amount above the exclusion. In that situation, or when the homeowner also wants to defer taxes on depreciation recapture from a period of rental use, combining Section 121 with a 1031 exchange may be worth exploring.
For a detailed overview of the Section 121 exclusion, including eligibility requirements, partial exclusions, and worked examples, see our Section 121 Primary Residence Exclusion Guide.
The Conversion Strategy: Converting a Primary Residence to Investment Property
How the Conversion Works
One common path from primary residence to potential 1031 exchange eligibility is a conversion. The homeowner stops using the property as a personal residence, converts it to a rental property, holds it as a rental for a qualifying period, and then sells it through a 1031 exchange.
The following describes the general process. Individual circumstances vary — consult a qualified tax professional before taking action.
The process typically follows a clear sequence. First, the homeowner typically vacates the property and ceases all personal use. Second, the homeowner generally rents the property to a non-related tenant at fair market value. The rental must be genuine, actively managed, and reflect prevailing market rates for comparable properties. Third, the homeowner holds the property as a rental for a sufficient period to establish investment intent. While the IRS does not prescribe an exact minimum holding period, most tax professionals recommend at least two years based on the safe harbor rules described below. Fourth, the homeowner sells the converted investment property and conducts a standard 1031 exchange into a like-kind replacement property.
IRS Safe Harbor: Revenue Procedure 2008-16
Revenue Procedure 2008-16 potentially provides a safe harbor framework that may help establish when a dwelling unit qualifies as property held for investment under Section 1031. Meeting the safe harbor may create a presumption that the property satisfies the investment-use requirement.
The safe harbor generally applies to the 24-month period immediately before the exchange and is generally understood to require that, for each of the two consecutive 12-month periods within that window, the following conditions are met. The property is generally required to be rented to another person at a fair rental price for at least 14 days. The taxpayer’s personal use generally must not exceed the greater of 14 days or 10 percent of the total number of days the property was rented at fair value during that 12-month period.
Hypothetical Example
Consider a hypothetical example. A homeowner moves out of their primary residence in January 2024 and immediately begins renting the property at fair market value. During the first 12-month period (January 2024 through December 2024), the property is rented for 300 days and the homeowner uses it for zero personal days. During the second 12-month period (January 2025 through December 2025), the property is rented for 320 days with zero personal-use days. By January 2026, after two full 12-month periods of qualifying rental activity, the property may meet the Rev. Proc. 2008-16 safe harbor and could potentially be sold through a 1031 exchange.
This is a simplified hypothetical. Actual tax outcomes depend on individual circumstances. Consult a qualified tax professional.
One important clarification: the safe harbor is a “safe” threshold, not a mandatory one. Properties that do not meet the safe harbor may still qualify for 1031 treatment based on the broader facts and circumstances of the taxpayer’s situation. However, the burden of proof is significantly higher without the safe harbor’s protection.
Key Requirements to Get Right
Tax professionals generally consider fair rental value an important factor. The rent charged must reflect prevailing market rates for comparable properties in the area. Below-market rent, particularly to family members or friends, can undermine the property’s status as an investment. If the property is rented to a family member, that individual is generally required to use it as their principal residence for the rental to count. Otherwise, the family member’s use may be treated as personal use by the taxpayer under applicable rules.
Personal use must be strictly limited. Even occasional overnight stays by the homeowner can count as personal-use days under the safe harbor calculation. This includes use by family members (unless they are paying fair rent and using it as their principal residence).
Documentation is generally considered important. Homeowners pursuing a conversion strategy may want to maintain detailed records throughout the rental period, including signed lease agreements, evidence of rental income received, records of maintenance and operating expenses, and a log of any personal-use days. Rental income is generally reported on Schedule E of the federal tax return, consistent with the property’s status as an investment.
Once the property qualifies as an investment property, the standard 1031 exchange process applies. See our step-by-step guide on how to use a 1031 exchange.
Combining Section 121 and Section 1031: The Dual-Benefit Strategy
How the Combination Works
In certain circumstances, a taxpayer can apply both the Section 121 exclusion and a Section 1031 exchange to the same property sale. This is sometimes referred to as the “Section 121/1031 combo” or the “dual-benefit strategy.”
This section is for educational purposes. Whether this strategy applies depends on individual facts and circumstances. Work with a qualified CPA to evaluate your specific situation.
The approach follows a specific sequence. The homeowner converts their primary residence to a rental property and holds it for the period required to establish investment use. When the property is sold, the Section 121 exclusion is generally applied first to the realized gain, up to the applicable limit ($250,000 or $500,000). Any remaining gain above the exclusion amount may then be deferred through a 1031 exchange into a like-kind replacement property.
For this strategy to work, the taxpayer generally must satisfy both sets of requirements simultaneously. The Section 121 ownership and use test requires that the homeowner owned and used the property as a principal residence for at least two of the five years preceding the sale. The Section 1031 investment-use requirement demands that the property be held for productive use in a trade or business or for investment at the time of the exchange.
The Non-Qualified Use Rule: Section 121(b)(5)(C)
Since 2009, gain allocated to periods of “non-qualified use” may not be eligible for the Section 121 exclusion. Non-qualified use is generally understood to refer to any period after 2008 during which the property was not used as the taxpayer’s principal residence.
There is a notable exception to this rule. Under Section 121(b)(5)(C)(ii), any period after the last date the property was used as a principal residence is generally not treated as non-qualified use. This exception may have significant practical importance for the conversion strategy.
Consider the timeline of a homeowner who lived in a property from 2018 through 2023 and then rented it from 2023 through 2025. The rental period (2023 to 2025) occurred after the last date of personal use. Under the statutory exception, this period is generally not treated as non-qualified use. The full Section 121 exclusion amount may remain available.
The situation differs if the property has gaps in personal use. If a homeowner rented the property from 2018 to 2020, then lived in it from 2020 to 2023, and rented it again from 2023 to 2025, the first rental period (2018 to 2020) would generally be classified as non-qualified use because it occurred before a period of personal residence. The gain attributable to those years would generally not qualify for the Section 121 exclusion.
Worked Example
Consider a hypothetical scenario. A married couple purchased their home in 2018 for $400,000. They lived in it as their principal residence from 2018 through 2023, a total of five years. In 2023, they moved out and began renting the property at fair market value. By 2025, the property has been rented for two full years and meets the Rev. Proc. 2008-16 safe harbor. Their adjusted basis, accounting for improvements over the years, is $420,000.
Scenario A: The couple sells the property for $900,000. The realized gain is $480,000 ($900,000 minus $420,000). They meet the Section 121 ownership and use test, having lived in the home for five of the last seven years. The rental period from 2023 to 2025 is not non-qualified use because it followed their last date of personal residence. Their maximum exclusion as a married couple is $500,000. The entire $480,000 gain falls within this limit and would potentially be fully excluded under Section 121. A 1031 exchange may not be necessary in this scenario.
Scenario B: The couple sells the property for $1,100,000. The realized gain is $680,000 ($1,100,000 minus $420,000). Section 121 would potentially exclude up to $500,000 of this gain. The remaining $180,000 may be deferred through a 1031 exchange if the couple identifies and acquires a like-kind replacement property within the required timelines (45 days to identify, 180 days to close) using a qualified intermediary.
This is a simplified hypothetical. Actual tax outcomes depend on individual circumstances. Consult a qualified tax professional.
The combination strategy is most valuable when gains exceed the Section 121 exclusion limits. For homeowners whose gains fall within the exclusion, Section 121 alone may be sufficient.
Learn more about capital gains deferral strategies in our 1031 exchange capital gains loophole article.
Converting a 1031 Exchange Property Into a Primary Residence
The Reverse Scenario
Some investors approach the question from the opposite direction. They already own a property acquired through a 1031 exchange and want to convert it into their primary residence. This is generally permitted under the tax code, but it comes with specific restrictions that affect future tax treatment.
The 5-Year Rule: Section 121(d)(10)
Under Section 121(d)(10), if a property was acquired as a replacement property in a 1031 exchange, the taxpayer is generally required to own it for at least five years before claiming the Section 121 capital gains exclusion on a future sale. This is a stricter standard than the normal two-of-five-year ownership and use requirement that applies to other primary residences.
Consider a hypothetical scenario. An investor acquires a rental property through a 1031 exchange in 2022. In 2024, the investor decides to convert the property to a primary residence and moves in. Even if the investor satisfies the standard two-year use test by 2026, the Section 121 exclusion would generally not be available until 2027, when five full years have elapsed since the property was acquired through the exchange.
This is a simplified hypothetical. Actual tax outcomes depend on individual circumstances. Consult a qualified tax professional.
During that five-year period, the taxpayer must still meet the standard Section 121 ownership and use tests. The five-year rule generally adds a minimum holding period; it generally does not replace the other requirements.
Practical Considerations
Converting a 1031 exchange property to personal use too quickly after acquisition can raise IRS scrutiny. If an investor acquires a replacement property through a 1031 exchange and moves into it within months, questions may arise about whether the property was genuinely “held for investment” at the time of the exchange. If such a challenge were successful, it could potentially retroactively disqualify the entire 1031 exchange.
A generally recommended approach is to hold the property as a rental or investment for a meaningful period before converting. Most tax professionals recommend at least two years of documented rental activity, consistent with the Rev. Proc. 2008-16 safe harbor standards discussed earlier. The longer the property is maintained as a genuine investment before conversion, the stronger the taxpayer’s position.
Second Homes, Vacation Homes, and Mixed-Use Properties
Second homes and vacation homes present their own challenges under Section 1031. A property used primarily for the owner’s personal enjoyment generally does not qualify for a like-kind exchange, regardless of how the owner characterizes it. Qualification is generally determined by actual use, not labels.
However, if a vacation home or second home is rented at fair market value with limited personal use, it may qualify under the same Rev. Proc. 2008-16 safe harbor that applies to converted primary residences. The requirements are identical: for each of the two 12-month periods before the exchange, the property must be rented for at least 14 days at fair value, and personal use must not exceed the greater of 14 days or 10 percent of rental days.
Mixed-use properties add another layer of complexity. A duplex where the owner occupies one unit and rents the other is a common example. In this situation, the property can be split for tax purposes. The investment portion (the rented unit) may qualify for a 1031 exchange, while the personal-use portion (the owner-occupied unit) may qualify for the Section 121 exclusion. The allocation is typically based on fair market value appraisals of each portion and must be reflected in the sales documentation.
This type of allocation requires careful documentation, including separate appraisals, properly structured purchase and sale agreements, and detailed records of rental income and personal use. Mixed-use property transactions sit at the intersection of multiple tax provisions and are among the most complex scenarios in 1031 exchange practice. Professional guidance from a qualified tax advisor is strongly recommended.
Key Pitfalls and Mistakes to Avoid
Selling too soon after conversion. Converting a primary residence to a rental and selling it within a few months may not establish that the property was genuinely held for investment. The Rev. Proc. 2008-16 safe harbor requires two full 12-month periods of qualifying rental activity. Selling before that threshold is met shifts the burden entirely to the taxpayer to prove investment intent through other evidence.
Below-market rent. Charging rent that is significantly below market rates could potentially undermine the property’s eligibility for 1031 treatment. This is particularly risky when renting to family members or friends. The rental price is generally expected to reflect what a willing, unrelated tenant would pay for comparable space in the same market.
Excessive personal use. The safe harbor generally imposes limits on personal-use days. Even a few extra days of personal occupancy could potentially push the taxpayer over the threshold. Any overnight stay by the homeowner or their family members (unless the family member is paying fair rent and using the property as their principal residence) counts as a personal-use day. Maintaining a detailed log of all occupancy is a practical necessity.
Poor documentation. Without thorough records of rental activity, lease agreements, income received, expenses paid, and any personal use, the taxpayer faces an uphill battle in the event of an IRS audit. The absence of documentation may significantly weaken the taxpayer’s ability to demonstrate investment intent.
Ignoring the non-qualified use rules. Homeowners who do not understand how periods of non-qualified use reduce the Section 121 exclusion may face unexpected tax consequences. The rules are particularly relevant for properties with mixed histories of personal and rental use that include gaps or alternating periods.
Missing the 5-year rule on reverse conversions. Investors who convert a 1031 exchange property to a primary residence and attempt to claim the Section 121 exclusion before five years of ownership have elapsed may find the exclusion is generally not available. The five-year rule under Section 121(d)(10) generally applies to all properties acquired through a like-kind exchange.
Forgetting state tax implications. Federal and state tax rules do not always align. Some states impose their own clawback rules when exchanged properties cross state lines. State-specific rules vary, and professional guidance from a qualified CPA is essential when exchanges involve properties in different states.
Frequently Asked Questions
Can I do a 1031 exchange on my primary residence?
Generally, no. Under IRC Section 1031, only property held for investment or productive use in a trade or business qualifies for a like-kind exchange. A primary residence is generally classified as personal-use property and typically does not meet this requirement. However, if you convert your primary residence to a rental property and hold it as a rental for a qualifying period (at least two 12-month periods under the Rev. Proc. 2008-16 safe harbor), the property may then be eligible for a 1031 exchange.
How long do I need to rent my home before doing a 1031 exchange?
The IRS does not specify an exact minimum rental period. Revenue Procedure 2008-16 potentially provides a safe harbor that is generally understood to require the property to be rented at fair market value for at least 14 days in each of two consecutive 12-month periods before the exchange, with personal use limited to the greater of 14 days or 10 percent of rental days per period. Many tax professionals generally recommend holding the property as a rental for at least two full years in connection with this safe harbor.
Can I combine Section 121 and a 1031 exchange?
In some situations, yes. If both the Section 121 ownership and use test (having lived in the home for at least two of the last five years) and the Section 1031 investment-use requirement are met, the taxpayer may be able to exclude up to $250,000 (or $500,000 for married couples filing jointly) of gain under Section 121 and defer the remaining gain through a 1031 exchange. The Section 121 exclusion is generally applied first. This strategy requires careful timing, compliance with safe harbor rules, and professional guidance.
Can I convert a 1031 exchange property into my primary residence?
Generally, yes, but there are restrictions. Under Section 121(d)(10), if a property was acquired through a 1031 exchange, the taxpayer is generally required to own it for at least five years before claiming the Section 121 capital gains exclusion on a future sale. Tax professionals generally recommend holding the property as a rental or investment for a reasonable period (at least one to two years) before converting to personal use. Converting too quickly after the exchange could raise questions about whether the property was genuinely held for investment at the time of the exchange.
Does a 1031 exchange apply to a second home or vacation home?
Generally, no. If the property is used primarily for personal enjoyment, it does not qualify. However, if the second home or vacation home is rented at fair market value with limited personal use that satisfies the Rev. Proc. 2008-16 safe harbor, it may qualify as investment property eligible for a 1031 exchange. The same 14-day rental and personal-use limits apply. A qualified tax professional can evaluate whether a specific property potentially meets the requirements.
What is the difference between Section 121 and Section 1031?
Section 121 may provide a capital gains exclusion for the sale of a principal residence, potentially eliminating tax on up to $250,000 of gain ($500,000 for married couples filing jointly). Section 1031 may provide a capital gains deferral for the sale of investment or business property when the proceeds are reinvested into like-kind replacement property. The key distinction is that Section 121 may permanently eliminate tax on qualifying gains within its limits, while Section 1031 generally postpones the tax to a future date. Section 121 applies to personal residences; Section 1031 applies to investment and business property.
Next Steps: Consult a Qualified Tax Professional
The interaction between Section 121 and Section 1031 is one of the more nuanced areas of real estate tax law. The strategies described in this article, from converting a primary residence to combining the exclusion and deferral provisions to converting an exchange property into a future residence, each carry specific requirements, timing constraints, and potential pitfalls.
This article is for educational purposes only and does not constitute tax, legal, or investment advice. Tax laws are complex, subject to change, and vary by state. Individual circumstances differ, and what works in one situation may not apply in another.
Before making any decisions about a 1031 exchange involving a current or former primary residence, consult a qualified tax professional, CPA, or real estate attorney who can evaluate your specific facts and provide guidance tailored to your situation.
Anchor1031 has completed over 300 1031 transactions, including exchanges involving properties converted from personal to investment use. Schedule a consultation to explore replacement property options through our DST marketplace.
Summary: 1031 Exchanges and Primary Residences
A primary residence generally does not qualify for a 1031 exchange, but homeowners may have several strategies available. Converting a primary residence to a rental property and holding it for at least two years under the Rev. Proc. 2008-16 safe harbor may help establish investment-use status. When gains exceed the Section 121 exclusion limits (under current law, $250,000 single / $500,000 married), the dual-benefit strategy may allow homeowners to potentially exclude the first portion under Section 121 and defer the remainder through a 1031 exchange. Investors who acquire property through a 1031 exchange may be able to convert it to a primary residence, but are generally required to wait five years before claiming the Section 121 exclusion.
Each of these strategies requires careful timing, strict compliance with IRS requirements, and professional guidance from a qualified tax advisor.

About the Author
Thomas Wall, Partner
Thomas Wall is a Partner at Anchor1031, where he specializes in educating clients about 1031 exchanges, private real estate offerings, and REITs. With nearly a decade of experience in alternative investments and real estate, Mr. Wall has helped investors through hundreds of 1031 exchanges, placing over $230M of equity into real estate.
Related Articles
Complete Guide to 1031 Exchanges
Everything investors need to know about using a 1031 exchange to defer capital gains taxes on investment property sales.
1031 Exchange Capital Gains Loophole
Compare capital gains deferral strategies and learn why 1031 exchanges are a commonly used approach for active real estate investors.
Ready to Explore Your Options?
Whether you are converting a primary residence, planning a 1031 exchange, or evaluating the Section 121 and 1031 combination strategy, our team can help you understand the options available to you.
Disclosure
Tax Complexity and Investment Risk
Tax laws and regulations, including but not limited to Internal Revenue Code Section 1031, bonus depreciation rules, cost segregation studies, and other tax strategies, contain complex concepts that may vary depending on individual circumstances. Tax consequences related to real estate investments, depreciation benefits, and other tax strategies discussed herein may vary significantly based on each investor's specific situation and current tax legislation. Anchor1031, LLC and Great Point Capital, LLC make no representation or warranty of any kind with respect to the tax consequences of your investment or that the IRS will not challenge any such treatment. You should consult with and rely on your own tax advisor about all tax aspects with respect to your particular circumstances. Please note that Anchor1031 and Great Point Capital, LLC do not provide tax advice.
The information contained in this article is for general educational purposes only and does not constitute legal, tax, investment, or financial advice. This content is not a recommendation or offer to buy or sell securities. The content is provided as general information and should not be relied upon as a substitute for professional consultation with qualified legal, tax, or financial advisors.
Tax laws, regulations, and IRS guidance regarding 1031 exchanges, opportunity zone investments, and related real estate strategies are complex and subject to change. Information herein may include forward-looking statements, hypothetical information, calculations, or financial estimates that are inherently uncertain. Past performance is never indicative of future performance. The information presented may not reflect the most current legal developments, regulatory changes, or interpretations. Individual circumstances vary significantly, and strategies that may be appropriate for one investor may not be suitable for another.
All real estate investments, including 1031 exchanges and opportunity zone investments, are speculative and involve substantial risk. There can be no assurance that any investor will not suffer significant losses, and a loss of part or all of the principal value may occur. Before making any investment decisions or implementing any 1031 exchange strategies, readers should consult with their own qualified legal, tax, and financial professionals who can provide advice tailored to their specific circumstances. Prospective investors should not proceed unless they can readily bear the consequences of potential losses.
While the author is a partner at Anchor1031, the views expressed are educational in nature and do not guarantee any particular outcome or create any obligations on behalf of the firm or author. Neither Anchor1031 nor the author assumes any liability for actions taken based on the information provided herein.

