When you rent a home in California, the landlord makes a promise the law will not let them break: the home must be fit to live in. This is the implied warranty of habitability, and it applies to every residential tenancy whether or not the lease mentions it. When a landlord lets a rental fall below the legal minimum — no heat, no hot water, a leaking roof, an infestation — California gives tenants real, enforceable remedies, from repair-and-deduct to rent withholding, all backed by strong protection against retaliation. This guide explains the habitability standard, the tenant’s remedies, and how to document and demand repairs the right way.
This is general legal information, not legal advice. Repair remedies carry risks — withholding rent improperly, for instance, can expose a tenant to eviction — and the right move depends on the facts. Before withholding rent, repairing and deducting, or suing over conditions, consult an attorney licensed by the State Bar of California.
The implied warranty of habitability
California’s implied warranty of habitability comes from a landmark 1974 California Supreme Court decision, Green v. Superior Court, which held that every residential lease includes an implied promise that the premises are habitable and will be kept that way. The warranty is read into the lease automatically and cannot be waived — a clause in which a tenant supposedly gives up the right to a livable home is void. The warranty exists alongside statutory standards in the Civil Code, which spell out what “habitable” concretely means.
The statutory habitability standards
Civil Code §§ 1941 and 1941.1 set the baseline. Section 1941 obligates the landlord to put and keep the dwelling in a condition fit for human occupancy. Section 1941.1 lists the specific features a habitable unit must have. A dwelling is legally untenantable if it substantially lacks any of the following:
- Effective weatherproofing and waterproofing of roof and exterior walls, including unbroken windows and doors;
- Working plumbing and gas facilities maintained in good order;
- Hot and cold running water connected to a sewage system;
- A working heating system;
- Safe and working electrical lighting and wiring;
- Clean and sanitary buildings and grounds, free of debris, garbage, rodents, and vermin at the start of the tenancy;
- Adequate trash receptacles in good repair;
- Safe floors, stairways, and railings; and
- Working deadbolt locks on entry doors and operable locks or security devices on windows.
These are minimum standards. A defect that substantially affects health and safety — even if not on the list — can breach the warranty.
Tenant remedy 1: repair-and-deduct under Civil Code § 1942
The most direct remedy is “repair-and-deduct.” Under Civil Code § 1942, if the landlord fails to fix a habitability defect after the tenant gives reasonable notice, the tenant may arrange the repair themselves and deduct the cost from the rent. The remedy has strict limits:
- The tenant must first give the landlord reasonable notice of the problem and a reasonable time to fix it; 30 days is presumed reasonable, though a serious defect may justify a shorter time.
- The cost of the repair may not exceed one month’s rent.
- The tenant may use this remedy no more than twice in any 12-month period.
- The defect must make the unit untenantable, and the tenant (or the tenant’s guests) must not have caused it.
Used correctly, repair-and-deduct lets a tenant restore basic livability without a lawsuit. Used carelessly — deducting too much, or without proper notice — it can lead to a nonpayment dispute, so keep records and stay within the limits.
Tenant remedy 2: rent withholding
For serious habitability breaches, a tenant may withhold rent — that is, stop paying until the landlord makes repairs. This is a powerful but risky remedy: a landlord who disputes the conditions may serve a 3-day notice to pay or quit and file an unlawful detainer, and the tenant must then prove the breach of habitability as a defense at trial. Courts evaluate the severity of the defect and the landlord’s notice and opportunity to repair. Because the stakes include possible eviction, tenants considering rent withholding should document conditions thoroughly and get legal advice first. In some withholding disputes, courts use a “rent escrow” approach in which the withheld rent is set aside (sometimes ordered paid into court) and released as repairs are completed or apportioned based on the reduced value of the defective unit.
Tenant remedy 3: rent reduction and damages
A tenant who has endured uninhabitable conditions may also seek a retroactive rent reduction reflecting the diminished value of the unit during the period of the defect, and may recover damages. In serious cases involving a landlord’s knowing failure to repair, additional damages may be available. These claims are typically pursued in court, often as a counterclaim if the landlord files for eviction.
Retaliation protection under Civil Code § 1942.5
California protects tenants who assert these rights. Under Civil Code § 1942.5, a landlord may not retaliate — by raising the rent, reducing services, or serving a termination or eviction notice — because a tenant complained about habitability, contacted a code-enforcement agency, or used a remedy such as repair-and-deduct. If the landlord takes an adverse action within 180 days of the tenant’s protected activity, the law presumes the action was retaliatory, and the burden shifts to the landlord to prove a legitimate, non-retaliatory reason. A tenant who proves retaliation can recover actual damages, punitive damages, and attorney’s fees. This protection is what makes the other remedies usable: tenants can report problems without fear that doing so will cost them their home.
The landlord’s and tenant’s respective duties
Habitability is a shared framework. The landlord must keep the structural and essential systems in working order — roof, plumbing, heat, electrical, weatherproofing, and sanitary common areas. The tenant, in turn, has duties under Civil Code § 1941.2: to keep the unit clean and sanitary, dispose of trash properly, use plumbing and electrical fixtures reasonably, avoid damaging or defacing the premises, and not interfere with the unit’s systems. A tenant who creates the problem — for example, by causing the infestation through their own conduct — cannot then invoke the warranty against the landlord for that condition. This division matters in disputes: a landlord facing a habitability defense will often argue the tenant caused or worsened the defect, while the tenant points to the landlord’s failure to maintain. Good documentation on both sides is what resolves these questions.
What is “ordinary wear and tear” versus a habitability defect
Not every imperfection makes a unit uninhabitable. Faded paint, worn carpet, and minor cosmetic flaws are ordinary aging, not habitability breaches — they are the landlord’s eventual responsibility to refresh but they do not trigger repair remedies. A habitability defect, by contrast, substantially affects health or safety: no heat in winter, sewage backing up, an active roof leak, exposed wiring, a broken entry lock, or a rodent or roach infestation. The distinction also governs the security deposit: a landlord may deduct for tenant-caused damage beyond wear and tear, but not for the normal aging of the unit. Tenants pursuing repair remedies should focus on defects that genuinely cross into health-and-safety territory, because those are what the warranty of habitability and Civil Code § 1942 are designed to address.
When to involve code enforcement
Local housing, building, and health departments enforce habitability standards independently of any private remedy. A tenant can request an inspection; if the inspector finds violations, the agency can cite the landlord and order repairs, sometimes on a deadline backed by penalties. A code-enforcement citation is powerful evidence in any later dispute and, importantly, contacting the agency is itself a protected activity under Civil Code § 1942.5 — so a landlord who retaliates within 180 days faces the retaliation presumption. For serious or persistent problems, pairing a written demand to the landlord with a code-enforcement complaint often produces faster results than either step alone, and it builds the documented record a tenant would need if the matter ends up in court.
Step-by-step: how to document and demand repairs
- Notify the landlord in writing. Describe the defect specifically (“no hot water since March 3”), and keep a dated copy. Written notice starts the clock and creates a record.
- Photograph and date everything. Pictures and videos of the defect — the leak, the broken heater, the infestation — are your best evidence.
- Give a reasonable time to repair. Thirty days is presumed reasonable for ordinary repairs; emergencies justify a much shorter window.
- Keep records of all communication. Save texts, emails, and notes of calls with dates and what was said.
- Consider code enforcement. A local housing or health inspector can document violations, which strengthens your position and is itself a protected activity.
- Choose a remedy carefully. For a modest, well-documented defect, repair-and-deduct (within the one-month, twice-a-year limits) may fit. For severe defects, rent withholding may be warranted — but understand the eviction risk and get advice.
- Watch for retaliation. If the landlord raises rent or serves a notice within 180 days of your complaint, the action is presumptively retaliatory under § 1942.5; document the timeline.
Mold, pests, and other common habitability problems
Some conditions generate more habitability complaints than others. Mold tied to a leak, poor ventilation, or water intrusion can breach habitability when it affects health and is the result of a defect the landlord must repair — the underlying moisture problem, not just the visible mold, is what must be fixed. Pest infestations — rodents, cockroaches, bedbugs — implicate the requirement that the premises be clean and free of vermin; the key question is usually whether the infestation existed at move-in or arose from a building condition versus the tenant’s own conduct. Lack of heat is a clear breach, since a working heating system is on the statutory list. Water intrusion and leaks implicate weatherproofing and can cascade into mold and structural problems if ignored. Electrical hazards — exposed wiring, non-functional outlets, tripping breakers — threaten safety and habitability. In each case, the tenant’s path is the same: written notice, documentation, a reasonable chance for the landlord to repair, and — if the landlord fails — the remedies described above, ideally with legal advice.
Constructive eviction
In extreme cases, conditions become so bad that the tenant is effectively forced out — the law calls this constructive eviction. If a landlord’s failure to maintain the premises substantially deprives the tenant of the use and enjoyment of the home, and the tenant gives notice and then vacates within a reasonable time, the tenant may be released from further rent obligations and may have a claim for damages. Constructive eviction is a serious step with real risk: if a court later finds the conditions did not rise to that level, the tenant who moved out and stopped paying could be liable for unpaid rent. Because the standard is demanding and fact-specific, a tenant considering this route should document the conditions thoroughly and consult an attorney before abandoning the unit. For most habitability problems, the safer remedies are written demands, code-enforcement complaints, repair-and-deduct within its limits, or a negotiated resolution.
Frequently asked questions
What makes a rental “uninhabitable” in California?
A unit is untenantable if it substantially lacks essentials listed in Civil Code § 1941.1 — such as heat, hot and cold running water, working plumbing or electrical, weatherproofing, sanitary conditions free of vermin, safe floors and stairs, or working door locks — or has any other defect that substantially endangers health and safety. Minor cosmetic issues do not breach the warranty.
Can I just stop paying rent until repairs are made?
Rent withholding is a recognized remedy for serious habitability breaches, but it is risky. The landlord may try to evict for nonpayment, forcing you to prove the breach in court. Document conditions thoroughly, give written notice and a chance to repair, and get legal advice before withholding. In some cases the safer path is repair-and-deduct or a code-enforcement complaint.
How does repair-and-deduct work?
Under Civil Code § 1942, after giving the landlord reasonable notice (30 days is presumed reasonable) and time to fix a habitability defect, you can pay to repair it and deduct the cost from rent — up to one month’s rent, no more than twice in 12 months, for a defect you did not cause. Keep receipts and stay within these limits.
Can my landlord raise the rent or evict me because I complained?
No. Under Civil Code § 1942.5, retaliation within 180 days of your protected activity — complaining about conditions, contacting code enforcement, or using a repair remedy — is presumed unlawful, and the landlord must prove a legitimate reason. You can recover damages and attorney’s fees if you prove retaliation.
Who do I call if my landlord won’t fix dangerous conditions?
Start with written notice to the landlord. If that fails, contact your local code-enforcement or health department to inspect and cite violations. For remedies and potential litigation, consult a California landlord-tenant attorney. Keep a documented record throughout.
Proving a habitability claim
Whether a tenant is defending an eviction, suing for a rent reduction, or invoking repair-and-deduct, the case usually rises or falls on evidence. Courts want to see that a real defect existed, that it substantially affected health or safety, that the landlord had notice and a reasonable chance to repair, and that the tenant did not cause the problem. The strongest records combine several kinds of proof: dated photographs and videos of the condition over time; copies of every written repair request and the landlord’s responses; logs of phone calls with dates and summaries; receipts for any repairs the tenant paid for; and, where available, a code-enforcement inspection report citing the violation. Testimony from other tenants experiencing the same building-wide problem — a failing boiler, a roof that leaks across multiple units — can corroborate the claim. Because the tenant typically bears the burden of showing the breach, assembling this record before taking action, rather than after, is what turns a complaint into a provable claim.
What habitability does not cover
It is equally important to understand the limits. The warranty of habitability addresses conditions that affect health and safety; it does not entitle a tenant to upgrades, cosmetic improvements, or amenities the lease never promised. Outdated but functional fixtures, an unattractive but sound paint job, or the ordinary aging of carpet and appliances are not habitability defects. Nor does the warranty excuse a tenant from rent for problems the tenant caused or for trivial inconveniences. And the remedies have guardrails: repair-and-deduct is capped at one month’s rent and limited to twice a year, rent withholding carries eviction risk if a court disagrees about the severity, and constructive eviction requires conditions serious enough to justify abandoning the home. Knowing these boundaries helps tenants choose remedies they can actually sustain and helps landlords distinguish genuine habitability obligations from demands the law does not require them to meet.
Habitability and the security deposit overlap
Habitability and security-deposit law meet at move-out, and the overlap trips up both sides. A landlord may deduct from the deposit only for damage the tenant caused beyond ordinary wear and tear — never for repairs that were the landlord’s own habitability obligation, and never for the normal aging of the unit. So a tenant cannot be charged to fix a leak the landlord was always responsible for, and a landlord cannot pass the cost of routine maintenance onto the departing tenant’s deposit. Conversely, a tenant who genuinely damaged the unit cannot avoid a legitimate deduction by recasting the damage as a “habitability” problem. The dividing line is the same one that runs through this whole area: ordinary wear and the landlord’s maintenance duties are the landlord’s cost, while tenant-caused damage is the tenant’s. Keeping a documented move-in condition and a record of every repair request makes that line clear when the deposit is finally accounted for.
Talk to a California landlord-tenant attorney
Habitability disputes can affect your health and your housing, and the remedies — repair-and-deduct, withholding, retaliation claims — all carry strict requirements and risks. A California attorney can tell you which remedy fits your situation, help you document the breach, and protect you from retaliation. Start with the landlord-tenant hero guide, and if your dispute also touches your deposit, read our guide to California security deposits. Our directory connects you with attorneys licensed by the State Bar of California across all 58 counties, free and with no obligation.