Perhaps a notice from the city is on the kitchen counter. Perhaps an inspector has flagged a garage conversion nobody ever permitted, or an inherited house came with a stack of citations. The owner holding that paper wants to know whether selling is even possible and what a sale would ask of them. This guide is written for owners facing code enforcement in California. It explains what a violation means in a sale, what the Civil Code requires a seller to disclose, and how the main paths compare: correcting first, selling to a traditional buyer, or selling as-is.

Yes. A California property with open code violations or unpermitted work can be sold in its present condition, but the problems do not end at closing. The seller generally still owes the required disclosures, a recorded lien stays tied to the property until it is paid or released, and the buyer inherits whatever has not been corrected. What the owner decides is how to handle them.
On this page
What It Means for Owners
A code violation is a condition on a property that breaks a local building, housing, zoning or safety rule. Unpermitted work is construction done without the permit and inspections the local building department requires. Common examples include an addition, a conversion, or electrical or plumbing work.
These problems usually reach an owner on paper, and the type of paper shapes how much weight it carries in a sale. A notice of violation is a written statement from the enforcing agency naming the condition and what must be done about it. A citation generally carries a penalty for a violation that has not been corrected. A red tag is a posted notice that a building, or part of one, is unsafe to occupy. An open permit is a permit that was issued but never received final inspection, so the work was never signed off.
Enforcement itself is largely local. Each city or county applies its own building, housing, zoning and safety rules, words its own notices, and sets its own procedures, so the notice in hand is the first place to look for what a particular agency requires. The guide to reading code enforcement notices explains how these notices are generally structured.
For a sale, the key point is that none of these papers bars a transfer, and none of them disappears when title changes hands. An uncorrected condition stays with the house.
How a code enforcement lien fits in
A code enforcement lien is a recorded claim against the property for unpaid fines or the agency's costs. Because it is recorded, it becomes part of the property's public record rather than a matter between the agency and one owner. That is why it generally remains attached to title until it is paid or released, whoever owns the house at the time. The word "generally" matters here: how a particular lien behaves, including any exceptions for a later buyer, depends on how it was recorded and collected, which is a question for a real estate attorney or the title company. The steps for recording and releasing a lien are set locally, and the enforcing agency's notice or the recorded document itself identifies the office that handles a payoff or release.
In escrow, a lien of this kind is resolved in one of two ways: it is paid from the sale proceeds, or the buyer takes it on under written terms.
Who It Affects
The owner of record, meaning the person or people whose names are on the deed, is the party a code enforcement agency generally holds responsible, whoever created the condition. As a result, many owners carry problems they did not make.
An heir can receive a house with an unpermitted room or an open case started years before the death. A landlord can receive a notice after a tenant's complaint, or after a tenant's own alterations lead to an inspection. A long-term owner may learn of an addition built by an earlier owner only when a buyer's inspector or an appraiser notices it. And an owner who bought without knowing about the violations may now want to sell and has to decide what to say and do about them.
Where more than one person holds title, who must sign a listing agreement, a purchase contract or a deed depends on how title is held and what the recorded documents say. Agreement among relatives or occupants does not create authority to sign. A disagreement among co-owners about selling is a contested matter for an attorney and falls outside this guide.
Rules, Disclosures and Fine Print
The disclosure rules come from a short article of the California Civil Code. For a seller with violations, three questions matter most: when the article applies, whether it can be waived, and which transfers it leaves out.
When it applies. Civil Code section 1102 says that, except as provided in Civil Code section 1102.2, the article "applies to any transfer by sale, exchange, real property sales contract as defined in Section 2985, lease with an option to purchase, any other option to purchase, or ground lease coupled with improvements of any single-family residential property." The form a seller fills out under this article is commonly called the Transfer Disclosure Statement, or TDS. It is the seller's written description of the property's condition, given to the buyer.
Whether it can be waived. Subdivision (c) of that section rules out contracting around the duty: "Any waiver of the requirements of this article is void as against public policy." In practical terms, the term "as-is" describes the condition the buyer accepts. It says nothing about what the seller owes, and neither does a cash payment or a signed statement that disclosure is unnecessary.
Which transfers it leaves out. The exemptions depend on the kind of transfer, not on the buyer's terms. Civil Code section 1102.2 lists transfers the article does not apply to. They include:
- "Sales or transfers from one coowner to one or more other coowners"
- sales or transfers to a spouse, or to people "in the line of consanguinity" (blood relatives in a direct line) of one or more of the transferors
- sales, transfers or exchanges to or from any governmental entity
- sales pursuant to court order, including probate sales and foreclosure sales
- sales by a fiduciary administering a trust, guardianship, conservatorship or decedent's estate. That exemption does not apply where the trustee is a natural person who is trustee of a revocable trust and is a former owner of the property, or was an occupant in possession of it within the preceding year.
The list continues in the statute.
A known violation or unpermitted addition bears on the property's condition, which is what the disclosure statement describes. How a particular condition should be described is a question for a real estate attorney. Disclosure is also only one channel through which violations come to light. A recorded lien or notice generally appears in a title search, so it surfaces in escrow regardless of what the seller writes.
Options and Trade-offs
Three paths come up repeatedly. Each one suits some properties and owners better than others.
Correct first, then sell. Correcting violations or legalizing unpermitted work generally involves plans where needed, a permit application, contractor work, and inspections until the building department signs off. The page on code violation correction describes the steps. Cost and timing depend on the work, the city and what inspectors find, and a permit is not assured. The appeal of this path is that a corrected property may draw more buyers and a stronger list price. The cost is that the owner carries the expense and the wait.
Sell in present condition to a traditional buyer. The house can be listed with a real estate agent, or offered without one, as it stands, with the violations included in the disclosures. The main constraint here is financing. A buyer's lender, often guided by what its appraiser reports, may decline to fund a purchase while violations are open. That narrows the field to buyers whose lender accepts the condition or who pay without a loan.
Sell directly to a buyer who pays cash and takes the property as it is. This path asks the least of the seller before closing: no repairs, fewer showings, and no wait on a buyer's loan approval. The price usually reflects that convenience. Such a buyer takes on the correction work, the enforcement risk and the cost of reselling, so a direct offer is often lower than what the open market might bring. More about this path is in selling with violations as-is.
The choice of path does not change the disclosure rules or the handling of a recorded lien.
A common way to compare paths is by estimated net proceeds from written offers: the price less commissions, repairs, carrying costs, loan payoffs and closing costs. Two offers with different prices can end up closer, or further apart, once those costs are counted.
Mistakes to Avoid
Leaving known problems off the disclosures. A seller who fails to disclose a known material defect, including a known violation, may remain liable to the buyer after closing. How long that exposure lasts depends on the legal claim a buyer brings, which is a question for a real estate attorney.
Reading the payment method as an exemption. The exemptions in section 1102.2 turn on who the parties are and how the transfer happens. A cash sale to an unrelated buyer is not on that list.
Expecting the sale itself to resolve a lien. A closing with no written plan for a recorded lien can leave the seller or the buyer holding a problem neither intended.
Signing before the payoff plan is clear. A purchase agreement that does not say who pays the lien, or who corrects which violation, invites a dispute in escrow.
Skipping the title report. Recorded liens and notices appear there, and finding them late can stall or end a sale.
Letting a co-owner disagreement drift. When the people on title cannot agree, the matter belongs with an attorney, not with the escrow officer or the buyer.
What to Do Next
Two documents tend to anchor the decision. The first is a preliminary title report from a title company, which shows recorded liens, notices of violation and other claims against the property. The second is the original notice or citation, which states the violation, the action the agency requires and any deadline it set. The guide on building code violations explains how enforcement generally proceeds, and the page on code violation help covers the Southern California side, where procedures differ from one city or county to the next.
Different professionals answer different parts of the question. A real estate attorney can review the disclosure duties and how lien payoffs work in escrow. A contractor or inspector can assess what correction or legalization would involve. The local building department that issued the notice is the source for what its open case or permit still requires. An owner who wants to talk through the options can request a code violation options consultation through the form at California Code Violation Property Solutions.
One practical step is to set the title report beside the notice and compare them line by line. Any mismatch between the two is a question to raise with the enforcing office or a real estate attorney.
Ready to talk through your options?
Share the details of your notice. You choose whether contractors or a sale consultant may contact you.
Get help with my propertyFrequently asked questions
Can a property with open code violations be sold in California?
Yes. No notice, citation or red tag by itself bars a transfer. What changes is the shape of the sale: open violations can limit financing, affect price and require a written plan in escrow.
What disclosures does a seller owe when selling a property with code violations?
For single-family residential property, Civil Code section 1102 applies the disclosure article to sales and several related transfers, and subdivision (c) voids any waiver. Known violations and unpermitted work bear on the property's condition. A real estate attorney can say how to describe them.
Does selling as-is or for cash eliminate the seller's disclosure obligations?
No. "As-is" and "cash" describe the deal terms, not the type of transfer, and Civil Code section 1102(c) voids a waiver. A buyer's offer to skip the disclosures does not change the result. Exemptions under Civil Code section 1102.2 depend on who the parties are and how the transfer happens.
What happens to code enforcement liens when a property is sold?
The practical answer usually comes from the preliminary title report, which shows what is recorded and lets escrow plan for it. The purchase agreement then sets who pays. Whether a given lien follows a particular buyer is a question for the title company or a real estate attorney.
How long after selling a house are you liable for undisclosed defects?
The period depends on the legal claim a buyer brings and on the facts. A seller who did not disclose a known defect, including a known violation, may remain liable after closing. A real estate attorney can review how long that exposure lasts.
Do the seller's disclosure obligations apply when selling to a family member?
Not always. Civil Code section 1102.2 exempts transfers to a spouse, to people in the line of consanguinity of a transferor, and between co-owners, among others, from the disclosure article it governs, though that exemption does not by itself eliminate other disclosure duties, such as liability for fraud or concealment. A real estate attorney can confirm whether a specific transfer qualifies for an exemption.