California Civil Code Section 1942.4 prohibits a landlord from collecting rent, raising rent, or serving a notice to pay rent or quit when a code enforcement officer has notified the landlord in writing of serious habitability violations and at least 35 days have passed with no repairs. A tenant whose landlord violates the statute can sue for actual damages, special damages between $100 and $5,000, and attorney’s fees, and can raise the statute as a defense if the landlord files for eviction anyway.1California Legislative Information. California Code Civil Code 1942.4
The Four Conditions That Trigger the Statute
Section 1942.4 does not activate on its own. All four of the following must be true at the same time before the landlord loses the right to collect rent:1California Legislative Information. California Code Civil Code 1942.4
- The dwelling substantially lacks one or more habitability standards in Civil Code Section 1941.1, violates Health and Safety Code Section 17920.10, or has been declared substandard under Health and Safety Code Section 17920.3.
- A public officer or employee responsible for enforcing housing laws has inspected the property and sent the landlord written notice of the duty to repair.
- At least 35 days have passed since that notice was mailed, with no repairs and no good cause for the delay.
- The tenant did not substantially contribute to the conditions through misuse or neglect.
The second condition is where most tenants trip. A phone call to the landlord, a demand letter from you, or a complaint to a tenant advocacy group does not count. The notice has to come from an actual government inspector. To get there, contact your city or county code enforcement office or local building department and request an inspection. Most jurisdictions take complaints by phone, online, or in person.
What Counts as a Serious Habitability Problem
Section 1941.1 lists the habitability standards that, if substantially missing, make a rental legally untenantable:2California Legislative Information. California Code Civil Code 1941.1
- A roof, exterior walls, windows, and doors that keep out water and weather
- Working plumbing and gas systems
- Hot and cold running water connected to an approved sewage system
- Heating equipment maintained in good working order
- Electrical wiring and lighting that work and met code when installed
- A building, grounds, and landlord-controlled areas that were clean and free of garbage, rodents, and vermin when the tenancy began
- Enough trash receptacles in good condition
- Floors, stairways, and railings kept in good repair
- Locking mail receptacles for each unit in a residential hotel
Two new entries took effect for leases entered into, amended, or extended on or after January 1, 2026: a working stove capable of safely producing heat for cooking (a recalled stove does not qualify), and a working refrigerator capable of safely storing food. The tenant and landlord can agree in writing at lease signing that the tenant will supply the refrigerator, but the agreement has to follow specific disclosure rules.
Section 1942.4 also reaches beyond the Civil Code list. It applies when the dwelling violates Health and Safety Code Section 17920.10, which covers lead hazards such as deteriorated lead-based paint and lead-contaminated dust or soil at levels likely to endanger occupants.3California Legislative Information. California Health and Safety Code 17920.10 It also applies when the dwelling has been declared substandard under Section 17920.3 because conditions endanger the health, safety, or welfare of occupants. That substandard definition sweeps in inadequate sanitation, structural hazards like deteriorated foundations or defective flooring, missing ventilation or natural light, visible mold growth confirmed by a health officer or code enforcement officer, and pest infestations.4California Legislative Information. California Health and Safety Code 17920.3
What the Landlord Cannot Do Once the Statute Applies
With all four conditions met, the landlord is barred from:1California Legislative Information. California Code Civil Code 1942.4
- Demanding or collecting rent
- Issuing any notice of a rent increase
- Serving a three-day notice to pay rent or quit, the required first step in a nonpayment eviction
These restrictions last as long as the untenantable conditions persist and the tenant is not at fault for them. The statute does not merely give the tenant something to argue about later. It strips the landlord of the legal tools needed to start an eviction in the first place. A three-day notice served while 1942.4 is in effect is invalid.
What You Can Recover
A landlord who demands rent or pursues eviction despite the statute is liable for the tenant’s actual damages plus special damages of no less than $100 and no more than $5,000. The prevailing party also recovers reasonable attorney’s fees and court costs.1California Legislative Information. California Code Civil Code 1942.4
Actual damages cover out-of-pocket losses tied to the conditions: temporary housing costs, medical bills from mold or pest exposure, damaged personal property, and similar expenses. The special damages award sits on top as a statutory penalty.
Money is not the only remedy. If the court awards damages, it can also order the landlord to abate any nuisance and repair any substandard conditions that materially affect health or safety. The court keeps jurisdiction over the case to make sure the work happens. A damages check alone will not fix a leaking roof; a repair order with continuing judicial oversight creates real pressure to finish the job.1California Legislative Information. California Code Civil Code 1942.4
You can file a 1942.4 claim in small claims court if the total stays within that court’s jurisdictional limit. You do not have to exhaust any other remedy first, and the statute works alongside other remedies available under the Civil Code, your lease, or common law.
Using 1942.4 as a Defense to Eviction
If your landlord files an unlawful detainer case for nonpayment while the four conditions are met, Section 1942.4 gives you an affirmative defense. The argument is simple: the landlord had no legal right to demand rent or serve the three-day notice, so the entire eviction rests on an invalid foundation.
To win on that defense, you have to prove each condition: the dwelling was untenantable or substandard, a government inspector put the landlord on written notice, more than 35 days passed without repairs and without good cause, and you did not cause the conditions. If the court agrees, the eviction fails, and you can still recover damages and attorney’s fees.1California Legislative Information. California Code Civil Code 1942.4
Documentation decides these cases. Keep the code enforcement notice, dated photographs of the conditions, every written communication with your landlord about repairs, and receipts for any expenses you incurred. Eviction courts move quickly, and judges want to see the paper trail laid out in front of them.
What to Do With the Rent You Are Not Paying
Section 1942.4 prohibits the landlord from collecting rent but says nothing about what you should do with the money. The practical move is to set it aside in a separate account. Nothing in the statute requires this, but it protects you in three ways.
If the case ends up in court, the judge will likely require you to pay some reduced amount based on the diminished value of the unit. Judges rarely excuse rent entirely. Having the money available lets you comply with a court order inside the tight deadlines eviction courts set. Setting the money aside also signals that you withheld rent because of the conditions rather than because you could not afford to pay. And it strengthens your position if any part of your defense turns out weaker than you thought.5California Department of Real Estate. Tenants Responsibility for Repairs
Protection From Retaliation When You Report Your Landlord
Many tenants hesitate to call code enforcement because they fear being pushed out in response. Civil Code Section 1942.5 addresses that fear directly. For 180 days after you complain to your landlord about habitability, file a complaint with a government agency, or cause an inspection to occur, the landlord cannot evict you, raise your rent, or cut services in retaliation, provided you are current on rent.6California Legislative Information. California Code Civil Code 1942.5
The 180-day window resets to the most recent triggering event. If you file a complaint, an inspection follows two weeks later, and a citation issues a month after that, the 180 days run from the citation. The statute also prohibits the landlord from threatening to report a tenant or anyone associated with the tenant to immigration authorities as a form of retaliation.
A retaliating landlord is liable for actual damages plus punitive damages between $100 and $2,000 for each retaliatory act involving fraud, oppression, or malice. A tenant can only invoke this protection once in any 12-month period.
Where You Can Lose the Protection
Section 1942.4 will not help you if you caused the problem. The fourth condition requires that the untenantable conditions did not result from your own violations of Civil Code Sections 1929 or 1941.2. Section 1941.2 obligates tenants to keep the areas they occupy clean and sanitary, dispose of trash properly, use electrical, gas, and plumbing fixtures correctly, avoid damaging the unit, and use each room for its intended purpose.7California Legislative Information. California Code Civil Code 1941.2
The statute asks whether the tenant “contributes substantially” to the conditions. Minor housekeeping lapses will not sink your claim. But if misusing the plumbing caused the sewage backup, or neglect brought on the pest infestation, the landlord’s repair duty falls away and so do the Section 1942.4 protections. This is the defense landlords raise most often, so take an honest look at the cause of the problem before you stop paying rent.
Repair-and-Deduct as a Narrower Alternative
Section 1942.4 is not the only tool for habitability problems. Civil Code Section 1942 lets you hire someone to fix the problem yourself and subtract the cost from rent, after giving the landlord written or oral notice and a reasonable time to act. The repair cannot cost more than one month’s rent, and you can only use this remedy twice in any 12-month period.8California Legislative Information. California Code CIV 1942
Waiting at least 30 days after notice is presumed reasonable; you can act sooner, but you have to prove the shorter wait was justified. As a further alternative, you can vacate the unit entirely and owe no rent from the date you leave. Repair-and-deduct works for discrete fixes like a broken water heater. For systemic failures or problems that cost more than a month’s rent to resolve, 1942.4’s rent-withholding protections are the stronger lever, and the two remedies can be used together.