California Civil Code 1942.4 bars a landlord from demanding rent, raising rent, or serving a three-day notice to pay or quit when a rental unit has serious habitability problems that a government code enforcement officer has documented in writing and the landlord has failed to fix within 35 days. A tenant whose landlord violates the statute can recover actual damages plus special damages of no less than $100 and no more than $5,000, along with reasonable attorney’s fees and court costs.1California Legislative Information. California Code Civil Code 1942.4
The Four Conditions That Trigger the Statute
Section 1942.4 does not activate automatically the moment something breaks. All four of the following must be true before the landlord loses the right to collect rent or evict:1California Legislative Information. California Code Civil Code 1942.4
- The dwelling substantially lacks one of the 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, and the landlord has no good cause for the delay.
- The tenant did not substantially contribute to the conditions through their own misuse or neglect.
The second condition is where most tenants stumble. Your own letter to the landlord will not do it. A complaint filed with a tenant rights nonprofit will not do it. You need an actual code enforcement officer or building inspector from your city or county to inspect the unit and issue written notice to the landlord. Most jurisdictions accept complaints by phone, online, or in person through the local code enforcement office or building department.
What Counts as Untenantable or Substandard
The habitability failures that qualify are structural or essential-service problems, not cosmetic ones. Civil Code Section 1941.1 covers a working roof and weatherproofing, functioning plumbing and gas, hot and cold running water connected to sewage, working heating, safe electrical systems, clean and pest-free premises at the start of the tenancy, adequate trash receptacles, sound floors and stairs, and locking mail receptacles in residential hotels.2California Legislative Information. California Code Civil Code 1941.1
A newer piece of the list matters if your lease is recent. For leases entered into, amended, or extended on or after January 1, 2026, the landlord must also provide 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. A tenant and landlord can agree in writing at lease signing that the tenant will supply their own refrigerator, but the agreement has to follow specific disclosure rules.
Section 1942.4 also reaches beyond the Civil Code list. Conditions declared substandard under Health and Safety Code Section 17920.3 count, and that section covers inadequate sanitation, structural hazards like deteriorated foundations or defective flooring, missing ventilation or natural light, visible mold growth confirmed by a health or code officer, and pest infestations.3California Legislative Information. California Health and Safety Code 17920.3 Lead hazards addressed in Health and Safety Code Section 17920.10, including deteriorated lead-based paint, lead-contaminated dust or soil, and improper paint disturbance, are covered as well.4California Legislative Information. California Health and Safety Code 17920.10
What Your Landlord Cannot Do Once It Applies
When all four conditions are met, the landlord is legally prohibited from three specific acts: demanding or collecting rent, issuing a notice of any rent increase, and serving a three-day notice to pay rent or quit. Those restrictions stay in place as long as the untenantable conditions persist and the tenant is not responsible for causing them.1California Legislative Information. California Code Civil Code 1942.4
This is not just a defense once you are sued. The statute strips the landlord of the ability to start a nonpayment eviction at all. A three-day notice served while the statute is in effect is legally invalid, and any unlawful detainer action built on that notice rests on an invalid foundation.
Damages, Repairs, and Where to Sue
A landlord who violates the statute is liable for actual damages the tenant sustained plus special damages of no less than $100 and no more than $5,000. Actual damages can include temporary housing costs, medical bills tied to mold or pest exposure, damaged personal property, and other out-of-pocket losses caused by the conditions. Special damages sit on top of those actual losses and function as a penalty. The prevailing party recovers reasonable attorney’s fees and court costs.1California Legislative Information. California Code Civil Code 1942.4
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, and the court keeps jurisdiction over the case to make sure the repairs actually happen. That ongoing oversight is one of the statute’s most useful features. A check will not patch a leaking roof, but a repair order backed by continued court supervision creates real pressure.
You can bring a Section 1942.4 claim in small claims court as long as the total sought falls within that court’s jurisdictional limit. You do not need to exhaust any other remedy first, and the statute works alongside other remedies available under the Civil Code, your lease, or common law.1California Legislative Information. California Code Civil Code 1942.4
Using Section 1942.4 to Defend an Eviction
If your landlord files an unlawful detainer for nonpayment while the statute’s conditions are met, Section 1942.4 gives you an affirmative defense. The argument is that the landlord had no legal right to demand rent or serve the three-day notice, so the entire case collapses. To prevail, you have to establish each of the four conditions: the unit was untenantable or substandard, a government inspector notified the landlord in writing, more than 35 days passed without repairs and without good cause for the delay, and you did not cause the conditions.
Documentation carries these cases. Keep the code enforcement notice, dated photographs of the conditions, written communications with the landlord about repairs, and receipts for anything you spent because of the problems. Unlawful detainer courts move on tight timelines, and judges want to see the paper trail rather than hear about it.
What to Do With Rent While You Withhold
The statute prohibits the landlord from collecting rent, but it does not tell you where to put the money. The practical move is to set the withheld rent aside in a separate account. Nothing in Section 1942.4 requires this, but it protects you in three ways.5California Department of Real Estate. Tenants Responsibility for Repairs
If the case reaches court, a judge will usually order you to pay some reduced amount reflecting the diminished value of the unit rather than excusing rent entirely. Holding the money in reserve lets you comply within the short deadlines eviction courts impose. It also signals to the court that you withheld because of conditions, not because you could not or would not pay. And it cushions you if a defense you were counting on turns out weaker than expected.
When Your Own Conduct Bars the Claim
The statute will not help a tenant whose own conduct caused the problem. Section 1941.2 lists tenant obligations that matter here: keep the areas you occupy clean and sanitary, dispose of trash properly, use electrical, gas, and plumbing fixtures correctly and keep them reasonably clean, avoid damaging any part of the unit and prevent guests from doing so, and use each room for its intended purpose.6California Legislative Information. California Code Civil Code 1941.2
The statutory threshold is that the tenant “contributes substantially” to the condition. A minor housekeeping lapse will not bar the claim. But if misuse of the plumbing caused the sewage backup, or neglect caused the infestation, the landlord’s repair duty falls away and Section 1942.4’s protections go with it. This is the defense landlords raise most often, so think carefully about the cause before deciding to withhold.
Two Related Tools Worth Knowing
Section 1942.4 is not the only option. Civil Code Section 1942 lets a tenant repair discrete habitability problems and deduct the cost from rent after notifying the landlord and giving a reasonable time to act. The repair cannot cost more than one month’s rent, and the remedy can be used no more than twice in any 12-month period. Waiting at least 30 days after notice creates a legal presumption that the wait was reasonable. The tenant can also simply vacate and owe no further rent from the date of departure.7California Legislative Information. California Code CIV 1942 Repair-and-deduct fits a broken water heater or a leaking faucet. For systemic failures or repairs that exceed one month’s rent, Section 1942.4 is the stronger tool, and the two can be used alongside each other.
Retaliation is the other concern. Civil Code Section 1942.5 protects a tenant for 180 days after complaining to the landlord about habitability, filing a complaint with a government agency, or triggering an inspection, provided the tenant is current on rent. During that window the landlord cannot evict, raise rent, or cut services in retaliation, and the statute explicitly bars threats to report a tenant or anyone associated with the tenant to immigration authorities. The 180-day clock resets to the latest triggering event. A landlord who retaliates 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 invoke this protection only once in any 12-month period.8California Legislative Information. California Code Civil Code 1942.5