Landlord Retaliation Claims in California: What They Mean If You’re Trying to Sell

Deciding to sell a rental is a normal business decision. The trouble starts when the timing lines up badly with something the tenant did, like complaining about a leak, calling code enforcement, or asking for repairs in writing. California’s retaliation law looks at what you did and when you did it, not just why. If you’re preparing to sell a tenant-occupied property, it helps to know where the lines are before you serve a notice or change anything about the tenancy.
What Civil Code 1942.5 actually says
California Civil Code section 1942.5 protects tenants who exercise their rights over the condition of their home. If the tenant isn’t behind on rent, a landlord can’t recover possession, force the tenant to move, raise the rent, or cut services within 180 days after any of these events:
- The tenant gave notice about a habitability problem, reported a suspected bed bug infestation, or complained to the landlord (even orally) about the unit’s condition.
- The tenant filed a complaint with a government agency (for example, code enforcement or the health department) that the landlord knew about.
- An inspection happened or a citation was issued because of such a complaint.
- The tenant started a lawsuit or arbitration about habitability, or won one.
The 180 days run from the latest of those dates, so a new inspection or filing can restart the clock. A tenant can only use this 180-day protection once in any 12-month period.
Separately, the statute makes it unlawful at any time to retaliate because a tenant joined a tenants’ association or lawfully exercised other legal rights. Threatening to report a tenant or their household to immigration authorities is expressly treated as retaliation. Outside the 180-day window, the tenant has to produce the evidence that your action was retaliatory. Inside it, the timing does a lot of that work for them.
How a genuine sale fits in
The law doesn’t stop you from selling, and it doesn’t stop you from acting for a lawful reason. Under subdivision (g), a landlord can still serve a termination notice or take other action during the 180 days if the notice states the good-faith ground for it. If the tenant disputes it, the landlord has to prove that ground is true at trial.
That’s where documentation matters. A listing agreement signed before the complaint, emails with an agent about pricing, a lender or estate-planning reason to sell, an accepted offer: these show the sale was already in motion. What looks bad in court is a notice that shows up a week after a code complaint with nothing in writing to show the decision came first.
Keep in mind, though, that a sale by itself is usually not a legal reason to end a tenancy in California. Under the statewide Tenant Protection Act (Civil Code 1946.2), most tenants who’ve been in place for 12 months can only be evicted for a listed “just cause,” and selling the property isn’t on the list. So the realistic plan for most owners is to sell with the tenant in place, or to reach a voluntary agreement for them to leave.
Los Angeles adds another layer
Inside the City of Los Angeles, the Just Cause Ordinance covers most rental units that aren’t under the Rent Stabilization Ordinance, and it kicks in once a tenant has lived in the unit for six months or their original lease has expired, whichever comes first. That’s sooner than the state’s 12-month threshold. Allowed no-fault reasons include things like owner or family move-in, demolition and substantial remodeling, and they come with relocation assistance requirements. A plain sale isn’t one of them.
RSO units (generally older multifamily buildings) have their own rules and relocation amounts, and leaving the rental market entirely goes through the Ellis Act process. Other cities, including Santa Monica, West Hollywood, Oakland and San Francisco, have their own ordinances. Check the city before you plan anything around vacancy.
What counts as retaliation in practice
Owners preparing to sell sometimes do things that feel routine but read as retaliation when they follow a complaint:
- Serving a notice to quit or a 60-day notice soon after a repair request.
- Raising the rent “to market” right before listing, shortly after a complaint.
- Cutting services, like taking away parking, laundry or storage, or letting repairs lapse because “the new owner can deal with it.”
- Excessive or poorly noticed entries for showings, which can also look like harassment.
Do’s and don’ts when selling with a tenant in place
Do:
- Fix reported problems promptly and keep receipts. A resolved complaint is far less likely to turn into a dispute.
- Give proper entry notice. Under Civil Code 1954, 24 hours’ written notice is presumed reasonable. Once you’ve told the tenant in writing that the property is for sale, you can give oral notice for showings to buyers for the next 120 days. Here’s more on what notice you owe before bringing a buyer through.
- Gather the lease, rent ledger, deposit records and any written agreements. Buyers will ask for them, and a tenant estoppel certificate helps confirm the terms.
- Put your reasons for selling in writing early, with dates.
Don’t:
- Serve any notice, rent increase or service change within 180 days of a complaint without talking to an attorney first.
- Pressure the tenant to leave, show up unannounced, or hint that cooperating with showings is a condition of staying.
- Promise a buyer vacant possession you can’t legally deliver.
Your realistic options
Sell occupied. Selling with the tenant in place avoids the retaliation question almost entirely, because you aren’t taking any action against the tenancy. The lease carries over to the buyer, the security deposit is either transferred to the buyer or returned to the tenant as Civil Code 1950.5 requires, and the tenant simply has a new landlord.
Negotiate a move-out. A voluntary cash-for-keys agreement lets the tenant leave on terms they agree to. Keep it written, voluntary and clear. In Los Angeles, tenant buyout offers for RSO units have their own disclosure rules.
Use a legal no-fault ground. If a genuine ground applies, such as a family member moving in, it has to be real, properly noticed, and paid for where relocation is required. That’s a different path from a standard eviction, and it’s where most retaliation defenses come up, so get advice first.
What it costs if a court finds retaliation
A tenant can recover actual damages, plus punitive damages of $100 to $2,000 for each retaliatory act where the landlord acted with fraud, oppression or malice. The court awards reasonable attorney’s fees to the winning side if either party asks for them at the start of the case. On top of that, a retaliatory eviction gets thrown out, which means months more of carrying costs while you’re trying to sell.
For broader context on who rents and who owns across the state, see our California Owner vs. Renter Housing Report 2026. If the unit itself has already been placed in the city’s Rent Escrow Account Program over unresolved repairs, that status — not just retaliation timing — shapes what a seller can and can’t do; see what REAP placement means for a seller.
Common questions
Can I sell my rental if my tenant just filed a code complaint?
Yes. Selling isn’t retaliation. Ending the tenancy, raising rent or reducing services within 180 days is what triggers the protection. Fix the issue and sell with the tenant in place, or get legal advice before taking any action against the tenancy.
Can a tenant refuse showings?
Not if you give proper notice and enter at reasonable times. But repeated or poorly noticed entries can be treated as harassment, so keep showings organized and limited.
Does the new owner inherit a retaliation dispute?
The tenancy and its terms transfer with the property, so a buyer will want to know about any open complaints or disputes. Disclose them.
Selling a tenant-occupied property
If you’d rather sell without serving notices or waiting out a vacancy, we buy rentals with tenants in place. We either buy directly or bring a vetted cash buyer, and we’re comfortable with leases, rent-controlled units and properties that need work. See how we handle tenant-occupied sales in Los Angeles, call us at (424) 435-2326, or request a no-obligation offer online.
