ReadYourLease.aiReview My Lease
Tenant Safety Guide

Illegal Rental Units & Tenant Protections

Millions of renters live in units that lack valid permits, certificates of occupancy, or legal zoning approval. You have rights — including rent refunds, eviction defenses, and relocation assistance — even in an illegal unit.

Rent Recovery Rights15-State Comparison TableEviction Defenses Covered

1. What Makes a Rental Unit Illegal

An “illegal” rental unit is one that cannot lawfully be occupied as residential housing under applicable local, state, or federal law. The illegality can stem from several distinct but often overlapping sources: zoning law, building code law, or certification requirements. Understanding which category applies to your situation determines what rights and remedies are available to you.

Zoning Violations

Zoning law divides municipalities into designated use districts — residential, commercial, industrial, agricultural, and various mixed-use zones. A rental unit is illegal under zoning law when it is located in a zone that prohibits residential occupancy entirely, or when the specific type of residential use (e.g., a single-family home used as a multi-unit rental) is not permitted in that zone.

Non-Residential Zone

A unit in an industrial, commercial, or warehouse district may be prohibited for residential use regardless of how it is configured or whether it has utilities. Living in a “live-work loft” in an industrial zone without a specific live-work permit is a classic example. Code enforcement can order vacating with limited notice.

Density Violation

A zoning district may permit residential use but limit it to single-family or two-family structures. When a landlord illegally subdivides a property to create additional units beyond what zoning allows, every extra unit is illegal regardless of how well it is built or whether it has its own permits.

Missing or Invalid Certificate of Occupancy

Most jurisdictions require a certificate of occupancy (C of O) — a document issued by the building department confirming that a space has been inspected, meets building code requirements, and is approved for a specific use. A unit is illegal when:

  • The building never obtained a C of O for the specific unit
  • The C of O covers a different use (commercial, storage) than residential occupancy
  • The C of O was issued for fewer units than are actually rented in the building
  • The C of O was revoked or expired and not renewed after major renovations
  • The unit was added after the C of O was issued without obtaining a new or amended permit

Building Code Violations

A unit may be technically permitted but still illegal to occupy if it fails to meet building code standards that are prerequisites for lawful habitation. Common building code violations that render a unit unlawful include:

Inadequate egress

Below-grade units require windows large enough for emergency exit — typically at minimum 5.7 sq ft opening, 24" height, 20" width, with sill no higher than 44" from floor (IRC R310). Basement apartments without compliant egress windows fail this standard.

Insufficient ceiling height

Most building codes require a minimum ceiling height of 7 feet in habitable rooms (IRC R305.1). Basement and attic conversions frequently fail this requirement and cannot legally serve as bedrooms or living areas.

Missing smoke and CO detectors

Smoke detectors are required in all sleeping rooms and on each level of a dwelling. CO detectors are required in units with gas appliances or attached garages in nearly all states. Missing detectors are code violations that affect habitability.

Unpermitted electrical wiring

Electrical work performed without permits and inspections — common in converted garages and basements — creates fire hazards and renders the unit non-compliant. Insurance companies frequently deny fire claims tracing to unpermitted electrical work.

Inadequate ventilation and natural light

Habitable rooms must receive natural light and ventilation. Units with windows that open only onto interior walls, air shafts, or other units — without sufficient openable area — may fail this requirement.

No separate plumbing fixtures

A legal residential unit must have its own toilet, lavatory, and bathing facility, or shared facilities meeting code. Units that share plumbing with the landlord's own residence in a code-non-compliant way are often illegal conversions.

Landlord Knowledge Is Not Required: A unit can be illegal even if the landlord genuinely believes it is legal. The landlord’s good faith is not a defense to your habitability and rent-recovery claims, though it may affect whether criminal penalties apply. What matters is the objective legal status of the unit, not the landlord’s subjective belief about it.

2. Common Types of Illegal Rental Units

Illegal units are more common than most renters realize. In New York City alone, the Department of Buildings estimates there are over 50,000 illegal basement apartments. Los Angeles and other California cities have hundreds of thousands of unpermitted ADUs and garage conversions. Recognizing the type of illegal unit you may be in helps you understand the specific risks and legal frameworks that apply.

Illegal Basement Apartments

High Risk

Basement apartments are the most common illegal unit type nationally. Legal below-grade units require egress windows, minimum ceiling height (7 ft for habitable space), proper ventilation and natural light, waterproofing, and a separate entrance or compliant shared egress path. Most informal basement conversions skip all of these. Flooding risk is a major additional concern — many illegal basement units sustain repeated flood damage because they were never engineered for water intrusion.

Common in: Especially prevalent in NYC, Chicago, Boston, Philadelphia, Baltimore

Garage Conversions Without Permits

High Risk

Attached and detached garages converted to living space without permits are extremely common in California, Texas, and the Pacific Northwest. Legal conversions require electrical upgrades, insulation meeting residential R-values, minimum ceiling height, egress windows in sleeping areas, dedicated heating and cooling, and in most jurisdictions, a change-of-use permit. Unpermitted garage conversions often lack insulation, have inadequate electrical panels, and were designed to house vehicles — not people sleeping and cooking.

Common in: Most common in CA, TX, WA, OR, FL

Attic Conversions

High Risk

Attic spaces converted to bedrooms or full units without permits frequently fail minimum ceiling height requirements (7 ft throughout habitable areas, with exceptions for sloped ceilings under IRC R305.1), egress window requirements, and staircase specifications. Fire egress from an attic is more complex than from ground-floor units; unpermitted attics often lack compliant escape routes entirely.

Common in: Common nationwide, especially older housing stock in Northeast

Illegal Subdivisions of Existing Units

Medium Risk

Large apartments or houses subdivided into smaller units by adding walls without permits are another widespread category. The additional units may share a bathroom with the original unit, lack proper fire separation between units (fire-rated assemblies), or exceed the building's permitted occupancy. In rent-stabilized buildings, illegal subdivisions can also disrupt rent registration records — with implications for what rent the tenant legally owes.

Common in: Most common in NYC, Chicago, Los Angeles, Boston

Commercial-to-Residential Conversions

Medium Risk

Former retail storefronts, office spaces, or warehouses marketed as "live-work lofts" or "artist studios" without a change-of-use permit and residential C of O are common in gentrifying urban neighborhoods. These units often lack residential fire suppression, have commercial electrical panels unsuited for residential loads, and are located in zones that require special permits for residential use. Tenants sometimes pay premium prices for these spaces without realizing their illegal status.

Common in: Common in NYC, LA, SF, Chicago, Seattle, Portland

Unpermitted ADUs (Accessory Dwelling Units)

Medium Risk

Backyard cottages, detached studios, and "in-law units" built without going through the permitting process are illegal regardless of how well-built they appear. California has dramatically streamlined ADU permitting since 2020 (Cal. Gov. Code § 65852.2), but millions of pre-existing unpermitted ADUs remain. An unpermitted ADU lacks verified electrical, plumbing, and structural inspections. Many are excellent units that would easily pass inspection; others have serious deficiencies hidden by drywall.

Common in: Most common in CA, WA, OR, TX, AZ, FL

Just Because It Looks Nice Doesn't Make It Legal: Illegal units are frequently well-finished and comfortable. A freshly renovated basement apartment with stainless steel appliances is still illegal if it lacks proper egress windows and building permits. Appearance and legal status are entirely separate. The danger is not always visible — it often lies in the electrical panel, the fire separation walls, or the lack of documented inspection.

3. Certificate of Occupancy: The Key Document

The certificate of occupancy (C of O) is the single most important document for determining the legal status of a rental unit. It is issued by the local building department after a final inspection confirms that construction or renovation complies with all applicable codes and the space is safe for its designated use. For residential rental units, a valid C of O confirming residential occupancy is required in the vast majority of U.S. jurisdictions before rent can legally be collected.

What the C of O Establishes

Legal Occupancy Type

The C of O specifies whether the space is approved for residential, commercial, industrial, or mixed use. A space with a C of O marked “commercial” cannot lawfully be rented as a residence, even if it has a kitchen and beds. Many illegal live-work lofts and converted storefronts fall into this category.

Maximum Occupancy

The C of O establishes the maximum number of dwelling units for the building and the maximum occupancy per unit. A building with a C of O for four units that has been subdivided into eight is operating illegally for the four extra units, regardless of how well they are finished.

Building Code Compliance Date

The C of O records the date of completion and the code cycle under which the building was approved. Older buildings may have C of Os under older code versions. In rent-stabilized markets (especially NYC), the C of O date determines what rent stabilization rules apply, making it legally significant beyond just occupancy.

Unit Count and Configuration

The C of O lists how many units a building contains and their approved configuration. This is a critical check for tenants: if a building’s C of O lists 3 units but 5 are occupied, the 2 extra units are illegal. Rent stabilization eligibility in NYC hinges on this number.

How to Look Up C of O Status Online

1

New York City

nyc.gov/buildings (DOB BIS portal)

Search by address. Look for "Certificate of Occupancy" in the Building Information System. You can see the full C of O history and check whether additional units were permitted.

2

Los Angeles

ladbs.org (LADBS permit portal)

Search permits and approvals by address. The Department of Building and Safety maintains records of all residential permits, C of Os, and code enforcement actions.

3

Chicago

chicago.gov/permits (Chicago permit portal)

The Department of Buildings maintains a permit and inspection history. Use the "building violations" search to find any active code enforcement on a property.

4

San Francisco

sfdbi.org (DBI permit portal)

San Francisco's Department of Building Inspection maintains searchable permit records, inspection reports, and Notice of Violation histories.

5

All Other Cities

Your county assessor or city hall website

Search "[your city] building department" or "[your county] permit search." Most jurisdictions now have online permit portals. If not, call the building department directly — C of O lookups are a public records request.

The Legal Consequence of No C of O

In most states, a landlord who rents a unit without a valid C of O is in violation of law and may face significant legal consequences. In New York, Multiple Dwelling Law § 302-a makes it a criminal misdemeanor for a landlord to collect rent for a unit in a building that does not have a valid C of O. Beyond criminal liability, NYC MDL § 302-a(3) provides that a landlord of a C of O-deficient building cannot maintain any proceeding to recover rent. California law (Cal. Health & Safety Code § 17920.3) lists the failure to have a valid permit as one of the conditions that can render a dwelling substandard.

Never Assume the C of O Covers Your Unit: A building may have a valid C of O — for 4 units — while 6 units are occupied. The C of O covers only the units it lists. If your unit is the “extra” one created by an illegal subdivision or conversion, you are in an illegal unit even if the building itself has a C of O. Always check whether the specific space you are renting is included.

4. Tenant Rights in Illegal Units

Living in an illegal unit does not mean you forfeit your tenant rights. Courts and legislatures in most states have rejected the idea that a tenant in an illegal unit is in a legal no-man’s-land. The dominant legal principle is that a landlord cannot benefit from its own illegal acts — it cannot simultaneously collect rent and escape the responsibilities that come with being a landlord.

The Implied Warranty of Habitability

In virtually every state, landlords owe tenants an implied warranty of habitability — a non-waivable legal obligation to maintain rental units in a condition fit for human habitation. This warranty is implied by law into every residential lease; it cannot be waived by contract. Courts in California (Green v. Superior Court, 1974), New York (Park West Management Corp. v. Mitchell, 1979), and Illinois (Jack Spring, Inc. v. Little, 1972) established this doctrine decades ago, and all 50 states now recognize some form of it.

For illegal units, the habitability warranty is particularly potent because an illegal unit is, by definition, one that has not been certified as safe for human habitation. A missing C of O, unpermitted electrical work, inadequate egress, or substandard structural conditions all constitute breaches of the habitability warranty — even if the landlord is unaware of the specific deficiency.

Rights You Retain in Any Rental Unit — Legal or Not

  • The right to a written notice before eviction and a court hearing before removal
  • The right to assert the implied warranty of habitability as a defense to non-payment eviction
  • The right to sue for rent restitution and damages for habitability failures
  • Protection against retaliatory eviction after reporting code violations
  • Protection against illegal self-help eviction (lockouts, utility shutoffs)
  • The right to receive your security deposit back at move-out (less lawful deductions)
  • Fair housing protections against discrimination based on protected class
  • The right to organize with other tenants and form or join a tenant union

Anti-Retaliation Protections

One of the most critical protections for tenants in illegal units is protection against retaliatory eviction. If you report your unit’s illegal status to code enforcement, the building department, or a housing court — and your landlord then tries to evict you, raises your rent, or reduces services — that is likely retaliatory, and it is illegal.

California Civil Code § 1942.5 prohibits retaliatory eviction and creates a rebuttable presumption that any eviction notice served within 180 days of a tenant’s complaint to a government agency is retaliatory. New York Real Property Law § 223-b similarly creates a presumption of retaliation. Most states have comparable statutes. The practical consequence: if you report your landlord to code enforcement and receive an eviction notice within 3–6 months, you have a strong legal defense and may be entitled to affirmative damages.

Document Everything from Day One: Keep copies of your lease, any listing advertisements for the unit, your move-in checklist, every rent payment receipt, and any written communications with your landlord about conditions in the unit. If you later need to sue for rent recovery or assert a habitability defense, this documentation will be the foundation of your case. Email is especially valuable — it creates a timestamped record of what the landlord knew and when.

5. Rent Recovery and Refund Rights

One of the most powerful tenant remedies in illegal unit cases is the right to recover rent already paid. The legal theory is straightforward: if a landlord rents an illegal unit, the consideration for your lease payment — lawful residential occupancy — either never existed or was fundamentally deficient. Depending on the jurisdiction, this gives you one or more independent legal grounds to demand restitution.

Legal Theories for Rent Recovery

1. Breach of Implied Warranty of Habitability

Every residential lease carries an implied warranty that the unit is habitable. An illegal unit, by definition, has not been certified as meeting habitability standards. Breach of this warranty entitles the tenant to rent abatement — a court-ordered reduction in rent proportional to the severity of the deficiency. In some states, a total breach (the unit is completely uninhabitable) allows recovery of all rent paid. In others, recovery is limited to the difference between the rent paid and the unit’s actual rental value in its deficient condition.

2. Unjust Enrichment / Quasi-Contract

Where the lease itself is void or voidable because the rental was illegal, a tenant can sue on a quasi-contract theory: the landlord was unjustly enriched by receiving rent payments for a space that could not lawfully be rented. New York courts have used this theory extensively. The tenant need not prove the landlord acted fraudulently — only that the landlord received a benefit (rent) for something it had no right to provide (legal residential occupancy).

3. Fraudulent Misrepresentation

If your landlord knew the unit was illegal when you signed the lease and did not disclose it — or affirmatively represented it as legal — you have a fraud or negligent misrepresentation claim. This theory can support recovery of all rent paid, plus consequential damages (costs of moving, replacement housing, medical costs for conditions caused by the illegal unit), and potentially punitive damages where willful concealment is proved.

4. Statutory Rent Refund Claims

Several states have specific statutes authorizing rent refund claims. California Civil Code § 1942.4 bars a landlord from demanding or collecting rent for a unit with unrepaired habitability defects (including permit deficiencies) and gives tenants a right to sue for rent paid in violation. New York MDL § 302 renders rent collected for an illegal unit non-recoverable by the landlord. Massachusetts G.L. ch. 239 § 8A permits tenants to withhold rent and obtain court-ordered abatement for code violations that affect habitability.

How Much Can You Recover?

The measure of recovery depends on the legal theory and the jurisdiction:

Legal TheoryTypical RecoveryWhere Available
Warranty of habitability breach (partial)Proportional rent abatement (10%–100% of rent paid)All states with habitability statutes
Warranty of habitability (total failure)Up to 100% of all rent paid while conditions existedCA, NY, IL, MA, WA, OR, CO, NJ
Unjust enrichmentAll rent paid minus the fair market value of the unit as-isNY, CA, MA, IL, NJ, PA
Fraudulent misrepresentationAll rent + consequential damages + possible punitive damagesAll states; proof standard varies
Statutory rent claim (e.g., CA Civ. Code § 1942.4)Actual damages + attorney fees + statutory penaltyCA, NY, IL, WA, MA, NJ (state-specific)

Practical Steps to Pursue Rent Recovery

1

Calculate your total rent paid

Add up every rent payment since your move-in date. Include any security deposit, last month's rent paid upfront, and any additional fees charged monthly.

2

Document the illegal condition

Obtain public records confirming the unit's illegal status: C of O records showing the unit is excluded, building department violations, zoning maps showing non-residential designation. Screenshot and print everything.

3

Send a certified-mail demand letter

Notify your landlord in writing of the illegal status, your legal basis for rent recovery, and a demand for refund. Set a 15–30 day deadline. This creates a formal record of demand and starts any attorney-fee clock.

4

Consult a tenant attorney

Many tenant attorneys take illegal unit rent recovery cases on contingency (no upfront fee) because they can also recover attorney fees under consumer protection statutes. Free consultations are widely available.

5

File in small claims court for smaller amounts

Many states' small claims courts can hear claims up to $10,000–$25,000. For a year of rent at $1,000/month or less, small claims may be your fastest path. You do not need a lawyer in small claims.

Attorney Fees Are Often Available: In states like California (Cal. Civ. Code § 1942.4), New York, New Jersey, and Massachusetts, statutes that prohibit renting uninhabitable or illegal units include attorney-fee provisions. This means a successful tenant can not only recover rent but also have the landlord pay their legal costs. These fee-shifting provisions make it economically viable for tenant attorneys to take even moderate-value cases.

6. Habitability Standards in Illegal Units

The habitable condition standard applies to all rental units — legal or not. A landlord cannot escape habitability obligations simply because the unit was never permitted. The habitability standard describes the minimum physical conditions a rental unit must maintain. Violations of this standard support rent withholding, abatement, lease termination, and damages claims regardless of the unit’s permit status.

Federal and State Minimum Habitability Standards

While there is no single federal habitability standard for private rentals (the federal government sets standards for HUD-subsidized housing and Section 8 units), nearly every state has codified minimum habitability requirements. The most widely applicable standards include:

Weatherproofing

Effective waterproofing and weather protection of roof and exterior walls; unbroken windows and doors. Basement units that flood repeatedly fail this standard.

Plumbing and Hot Water

Working plumbing, hot and cold running water, and water heaters meeting minimum temperature requirements (typically 120°F for hot water delivery). A unit sharing plumbing in an uncoded manner often fails.

Heating

Adequate heating facilities capable of maintaining a specified minimum temperature (typically 68°F in habitable rooms during cold months). Most states define this by statute; NYC sets 68°F daytime / 62°F nighttime minimums (NYC Admin Code § 27-2029).

Electrical Wiring

Electrical lighting with wiring and electrical equipment that conform to applicable law at the time of installation and are maintained in good working order. Unpermitted wiring that fails this standard is a habitability violation.

Natural Light and Ventilation

Habitable rooms must have windows providing natural light and ventilation. Rooms with windows opening only into interior spaces — common in illegal basement conversions — fail this standard.

Free from Infestation

Units must be free from rodents, cockroaches, bed bugs, and other vermin. Landlords in most states are responsible for extermination regardless of unit legality. NYC RPAPL § 235-b codifies this.

Structural Safety

Floors, walls, ceilings, and the building structure must be in good repair, able to bear their intended load, and free from conditions that endanger the health or safety of occupants.

Operable Fire Safety Equipment

Working smoke detectors, carbon monoxide detectors (where gas appliances or attached garages exist), accessible fire extinguishers in multi-family buildings, and unobstructed fire egress paths.

Specific Habitability Issues Common in Illegal Units

Illegal units have a higher prevalence of habitability defects because they were never subjected to the inspection and verification processes that legal units must pass. The most common habitability failures in illegal units are:

Flooding and Water Intrusion

Critical

Below-grade illegal units are at disproportionate risk of flooding. In 2021, more than a dozen tenants in NYC illegal basement apartments died in flooding from Hurricane Ida — a direct consequence of living in below-grade units without proper drainage, pumps, or egress. Water intrusion also promotes mold growth, which is itself a separate habitability violation under many state codes.

Carbon Monoxide Exposure

Critical

Unpermitted garages converted to living spaces frequently lack CO detectors and may have heating or hot water systems venting into the living space. CO is odorless and kills quickly. This is a life-safety issue, not just a code technicality.

Fire Trap Conditions

Critical

Illegal units frequently lack the fire-rated assemblies (fire-resistant walls, floors, and ceilings) required to separate dwelling units from each other and from mechanical spaces. This allows fires to spread rapidly. Combined with inadequate egress windows, this creates fire trap conditions.

Mold and Moisture

High

Units without adequate waterproofing, ventilation, and insulation develop chronic moisture problems. Mold in concentrations above approximately 100 spores/m³ can trigger respiratory illness. Many states explicitly list mold as a habitability condition. California Health & Safety Code § 17920.3 lists visible mold as a substandard condition.

Lead Paint Exposure

High

Buildings constructed before 1978 — which encompasses most older housing stock where illegal conversions occur — may contain lead paint. Federal law (40 CFR Part 745) requires lead-paint disclosure before rental. Unpermitted conversions frequently disturb lead paint during renovation without the required EPA RRP Rule-compliant procedures.

Life-Safety First, Legal Rights Second: If your illegal unit has conditions that pose an immediate risk to your life — flooding, fire trap conditions, CO exposure, structural danger — get yourself and your family out first. Your legal rights to rent recovery and relocation assistance can be pursued from a safe location. No financial claim is worth your life. Call 911 or your local fire department if there is an immediate danger.

7. Eviction Protections for Tenants in Illegal Units

Being in an illegal unit does not mean you can be evicted at will or without notice. In most states, the formal eviction process — notice, court filing, hearing, judgment, and marshal execution — applies equally whether the unit is legal or illegal. Your landlord cannot use the unit’s illegal status as a shortcut to remove you without following the law.

Your Core Eviction Procedural Rights

Eviction Protections That Apply in Illegal Units:

  • Right to written notice before eviction proceedings begin (typically 3–30 days depending on state and eviction type)
  • Right to a court hearing before a judge or magistrate prior to any removal order
  • Right to raise habitability, anti-retaliation, and illegal unit defenses in eviction court
  • Right to a marshal or sheriff execution only after a court-ordered judgment — no self-help eviction
  • Protection against illegal lockout, utility shutoff, or property removal as eviction tactics
  • Anti-retaliation protection if eviction follows your code complaint within 90–180 days
  • Right to cure any lease violations before eviction for non-payment in states with cure periods

Using Illegal Unit Status as an Eviction Defense

If your landlord files for eviction — whether for non-payment, lease expiration, or any other reason — the illegal status of the unit is a powerful affirmative defense you can raise in housing court. Depending on the jurisdiction, this defense can result in:

1

Dismissal of the eviction case

In New York, a landlord cannot maintain a non-payment eviction proceeding for a unit without a valid C of O (NYC MDL § 302). Courts regularly dismiss eviction cases brought on behalf of illegal units. The landlord's eviction proceeding is dismissed, not just delayed.

2

Rent abatement counterclaim

You can bring a counterclaim against the landlord within the same eviction proceeding, seeking repayment of rent previously paid for the illegal or uninhabitable unit. The court handles both the landlord's eviction claim and your abatement claim together.

3

Stay of eviction pending repairs

Courts frequently stay (pause) eviction proceedings pending landlord completion of repairs to bring the unit into compliance. This can give you months of additional time in the unit.

4

Reduction to month-to-month tenancy with protections

Where the court finds the unit illegal but not immediately dangerous, it may convert your tenancy to a month-to-month arrangement with enhanced notice and relocation assistance requirements before the landlord can proceed.

Just-Cause Eviction and Illegal Units

In states and cities with just-cause eviction laws — Oregon (statewide, SB 608), California (AB 1482 for covered units), New Jersey (Anti-Eviction Act, NJ Stat. Ann. § 2A:18-61.1), Philadelphia, Seattle, and others — landlords must have a specific legally recognized reason to evict a tenant. The mere fact that a unit is illegal is generally not a just cause for eviction in these jurisdictions. Landlords in just-cause cities must either legalize the unit, obtain a government vacate order (which triggers relocation assistance), or wait for another just-cause reason to arise.

Illegal Self-Help Eviction: What It Is and What to Do

Self-help eviction — changing locks, removing your belongings, shutting off utilities, or physically removing you without a court order — is illegal in all 50 states, regardless of whether your unit is legal or not. Landlords who attempt self-help eviction in illegal units sometimes believe the illegal status of the unit gives them extra license to act outside the law. It does not.

If you are subjected to an illegal lockout or self-help eviction:

  • Call police — in most jurisdictions, illegal lockout is a criminal trespass or criminal conversion
  • Document everything: photograph the changed lock, removed belongings, shut-off utilities
  • Contact a tenant attorney or legal aid immediately — many can obtain emergency court orders restoring your possession within 24–48 hours
  • File an emergency motion in housing court for a Temporary Restraining Order (TRO) restoring possession
  • Preserve your right to damages — most states allow actual damages, punitive damages, and attorney fees for illegal lockouts
Do Not Abandon Possession Without Legal Advice: One of the most common mistakes tenants in illegal units make is voluntarily vacating when pressured by a landlord — even without a court order. Once you leave, it becomes much harder to assert possession rights, claim relocation assistance, or bring an illegal lockout claim. Stay in the unit, document everything, and get legal advice before moving.

8. Landlord Liability: Civil and Criminal

Landlords who rent illegal units face civil liability to tenants and potential criminal penalties from the government — and these exposure categories are independent of each other. A landlord can be criminally prosecuted by the city while simultaneously defending a civil lawsuit from the tenant. Understanding the full scope of landlord liability helps you evaluate your legal position and the leverage you have in any negotiation.

Civil Liability to Tenants

Rent Restitution

The landlord may owe all or a significant portion of rent paid during the period the unit was illegal. Depending on the duration of the tenancy, this can be a substantial sum. Courts in New York have ordered landlords to refund years of rent for units lacking a valid C of O.

Personal Injury Damages

If you sustained personal injury as a result of conditions that the permit and inspection process would have caught — a fire from unpermitted wiring, a fall from an unsafe staircase, CO poisoning from a vent-less heater — you have a negligence claim against the landlord independent of habitability law. The landlord’s duty of care is established by the building code violation itself under the doctrine of negligence per se in most states.

Punitive Damages

Where the landlord’s conduct was willful or wanton — knowingly renting an illegal unit while concealing its status, or retaliating against a tenant for complaining — courts in many states will award punitive damages beyond compensatory recovery. California, New York, New Jersey, and Illinois all recognize punitive damages in egregious landlord misconduct cases.

Attorney Fees

California Civil Code § 1942.4, New York’s RPL § 234, New Jersey’s Truth-in-Renting Act, the Chicago RLTO, and numerous other state and local statutes shift attorney fees to the landlord when the tenant prevails on a habitability or illegal unit claim. This fee-shifting provision makes it possible for tenant attorneys to take smaller-dollar cases on contingency.

Criminal and Administrative Liability

Beyond civil liability to tenants, landlords of illegal units face administrative fines, criminal penalties, and forced remediation by government authorities:

Administrative Fines and Daily Penalties

Building departments typically issue Notices of Violation with fines that accrue on a per-day basis until corrected. NYC DOB fines for illegal conversions start at $1,000 per unit per week. Los Angeles LADBS fines can reach $1,000/day. Persistent violations can result in liens on the property and, ultimately, forced sale or receivership.

Criminal Misdemeanor or Felony Charges

NYC MDL § 302-a makes collecting rent for a unit without a valid C of O a misdemeanor. California Health & Safety Code § 17995 makes willful and knowing violations of housing law a misdemeanor. When an unpermitted unit causes injury or death — as in the 2021 NYC Ida flooding deaths — prosecutors have pursued felony charges for criminally negligent homicide.

Permit Revocation and Stop-Work Orders

Building departments can revoke existing permits and issue stop-work orders requiring all construction on the property to halt until violations are resolved. This can prevent the landlord from legalizing the unit while also blocking other planned renovations.

Tax Liability

Landlords who collect rent for illegal units and fail to report it as income face tax fraud exposure. Additionally, discovery of illegal units can trigger property tax reassessment — the assessor may determine that the building’s actual use (more units than listed) warrants a higher assessed value.

Insurance Coverage for Landlords Is Also Affected: A landlord’s property insurance policy typically covers only legal occupancy. If a fire or other covered event occurs in an illegal unit, the landlord’s insurer may deny the claim for the illegal portion of the structure — leaving the landlord personally liable for the full cost of damage, including your displaced living expenses. This is a significant additional leverage point in any negotiation.

9. City Enforcement and Relocation Assistance

City and county building departments, housing departments, and code enforcement agencies are independent actors in the illegal unit landscape — they can investigate and order units vacated regardless of whether a tenant has complained. Understanding how city enforcement works, when it triggers relocation assistance obligations, and how to navigate the process protects your interests if your unit comes under government scrutiny.

How City Code Enforcement Works

Complaint or Inspection Trigger

Code enforcement typically begins either from a tenant complaint, neighbor complaint, permit application triggering an inspection, or routine multi-family housing inspection. In major cities, tenant complaints are the most common trigger — which is why landlords of illegal units often pressure tenants not to call authorities.

Inspection and Notice of Violation

An inspector visits the property and documents violations. If the unit is illegal, the landlord receives a Notice of Violation (NOV) specifying the violations, the required corrections, and a compliance deadline — typically 30–90 days.

Compliance Period

The landlord has the opportunity to correct violations by legalizing the unit (obtaining permits and passing inspections) or removing the illegal use. For most illegal basement and garage conversions, legalization is possible but requires significant investment and may take 6–12 months.

Vacate Order (If Non-Compliant or Dangerous)

If violations are not corrected, or if the unit poses immediate life-safety dangers, the agency issues a Vacate Order requiring the unit to be vacated by a specified date. This is the point at which relocation assistance obligations are typically triggered.

Enforcement and Lien

Continuing violations result in escalating fines, permit revocation, and ultimately property liens or referral to the city attorney for legal action. Some cities have receivership programs under which the court appoints a receiver to manage distressed properties.

Should You Call Code Enforcement? The Strategic Decision

Whether to report your illegal unit to code enforcement is one of the most consequential decisions you can make as a tenant in this situation. There is no universally correct answer — it depends on your circumstances, your jurisdiction’s relocation assistance requirements, and your goals.

Reasons to Report

  • You are in genuine danger (flooding risk, fire hazard, CO exposure)
  • Your jurisdiction has strong relocation assistance obligations that trigger on a vacate order
  • You want to force the landlord's hand and end the tenancy on your terms
  • You plan to stay and want the unit legalized with proper repairs
  • You want to preserve an anti-retaliation defense for a future eviction proceeding

Risks to Consider

  • A vacate order may displace you faster than you can find replacement housing
  • In jurisdictions without relocation assistance, you may lose housing with no financial safety net
  • The landlord may attempt retaliation (though this is illegal, it is a real risk)
  • If you have lease violations yourself, code enforcement may expose them
  • The legalization process can take months, during which you may be in legal limbo

Relocation Assistance: What You May Be Owed

Relocation assistance is financial compensation paid by the landlord to tenants who are displaced due to code enforcement or government-ordered vacating. The amounts vary significantly by jurisdiction:

JurisdictionRelocation AmountTriggering EventStatute / Ordinance
Los Angeles, CA3–6 months equivalent rentVacate order from LADBS or Housing DepartmentLAMC § 47.06 and LARSO
San Francisco, CAVaries; typically 2–4 monthsEllis Act, code enforcement, or owner move-in with code violationsSF Admin. Code § 37.9C
New York City, NYTemporary housing costs + HPD assistanceHPD vacate order; NYC Admin. Code § 26-301NYC Admin. Code § 26-301 et seq.
Chicago, IL2 months equivalent rentCode enforcement displacement; RLTO triggerMCC § 5-12-130
Seattle, WA3 months equivalent rentCode enforcement-driven displacementSMC § 22.210.150
Oakland, CA3–6 months (income-based)Ellis Act or code enforcement displacementOakland Rent Adjustment Program
California (statewide)Minimum 1 month; local adds moreGovernment vacate order for substandard housingCal. Health & Safety Code § 17975.5
Most other statesNo statewide requirementN/A — some CDBG-funded programs availableCheck local ordinance
Demand Relocation Assistance in Writing Before Vacating: If you receive a government vacate order and your jurisdiction requires relocation assistance, send the landlord a certified-mail demand for the required payment before you leave. Do not vacate voluntarily and then try to collect — landlords sometimes argue that a voluntary departure waived the entitlement. Get the payment or a written commitment before surrendering possession.

10. State-by-State Comparison (15 States)

Illegal unit protections vary enormously by state and locality. Tenant-protective states like California, New York, New Jersey, and Oregon offer robust rent recovery rights, relocation assistance, and anti-retaliation protections. Landlord-favorable states like Georgia, Texas, and Arizona offer far fewer statutory remedies. The table below summarizes the landscape across 15 states.

StateIllegal Unit LawRent RefundEviction ProtectionRelocation Assistance
California (CA)Cal. Health & Safety Code §§ 17920.3, 17975–17975.5; Cal. Civ. Code § 1942.4Landlord cannot collect rent for uninhabitable or unlicensed unit; tenant may sue for full restitutionLandlord must follow just-cause eviction rules under AB 1482 where applicable; displacement triggers relocation assistanceRequired under H&S Code § 17975.5; local ordinances (LA, SF, Oakland) require 2–6 months
New York (NY)NYC MDL § 301 (certificate of occupancy required); Multiple Dwelling Law § 302-a (criminal penalty)Landlord cannot maintain rent claim for unit without valid C of O; tenant may recover all rent paidFull procedural eviction rights; Housing Court special proceedings for habitability violationsNYC Admin. Code requires temporary housing assistance upon HPD vacate order; 2 months equivalent rent
Illinois (IL)Chicago RLTO MCC §§ 5-12-110 to 5-12-130; Rent Withholding Act (765 ILCS 720/1)Chicago RLTO allows rent withholding and abatement for material code violations; citywide standardStandard procedural eviction rights; RLTO anti-retaliation provisions protect tenants who report violationsChicago RLTO § 5-12-130 requires 2 months rent when landlord is cause of displacement
New Jersey (NJ)NJ Admin. Code §§ 5:28-1.1 et seq. (Uniform Construction Code); municipal housing codesRent abatement and restitution available under Anti-Eviction Act and habitability doctrineAnti-Eviction Act (NJ Stat. Ann. § 2A:18-61.1) — just-cause only; no good-cause exception for illegal unitsNJ Stat. Ann. § 2A:18-61.2g requires relocation upon unilateral landlord termination due to code violations
Washington (WA)Wash. Rev. Code §§ 59.18.060–59.18.080 (Residential Landlord-Tenant Act); local building codesHabitability violations allow rent withholding after written notice; court may order abatementSeattle just-cause eviction ordinance (SMC 22.206.160) extends to code-enforcement displacementsSeattle requires 3 months rent relocation for code enforcement displacements; statewide minimum pending
Oregon (OR)Or. Rev. Stat. §§ 90.320–90.325 (habitability); local building codes; SB 608 (2019) statewide just-causeHabitability rent withholding after written notice and landlord failure to cure within 30 daysSB 608 statewide just-cause eviction law applies to all tenants after 12 months; code enforcement not a cause3 months rent if landlord terminates for code-enforcement reasons (SB 608)
Massachusetts (MA)Mass. Gen. Laws ch. 111, §§ 127A–127P (State Sanitary Code); G.L. ch. 239 § 8A (rent withholding)Tenant may deposit rent with court under G.L. ch. 239 § 8A; court orders abatement proportional to violation severityG.L. ch. 239 § 2A prohibits retaliatory eviction after tenant makes habitability complaint; 6-month presumptionLocal ordinances (Boston) require relocation assistance for code-enforcement displacements
Texas (TX)Tex. Prop. Code §§ 92.051–92.061 (habitability); Texas municipal building codesLimited: tenant may terminate lease after notice and landlord failure to cure habitability issuesNo statewide just-cause eviction; tenant must follow statutory repair notice proceduresNo statewide requirement; some municipalities (Austin, Dallas) have limited local programs
Florida (FL)Fla. Stat. §§ 83.51–83.67 (Florida Residential Landlord-Tenant Act); local housing codesTenant must give 7-day written notice and place rent in escrow after notice procedure; Fla. Stat. § 83.60No just-cause requirement statewide; Miami-Dade and some municipalities have local protectionsNo statewide relocation requirement; some programs available through county CDBG funds
Colorado (CO)Colo. Rev. Stat. §§ 38-12-501 to 38-12-511 (Warranty of Habitability Act 2008); local codesLandlord cannot collect rent for uninhabitable unit; tenant may terminate lease after notice under § 38-12-507Denver Tenant Protections Ordinance (2022) provides just-cause eviction for Denver tenantsDenver Ordinance provides relocation assistance equal to 3 months rent for no-fault terminations
Georgia (GA)O.C.G.A. §§ 44-7-13 to 44-7-14 (landlord repair duties); municipal housing codes in AtlantaVery limited; tenant may only terminate for total uninhabitability; no general rent abatement statuteNo just-cause requirement; summary dispossessory process is fast (7–14 days to trial)No statewide requirement; Atlanta has limited CDBG-funded relocation programs
Arizona (AZ)A.R.S. §§ 33-1314 to 33-1315 (Residential Landlord-Tenant Act); municipal building codesTenant must give 5-day written notice; can terminate after non-cure; limited rent abatement availableNo statewide just-cause; Tucson and Flagstaff have limited local tenant protectionsNo statewide requirement; limited emergency housing assistance through county programs
Michigan (MI)Mich. Comp. Laws §§ 554.139 (habitability covenant); state construction code Act 230Tenant may raise habitability as defense in summary proceedings; limited independent rent claimDetroit has local anti-displacement ordinances; statewide eviction procedure requires noticeDetroit Emergency Ordinance requires minimum 30-day relocation notice; no statewide standard
Minnesota (MN)Minn. Stat. §§ 504B.161 to 504B.211 (Tenant Remedies Act); state housing codeTenant Remedies Action allows court to issue rent abatement, repairs, and escrow ordersMinneapolis and St. Paul have just-cause eviction ordinances; retaliatory eviction prohibited statewideMinneapolis Tenant Remedies Act requires relocation assistance upon code-enforcement displacement
Pennsylvania (PA)Philadelphia PFCEHO (code enforcement); Pittsburgh LIHC; Act 129 (2004) statewide codePhiladelphia Implied Warranty of Habitability (since 1979, Pugh v. Holmes) supports rent abatementPhiladelphia Just Cause Eviction Ordinance (2019) protects tenants after 12 months occupancyPhiladelphia Code requires 30-day notice and relocation assistance for code-driven displacements

* This table summarizes key statutory frameworks. Local ordinances (e.g., NYC, Chicago RLTO, LA LARSO, Seattle, Oakland) often provide stronger protections than state law. Consult a local tenant attorney for jurisdiction-specific advice.

California Deep Dive: California has some of the strongest illegal unit protections in the nation. Cal. Health & Safety Code § 17920.3 lists conditions that make a dwelling substandard (including unpermitted work and lack of required egress), and § 17975.5 requires relocation assistance when the government orders a substandard unit vacated. Local ordinances in Los Angeles, San Francisco, Oakland, and San Jose add further layers — including significant relocation payments, permanent rent-control status for some illegal units in buildings constructed before 1978, and anti-retaliation periods of up to 12 months after a code complaint.

11. Red Flag Warning Signs Before You Sign

The best time to identify an illegal unit is before you sign the lease and pay a security deposit — not after. These eight red flags can help you spot problematic units at the application stage, when you still have the leverage to walk away or negotiate protections into the lease.

No Certificate of Occupancy Available

A landlord who cannot produce a certificate of occupancy for the specific space you are renting, or who provides only a partial or building-wide C of O that excludes your unit, is a major warning sign. Ask before signing, not after.

Unit Located in Basement, Garage, or Attic

Below-grade units, garage conversions, and attic spaces are the most frequently illegally converted residential spaces. Verify ceiling height (typically 7 ft minimum), legal egress windows, smoke and CO detectors, and separate metered utilities before signing.

Rent Significantly Below Market Rate

If the rent seems suspiciously low for the neighborhood and unit size, one explanation may be that the unit is illegal and the landlord is compensating for the risk. This can also void rent-control protections or indicate the landlord is trying to keep the unit off official records.

Landlord Discourages Guests or Inspections

Landlords of illegal units often discourage tenants from having frequent guests, hosting parties, or doing anything that might attract attention from neighbors or inspectors. Excessive restrictions on normal tenant behavior can signal an illegal occupancy.

Lease Describes Space as "Storage," "Workshop," or "Commercial"

If your lease agreement describes the unit as anything other than a residential dwelling — "storage room," "loft workspace," "commercial suite" — read it very carefully. Landlords sometimes use non-residential language to avoid residential tenant protection laws while effectively renting for housing.

No Separate Address or Unit Number

Legal residential units have distinct addresses recognized by the post office and city records. A unit listed as "basement" or "rear building" without a formal address may not exist as a legal rental in city records — check the building department portal.

Utilities Shared With Another Unit Without Agreement

When your gas, water, or electricity is shared with another unit and no formal sub-metering or cost-sharing agreement exists, it often means the utility infrastructure was not set up to support multiple independent units — a common indicator of illegal conversion.

Property Shows Fewer Units Than You Were Told

If public records (assessor data, building permits, rent stabilization registries) show the building contains fewer units than are actually occupied, the extra units are almost certainly illegal. Cross-reference what the landlord tells you with what city and county records show.

Five-Minute Pre-Signing Due Diligence Checklist

1

Search the building department portal

Type the property address into your city's building department portal. Look for: certificate of occupancy, permit history for the unit, and any active notices of violation or stop-work orders.

2

Verify the number of legal units

The C of O or permit records will show how many units the building is approved for. Count the units actually occupied. Extra units are illegal.

3

Check the zoning designation

Look up the property on your city or county planning/zoning map. Confirm that residential use is permitted in the zone.

4

Ask the landlord for the C of O

Request a copy of the current certificate of occupancy specifically covering the unit you are renting. A landlord who cannot or will not produce one has told you everything you need to know.

5

Measure the ceiling height

In basement and attic units, bring a tape measure. If the ceiling height is under 7 feet in the main living and sleeping areas, the unit likely fails code minimums.

6

Check egress windows in below-grade rooms

In basement units, verify that bedroom windows open outward or slide, have a minimum opening area of 5.7 sq ft, minimum height of 24 inches, and a sill no more than 44 inches from the floor.

7

Test smoke and CO detectors

Press the test button. Both should activate. If no CO detector is present and there is a gas appliance or attached garage, this is a code violation and a life-safety concern.

What to Do If You Are Already in an Illegal Unit

If you have already moved in and discovered the unit is illegal, your approach depends on your goal — do you want to stay and force legalization, or do you want to leave with maximum financial protection?

If You Want to Stay

  • Document all illegal conditions and send written notice to the landlord
  • Demand the landlord begin legalization process within a stated deadline
  • File a complaint with the building department to create official pressure
  • Consult a tenant attorney about rent withholding rights during legalization
  • Continue paying rent to avoid non-payment eviction while the process proceeds

If You Want to Leave

  • Research your jurisdiction's relocation assistance entitlements
  • Determine whether you can terminate the lease early based on habitability
  • Send a written demand for security deposit return before vacating
  • File a claim for rent restitution in small claims or housing court
  • Do not give the landlord more than one month's advance notice — it limits your leverage

12. Frequently Asked Questions

Can I be evicted just because my unit is illegal?
In most states, the fact that a unit is illegal does not give your landlord an automatic right to evict you without notice or process. Landlords who attempt to use an illegal unit designation as cover for an immediate lockout — changing the locks, removing your belongings, or shutting off utilities — are committing an illegal self-help eviction, which is itself a separate legal violation. Your landlord must still follow the jurisdiction's eviction procedures: proper written notice, a court filing, a hearing, and a judgment before a marshal or sheriff can require you to leave. In many cities, including New York (NYC MDL § 301), San Francisco, and Chicago, tenants in illegal units have the same procedural eviction rights as tenants in legal units. Some jurisdictions go further: they prohibit eviction of a tenant from an illegal unit until the city has first issued a relocation order and the landlord has paid relocation assistance. California law (Health & Safety Code § 17975 et seq.) creates specific protections for tenants displaced by code enforcement. If your landlord serves you with an eviction notice citing the unit's illegal status, do not vacate without consulting a tenant attorney. The illegality may actually give you leverage: in states like California and New York, a landlord who knowingly rented an illegal unit may owe you a rent refund and is not in a strong position to pursue an eviction.
Am I entitled to get my rent back if I lived in an illegal unit?
Yes, in many states and cities, you are entitled to recover some or all of the rent you paid if the unit was illegal when you moved in and the landlord knew or should have known about the illegality. The legal theory is that a landlord cannot enforce a lease or collect rent for a unit that could not lawfully be rented. Courts in California, New York, Illinois, and Massachusetts have routinely allowed tenants to sue for rent restitution on quasi-contract (unjust enrichment) grounds, reasoning that the landlord was unjustly enriched by rent payments for an unlawful dwelling. In New York, under the Multiple Dwelling Law, a landlord of an illegal unit (one lacking a valid certificate of occupancy for residential use) cannot maintain a rent claim against a tenant, and tenants have successfully recovered years of rent paid. In California, Cal. Civ. Code § 1942.4 bars landlords from demanding or collecting rent for units that do not meet habitability standards, which includes units lacking required permits. The amount you can recover depends on how long you lived there, whether the illegality constituted a total failure of the premises, and whether you continued to receive some benefit from occupancy. Courts sometimes reduce recovery by the rental value of the unit to account for the benefit received. You typically assert this claim in small claims court (for smaller amounts) or superior/circuit court through a breach of the implied warranty of habitability or unjust enrichment theory.
What is a certificate of occupancy and why does it matter for renters?
A certificate of occupancy (C of O) is a document issued by the local building department certifying that a structure has been inspected, meets applicable building codes, and is legally approved for its designated use. For a rental unit, a valid C of O confirming residential occupancy is legally required before a landlord may collect rent in most jurisdictions. The C of O matters to renters for several reasons: (1) It confirms the unit was built to fire, electrical, plumbing, and structural safety standards. (2) It establishes the legal occupancy of the space — a C of O for a commercial space, warehouse, or parking garage means the space cannot legally be rented as a residence, no matter what the landlord claims. (3) Its absence can be the basis for a rent refund claim, habitability defense, and eviction defense. (4) It establishes how many units a building legally contains, which affects rent stabilization eligibility in cities like New York. You can check whether a unit has a valid C of O by searching the building department or housing department records online — most major cities make this freely available. In New York City, you can look up C of O status on the NYC Department of Buildings BIS portal. In Los Angeles, the LADBS permit database is publicly accessible. Request the C of O before signing any lease; a landlord who cannot produce one or whose unit does not appear in city records may be renting illegally.
What are the most common types of illegal rental units?
The most common types of illegal rental units are: (1) Basement apartments — spaces converted to residential use without permits, often lacking proper egress windows, ceiling height, light, ventilation, or separate entrance. NYC alone has hundreds of thousands of illegal basement units. (2) Garage conversions — attached or detached garages converted to living space without obtaining permits for electrical, insulation, plumbing, and egress. Common in California, Texas, and the Pacific Northwest. (3) Attic conversions — upper-floor spaces divided or converted to bedroom units without permits, often lacking ceiling height minimums and fire egress. (4) Illegal subdivisions — a large legal unit subdivided into two or more smaller apartments without permits, often by simply adding walls without inspection. (5) Accessory dwelling units (ADUs) built without permits — backyard cottages or secondary suites constructed without the required building, electrical, plumbing, or grading permits. (6) Commercial-to-residential conversions — former retail, industrial, or office space leased as a live/work or residential unit without a change-of-use permit and residential C of O. (7) Units in buildings with expired or missing certificates of occupancy — technically legal structures whose overall building C of O has lapsed or was never finalized. Each type carries distinct risks: basement and attic conversions are the most dangerous from a fire egress and flooding standpoint; garage and commercial conversions are often the most legally vulnerable to city enforcement action.
Does living in an illegal unit affect my renter's insurance?
Yes, living in an illegal rental unit can significantly affect your ability to obtain and collect on renter's insurance. Insurance companies are not legally required to issue policies for dwellings that do not have valid certificates of occupancy. Some insurers will issue a policy without verifying C of O status, but if a claim is filed — for theft, fire, or liability — and the insurer discovers during the claims investigation that the unit was illegal, they may deny the claim on the basis of material misrepresentation or policy exclusion. This is particularly common with fire claims: if a fire investigator determines that the electrical wiring was unpermitted and the cause of the fire, the insurer may deny the claim entirely. Even policies that do pay out may underpay: replacement cost calculations are based on legal compliance, and the cost of bringing an illegal space to code is generally not covered. Practical steps: be honest with your insurer when obtaining a policy — tell them the unit may not have a separate C of O. Ask specifically about how the policy handles unpermitted structures. Consider obtaining a rider or asking the insurer to inspect. Keep all evidence of your policy premiums paid, as you may have a claim against your landlord for the loss of insurance coverage if the landlord misrepresented the unit's legal status when you signed the lease.
What happens if the city or county shuts down my illegal unit?
When a city or county building or housing department orders an illegal unit vacated, several legal consequences flow simultaneously. First, the landlord receives a Notice of Violation or Vacate Order requiring the unit to be vacated by a specific date. Second, many jurisdictions — including California (Health & Safety Code § 17975.5), New York City (NYC Admin. Code § 26-301), and Chicago — require the landlord to pay relocation assistance to displaced tenants. This is typically 2–4 months of comparable rent. Third, the tenant's obligation to pay rent generally ceases from the date of the government order, not before. Fourth, the tenant may have a claim for the return of any prepaid rent and security deposit. Fifth, if the landlord fails to pay required relocation assistance, the tenant can typically sue in housing court to recover it, often with a penalty multiplier. Importantly, a government vacate order does not give the landlord the right to immediately lock you out — you retain possession until the formal order takes effect. Some jurisdictions give tenants 30–90 days even after a vacate order. Contact a tenant rights organization immediately if you receive a vacate order. Do not voluntarily vacate without understanding your relocation assistance entitlements, because walking out without demanding payment may forfeit those rights.
How do I find out if my rental unit is legal before I sign a lease?
Before signing any lease, take these steps to verify the unit's legal status: (1) Search the city or county building department's online permit portal for the property address. Look for a valid certificate of occupancy issued for residential use that covers your specific unit. In New York City, use the DOB BIS portal (nyc.gov/buildings). In Los Angeles, use the LADBS permit portal. In Chicago, use the city's permit and inspection portal. (2) Look up the property's zoning designation at the county assessor or planning department website. If the zone is industrial, commercial, or agricultural, residential occupancy may be prohibited or restricted. (3) Ask the landlord directly: "Can I see the certificate of occupancy for this unit?" A landlord who refuses or becomes evasive is a red flag. (4) Count the units. If the building has more units than are listed on the C of O, the extra units are likely illegal. (5) Ask whether the specific space you are renting — especially a basement, garage, or attic — was included on the building permit. (6) Check the local rent stabilization registry (where applicable). In NYC, a unit that does not appear in DHCR records or has an impossibly low base rent may indicate illegal conversion issues. (7) Request a copy of the most recent building inspection report. Buildings over a certain size in many cities must post annual inspection certifications. If you find evidence of illegality before signing, use it as a negotiating point or — better — walk away from the unit entirely.
Can I withhold rent if I discover my unit is illegal?
In many jurisdictions, discovering that your unit lacks a required certificate of occupancy or was never legally permitted for residential use gives you grounds to withhold rent or seek a court-ordered rent abatement. The legal basis varies by state. In California, Cal. Civ. Code § 1942.4 bars a landlord from demanding rent if the unit has conditions that materially affect habitability, and building code violations including permit deficiencies can qualify. In New York, a tenant can bring a Special Proceeding in Housing Court to have the court direct rent into escrow while the landlord cures violations — and the landlord cannot bring a separate nonpayment proceeding while the violation proceeding is pending. In Illinois (765 ILCS 720/1 et seq.), the Rent Withholding Act permits withholding when a dwelling has been certified as being in substantial violation of health and safety codes. Before withholding rent, you should: (1) Send the landlord a written notice identifying the specific code violations and the legal basis for your rent withholding or abatement demand. (2) Consult a tenant attorney or legal aid in your state about the specific procedures required. (3) In many states, you must place withheld rent into escrow — simply pocketing it creates the risk of a successful non-payment eviction. (4) Document all conditions with photographs and written notes dated and timestamped. Unilateral rent withholding without following state procedures is one of the most common mistakes tenants make and can result in eviction even when the underlying habitability claim is valid.
What is the landlord's legal liability for renting an illegal unit?
A landlord who knowingly rents an illegal unit — one lacking a required certificate of occupancy, built without permits, or in a zone that prohibits residential use — faces a range of civil and criminal consequences. Civilly, the landlord may be liable for: (1) Rent restitution to the tenant for all rent paid for the illegal unit on unjust enrichment or breach of implied warranty of habitability grounds. (2) Actual damages for any injuries caused by conditions that the proper permits and inspections would have caught — unpermitted electrical work causing a fire, inadequate egress causing injury during an emergency. (3) Punitive damages in jurisdictions that recognize them for willful habitability violations. (4) Attorney fees and court costs under tenant protection statutes in states like California (Cal. Civ. Code § 1942.4), New York, and New Jersey. Criminally, renting an uninspected or illegally converted unit can constitute a misdemeanor or even a felony in some jurisdictions, particularly where the violation caused injury or death. NYC MDL § 302-a imposes criminal penalties on landlords who collect rent for units without a C of O. Under Cal. Health & Safety Code § 17995, willful violations of housing law can result in criminal prosecution. If a tenant is injured due to an unpermitted condition — a fire in an illegally wired basement, a ceiling collapse in an unconverted attic space — the landlord faces both criminal exposure and significant civil tort liability independent of the tenancy relationship.
What relocation assistance am I entitled to if displaced from an illegal unit?
Relocation assistance requirements for tenants displaced from illegal units vary significantly by jurisdiction, but the general principle in tenant-protective states is that the landlord — not the tenant — bears the cost of displacement caused by the landlord's own legal violations. In California, Health & Safety Code § 17975.5 requires landlords who are ordered to vacate substandard housing to pay each displaced household at least the equivalent of one month's rent in relocation assistance; local ordinances in Los Angeles, San Francisco, and Oakland provide far more — often 2–6 months of equivalent replacement rent. New York City's Administrative Code requires landlords whose illegal units trigger a vacate order to pay temporary housing costs for displaced tenants, and the Department of Housing Preservation and Development (HPD) may provide emergency housing assistance. In Chicago, the Residential Landlord and Tenant Ordinance (RLTO, MCC §§ 5-12-130 et seq.) entitles tenants displaced by code enforcement to relocation assistance equal to two months' rent. Seattle's just-cause eviction ordinance includes code enforcement displacement as a qualifying event for relocation assistance. If your jurisdiction does not have a specific illegal unit relocation ordinance, you may still be able to recover relocation costs as part of a damages claim against the landlord for breach of the implied warranty of habitability or fraudulent misrepresentation (if the landlord knew the unit was illegal when you moved in). Always demand written confirmation of any relocation assistance before vacating.
How do rent control and rent stabilization apply to illegal units?
The interaction between rent control, rent stabilization, and illegal unit status is one of the most legally complex areas of tenant law. In New York City, a unit that was created by illegal conversion — for example, by subdividing a rent-stabilized apartment into two smaller units — may itself be ineligible for rent stabilization, even if the original larger unit was covered. Conversely, in some cases, tenants in illegal conversions have successfully argued that they are entitled to the protections of the building's rent stabilization status because the landlord cannot profit from its own illegal acts. In California, many cities' rent control ordinances expressly cover units that were built without permits, provided the tenant has occupied the unit continuously. The Los Angeles Rent Stabilization Ordinance (LARSO), for example, covers most rental units built before 1978 regardless of permit status — and the landlord cannot use an illegal unit designation to exempt it from rent control. San Francisco's Rent Ordinance applies similarly. The key principle in most jurisdictions is that a landlord cannot simultaneously claim the benefits of a tenancy (collecting rent) while denying the obligations (rent stabilization compliance, habitability duties). The general rule is: if the landlord was collecting rent and the tenant had a reasonable expectation of residential occupancy, the rent stabilization framework likely applies. Consult a local tenant attorney or your city's rent stabilization board to determine coverage for your specific unit.
What should I do immediately if I suspect I am living in an illegal unit?
If you suspect your rental unit may be illegal, take these steps immediately and in this order: (1) Search your city or county building department portal for the property address. Look for a certificate of occupancy that includes your specific unit. This search is free and takes 5–10 minutes. (2) Document the unit thoroughly: photograph every room, note ceiling heights, window sizes, the existence and location of fire exits, smoke detectors, carbon monoxide detectors, and any visible code violations (exposed wiring, unpermitted walls, blocked exits). (3) Continue paying rent on time by traceable payment — stopping rent without legal authority will give the landlord a non-payment eviction claim that is independent of the unit's illegal status. (4) Send the landlord a certified-mail letter asking them to confirm the unit has a valid certificate of occupancy and requesting a copy of all permits applicable to your unit. This creates a paper trail. (5) Contact your local tenant rights organization or legal aid society for a free consultation. In most major cities, tenant rights organizations are familiar with illegal unit issues and can advise on your specific situation. (6) Do NOT report the unit to code enforcement without consulting a tenant attorney first — code enforcement reporting can trigger a vacate order that displaces you faster than a legal remedy can be pursued. (7) Review your lease for any clauses in which you acknowledged the unit's status — if the lease mentions "storage space" or "commercial use" and you were led to believe it was legal residential space, that misrepresentation is independently actionable.

Related Guides

Worried your unit might be illegal? Start with your lease.

Our AI reads your entire lease, flags clauses that waive your habitability rights or misrepresent the unit's legal status, and explains what you're owed — in plain English, in under 2 minutes.

Review My Lease — $9.99

No account needed · Your lease is never stored · Not legal advice

Disclaimer: This guide is for general educational purposes only and does not constitute legal advice. Illegal unit laws, habitability standards, certificate of occupancy requirements, relocation assistance obligations, and eviction procedures vary by state, county, and city. The information in this guide reflects general legal principles as of the date of publication; laws change. If you are living in a unit you believe may be illegal, facing eviction, or seeking rent recovery, consult a licensed attorney in your state or contact your local legal aid organization for free or low-cost assistance. Nothing in this guide creates an attorney-client relationship.