Selling a House With Code Violations in California

Weathered older house exterior representing a property with code violations in California

You are not legally required to fix open code violations before selling a house in California. You are required to disclose known violations to the buyer, and if the city already stepped in to abate a hazard and you never paid the bill, that cost may already be recorded as a lien against the property — something a title search will surface whether you mention it or not.

What Counts as a Violation Serious Enough to Matter

Health and Safety Code §17920.3 defines a “substandard” building as one with conditions that endanger the life, health, or safety of the public or its occupants — and the list is broad: missing or non-functional plumbing fixtures, no hot or cold running water, inadequate heating, deteriorated foundations or flooring, walls or supports that buckle or lean, defective wiring, and inadequate fire exits, among others. Not every code violation rises to this level — a missing permit for a patio cover is a different problem than a sagging roof — but this is the statutory baseline local code enforcement works from when a property is flagged.

How a Violation Becomes a Lien

When a city abates a nuisance or hazardous condition itself — boarding up a structure, clearing debris, or making emergency repairs — because the owner didn’t, state law under Government Code §38773.1 through §38773.5 lets the city recover those costs as a special assessment recorded against the property. That assessment attaches the way a tax lien does and has to be resolved before or at closing, regardless of whether the underlying violation itself ever gets fixed.

You Have to Disclose What You Know

Even in an as-is sale, California’s general disclosure duty requires sellers to reveal known material defects and known code violations to the buyer — as-is limits what you have to fix, not what you have to tell the buyer. This is a different issue from unpermitted work done years ago without a citation ever being issued — we’ve covered that disclosure separately — because an active code violation usually means the city already has a file open on the property, not just an undocumented renovation in its history.

Why Red Tags Kill Traditional Financing

A property with an active red tag or vacate order is effectively unfinanceable through a conventional mortgage — lenders won’t fund a loan on a structure the local building department has declared unsafe to occupy, and most appraisers won’t complete a standard appraisal on one either. That single fact eliminates most retail buyers before they ever make an offer, which is the main reason properties in this condition tend to sell to investors and cash buyers rather than owner-occupants.

What a Title Search Will Surface Before You List

Open permits, recorded abatement liens, and pending code enforcement actions all show up in a title search, so it’s worth pulling one yourself before you list rather than finding out from a buyer’s title company mid-escrow. Government liens follow different rules than private contractor or judgment liens, and clearing them can take longer than a typical escrow period if you’re starting from scratch after an offer is already accepted.

When Fixing It First Actually Pays

Not every violation justifies selling at a steep as-is discount. A single cosmetic or minor code item — a missing smoke detector, an unpermitted shed — can sometimes be resolved for a few hundred dollars and a quick inspection, which may open the property back up to retail buyers and a meaningfully higher price than an investor sale would bring. Get an actual quote before assuming the fix isn’t worth it. Where a cash sale genuinely makes sense is when the violation is structural, the abatement lien is already sizable, or the cost and time to cure would exceed what the improvement adds to the sale price.

This is general information, not legal advice — code enforcement records, lien amounts, and disclosure requirements vary by city and county. Confirm your property’s status with the local building department before listing. If you’d like a no-obligation cash offer as the property sits, Cash Home Buyers CA can provide one.