Taxstra Logo
STR Loophole Q&A

Use the Loophole, Move In, Then Sell Under the $500K Exclusion?

The strategy making the rounds on social media: run the STR, take the big loss, move in for two years, sell tax-free. Section 121 has two rules that break it, and every tax professional in the comments keeps pointing at them.

A guide by Taxstra Tax & Accounting · CPA-led tax strategy for business owners

Full STR Loophole Guide

Written by Bryan Martin, CPA, Managing Partner and Founder of Taxstra. Last updated August 18, 2026.

The short answer

Moving into your short-term rental for two years does not make the sale tax-free. Two separate rules see you coming. First, the Section 121 exclusion never applies to gain from depreciation taken after May 6, 1997, so everything your cost segregation study deducted comes back as taxable unrecaptured gain at sale. Second, the years the home was a rental before you moved in are "nonqualified use," which shrinks the $250K/$500K exclusion pro rata. You can still shelter a slice of appreciation. Just a slice.

Rule 1: depreciation is never excluded, period

Section 121(d)(6) is one sentence long and it ends this version of the plan: the exclusion does not apply to gain attributable to depreciation claimed after May 6, 1997. It does not matter how long you live there. Ten years of residence does not launder one dollar of prior depreciation.

Now connect that to the STR loophole itself. The whole reason the Year 1 deduction was large is that a cost segregation study pulled 20 to 30 percent of the purchase price forward as accelerated depreciation. Every one of those dollars is in the non-excludable bucket at sale: building depreciation comes back as unrecaptured Section 1250 gain taxed at up to 25%, and recapture on the shorter-life components is ordinary income. The bigger your Year 1 win, the bigger the slice Section 121 cannot touch. Our depreciation recapture guide walks the mechanics.

Rule 2: nonqualified use shrinks the exclusion itself

Congress closed the second half of this play back in 2008. Any period after 2008 during which the home was not your principal residence, before it becomes your residence, is nonqualified use. Gain is allocated between qualified and nonqualified periods by simple ratio, and the nonqualified share cannot be excluded, no matter how far under the $250K/$500K ceiling you are.

The order of operations is the whole game. Rent first, then move in: the rental years poison the fraction. Live there first, then rent, then sell within the window: the post-residence rental generally does not count as nonqualified use. Same house, same years, wildly different tax bills. The TikTok version has the order backwards.

The worked example the videos never show

Buy 2026 as an STR, move in 2028, sell 2031

Purchase price (2026)
$800,000
Cost segregation depreciation taken (2026-2027)
$190,000
Sale price (2031)
$1,050,000
Total gain (appreciation $250K + depreciation-driven gain $190K)
$440,000
Depreciation portion: never excludable, taxed at sale
$190,000
Nonqualified use: 2 rental years of 5 years owned = 40%
applies to the $250K appreciation
Appreciation gain excluded under Section 121 (60% x $250K)
$150,000
Taxable at sale: $190K depreciation gain + $100K nonqualified appreciation
$290,000

Of a $440,000 gain, roughly $150,000 escapes tax. Meaningful, and nothing close to the tax-free sale the strategy was sold as. Numbers are rounded and illustrative; your allocation depends on exact dates and basis.

And that example is the friendly math: it assumes a married couple whose $500K ceiling is never the binding constraint, clean dates, and no partial-year complications. Real files have messier fractions.

Do not forget the two years cost you real income

Moving in also means the property stops earning. Two years of forgone rental profit, plus the cost of wherever your old life goes, belongs in the comparison. When we run this for clients, the move-in exit sometimes loses to simply selling and paying the recapture, and frequently loses to a 1031 exchange that defers everything. The spreadsheet decides, not the video.
Taxstra Tip
If your genuine long-term plan is to live in the home someday, the exclusion still rewards you for every qualified year, and combining a real residency period with good exit timing can save six figures on a highly appreciated property. The move has to be a life decision that happens to have tax benefits, not a tax stunt with a moving truck. Bring your dates to a free initial consultation and we will model the exclusion, the recapture, and the 1031 alternative side by side.

Thinking about a move-in exit? Get the real number first.

Walk us through your situation and we'll tell you how we can help. 30 minutes, free, no pressure.

Frequently Asked Questions

Can I avoid depreciation recapture by moving into my STR before selling?

No. The Section 121 home sale exclusion explicitly does not apply to gain attributable to depreciation taken after May 6, 1997. Every dollar of depreciation you claimed, including the accelerated deductions from a cost segregation study, is taxed at sale regardless of how long the home was your residence.

How does nonqualified use reduce the $250K/$500K exclusion?

Years the home was not your principal residence (after 2008) before you move in count as nonqualified use. The excludable gain is reduced pro rata: if you owned the home 5 years and rented it for the first 2, roughly 40% of your appreciation gain cannot be excluded, on top of the depreciation that is never excludable.

Does renting my home AFTER living in it also count as nonqualified use?

Generally no. There is an exception for periods after the home stops being your principal residence, within the 5-year window. That is why the classic order, live first then rent then sell, works far better than the TikTok order of rent first then move in.

How long do I have to live in the home to get any exclusion?

You need to have owned and used the home as your principal residence for at least 2 of the 5 years before the sale. Two years of residence earns you the exclusion framework, but with prior rental years it is then cut down by the nonqualified use fraction and never covers depreciation.

Is moving into the STR ever still worth doing?

Sometimes. Shielding even a partial slice of appreciation can be worth six figures on a property that has grown substantially, and married couples get up to $500K of exclusion to apply against the qualified portion. It is a good strategy with modest expectations, not the tax-free exit the videos promise. Run the actual numbers before relocating your family.

Do the two years of residence have to be continuous?

No; the test is 24 months of ownership and use within the five years before sale, in any combination. Two separate one-year stints work. What every day of residence does is stop depreciation and start counting toward the use test, so a documented timeline of exactly when the property changed roles is the entire evidentiary base.

What if only one spouse moves in?

The full $500K joint exclusion requires BOTH spouses to meet the two-year use test (only one must meet ownership). One spouse residing there while the other stays at the family home generally caps the exclusion at $250K, and it also invites residency questions about which house is the household’s real principal residence. The videos never mention this one.

How does the sale actually get reported?

The rental-period story lands on Form 4797 territory (depreciation recapture and business-use gain) while the exclusion applies against the qualified residential gain, with unrecaptured Section 1250 gain flowing through the Schedule D worksheets at its capped rate. It is one sale reported through several interacting forms, and it is exactly the kind of return worth professional preparation in the sale year even if you self-file every other year.

What counts as making it my principal residence, versus just my second home?

Principal residence is a facts test: where you actually live most of the time, measured by occupancy, mailing address, driver’s license, voter registration, workplace proximity, and where your household genuinely operates. Spending summers at the beach house while your life stays in the city makes it a second home, and second homes earn zero Section 121 exclusion no matter how many years you own them. The move has to be a real move, documented like one.

Related STR Loophole Questions

Limited Availability

Model Your Exit Before You Pack a Single Box

Book a free 30-minute call to walk through your situation. We'll tell you exactly how our CPA-led team can help, and whether we're the right fit.

Learn how our CPA-led team can help
30 minutes, no fluff, just answers
Zero obligation, zero pressure
Or Call (217) 788-0750
0+
Tax Returns Filed
0+
Years Experience
0%
CPA-Led Service
0min
Free Consultation

What to Expect on the Call

1
We learn about your business and tax situation
2
We explain which services fit your needs
3
You get honest answers, no hard sell

This page is educational, not individualized tax advice. Short-term rental tax outcomes depend on your specific facts: your hours, your booking history, your personal use, and your documentation. Savings vary by client and results are not typical of every situation. Consult a qualified tax professional before acting on anything here.