California habitability law requires every residential landlord to keep a rental unit fit to live in for the entire tenancy, and that duty cannot be waived by any lease clause, even one where the tenant agreed to take the unit “as is.” When conditions fall below the minimum standards set by state law, you can hire someone to make the repair and deduct the cost from rent, withhold rent, move out without owing further rent, or sue for damages. Which option makes sense depends on how serious the defect is, how well you’ve documented it, and whether a government inspector has gotten involved.
What Makes a Rental Uninhabitable
Civil Code Section 1941.1 sets the floor. A unit is unfit for habitation if it substantially fails on any of these:1California Legislative Information. California Code Civil Code 1941.1 – Tenantability
- A weatherproof roof, exterior walls, unbroken windows, and doors that keep out wind and rain
- Plumbing and gas systems in good working order
- Hot and cold running water from an approved supply, connected to a proper sewage system
- Working heat
- Functioning electrical lighting and wiring
- Building and grounds under the landlord’s control kept free of trash, filth, rodents, and pests
- Enough garbage receptacles in good condition
- Floors, stairways, and railings kept in good repair
The standard is substantial compliance with building and housing codes that materially affect health and safety, not cosmetic perfection.2Justia Law. Green v. Superior Court (1974) A scuffed wall isn’t a violation. A broken heater in January, sewage backing up through the drains, or a rat infestation is.
Section 1941.3 adds specific security requirements: a working deadbolt on every main entry door (the bolt must extend at least 13/16 of an inch into the frame, though older half-inch deadbolts are grandfathered until they fail), functional locks on windows designed to open (with exceptions for louvered, casement, and windows more than 12 feet off the ground), and working locks on common-area exterior doors in multi-unit buildings.3California Legislative Information. California Civil Code 1941.3 Missing security devices count as habitability defects, and the same remedies apply.
Putting Your Landlord on Notice
Every remedy in this article requires that you first tell your landlord about the problem and give them a reasonable chance to fix it. Section 1942 permits either oral or written notice, but oral notice is a bad idea in practice because you’ll need to prove later exactly what you said and when.4California Legislative Information. California Code Civil Code 1942 A dated email, a text, or a certified letter works. Be specific about location, the nature of the defect, and how long the condition has existed. “The kitchen sink has been leaking under the cabinet since March 15 and there is visible mold on the subflooring” is worth far more than “there’s a plumbing problem.”
What counts as reasonable time depends on the problem. For most non-emergency issues, 30 days is generally treated as reasonable.5California Department of Real Estate. Dealing With Habitability Issues For immediate health or safety threats (no heat in winter, a gas leak, a sewage backup), a reasonable window may be a day or two. Keep copies of everything: your notice, any response from the landlord, dated photos of the condition, and a running log. If this ends up in front of a judge, your documentation is your case.
Your Remedies If Repairs Don’t Happen
Repair and Deduct
You can hire someone to make the repair and subtract the cost from your next rent payment. Two hard limits: the repair can’t cost more than one month’s rent, and you can only use this remedy twice in any 12-month period.4California Legislative Information. California Code Civil Code 1942 Get quotes, pick a reasonable one, and save every receipt with before-and-after photos. If you overpay, exceed the cap, or skip the paper trail, you can be evicted for the unpaid rent even when the repair was legitimately needed.
Withholding Rent
You can stop paying rent, partially or entirely, until the landlord makes the repairs. This is riskier. Expect an eviction lawsuit for nonpayment, in which you’ll have to prove the defect was serious enough to justify what you did. The California Supreme Court’s decision in Green v. Superior Court established that a landlord’s breach of the warranty of habitability is a valid defense in that kind of eviction case.2Justia Law. Green v. Superior Court (1974) If the court agrees the unit was uninhabitable, damages are usually measured as the difference between the rent you paid and the fair rental value of the unit in its defective condition. Withholding over a dripping faucet is unlikely to survive that scrutiny; withholding over conditions with photos, inspector citations, and months of ignored notices is a different situation.
Moving Out
If the conditions genuinely make the place unlivable, you can leave. Once you vacate because the landlord failed to maintain habitable conditions, you owe no further rent from the date you leave.4California Legislative Information. California Code Civil Code 1942 Courts look at whether a reasonable person in your position would have felt compelled to leave, so the conditions need to actually rise to uninhabitable rather than merely unpleasant. Give proper notice first and document what drove you out.
Suing Under Section 1942.4
When a government housing inspector has already cited your landlord in writing and the problems still aren’t fixed 35 days later, Civil Code Section 1942.4 kicks in. Your landlord is prohibited from demanding or collecting rent on a unit that:6California Legislative Information. California Code Civil Code 1942.4
- Substantially fails the Section 1941.1 standards
- Has been cited by a housing inspector with written notice to the landlord
- Remains unrepaired 35 days after that notice without good cause
- Wasn’t damaged by the tenant’s own conduct
If your landlord violates this section, you can sue for actual damages plus special damages between $100 and $5,000. The court can also award attorney’s fees to the prevailing party and order the landlord to make the repairs under court supervision. Small claims court is an option if your total falls within its limit, and you don’t need to try any other remedy first.
Using Code Enforcement
Contacting your local code enforcement office, building department, or health department is often the single most useful step. The California Attorney General’s office specifically directs tenants to these agencies for unsafe or unhealthy conditions.7California Attorney General. Know Your Rights – Habitability An inspector who documents the violation creates an official government record that carries real weight in court. A written citation also starts the 35-day clock under Section 1942.4, which opens the door to the damages, attorney’s fees, and court-supervised repair order described above. Many tenants don’t realize how much this shifts the balance in a dispute.
Protection From Retaliation
The fear that speaking up will get you evicted or hit with a rent hike is a real one, and Civil Code Section 1942.5 exists to address it. If you give repair notice, file a complaint with a government agency, or use the repair-and-deduct remedy, your landlord cannot evict you, raise your rent, or cut services for 180 days after that protected activity.8California Legislative Information. California Civil Code 1942.5 Any of those actions within the 180-day window is presumed retaliatory, and the landlord has to prove a legitimate reason such as a genuine lease violation or an owner move-in. The statute also specifically bars landlords from threatening to report tenants or their associates to immigration authorities.
One limit: you can only invoke this retaliation protection once in any 12-month period.
When You Lose These Protections
The implied warranty doesn’t cover problems you caused. Under Civil Code Section 1941.2, tenants have to hold up their end:9California Legislative Information. California Code Civil Code 1941.2
- Keep the unit clean and sanitary
- Dispose of trash properly
- Use electrical, gas, and plumbing fixtures correctly and keep them reasonably clean
- Keep guests and household members from deliberately damaging the unit
- Use each room for its intended purpose
The operative word in the statute is “substantially.” Ordinary wear and tear doesn’t cost you anything. But if your own neglect is a major cause of the problem, such as a pest infestation driven by accumulated garbage, the warranty won’t rescue you. If your landlord has agreed in writing to handle cleaning or trash removal, you don’t lose protection for failing to do those specific tasks.
Lead Paint in Older Buildings
Federal law adds a separate obligation for pre-1978 housing. Under the Residential Lead-Based Paint Hazard Reduction Act, before you sign the lease your landlord must give you the EPA pamphlet Protect Your Family From Lead in Your Home, disclose any known lead-based paint or hazards in the unit, provide any reports or records they have about lead paint in the building (including common areas), and include a lead warning statement in the lease.10Office of the Law Revision Counsel. 42 USC 4852d – Disclosure of Information Concerning Lead-Based Paint Limited exceptions apply for short-term rentals of 100 days or less, housing for the elderly or disabled where no child under six lives, and units certified lead-free by an inspector.11U.S. Environmental Protection Agency. Real Estate Disclosures About Potential Lead Hazards