Skip to main content
All guides
Renting & City Housing

Illegal Units, Basement Apartments, and Certificates of Occupancy

An unpermitted apartment is one occupied without the zoning approval, permits, or certificate of occupancy the local code requires. The tenant's position varies sharply by state.

The short answer

An illegal unit is one lived in without the zoning approval, permits, or certificate of occupancy local law requires, and the tenant's rights in one depend heavily on the state.

Basement apartment with a small below-grade window, low ceiling, and exposed pipes beside a stairwell exit
Illustration by Citywide Editorial Team.

Key points

  • Certificates of occupancy, zoning approval, and building permits are local requirements, so what makes a unit illegal is defined by the city or county.
  • Egress windows, ceiling height, a second exit, light and ventilation, and fire separation are the failures that turn a basement into an unpermitted unit.
  • In many states a tenant in an unpermitted unit still has habitability rights and still cannot be locked out without a court eviction.
  • Some states bar collecting rent for an illegal unit or let tenants recover rent paid, while elsewhere an unenforceable lease can hurt the tenant too.
What's on this page
  1. What actually makes a unit unpermitted
  2. The failures that show up again and again
  3. The tenant's legal position cuts both ways
  4. What happens when the city finds out
  5. Checking a unit before you sign
  6. The legalization wave, and why it is uneven
  7. Common questions
  8. If you are already living in one

An "illegal" unit is not a moral judgment about the tenant. It is a code status: a space occupied as a dwelling without the zoning approval, building permits, or certificate of occupancy that the local code requires for that use. Converted basements, attics, garages, and rooms subdivided with a partition wall are the usual candidates. Because the requirements are municipal, the same physical apartment can be perfectly lawful in one town and unpermittable in the next. What follows is an honest look at the tenant's position, which is more mixed than either landlords or tenants usually assume.

Worth knowing: Nothing here is a national rule. Zoning, building codes, occupancy certificates, and the consequences of renting without them are set by your state and, far more often, your city or county. Landlord-tenant consequences are state law. Cornell's overview of landlord-tenant law gives the framework, not your local answer.

What actually makes a unit unpermitted

Three separate approvals are usually in play, and a unit can fail any one of them.

Zoning decides whether a second or third dwelling unit is allowed on that lot at all. A single-family zone that permits only one dwelling makes a basement apartment unlawful no matter how well it is built.

Building permits cover the physical work: framing, egress, electrical, plumbing, mechanical. Work done without permits is not inspected, and unpermitted work is what most often surfaces later.

The certificate of occupancy is the municipality's statement of the legal use of a building or unit. In many cities it names the number of dwelling units and sometimes the number of legal bedrooms. A basement listed as storage or as unfinished space is not a legal apartment, whatever the listing says.

Tip: Not every jurisdiction issues a certificate of occupancy for older buildings. Where none exists, ask the building department what the record use is and whether a rental registration, rental license, or housing inspection certificate is required instead. The name of the document varies more than the concept does.

The failures that show up again and again

  • Ceiling height below the minimum the code sets for habitable space.
  • No compliant egress window or door in a sleeping room, or a window well that cannot actually be climbed out of.
  • A single means of exit, often through the owner's own living space or past the furnace.
  • Inadequate natural light and ventilation for the floor area.
  • Missing fire separation between the unit and the rest of the building, or unprotected ceiling assemblies.
  • Rooms counted as bedrooms that do not meet the code's definition of a bedroom.
  • Missing or improperly located smoke and carbon monoxide alarms, especially near fuel-burning equipment.
  • Below-grade construction with chronic moisture and no drainage or vapor control.

The last two are not paperwork problems. Carbon monoxide risk near a furnace or water heater is a life-safety issue the CDC treats as a leading cause of preventable poisoning, and persistent below-grade dampness is exactly the moisture condition the EPA identifies as the root of indoor mold. If you already have damp or pests, our guide to bed bugs, mold, and pest infestations in rentals covers the repair route.

The tenant's legal position cuts both ways

This is where honest analysis matters, because the outcomes genuinely diverge by state.

Where the tenant is protected

In many states a tenant in an unpermitted unit is still a tenant. The warranty of habitability still applies, the landlord still cannot change the locks or remove belongings without a court eviction, and the landlord's own code violation is not a defense to those duties.

Where the landlord loses the rent

Some states and cities go further, barring an owner from collecting or suing for rent on an unlawful unit, and in places allowing tenants to recover rent already paid. The rationale is that courts will not enforce a contract for an unlawful use.

Where it backfires

The same "unlawful contract" reasoning can render the lease void or unenforceable in both directions, which can weaken a tenant's claim to remain, to a fixed term, or to protections tied to a valid lease. Illegality is a blunt instrument.

Where regulation is tied to legality

Rent regulation, registration schemes, and some just-cause protections may only reach lawful units, so an unpermitted apartment can sit outside the very systems that would otherwise help. See how those systems are structured in our rent regulation guide.

That last point is worth reading alongside our explainer on how rent control and rent stabilization differ, since coverage rules frequently turn on a unit's legal status. And because the lease itself may be doing less work than it appears to, review it with our guide to reading a residential lease before signing.

Careful: Reporting your own unit can end your housing. Code enforcement is aimed at the owner, but the remedy for an illegal dwelling is often to stop the dwelling use, which means you move. Before you file, find out whether your city requires relocation assistance and what your state says about rent recovery. Ask a local tenant organization or legal aid office first.

What happens when the city finds out

Discovery usually comes from a neighbor complaint, a fire or police response, a permit application on the property, an insurance inspection, or a housing authority inspection for a voucher tenancy. Voucher inspections in particular fail unpermitted units on egress and safety grounds, which is one reason voucher holders should verify legality early; see our guide to renting with a housing voucher and source-of-income rules.

  1. Inspection

    An inspector documents the use and the physical conditions, and issues violations to the property owner.

  2. Notice and order

    The owner is ordered to correct the violations, legalize the unit if that is possible, or discontinue the dwelling use. Fines and daily penalties are set locally.

  3. If conditions are dangerous

    A vacate order can issue quickly, sometimes immediately, where egress, fire separation, or fuel-burning equipment presents an imminent hazard.

  4. Relocation

    Some cities require the owner to pay relocation assistance to displaced tenants; many do not. This is one of the most locally variable pieces.

  5. Afterward

    Enforcement against the owner continues on its own track, and disputes over rent, deposits, and belongings are resolved separately.

If you are displaced in a hurry, property left behind becomes its own problem; our guide to storage of a tenant's belongings after a move-out explains the usual rules. Broader housing context sits in our renting and city housing section, and emergency housing resources are listed by HUD and through USA.gov.

Checking a unit before you sign

  1. Ask directly. Is this a legal, separately permitted dwelling unit, and may I see the certificate of occupancy or rental license? Note the answer in writing.
  2. Search the address online. Many building departments publish permit history, violation records, and occupancy documents in a public portal.
  3. Call the building or housing department. Ask how many legal dwelling units the property has and whether the space you are seeing is included.
  4. Check the zoning. Confirm the district allows the number of units present, including any accessory dwelling unit rules.
  5. Walk the exits. Stand in the sleeping area and identify two ways out. Open the egress window. Look for alarms near the furnace and water heater.
  6. Weigh it honestly. If the unit is unpermitted, decide with open eyes, knowing a vacate order is possible.

The legalization wave, and why it is uneven

As of mid-2026, a number of states and cities have moved in the opposite direction from strict enforcement, adopting accessory dwelling unit statutes, basement conversion pilots, and amnesty or legalization pathways meant to bring existing informal units into the permitted stock. The policy logic is that these apartments house people either way, and a legalized unit is a safer unit.

Progress is uneven for practical reasons. Retrofitting egress, ceiling height, and fire separation into an existing basement is expensive, and some conditions cannot be fixed at any reasonable cost. Flood risk, sewer backflow, and utility separation complicate below-grade conversions further. Neighborhood objections tend to arrive framed as parking or density concerns, occasionally as private nuisance claims. The result is a patchwork: real legalization programs in some cities, unchanged prohibitions a short drive away.

For a tenant, the practical takeaway is to ask whether your city has such a program before assuming the unit can never be made lawful. Where one exists, an owner facing violations may have a path to compliance that keeps you housed.

Common questions

I just learned my basement apartment has no certificate of occupancy. Am I about to be evicted?

Not automatically, and not by the landlord simply announcing it. In most states removing a tenant still requires a court eviction proceeding regardless of the unit's permit status, and self-help lockouts remain unlawful. The realistic risk is a municipal vacate order if the city inspects and finds a hazard. Find out whether your city has issued anything on the property, and ask a local tenant organization what your state does about rent and relocation.

Can I get back the rent I paid for an unpermitted unit?

Sometimes, and only under some states' law. A minority of jurisdictions bar an owner from collecting rent for an illegal dwelling and allow tenants to recover payments already made, reasoning that courts will not enforce an unlawful contract. Many states provide no such remedy, and a few would treat the lease as void in ways that also cost the tenant. Confirm your state's rule before relying on it or withholding rent.

How do I look up whether a unit is legal before I sign?

Start with the municipal building or housing department, in person, by phone, or through an online property records portal. Ask for the certificate of occupancy or record of legal use, the permit history for the address, and any open violations. Separately confirm with the zoning office that the number of dwelling units on the lot is permitted. Getting a written or printed record beats a verbal assurance from anyone selling you the unit.

If you are already living in one

  1. Pull the property's permit and violation history so you know what the city already knows.
  2. Fix the life-safety items you can address yourself, starting with working smoke and carbon monoxide alarms.
  3. Confirm your state's rules on rent recovery, lease enforceability, and lockouts before making any move.
  4. Find out whether your city requires relocation assistance after a vacate order.
  5. Talk to a local tenant organization or legal aid office before filing a complaint against your own unit.

Sources

  1. U.S. Department of Housing and Urban Development
  2. Cornell LII — Landlord-Tenant Law
  3. Cornell LII — Nuisance
  4. USA.gov
  5. Centers for Disease Control and Prevention
  6. EPA — Mold

This is general information, not legal advice. Citywide Legal Guide is a publication, not a law firm, and reading it creates no attorney–client relationship. Nearly everything here is set locally and differs between states, counties and cities — check the rules where you live or speak to a licensed attorney before acting.

Citywide

Citywide Editorial Team

Citywide is an independent guide to everyday legal questions. Every guide is researched against primary sources and revised when the rules change. How we source · Corrections