You close on the sale of your short-term rental in August. The property produced a paper loss of $35,000 through the date of sale, and you have another $18,000 in suspended passive losses sitting from a prior year when the STR loophole did not apply. What happens to all of that?
This is a real scenario, and it does not have an obvious answer. The STR loophole (technically the exception under Treas. Reg. §1.469-1T(e)(3)(ii)(A)) treats a rental with an average guest stay of seven days or fewer as a trade or business rather than a passive rental activity. That classification lets you use losses to offset W-2 income without needing real estate professional status or 750 hours. But the loophole's mechanics shift when you sell in the middle of a tax year, and knowing what shifts prevents expensive surprises on your return.
TL;DR: Selling your STR mid-year does not kill the loophole for the partial year. The 7-day average stay test is calculated on actual rental days before the sale, and material participation is measured over that same window. If you qualify, losses through the date of sale remain non-passive. Any prior-year suspended losses are released under IRC §469(g) at disposition. Depreciation is prorated to the month of sale using the half-year convention (or mid-month for real property).
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)).
Does the STR Loophole Still Apply in the Year You Sell?
Yes, with one condition: you still have to meet the 7-day average stay test and materially participate for the period the property was actually rented.
The 7-day rule is an annual calculation, but "annual" means "for the tax year the property was a rental." If you owned and rented the property from January through July, the IRS looks at total rental days divided by number of stays during those seven months. If that average is seven days or fewer, the property was not a rental activity under §469, and any losses it generated during that period are non-passive.
This is straightforward math. Thirty stays over sixty rental days works out to an average of two days per stay. The fact that the calendar year has five more months is irrelevant. Those months are not rental months. The test passes.
Material participation works the same way. You do not need to log 100 hours across a full twelve months. You need to log more than 100 hours, and more hours than anyone else involved with the property (Treas. Reg. §1.469-5T(a)(3)), during the portion of the year you owned it. If your cleaners, co-host, and property manager collectively put in 80 hours between January and July, and you logged 110 hours during that same window, you pass Test 3. Sale in August changes nothing about that calculation.
For a deeper look at how the hours test works in normal years, the 100-hour versus 500-hour comparison on the STR loophole blog lays out both paths clearly.
How Is Depreciation Handled in the Year of Sale?
This is where things get slightly more technical, but stay with me.
Residential rental property (the building itself) uses MACRS straight-line depreciation over 27.5 years. The IRS mid-month convention means you get a half-month of depreciation for the month you place property in service and a half-month for the month you sell it.
So if you bought the property in March 2022 and sold it in August 2025, you calculate depreciation from mid-March 2022 through mid-August 2025. Your tax software does this automatically, but understanding it matters because the depreciation you claim in the sale year reduces your adjusted basis, which affects your taxable gain.
Short-lived components are different. If you did a cost segregation study and reclassified portions of the building into 5-year, 7-year, or 15-year property, those components use the half-year convention under MACRS. They receive a half year of depreciation in both the year placed in service and the year disposed of.
A cost segregation study is the prerequisite step here. Without one, everything stays on the 27.5-year building schedule and you miss the ability to accelerate deductions on those short-lived components. With one, the picture looks very different.
Property acquired on or after January 20, 2025 is eligible for 100% bonus depreciation under IRC §168(k) as permanently restored by the One Big Beautiful Bill Act. That means those components may already be fully depreciated. There is nothing left to prorate. If you took 100% bonus in year one, those components have a zero basis going into the sale year.
A worked example:
Assume you bought an STR for $500,000 in January 2024, allocated $380,000 to the building and $120,000 to personal property (5-year and 15-year components identified in a cost segregation study).
- The $120,000 in short-lived property was acquired in 2024, so it qualified for 60% bonus depreciation. That is $72,000 deducted in 2024. The remaining $48,000 depreciated under normal MACRS schedules.
- The $380,000 building depreciates at roughly $13,818 per year ($380,000 divided by 27.5). For the partial year of sale in August 2025, you get seven and a half months of depreciation: $13,818 times 7.5 divided by 12 equals approximately $8,636.
- Total depreciation claimed through sale: $72,000 in bonus depreciation, plus a portion of the $48,000 remaining on the 5-year and 15-year items, plus $8,636 on the building.
If instead you had replaced a specific component, like a new HVAC unit bought in 2025 before the sale, that replacement purchase would also qualify for bonus depreciation under §168(k) if it meets the placed-in-service rules. The same logic applies: take 100% bonus in the year of purchase, and the basis for that component is zero at sale.
At sale, all prior depreciation is subject to recapture. Straight-line building depreciation is recaptured at a maximum 25% rate (the §1250 unrecaptured gain rate). Personal property depreciation is recaptured as ordinary income under §1245. Run these numbers with your CPA before closing, not after.
To think through the full picture of what happens at sale beyond the mid-year mechanics, the detailed breakdown of the STR loophole at property sale covers recapture and long-term capital gain treatment in full.
What Happens to Suspended Passive Losses from Prior Years?
Here is the good news if you had a year where the loophole did not apply and losses got suspended.
Under IRC §469(g), when you dispose of an entire passive activity in a fully taxable transaction, any suspended passive losses from that activity are released. They become deductible in the year of sale against any income, in this order: first against gain from the disposition, then against net income or gain from other passive activities, then against ordinary income.
If you had $18,000 in suspended passive losses and you sell the property at a $40,000 gain, the $18,000 frees up and offsets $18,000 of that gain. The remaining $22,000 is taxable gain, subject to capital gain rates (and §1250 recapture rules for any depreciation in the mix).
The release only happens on a "fully taxable" disposition. A 1031 exchange does not trigger §469(g) because you are not recognizing the gain. Suspended losses stay suspended and carry forward to the replacement property. If you are weighing a straight sale against a 1031, the comparison of the STR loophole paired with a 1031 exchange walks through exactly that tradeoff.
Do You Still Need to Log Hours After You Stop Renting?
Stop logging the moment the property is no longer a rental. Once it is under contract or no longer available for rent, it is not an STR activity. Any time you spend on the sale itself, like showing the property, dealing with the title company, or coordinating the closing, is not rental management time. It would not count toward your material participation hours anyway.
What you need is a clean, documented record of your hours through the last rental date. If you have been tracking STR hours from mid-year, the same principles apply: log every task with a start time, end time, and description.
The STR Loophole app syncs with Hospitable and automatically adds a baseline for guest message activity. By default, the app logs five minutes per guest message exchange, since almost every inquiry involves a back-and-forth conversation. That auto-log builds the evidence trail and saves you time. But you should adjust the logged time to reflect what you actually spent reviewing messages and communicating with guests. Do not rely on the default alone for precise timing. Use it as a starting point, not the final answer.
Contemporaneous records beat reconstructed ones in every Tax Court case on point. Selling mid-year is not an excuse to let the log go stale in March.
A Full Mid-Year Scenario: The Math in One Place
Let's pull it together with a realistic example so you can see the full picture.
Assumptions:
- STR purchased January 2023, sold August 2025
- Adjusted basis at sale: $410,000 (original $500,000 minus $90,000 cumulative depreciation)
- Sale price: $520,000
- Suspended passive losses from 2023 (a year the property did not qualify under the loophole): $12,000
- 2025 paper loss before sale (through July): $28,000, non-passive because you logged 115 hours vs. the cleaner's 70
Step 1: Current-year non-passive loss The $28,000 loss in 2025 is non-passive. It offsets your W-2 income dollar for dollar. At a 32% marginal rate, that is $8,960 in tax savings for the partial year alone.
Step 2: Gain on sale $520,000 sale price minus $410,000 adjusted basis equals $110,000 gross gain.
Step 3: Release of suspended losses The $12,000 in suspended passive losses from 2023 is released under §469(g). It reduces the taxable gain from $110,000 to $98,000.
Step 4: Depreciation recapture Of the $90,000 in cumulative depreciation, assume $60,000 was on personal property (ordinary income recapture under §1245) and $30,000 was straight-line building depreciation (§1250 unrecaptured gain, taxed at up to 25%). The remaining $8,000 of gain is long-term capital gain.
The point here is not that this is fun arithmetic. It is that four separate tax events happen on one return in the year of sale, and they interact. Miss one, and your return is wrong.
You can run the numbers on your own situation using the cost segregation and tax savings calculator to see how the depreciation and loss picture changes in different sale scenarios.
Key Takeaways
- The 7-day average stay test and material participation are both calculated on the actual rental period before the sale closes, not the full calendar year.
- A qualifying partial year preserves non-passive treatment for losses generated through the date of sale.
- Depreciation in the sale year is prorated using the MACRS mid-month convention for the building and half-year convention for personal property components. A cost segregation study is necessary to access the accelerated schedules on short-lived components.
- Suspended passive losses from prior years are fully released at a taxable disposition under IRC §469(g), reducing taxable gain.
- A 1031 exchange does not release suspended losses. They carry to the replacement property.
- Keep logging hours right up to the last rental day. Stop at closing.
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
- IRC §168(k), Bonus Depreciation (as amended by the One Big Beautiful Bill Act, 2025)
- IRS Publication 527, Residential Rental Property
- IRC §469(g), Dispositions of Passive Activities
- IRC §1245, Depreciation Recapture (Personal Property)
- IRC §1250, Depreciation Recapture (Real 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: Selling a short-term rental mid-year does not disqualify the STR loophole for the partial year. As long as you meet the 7-day average stay test and material participation over the actual rental period, losses remain non-passive. Suspended passive losses from prior years are released at a taxable disposition, and depreciation is prorated to the month of sale. Four separate tax events hit the same return, so run the numbers with a CPA before closing.
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.

