Skip to content
Call us today: (818) 351-2975

How to Sell a House With Code Violations in California

By Flipside Investments TeamReviewed by Marcus Chen, California Real Estate AdvisorLast reviewed August 3, 2026

If your California home has code violations, you might feel stuck. Maybe the city posted a notice on your door. Maybe you inherited a place with unpermitted work. Or maybe an inspector flagged something during a refi and now you have a stack of correction notices sitting on the kitchen counter.

Here's the good news: you can absolutely sell a house with code violations in California. The bad news? It takes some strategy. This guide walks you through what code violations actually mean under California law, what you have to disclose, and the real options for getting the property off your hands.

What Counts as a Code Violation in California?

Code violations come in a lot of flavors. Some are minor. Some can make a home legally uninhabitable. The most common ones we see across California include:

  • Unpermitted additions or ADUs. That converted garage, the bonus bedroom, the back-house grandma unit. If work happened without a permit, it's a violation.
  • Electrical or plumbing done without permits. Rewiring, panel upgrades, new water heaters, and repiping all require permits in most California cities.
  • Zoning violations. Running a business from a residential lot, too many units on a single-family parcel, or short-term rentals in prohibited zones.
  • Health and safety issues. Mold, missing smoke detectors, lack of working plumbing, or structural problems.
  • Substandard housing notices. These are the big ones. Under California Health and Safety Code Section 17920.3, a home can be declared substandard for dozens of specific reasons, from inadequate sanitation to faulty weather protection.
  • Nuisance abatement. Overgrown yards, junk vehicles, or trash accumulation that triggers city action.

Each California city handles violations a little differently. Los Angeles has the LADBS Code Enforcement Bureau. San Francisco uses the Department of Building Inspection. Smaller Central Valley cities like Bakersfield or Stockton have their own code enforcement teams. But the process is roughly the same everywhere in the state: notice, deadline to correct, escalating fines, and eventually liens or worse.

What You Must Disclose to Buyers Under California Law

California is one of the strictest disclosure states in the country. If you know about a code violation, you have to tell the buyer. Full stop.

The Transfer Disclosure Statement (TDS), required by California Civil Code Section 1102, is the main form. You'll check boxes about known defects, unpermitted work, and any notices from a government agency. Lying on a TDS is a fast track to a lawsuit. California courts have repeatedly sided with buyers who discovered undisclosed violations after closing.

You'll also fill out a Seller Property Questionnaire (SPQ), which asks even more detailed questions. Things like:

  • Any additions or alterations without permits?
  • Any current or past notices from the city or county?
  • Any recorded liens for code enforcement?
  • Any known health and safety issues?

If you have open code enforcement cases, they'll usually show up on a title search anyway. Recorded notices of substandard conditions, or accumulated fines that turned into liens, appear during escrow. Hiding them isn't really an option, and trying to hide them can void the sale and get you sued after the fact under California's disclosure statutes.

My honest advice: disclose everything, even the small stuff. Buyers who know what they're getting can't come back later saying they were misled.

Your Three Realistic Options for Selling in California

When you have code violations, you basically have three paths. Each one has trade-offs.

Option 1: Fix the Violations First

This is the traditional route. You hire contractors, pull retroactive permits, get inspections signed off, and then list the home on the MLS. The upside is you'll likely get top dollar. The downside is time and money.

Retroactive permits in California are a headache. Some cities require you to open up walls to prove the work was done to code. If it wasn't, you might have to tear it out and start over. Legalizing an unpermitted ADU in Los Angeles or San Diego can take 6-18 months and cost anywhere from $15,000 to $80,000 depending on the scope.

This path makes sense if the violations are minor, you have the cash, and you're not in a hurry. Learn more about the full traditional process on how it works.

Option 2: Sell As-Is on the Open Market

You can list the property on the MLS with full disclosure of all violations. Some buyers will still bite, especially investors and flippers. But you'll take a discount, and financing gets tricky.

Most conventional loans, FHA, and VA loans won't fund a property with active code violations or unpermitted living space. That knocks out most typical buyers. You're basically limited to cash buyers or hard-money-backed investors.

Expect a longer time on market and multiple failed escrows as buyers' inspectors uncover more issues.

Option 3: Sell to a Cash Buyer

Cash buyers who specialize in problem properties will purchase houses with active code violations, open permits, and even red-tagged buildings. No repairs, no permit pulls, no city inspections before closing.

The trade-off is price. Cash buyers factor the violation costs, holding costs, and risk into their offers. You'll typically get less than a fully-renovated market value, but you also skip six figures in repairs and a year of stress. For California homeowners with mounting fines or looming abatement deadlines, this is often the fastest exit. You can start the process here: sell my house.

City-Specific Code Enforcement Across California

Where your property sits in California matters a lot. Here's what to expect in a few major markets:

Los Angeles. LADBS is aggressive with unpermitted ADUs and additions, but state ADU legalization laws (SB 1211 and related bills) have made it easier to get some conversions approved retroactively. Fines start around $660 per violation and can escalate quickly. If you own in Los Angeles, check the LADBS online portal for any open cases before listing.

San Francisco. The DBI takes a hard line on illegal in-law units and unpermitted work. San Francisco's Planning Code is dense, and enforcement can drag on for years. Sellers in San Francisco often find that legalizing an in-law unit costs more than the value it adds.

San Diego. Coastal properties face additional scrutiny from the California Coastal Commission on top of city code enforcement. Selling in San Diego with a coastal violation requires extra planning.

Sacramento and Central Valley. Cities like Sacramento, Fresno, Stockton, and Bakersfield tend to be more flexible on retroactive permits, but their nuisance abatement programs are active. Vacant homes with overgrown yards get flagged fast.

Oakland and East Bay. Oakland's Code Enforcement Relocation Program adds another layer if tenants are involved. Selling a tenant-occupied property with violations in Oakland can mean dealing with relocation payments in some cases.

What Happens If You Just Ignore the Violations?

Bad things, mostly. California cities can:

  • Assess daily fines (often $100-$1,000+ per day per violation)
  • Record liens against the property
  • Refer the case to the city attorney for criminal misdemeanor charges
  • In extreme cases, condemn the property and force demolition

Under California Government Code Section 38773.5, cities can also recover their enforcement costs through the property tax roll. That means unpaid code enforcement fines can become a special assessment that follows the property.

And here's the kicker: those liens have to be paid off at closing. If your fines have ballooned to $50,000 or $100,000, that comes off your net proceeds. Waiting rarely helps.

Practical Steps to Take Right Now

If you're staring at a violation notice and thinking about selling, here's what to do this week:

  1. Pull your city's code enforcement file. Most California cities let you request this online or in person. Know exactly what's on the record.
  2. Get a title search. See if any liens are already recorded. A title company or real estate attorney can pull this for a few hundred dollars.
  3. Get contractor estimates. Even if you don't plan to fix things, knowing the repair cost helps you evaluate cash offers.
  4. Talk to a California real estate attorney. Especially if there's litigation, receivership, or health department involvement. An hour of legal advice is worth it.
  5. Compare your options. Get a market analysis from an agent, quotes from investors, and a realistic timeline for legalization. Then decide.

Selling a house with code violations isn't fun, but it's completely doable in California. Whether you fix it up, list as-is, or take a cash offer, the key is honest disclosure and a clear-eyed look at what each path really costs you. If you want a no-obligation cash offer on a California property with code issues, Flipside Investments buys houses in any condition across the state, permits or no permits, and closes on your timeline.

Frequently asked questions

Can I sell a house in California with active code violations?
Yes. There's no law preventing the sale of a home with code violations in California. You must disclose all known violations on the Transfer Disclosure Statement, but the sale itself is legal. Cash buyers and investors regularly purchase homes with open cases.
Do I have to fix code violations before selling in California?
No, you're not required to fix them. However, most conventional lenders won't finance a home with active violations, which limits your buyer pool to cash buyers or investor-friendly loan programs. Any recorded liens or fines must be paid at closing.
What happens to code enforcement fines when I sell?
Any recorded fines or liens are typically paid off at closing from the sale proceeds. Unrecorded fines or pending violations transfer to the new owner unless negotiated otherwise. Buyers usually require a clean title, so escrow will handle payoffs before recording.
Can unpermitted additions be legalized retroactively in California?
Sometimes. California has expanded ADU legalization laws that make it easier to permit existing unpermitted units. However, the work must meet current building code, which may require opening walls, structural upgrades, or removing the addition entirely. Costs vary widely by city.
Will the buyer's lender find out about my code violations?
Almost certainly. Title searches reveal recorded notices and liens. Appraisers flag obvious unpermitted work. City records are public. And most lenders order their own inspection. Disclosing upfront is faster and cheaper than getting caught mid-escrow.
How much less will I get selling with code violations?
It depends on the severity. Minor violations might only cost you 5-10% off market value. Major issues like substandard housing declarations, red tags, or extensive unpermitted living space can reduce offers by 20-40% or more, since buyers factor in repair costs and risk.
What if the city is threatening to condemn my property?
Act quickly. Once a condemnation or receivership process starts, your options narrow fast. Contact a California real estate attorney, and consider a cash sale to a buyer experienced with distressed properties. Waiting until the city takes possession usually means losing most or all of your equity.

Need to sell your California home?

Get a free, no-obligation cash offer from Flipside Investments. We buy houses in any condition and close in as little as 7 days.

Get my free cash offer