You bought a short-term rental, ran a cost segregation study, generated a large paper loss in year one, and offset a chunk of your W-2 income. Now you're thinking about the exit. Can you roll the property into a 1031 exchange and defer the capital gain too, even after taking all that depreciation?
Yes. In most cases, you can. But there are sequencing rules and a few traps that will catch you off guard if you don't plan ahead.
TL;DR: The STR loophole (which makes your rental losses non-passive so they offset W-2 income) and a 1031 exchange (which defers capital gains tax at sale) are not mutually exclusive. You can use both on the same property, but the 1031 requires the property to be "held for investment or productive use in a trade or business," and your depreciation recapture does not disappear. Plan the exit from day one.
Jennifer Beadles is a real estate investor and short-term rental owner who uses the STR loophole on her own properties. She writes from hands-on operating experience plus current IRS guidance (IRC §469 and Treas. Reg. §1.469-1T(e)(3)(ii)(A)).
Can You Use a 1031 Exchange After the STR Loophole?
Yes, the two strategies can stack on the same property. The STR loophole operates under IRC §469 and Treas. Reg. §1.469-1T(e)(3)(ii)(A): because your average guest stay is 7 days or less, your rental is not treated as a "rental activity" for passive activity purposes. You materially participate, so the losses are non-passive and flow directly against your W-2 or other ordinary income.
A 1031 exchange operates under a completely different code section, IRC §1031. It asks one question at the time of sale: was this property held for productive use in a trade or business, or for investment? If yes, you can swap it for a like-kind replacement property and defer the capital gain.
The STR loophole classification actually helps you here. Because the IRS treats your STR as a trade or business (not a mere rental activity), your property has a strong argument for meeting the §1031 "held for productive use in a trade or business" standard.
The "Held for Investment" Requirement and the Personal-Use Trap
This is where people get tripped up. IRC §1031 excludes property held "primarily for sale" and, more relevantly, property that has been converted to personal use.
Under IRC §280A(d)(1), if you use your STR for personal purposes more than 14 days or more than 10% of the days it was rented at fair market rate, the property starts to look like a personal residence. Reach that threshold and you complicate both the STR loophole (your deductions get limited) and the 1031 eligibility at exit.
The practical rule: keep your personal use days well within the limits throughout the holding period, document it cleanly, and you won't have a problem at the 1031 stage.
There is also a seasoning question. The IRS has not written a bright-line rule on how long you must hold a property before a 1031 qualifies, but Tax Court cases and Revenue Procedure 2008-16 suggest at least 12 to 24 months of active rental use before the exchange. If you buy, run one busy season, and immediately flip it into a 1031, expect scrutiny.
What Happens to All That Depreciation?
Here is the part most people would rather not think about: a 1031 exchange does not wipe out depreciation recapture. It defers it.
When you take 100% bonus depreciation on the short-lived components of your property (the 5-, 7-, and 15-year assets a cost segregation study identifies), you are accelerating deductions that reduce your cost basis. When you eventually sell, the IRS collects §1250 unrecaptured depreciation at up to 25%, and any §1245 recapture on personal property at ordinary income rates.
A 1031 exchange rolls that deferred recapture into your replacement property's basis. You do not pay it today. But it travels with you until you eventually sell in a taxable transaction, or until your estate steps up the basis at death under current law.
To see the full picture of what happens to all that depreciation at the moment you sell, the article on how the STR loophole works when you eventually sell the property covers the recapture mechanics in detail.
A Worked Example: Stacking the STR Loophole and a 1031
Let's run through a real scenario.
Assumptions:
- Purchase price: $600,000 (land: $100,000; depreciable basis: $500,000)
- Cost segregation identifies $150,000 in 5- and 15-year property (30% of depreciable basis)
- Property acquired in 2025, so 100% bonus depreciation applies under the One Big Beautiful Bill Act
- Remaining $350,000 depreciates over 27.5 years (standard residential MACRS)
- Owner's marginal W-2 rate: 35%
- Owner meets material participation via the 100-hour test (Treas. Reg. §1.469-5T(a)(3))
- Property sells in year 5 for $750,000
Year 1 tax benefit: Year-one bonus depreciation deduction: $150,000 At 35% marginal rate: $150,000 x 0.35 = $52,500 in W-2 taxes offset in year one
Year 1 through 5 straight-line depreciation on remaining $350,000: $350,000 / 27.5 = $12,727 per year, times 5 years = approximately $63,636
Total depreciation taken over 5 years: $150,000 + $63,636 = $213,636
Adjusted basis at sale: $600,000 - $213,636 = $386,364 Capital gain on sale: $750,000 - $386,364 = $363,636
If you sell outright: $150,000 of §1245/§1250 recapture taxed at ordinary rates (up to 37%), plus capital gain on the remainder taxed at long-term capital gains rates.
If you complete a 1031 exchange: you defer the full $363,636 gain into the replacement property. The recapture does not disappear; it lowers the replacement property's carryover basis. But you pay nothing today, and the cash that would have gone to the IRS keeps working in your next deal.
That is a meaningful difference. On $150,000 of recapture at 37%, you're deferring a $55,500 tax bill into the future.
The Sequencing Problem: STR to Long-Term Rental
One situation that requires extra care: you want to do a 1031 and swap into a long-term rental. Or you want to convert your STR to a long-term rental before selling and then 1031 into something else.
Neither is disqualifying, but both require planning.
If you convert your STR to a long-term rental for a year before the 1031, the property's character shifts. Long-term rentals absolutely qualify under §1031. But if you converted it to avoid the STR loophole (which you no longer needed after using the losses) and the IRS sees a quick flip to personal use or a primary residence in the chain, the whole thing gets messy. Keep the rental use continuous and well-documented.
Also worth noting: you cannot group long-term rentals with short-term rentals for material participation purposes under Treas. Reg. §1.469-9(g). If the replacement property in your 1031 is a long-term rental, the STR loophole strategies you used on the relinquished property simply won't apply to the new one. That's not a problem. It's just a different tax environment.
Step-by-Step: How to Keep Both Strategies Available
- Buy with intent to rent. Document from day one that the property is held for productive use, not resale. Keep records of your rental activity, bookings, and management.
- Run a cost segregation study early. The cost segregation and STR loophole strategy is most powerful in year one when you can deploy 100% bonus depreciation. You can also run the numbers through the cost segregation calculator before you commit.
- Track your hours meticulously. You need contemporaneous logs with dates, tasks, and times, not estimates. Tools like the STR Loophole app are built for exactly this. Proving material participation is what makes the losses non-passive, and it's what protects you if you're ever audited.
- Control personal use. Stay under 14 days or 10% of rental days (IRC §280A(d)(1)). This protects both your annual deductions and your §1031 eligibility at exit.
- Hold the property long enough. Minimum 12 months, ideally 24, before completing the exchange. Talk to a qualified intermediary and a CPA before you list it for sale.
- Identify a replacement property within 45 days of closing. IRC §1031 requires identification within 45 days and closing within 180 days. Miss either deadline and the exchange fails. No exceptions.
- Understand the depreciation carryover. Your replacement property's basis is lower than what you paid for it. Run the numbers on what that means for future recapture before assuming the 1031 was "free."
Key Takeaways
- The STR loophole (IRC §469, Treas. Reg. §1.469-1T(e)(3)(ii)(A)) and a 1031 exchange (IRC §1031) operate under separate code sections and can be used on the same property.
- A 1031 defers capital gains and recapture. It does not eliminate them. The deferred recapture travels into the replacement property's basis.
- Personal use exceeding the IRC §280A(d)(1) limits can jeopardize both the loophole's deductions and the property's §1031 eligibility.
- Holding period matters. Rushed exchanges on properties that look like dealer property or primary residences invite IRS scrutiny.
- 100% bonus depreciation (permanently restored for property acquired after January 19, 2025) accelerates losses aggressively in year one. That is powerful during ownership and something to plan around at exit.
- More on the bonus depreciation strategy and what it means for long-term planning.
FAQ
Does running the STR loophole disqualify a property from a 1031 exchange? No. The STR loophole treats your property as a trade or business for passive activity purposes under IRC §469. That classification actually supports the "held for productive use in a trade or business" standard required by IRC §1031. The two frameworks are independent of each other.
What happens to §1250 depreciation recapture in a 1031 exchange? It is deferred, not eliminated. The recapture reduces the carryover basis of your replacement property. When you eventually sell in a taxable transaction, the IRS collects up to 25% on unrecaptured §1250 gain and ordinary income rates on any §1245 recapture. The 1031 buys you time and keeps your capital working in the next deal.
How long do you need to hold an STR before doing a 1031? The IRS has not issued a formal minimum, but Revenue Procedure 2008-16 provides a safe harbor for vacation rentals: rent the property at fair market value for at least 14 days in each of the two 12-month periods preceding the exchange. Many practitioners recommend at least 24 months of active rental use to be well outside audit risk.
Can you 1031 out of an STR and into a long-term rental? Yes. Both property types qualify as like-kind real property under IRC §1031. Just note that the STR loophole will no longer apply to the replacement long-term rental. Long-term rental losses are passive by default under IRC §469, so you'd need a different strategy (such as real estate professional status) to make them non-passive. That's a different path entirely.
Does 100% bonus depreciation affect the 1031 exchange? Bonus depreciation under IRC §168(k) accelerates deductions during ownership. It does not change the mechanics of the §1031 exchange itself, but it does mean you will have taken more depreciation by the time you sell, which increases the amount of recapture that gets deferred into the replacement property. More depreciation taken equals a lower carryover basis. Factor that into your exit math before you assume the 1031 is all upside.
Sources
- IRC §469, Passive Activity Loss Rules
- Treas. Reg. §1.469-1T(e)(3)(ii)(A), Short-term rental exception
- Treas. Reg. §1.469-5T, Material participation standards
- IRC §1031, Like-kind exchanges
- IRC §168(k), Bonus depreciation
- IRC §280A, Personal use limits
- Revenue Procedure 2008-16, Safe harbor for vacation rental 1031 exchanges
- IRS Publication 527, Residential Rental Property
This article is for educational purposes only and is not tax or legal advice. Talk to a CPA who knows short-term rentals before you act on it.
The Bottom Line: The STR loophole and a 1031 exchange are not competing strategies. They work together, but only if you plan from day one: document rental intent, control personal use days, track material participation hours contemporaneously, and understand that all those depreciation deductions get deferred (not forgiven) when you roll into the next property. Run your exit math before you list, not after.
Ready to see if you qualify? Try the free STR loophole calculator →
Start Tracking Your Hours Today
STR Loophole makes documentation effortless. Sign up free on the web, then log from your desk or the mobile app — everything syncs.

