Illegal Units: California Tenant Rights
Common questions about illegal units in a California rental — your rights, your landlord's responsibilities, and what to do. This is general information, not legal advice.
What is an illegal rental unit in California?
An illegal rental unit is a living space that is rented out even though it was never approved or permitted for people to live in. It is sometimes called an unpermitted unit.
Common examples include a garage, basement, attic, or shed that was converted into a living space without proper permits; a unit added to a property without city approval; and extra units squeezed into a building beyond what is legally allowed. These spaces often lack things the building code requires for a legal home, such as proper exits, ceiling height, ventilation, heat, or safe wiring and plumbing.
A unit can be "illegal" because it was built or converted without permits, because it does not meet safety codes, or because the property is not zoned to allow another rental unit there.
Importantly, the fact that a unit is illegal is the landlord's problem to answer for — not a reason you lose your rights as a tenant. If you think you are renting an illegal unit, a free, confidential review can help you understand your protections.
Do I have rights if I’m renting an illegal unit?
Yes. This is one of the most important things to understand: renting an illegal unit does not strip you of your tenant rights in California. Landlords sometimes suggest otherwise, but the law generally protects tenants regardless of whether the unit was properly permitted.
As a tenant of an unpermitted unit, you generally still have the right to a habitable home, the right to be evicted only through the proper legal process, protection from illegal "self-help" tactics like lockouts and utility shutoffs, and the return of your security deposit under the usual rules. In many cases, you may have even more leverage, because the landlord chose to rent an unlawful unit and collect rent for it.
A landlord cannot legally use the unit's illegal status as an excuse to ignore repairs, push you out without proper notice, or deny you basic protections.
If a landlord is treating you as if you have no rights because the unit is unpermitted, that is often wrong. A free, confidential review can help you understand the protections you actually have.
Read more: Do I have rights if I’m renting an illegal unit? →
Do habitability laws apply to illegal units?
Yes. California's habitability protections generally apply to your home regardless of whether the unit was legally permitted. A landlord who rents an unpermitted unit still must keep it fit and safe to live in.
That means the implied warranty of habitability — covering things like working plumbing, heat, safe wiring, weather protection, and freedom from serious health hazards — applies to illegal units too. In fact, illegal units are more likely to have habitability problems, because they were often built or converted without meeting safety codes in the first place.
A landlord cannot rent you a converted garage or basement and then refuse to fix serious problems by claiming the unit "isn't really legal anyway." Collecting rent for a home comes with the duty to keep it habitable.
So if your unpermitted unit has serious problems — no heat, dangerous wiring, leaks, mold, pests — you generally have the same repair rights as any other tenant, and possibly more. If your landlord is ignoring habitability problems in an illegal unit, a free, confidential review can explain your options.
Can my landlord evict me just because the unit is illegal?
Not simply by declaring it illegal. Even when a unit is unpermitted, a landlord in California generally must still follow the proper legal eviction process — they cannot just order you out, change the locks, or remove your belongings.
To end your tenancy, the landlord typically must give the required written notice and, if you do not leave, go through the formal court eviction process. The unit's illegal status does not let the landlord skip these steps or use "self-help" tactics, which are themselves illegal.
Sometimes a city discovers an unpermitted unit and orders the landlord to stop using it as a rental, which can lead to the tenancy ending. But even then, there are legal processes involved, and in some areas tenants forced out through no fault of their own may be entitled to relocation help. These rules can vary by location.
If a landlord is trying to push you out of an illegal unit without proper notice or process, that is usually not allowed. A free, confidential review can explain your rights and what proper process requires.
Read more: Can my landlord evict me just because the unit is illegal? →
My landlord says the city found the unit is illegal and I have to leave — what now?
First, do not assume you must move out immediately just because the landlord says so. Even when a city flags an unpermitted unit, you generally keep the right to proper notice and process, and you may have additional protections.
Ask for anything in writing from the city — such as a notice or order — so you can see what was actually required and the timeline. Sometimes landlords overstate or rush the situation. The city's order is usually directed at the landlord to fix or stop using the unit, and how it affects your tenancy depends on the details.
In some California cities, when tenants are displaced from an illegal unit through no fault of their own, the landlord may owe relocation assistance. These rules are local and vary, so it is worth checking what applies where you live.
Because your rights and any relocation help depend on the specifics and your location, this is a good moment to get informed before acting. A free, confidential review can look at your notice and situation and explain your options.
Read more: My landlord says the city found the unit is illegal and I have to leave — what now? →
Can I get my rent back if I rented an illegal unit?
Possibly, depending on the facts. In some situations, California tenants have been able to recover rent they paid for an unpermitted unit, on the idea that the landlord should not profit from renting an unlawful home. But this depends heavily on the specifics and is not guaranteed.
Whether rent recovery is available can turn on things like how the unit was illegal, the condition it was in, what the landlord knew, and local law. Because these claims are fact-specific and the law in this area can be complex, the outcome varies from case to case.
This is different from ordinary rent disputes, and it often overlaps with habitability claims when the illegal unit also had serious defects. Keeping records — your lease, rent payments, photos of conditions, and any communications about the unit's status — helps evaluate a possible claim.
If you rented an unpermitted unit and are wondering whether you can recover rent you paid, this is worth a professional look. A free, confidential review can examine your facts and explain whether such a claim may be available to you.
Read more: Can I get my rent back if I rented an illegal unit? →
Do I still get my security deposit back from an illegal unit?
Yes. Your security deposit rights generally apply regardless of whether the unit was legally permitted. A landlord cannot keep your deposit just by claiming the unit was illegal.
Under California's security deposit rules, after you move out the landlord must return your deposit, minus only lawful deductions such as unpaid rent or repairs for damage beyond normal wear and tear, and must provide an itemized statement within the required time. These rules do not disappear because the unit was unpermitted.
In fact, if you were pushed out of an illegal unit through no fault of your own, or the unit had serious defects, that context may strengthen your position on getting your full deposit back.
Keep records — your lease, proof of what you paid, photos of the unit's condition when you moved in and out, and any written communications. If a landlord refuses to return your deposit or makes improper deductions and points to the unit being "illegal" as the reason, that is generally not a valid excuse. A free, confidential review can explain your deposit rights and options.
Read more: Do I still get my security deposit back from an illegal unit? →
What happens if my unit gets red-tagged or condemned?
A "red tag" or condemnation is when a city or county official determines a unit is unsafe or unlawful to occupy and orders that it not be lived in. It usually means the building department has found serious code or safety problems.
If your unit is red-tagged, you may be required to leave, sometimes on a set timeline, because the government has deemed it unsafe. This is stressful, but you still have rights. The order is generally aimed at the landlord's unlawful or unsafe use of the property, and being displaced through no fault of your own can trigger protections.
In many California cities, landlords owe displaced tenants relocation assistance when a unit is red-tagged or condemned due to the landlord's violations — but these rules are local and vary, so the amount and availability depend on where you live.
Get the official notice in writing, note the deadline, and avoid rushing decisions before you understand your rights. A free, confidential review can look at the red-tag notice and your situation and explain what relocation help or other options may apply.
Read more: What happens if my unit gets red-tagged or condemned? →
Am I entitled to relocation assistance if I’m forced out of an illegal unit?
You might be, depending on where you live. In a number of California cities, when tenants are displaced from an unpermitted unit through no fault of their own — for example, because the city ordered it vacated — the landlord may be required to pay relocation assistance.
These relocation rules are local, not statewide, so whether they apply, and how much a landlord owes, depends on your city or county ordinance. Some places have specific relocation payment amounts and procedures; others do not. The reason many of these rules exist is that it seems unfair for a tenant to bear the cost of a landlord's decision to rent an unlawful unit.
Because this varies so much by location, it is worth checking your local rules and confirming what you may be owed before accepting a landlord's version of events.
If you are being displaced from an illegal unit and are unsure whether you are entitled to relocation help, do not assume the answer is no. A free, confidential review can help you understand what may apply where you live and how to pursue it.
Read more: Am I entitled to relocation assistance if I’m forced out of an illegal unit? →
Does rent control apply to an illegal unit?
Sometimes, yes. In certain California cities with rent-control or eviction-protection ordinances, those protections can extend to unpermitted units — meaning a landlord cannot necessarily avoid the rules just because the unit was never legally permitted.
The idea behind covering illegal units is that a landlord should not be able to escape tenant protections by having rented an unlawful unit. Whether local rent-control or "just cause" eviction rules reach unpermitted units depends on the specific city ordinance and the facts.
Statewide, California also has rent-increase and just-cause protections that apply to many rentals, though there are exemptions. How these interact with an illegal unit can be complex and fact-specific.
Because coverage depends on your location and the details, it is worth checking rather than assuming an illegal unit has no protection. If a landlord is claiming that rent-control or eviction protections do not apply because your unit is unpermitted, that may not be correct. A free, confidential review can help you understand which protections may apply to your unit.
I rent a converted garage — what are my rights?
Renting a converted garage is very common, and whether the conversion was properly permitted matters — but either way, you generally have tenant rights. Many garage conversions were done without permits and may not meet the safety codes required for a legal living space.
Even if your garage unit is unpermitted, you generally keep the right to a habitable home, proper eviction process, protection from lockouts and utility shutoffs, and the return of your deposit. Because garages often were not built as homes, they are more likely to have habitability problems — inadequate heat, poor ventilation, dampness, unsafe wiring, or the lack of a proper second exit — that the landlord is still responsible for.
If the city discovers an unpermitted garage unit, it may order the landlord to stop renting it, which can affect your tenancy and, in some places, entitle you to relocation help.
So do not assume that living in a converted garage means you have no protections. If your garage unit has serious problems or your landlord is not respecting your rights, a free, confidential review can explain your options.
Read more: I rent a converted garage — what are my rights? →
Is it legal to rent out a basement or attic as an apartment?
It can be, but only if the space was properly permitted and meets the building code for a living unit — and many basement and attic rentals were not. Simply having a bed and a door does not make a space a legal home.
To be a legal living unit, a basement or attic generally must meet code requirements such as adequate ceiling height, proper emergency exits and windows, ventilation, safe wiring, and often heat and moisture control. Basements can have dampness, mold, and exit problems; attics can have low ceilings, poor ventilation, and heat issues. When these standards are not met, the unit is often unpermitted or "illegal."
Regardless of permit status, if you are renting a basement or attic, you generally still have tenant rights, including the right to a habitable home and proper process before eviction.
If you are living in a basement or attic unit and are unsure whether it is legal or safe — especially if it has habitability problems or lacks a real exit — a free, confidential review can help you understand your rights.
Read more: Is it legal to rent out a basement or attic as an apartment? →
My illegal unit has no proper exit or windows — is that dangerous?
Yes, this is a serious safety concern. A safe way to get out in an emergency is one of the most important requirements for any living space, and many unpermitted units fail to provide it.
Living spaces, especially sleeping areas, generally must have a proper means of escape — such as a door or a window large enough to climb out of — in case of fire or other emergency. Converted garages, basements, and attics often lack a real second exit, have windows that are too small or blocked, or trap occupants behind a single door. That can be deadly in a fire.
This kind of safety defect is both a hazard and a sign the unit was never legally approved. It is the landlord's responsibility, not yours, and it should be taken seriously.
If your unit lacks a safe exit, be especially careful with fire safety — keep smoke alarms working and paths clear — and consider getting informed about your rights. If you are living in a unit with no safe way out and your landlord will not address it, a free, confidential review can explain your options.
Read more: My illegal unit has no proper exit or windows — is that dangerous? →
Should I report my illegal unit to the city?
This is an understandable question, and the honest answer is that it depends on your situation — reporting can lead to repairs and accountability, but it can also result in the city ordering the unit vacated, which could mean you have to move.
On one hand, reporting serious safety hazards to code enforcement can force a landlord to fix dangerous conditions, and in some areas being displaced from an illegal unit can entitle you to relocation assistance. On the other hand, a city that learns of an unpermitted unit may order it not be used as a rental, which can disrupt your housing.
Because the outcome depends on local rules, the unit's problems, and your circumstances, it is worth understanding the likely consequences before you act — including any relocation help you might be owed if you are displaced.
Importantly, if you do report a problem, the law protects you from landlord retaliation for exercising that right. If you are weighing whether to report your unit and want to understand the risks and protections first, a free, confidential review can help you think it through.
Can my landlord evict me for complaining about an illegal unit?
No. In California it is illegal for a landlord to retaliate against you for reporting unsafe conditions or code violations, and that protection applies even when the unit itself is unpermitted.
Civil Code Section 1942.5 protects tenants who exercise their rights, such as complaining about habitability problems or contacting a code inspector. If a landlord raises your rent, cuts services, or tries to evict you shortly after you reported problems with an illegal unit, the law may treat that as retaliation. In certain situations there is even a legal presumption that punishment following soon after a protected complaint was retaliatory.
Landlords sometimes try to use a unit's illegal status to scare tenants into staying quiet. But you do not lose your protection against retaliation because your unit was unpermitted — the landlord is the one who rented an unlawful unit.
Keep records of your complaints and the dates of any landlord actions that followed. If you believe you are facing retaliation for raising concerns about an illegal unit, a free, confidential review can explain your rights and options.
Read more: Can my landlord evict me for complaining about an illegal unit? →
Can I withhold rent on an illegal unit?
The habitability tools that let tenants respond to serious, unrepaired problems can apply to illegal units too — but rent withholding has strict rules and real risks, and an unpermitted unit adds extra complexity, so caution is essential.
For withholding to even be considered under the usual habitability framework, the problem generally must be serious enough to affect health or safety, the landlord must have had written notice and a reasonable chance to fix it, and the problem must not have been caused by you. Withholding rent the wrong way can lead to eviction, even from an illegal unit.
Because illegal units also raise unique issues — such as possible rent-recovery claims and relocation rights — the best strategy is often broader than simply withholding rent, and doing so without advice can backfire.
Given how fact-specific illegal-unit situations are, this is a strong case for getting guidance before acting. A free, confidential review can look at your specific circumstances and help you choose the safest and most effective approach.
Does my landlord have to tell me a unit is illegal before I rent it?
Landlords should not rent out unpermitted units, and renting one to you while hiding its illegal status raises real concerns. While the exact disclosure duties can depend on the situation, a landlord collecting rent for an unlawful home cannot fairly turn around and use that illegality against you.
In practice, many tenants only discover a unit is illegal after they move in — when problems arise, the city gets involved, or the landlord suddenly claims the unit "isn't legal." A landlord who knowingly rented an unpermitted unit, took your money, and concealed the problem may face consequences, and you may have claims relating to the situation.
What matters most is that being kept in the dark does not erase your rights. You generally still have habitability protections, eviction-process protections, and deposit rights, and possibly claims tied to the unit's illegal status.
If you learned after moving in that your unit is unpermitted and feel misled, that is worth examining. A free, confidential review can look at what you were told and help you understand your options.
Read more: Does my landlord have to tell me a unit is illegal before I rent it? →
Can I break my lease if I’m in an illegal unit?
Possibly, and your position may be stronger than in an ordinary lease dispute, but it still depends on the facts. When a unit is unlawful or seriously unsafe and the landlord will not fix it, tenants may have grounds to move out — and the unit's illegal status can add to that.
If an illegal unit has serious habitability defects the landlord ignores, or the city has deemed it unsafe to occupy, that can support ending the tenancy, sometimes through the idea of "constructive eviction," where a dangerous condition effectively forces you out of a home you cannot safely occupy. The fact that the unit was never legal to rent can strengthen your position.
Still, moving out without meeting the proper conditions can create disputes, so documentation and timing matter, and there may be additional claims worth preserving, like rent recovery or relocation rights.
Because illegal-unit situations are unusual and fact-specific, it is smart to get advice before giving notice or moving. A free, confidential review can look at your circumstances and help you decide the safest path.
Read more: Can I break my lease if I’m in an illegal unit? →
Can I sue my landlord over an illegal unit?
In some situations, yes. Renting out an unpermitted unit, especially one with serious defects, can expose a landlord to legal claims — and tenants of illegal units sometimes have more options than they expect.
Depending on the facts, possible claims can include habitability claims for serious unrepaired conditions, claims related to being displaced from an unlawful unit, and in some cases efforts to recover rent paid for an illegal home. If the landlord concealed the unit's status or used illegal "self-help" tactics to push you out, that can add to the picture. Where a dangerous condition in the unit caused injury, an injury claim may also be possible.
What claims fit depends heavily on the specifics — how the unit was illegal, its condition, what the landlord knew, what harm resulted, and local law. Good records of your lease, payments, conditions, and communications make a real difference.
Because these cases can be complex and fact-specific, professional guidance matters. A free, confidential review can look at your situation and explain what options, if any, may be available to you.
Can I get compensation for renting an illegal unit?
You may be able to, depending on the facts, though every situation is different and no outcome is guaranteed. Tenants of unpermitted units sometimes have several possible avenues for compensation.
Depending on the circumstances, compensation might include recovery of some rent paid for an unlawful unit, relocation assistance if you were displaced through no fault of your own, a rent reduction or damages for serious habitability defects, and the return of an improperly withheld deposit. If a dangerous condition in the unit caused injury, an injury claim may also seek compensation for that harm.
What you can recover depends on how the unit was illegal, its condition, what the landlord knew and disclosed, whether you were displaced, and your local rules. Keeping records — your lease, proof of rent paid, photos of conditions, any city notices, and communications with the landlord — helps establish a claim.
Because illegal-unit compensation can involve several overlapping theories, it is worth a professional look. A free, confidential review can examine your facts and explain whether you may be entitled to compensation.
Read more: Can I get compensation for renting an illegal unit? →
How do I prove my unit is illegal or unpermitted?
Proving a unit is unpermitted usually comes down to public records and the unit's physical characteristics, combined with your rental documents. You often do not have to prove it alone.
A key source is the city or county building department, which keeps permit and property records showing what was legally approved for the property. If the records show no permit for the unit you are renting — for example, a garage or basement that was never approved as a living space — that supports the unit being illegal. A code-enforcement inspection can also formally document violations.
Physical clues help too: makeshift kitchens or bathrooms, no proper second exit, low ceilings, unpermitted-looking wiring, or a unit that clearly was not built as a home. Keep your lease, rent receipts, photos of the unit, and any communications where the landlord discusses the unit's status.
You generally do not need to become an expert — officials and, if needed, a lawyer can help establish the facts. If you suspect your unit is illegal and want to understand what it means for your rights, a free, confidential review can walk you through it.
Read more: How do I prove my unit is illegal or unpermitted? →
Dealing with this in your rental?
Take our quick, confidential eligibility check — about two minutes, no cost, no obligation.