REP Helper
Get Started
STR Rules

Can You Claim the STR Loophole on an 'Illegal' Rental?

Whether a short-term rental run without the required local permit or zoning approval can still claim the federal short-term rental tax treatment, and the real-world risks that come with it.

June 5, 2026
10 min read
Can You Claim the STR Loophole on an 'Illegal' Rental?

Key Takeaways

  • Federal tax law and local land-use law are two separate systems: the IRS taxes your rental income and lets you deduct ordinary expenses whether or not your city says you are allowed to operate.
  • The two tests that unlock the short-term rental loophole, the 7-day average stay and material participation, are defined in the Treasury regulations and make no mention of local permits, licenses, or zoning.
  • Income from a non-permitted rental is fully taxable; you cannot leave it off your return on the theory that the activity was not supposed to exist in the first place.
  • Illegality does not erase the loophole, but it stacks practical risk on top of it: forced shutdown mid-year, fines, weaker expense substantiation, and the narrow Section 280E-style limits on expenses tied to genuinely illegal conduct.
  • A property that gets shut down partway through the year can blow your 7-day average and your material-participation hour count, so the legal exposure and the tax exposure are linked even though the rules are separate.

Two Different Rulebooks

It is one of the most common quiet questions in the short-term rental world, and one almost nobody wants to ask their accountant out loud: my city technically doesn't allow what I'm doing, so can I still claim the short-term rental loophole on my taxes? Maybe you bought before the ordinance changed, maybe your HOA forbids nightly stays, maybe your zoning only permits 30-day minimums and you've been booking weekends anyway. The listing is live, the income is real, and now you are staring at a return wondering whether the federal tax strategy still applies.

The short answer is more nuanced than either extreme you may have heard. It is not true that an unpermitted rental automatically disqualifies you from the loophole, and it is also not true that the IRS doesn't care what you do so go ahead. The key is understanding that you are standing inside two completely separate rulebooks at the same time. One is federal income tax law, written and enforced by Congress and the IRS. The other is local land-use law, written and enforced by your city, county, or homeowners association. They were built for different purposes, by different governments, and they ask different questions.

This article is a measured, accurate read of how those two systems interact. It is not encouragement to operate without the permits your jurisdiction requires. Operating illegally carries real, sometimes severe, non-tax consequences, and as you'll see, those consequences can circle back and damage your tax position too.

We will walk through what the federal tax tests actually say (and don't say) about local legality, why the income is taxable no matter what, the expense rules that genuinely do change when an activity is illegal, and the practical risks that make this a far more fragile strategy than running a properly permitted property. As always, this area is technical and fact-specific. Treat it as a way to ask a qualified tax advisor and a local land-use attorney sharper questions, not as a substitute for their advice.

What the STR Loophole Actually Requires

Before we can ask whether an illegal rental qualifies, we have to be precise about what the short-term rental loophole is. It rests on a quirk in the passive activity rules of Internal Revenue Code Section 469. Under Treasury Regulation 1.469-1T(e)(3), an activity is only a "rental activity" if the average period of customer use is more than seven days. Keep your average guest stay at seven days or fewer and the property falls out of the rental-activity bucket entirely. That matters because the rule that makes rental real estate automatically passive applies only to rental activities. Take the property out, and the per-se passive treatment never attaches.

Once the property is treated like any other trade or business, the question of passive versus non-passive turns on a single thing: did you materially participate? Material participation is defined by the seven tests in Treasury Regulation 1.469-5T. For most short-term rental owners, the realistic ones are spending more than 500 hours on the activity, or more than 100 hours where no other single person (cleaner, co-host, or property manager) spent more than you, or performing substantially all of the work yourself.

So the entire loophole reduces to two federal tests:

  • The 7-day average test: total rental nights for the year divided by the number of separate guest stays, computed per property, must come out to seven days or fewer.
  • Material participation: you personally clear one of the seven tests of Reg. 1.469-5T for that activity, and contractor, employee, or property-manager hours do not count as yours.

Read those two tests carefully and notice what is missing. Neither the average-stay regulation nor any of the seven material-participation tests says one word about local permits, business licenses, zoning compliance, or HOA approval. The federal definitions simply do not reference local legality at all.

Why Federal Tax Tests Ignore Local Legality

It can feel counterintuitive that the IRS would let you claim a favorable tax treatment on an activity your city says you shouldn't be running. But this is a long-standing feature of the tax code, not an oversight. The federal income tax system is generally indifferent to whether the underlying activity complies with state or local law. Its job is to measure income and the costs of producing it, not to enforce zoning ordinances. The Supreme Court settled the broad principle nearly a century ago: even income from outright illegal activity is taxable, and many of the ordinary costs of producing income remain deductible regardless of the activity's legal status.

Applied to short-term rentals, this means the average-stay test and the material-participation tests are mechanical, factual inquiries. Did your guests, on average, stay seven nights or fewer? Did you, personally, spend the required hours managing the property? Those questions have the same answers whether or not your city issued you a permit. A property booked at a six-night average where you do all the work, communicate with guests, handle the turnovers, and manage the listing materially participates in exactly the same way whether the operation is fully permitted or technically prohibited by a recent ordinance.

Federal tax law asks

  • What was the average guest stay this year?
  • Did you materially participate under Reg. 1.469-5T?
  • Did anyone else participate more than you?
  • When was the property placed in service?
  • Are the expenses ordinary and necessary?

Local land-use law asks

  • Do you hold a valid short-term rental permit?
  • Does zoning allow nightly or weekly stays here?
  • Did you register and collect lodging taxes?
  • Does your HOA or lease permit short stays?
  • Are you within any cap on STR licenses?

The two columns almost never overlap. That separation is exactly why a non-permitted rental can still, in principle, satisfy the federal tests. It is also why satisfying the federal tests gives you no protection whatsoever from the local enforcement in the right-hand column. Winning the tax argument and getting your listing shut down by code enforcement are entirely compatible outcomes.

The Income Is Taxable, Full Stop

Here is the part of the analysis that is not nuanced at all. If you collected rent, that money is taxable income, and the fact that the rental was unpermitted, prohibited by your HOA, or operating against zoning does not change that one bit. Some owners reason, almost superstitiously, that because the activity wasn't supposed to exist, the income somehow exists in a gray zone the IRS won't notice or won't tax. That reasoning is exactly backwards and is a fast route to a far more serious problem than a zoning citation.

The tax code reaches gross income from whatever source derived. Income earned in violation of a local ordinance, or even income earned through genuinely criminal activity, is fully includible. Leaving it off your return is not aggressive tax planning; it is underreporting, which exposes you to accuracy penalties, fraud penalties, and in serious cases criminal liability that dwarfs anything your city's code enforcement office could impose. The classic cautionary tale in American tax history is the gangster who was untouchable on every charge except the one the IRS brought: failing to report his income.

If you take only one thing from this article, take this: an unpermitted rental does not give you permission to hide the income. Report every dollar. The loophole is a question about how your losses are characterized, never a license to omit revenue.

Because the income side is non-negotiable, the practical question for most owners isn't whether to report at all, it's whether the activity's losses (after depreciation, including any cost segregation) can offset their other income, and how much expense the law actually lets them deduct against that income. That is where illegality starts to bite, as the next section explains.

Where Illegality Actually Changes the Tax Math

There is a real, if narrow, place where the legality of the underlying activity changes your deductions. The most famous is Internal Revenue Code Section 280E, which denies business deductions for activities that consist of trafficking in controlled substances. It is the rule that crushes cannabis businesses, which can deduct cost of goods sold but little else. Section 280E is targeted and specific, and an ordinary short-term rental operating without a city permit is not trafficking in controlled substances, so 280E itself almost never applies to this fact pattern.

More broadly, the code disallows deductions for fines and penalties paid to a government for violating a law (Section 162(f)), and it disallows illegal bribes and kickbacks. Translated to short-term rentals, this means the fines your city levies for operating without a permit are not deductible, even though the ordinary operating costs of the rental, cleaning, supplies, utilities, mortgage interest, property taxes, and depreciation, generally remain deductible. So the cost of getting caught is non-deductible, while the cost of operating is, for now, still deductible.

  • Generally still deductible: cleaning, supplies, utilities, insurance, mortgage interest, property taxes, repairs, and depreciation, including accelerated depreciation from a cost segregation study.
  • Not deductible: government fines and penalties for operating without the required permit or in violation of zoning, under Section 162(f).
  • Watch carefully: any expense whose deductibility hinges on the activity being a legitimate trade or business if an examiner argues the operation was never a bona fide business.

The deeper, subtler risk is substantiation and characterization. An operation that is hiding from local authorities often hides from recordkeeping too. Owners running an unpermitted listing sometimes keep deliberately thin records, avoid a clear paper trail, or run the activity through informal channels. Weak records are the single most common reason taxpayers lose deduction and material-participation fights in Tax Court, and that weakness is independent of zoning. An examiner who senses the operation was run off the books may also challenge whether it rises to the level of a genuine trade or business at all, which is the foundation the entire loophole stands on.

The Practical Risks That Undermine the Strategy

Even granting that the federal tests don't reference local legality, operating an unpermitted short-term rental is a structurally fragile way to pursue the loophole, because the local risks feed straight back into the tax position. The two systems are legally separate but practically entangled. Consider how a single enforcement action can damage your federal numbers.

Suppose your city sends a cease-and-desist in July and you're forced to take the listing down. You now have a partial year of operation. If the property only racked up a handful of bookings before the shutdown, your material-participation hour count for the year may fall short of every test you were targeting, because there simply wasn't enough year left to accumulate hours. Worse, a short, interrupted booking history makes your 7-day average far more sensitive to a single long stay; one 14-night reservation in a thin year can drag your average over the line and collapse the loophole entirely. The legal shutdown becomes a tax failure.

Local-law exposure

  • Cease-and-desist and forced delisting
  • Per-day fines that compound quickly
  • Loss of any future permit eligibility
  • HOA litigation or special assessments
  • Platform delisting once flagged

How it bleeds into your taxes

  • Partial year may miss material-participation hours
  • Thin booking history breaks the 7-day average
  • Fines are non-deductible under 162(f)
  • Off-the-books operation weakens substantiation
  • Bona-fide-business status gets questioned

There is also the matter of depreciation and cost segregation. The loophole becomes truly powerful when you pair material participation with accelerated depreciation: a cost segregation study reclassifies building components into shorter 5-, 7-, and 15-year lives, and those shorter-life assets can qualify for 100% bonus depreciation, producing a large first-year loss. To take that loss against your other income, the property must be placed in service, meaning ready and available to rent, and you must clear material participation. A property that is shut down, or that you delist out of caution, may struggle to establish a clean placed-in-service date and a defensible hour log. You can spend real money on an engineered study only to find the legal fragility prevents you from using the deduction.

The Self-Rental and 'Make It Legal on Paper' Traps

Owners sometimes try to engineer their way around the local problem with structures that look clever but don't accomplish what they hope. The most common is renting the property to their own LLC or management company, on the theory that this somehow launders the arrangement or sidesteps the permit issue. It does neither. Under the self-rental rules of Section 469, net rental income from property you rent to an activity in which you materially participate is recharacterized as non-passive, while the losses generally stay passive, the opposite of what you want. Renting an STR to your own company does not create a tax-free arrangement and usually does not help the loophole at all.

Equally important, no tax structure makes an unpermitted rental permitted. An LLC, a management agreement, or a creative lease does nothing to satisfy your city's zoning, your HOA's covenants, or the local licensing cap. The local rulebook doesn't care what entity is on the listing. Re-papering ownership to chase a tax outcome while ignoring the land-use violation usually just adds complexity and cost without removing either the legal exposure or the practical fragility we described above.

If the genuine goal is to run a durable short-term rental strategy, the cleanest path is almost always to operate where short stays are actually allowed, or to bring the property into compliance, rather than to architect a tax structure around a local violation. The loophole is far more defensible on a property nobody can shut down in July.

Protecting the Tax Position You Do Have

Whatever the local status of your property, the federal side of the loophole lives or dies on two pieces of evidence: a clean average-stay calculation and a credible, contemporaneous material-participation log. These are exactly the items an examiner scrutinizes, and they are exactly the items owners most often fail to keep, doubly so for an operation being run quietly. If you are going to report this activity (and you must), the least you can do is make the federal numbers airtight.

  • Report 100% of the rental income, every booking, regardless of permit status.
  • Calculate your average guest stay per property: total nights divided by number of separate reservations, and confirm it lands at seven days or fewer.
  • Keep a contemporaneous log of your material-participation hours rather than reconstructing them at tax time.
  • Tag every task by who performed it (you, your spouse, a cleaner, a co-host, a property manager) so you can prove you out-participated everyone else for the 100-hour test.
  • Document a clear placed-in-service date: when the property was first listed and available to rent.
  • Retain receipts and invoices substantiating ordinary operating expenses and any cost segregation study.
  • Treat any city fines as non-deductible and keep them out of your expense column.
  • Consult a local land-use attorney about the legal exposure separately from your tax advisor.

This is precisely the recordkeeping problem REP Helper was built to solve. It calculates your running average guest stay per property directly from your bookings, so you know in real time whether you are under the seven-day line and a few longer reservations don't quietly push you over. It lets you log material-participation hours contemporaneously by phone, voice, or web, and it tags each activity by who performed it, you, your spouse, the cleaner, the co-host, or the property manager, which is exactly the evidence the 100-hour test demands.

Because illegality so often goes hand in hand with thin records, that contemporaneous, person-tagged log is even more valuable here than usual. The cost segregation study itself is done by a specialist engineering firm; REP Helper's role is to prove the material participation and the qualifying average stay that let you actually use the accelerated depreciation, and to keep your placed-in-service date and supporting evidence in CPA-ready form. None of that fixes the local permit problem, but it ensures that the part of your position the IRS controls is as strong as it can be.

The Honest Bottom Line

So, can you claim the short-term rental loophole on an unpermitted rental? On the federal tax mechanics alone, the answer is generally yes: the 7-day average test and the material-participation tests do not depend on local legality, your income is taxable either way, and your ordinary operating expenses (including depreciation and cost segregation) generally remain deductible while only fines and a narrow category of truly illegal-activity expenses are denied. The loophole is a question of how your losses are characterized, not a permission slip from your city.

But that is a narrow and somewhat academic yes, and it should not be read as a green light. Operating without the permits your jurisdiction requires invites shutdown, compounding fines, HOA conflict, and platform delisting, and every one of those local consequences can sabotage the very federal numbers you are relying on, by cutting your year short, breaking your average, or undermining your records. The strategy that looks identical on paper is dramatically more durable on a property nobody can pull offline in the middle of the year.

The measured takeaway: don't hide the income, don't deduct the fines, keep impeccable contemporaneous records, and get separate, qualified advice on both the tax position and the land-use exposure. The most reliable way to claim the loophole is to operate somewhere it is actually allowed.

Frequently Asked Questions

Q: My city banned short-term rentals after I bought. Does that mean I can't use the STR loophole?

A: Not as a matter of federal tax law. The 7-day average test in Reg. 1.469-1T(e)(3) and the material-participation tests in Reg. 1.469-5T do not reference local permits or zoning, so if your average stay is seven days or fewer and you materially participate, the federal characterization can still apply. The ban is a serious local problem, however: it exposes you to fines and forced shutdown, and a mid-year shutdown can wreck your hour count and your average, which indirectly destroys the tax position. The two systems are separate, but practically entangled.

Q: Do I really have to report income from a rental I'm not supposed to be running?

A: Yes, without exception. The tax code reaches income from whatever source derived, including income earned in violation of local law or even criminal law. Omitting it is underreporting, which carries accuracy and fraud penalties and, in serious cases, criminal exposure far worse than a zoning citation. The unpermitted status of your rental never converts taxable income into untaxable income.

Q: Can I deduct my normal expenses and depreciation on an unpermitted rental?

A: Generally yes for ordinary operating expenses, cleaning, supplies, utilities, insurance, mortgage interest, property taxes, repairs, and depreciation, including accelerated depreciation from a cost segregation study. What you cannot deduct are the fines and penalties the government charges you for operating illegally (Section 162(f)). The targeted disallowance under Section 280E applies to controlled-substance trafficking, not to an ordinary rental missing a city permit. The bigger practical risk is weak substantiation, which sinks deductions regardless of zoning.

Q: Would renting the property to my own LLC fix the legality or improve the loophole?

A: No on both counts. The self-rental rule in Section 469 recharacterizes net income from property rented to an activity you materially participate in as non-passive while leaving losses passive, the opposite of helpful, so it generally hurts rather than helps the loophole. And no entity structure makes an unpermitted rental permitted; your city's zoning and your HOA's rules don't care which LLC holds the listing. It adds cost and complexity without removing the exposure.

Q: If the federal tests don't care about legality, why not just operate without a permit?

A: Because the non-tax risks are real and they feed back into your taxes. You face cease-and-desist orders, per-day fines, HOA litigation, and platform delisting, and a shutdown partway through the year can leave you short on material-participation hours and skew your 7-day average, collapsing the very loophole you were chasing. A property that can be pulled offline in July is a fragile foundation for an aggressive depreciation strategy. The durable move is to operate where short stays are actually allowed and get separate qualified advice on both the tax and land-use questions.

About the author

Carlos Lourenço
Carlos Lourenço

Real Estate Investor · Founder, REP Helper

Carlos Lourenço is a real estate investor and the founder of REP Helper. Over 10+ years he's built a portfolio of long- and short-term rentals across several states, personally qualifying for Real Estate Professional Status (REPS) and running the short-term-rental strategy on his own properties. A product manager by trade, he built REP Helper after years of tracking his own hours and IRS tests by hand.

Connect on LinkedIn

Disclaimer: Carlos Lourenço is a real estate investor, not a CPA, enrolled agent, or tax attorney. This article is for educational purposes only and is not tax, legal, or financial advice. Tax outcomes depend on your specific facts and on current law, which changes. Always consult a qualified CPA or tax attorney before implementing any tax strategy.

Ready to StartQualifying?

Join thousands of real estate professionals who are tracking their hours and building IRS-ready documentation with REP Helper.

Get Started