It usually starts with a piece of paper. A notice on the door, or an envelope with the city’s return address, telling you the grass is too high, the garage is falling in, the porch you built needs a permit, or the house is unfit to live in. Then life happens, the deadline passes, and a number starts growing in the background at so many dollars a day. By the time you decide to sell, the question is not really about the broken thing anymore. It’s about the fine, who pays it, and whether anybody will buy the house with it attached. Here is how that actually works, what the law says in a few real states, and what your options look like when you want out.
Yes, you can sell a house with open code violations, and people do it every week. Nothing in the law stops you from signing a contract and handing over a deed because a city case is open. What changes is the money and the paperwork. If the city has already recorded a fine against your property, that lien sits on the title, and a buyer cannot get clean title until it is paid or released, so it comes out of your proceeds the same way a mortgage payoff does. If the case is open but nothing is recorded yet, the next owner inherits both the repair and the running fine, and any buyer worth dealing with will price for that. The practical choice is not “sell or fix.” It’s whether you want to spend the time and money to clear it yourself first, or hand the whole file to a buyer who deals with city cases for a living and take a price that reflects it.
A code violation is a city or county saying your property breaks a local ordinance. The everyday ones are dull and cheap to fix: tall grass and weeds, trash and debris in the yard, a derelict car, peeling paint, a broken fence, an unsecured vacant house. The expensive ones are structural: unpermitted work, an unsafe roof or stairway, electrical and plumbing that was never inspected, or a building a city calls substandard. Texas law, for example, lets a municipality act on a building that is “dilapidated, substandard, or unfit for human habitation and a hazard to the public health, safety, and welfare” and order it vacated, secured, repaired, removed or demolished.
Two things make these cases different from an ordinary repair. First, somebody with a badge has written your address down, so the problem is now documented in a public file. Second, the cost of ignoring it is not fixed. It grows by the day. If the citation came from work done without a permit, this companion guide covers that specific mess in detail: selling a house with unpermitted work.
The sequence is similar in most places, and Florida spells it out cleanly in statute. A code inspector, not a board member and not an anonymous caller, starts the case. Under Florida Statute 162.06, the inspector must notify the violator and give “a reasonable time to correct the violation.” Miss that deadline and the case goes to a code enforcement board for a hearing. Fix it and then let it happen again, and the inspector “is not required to give the violator a reasonable time to correct the violation” the second time. The case can even be heard after you have fixed it, so the board can set costs.
Then come the numbers. Florida Statute 162.09 says a fine “shall not exceed $250 per day for a first violation” and “shall not exceed $500 per day for a repeat violation,” with up to $5,000 for a violation the board finds irreparable or irreversible. Counties and cities with a population of 50,000 or more can vote to go higher: up to $1,000 a day for a first violation, $5,000 a day for a repeat, and $15,000 for an irreparable one. Texas is blunter. Under Texas Local Government Code 54.017, a civil penalty “may not exceed $1,000 a day for a violation of an ordinance,” and the city has to prove you were actually notified of the ordinance and then violated it or “failed to take action necessary for compliance.”
The part sellers miss: the fine does not stop when you list the house. Florida’s statute says a fine “shall continue to accrue until the violator comes into compliance” or until a court rules, whichever comes first.
A $250 a day fine on a vacant house is $7,500 a month. Sitting on the decision for a season can cost more than the repair did.
There is a lever most people never pull. Enforcement boards are told to weigh the seriousness of the violation, what you did to correct it, and whether you have violated before. Florida’s statute then says plainly that “an enforcement board may reduce a fine imposed pursuant to this section.” Fixing the problem, even late, and then asking for a reduction is a real move, not a long shot, and it is worth doing before you negotiate a sale price.

Let the lot get away from you and the city will cut it. Then the cost comes back attached to the property, not to you.
If you do not fix it, plenty of cities simply fix it for you and charge the property. This is called abatement, and it is the quiet way a $90 mowing job turns into a title problem. Columbus, Ohio says the costs of mowing and cleaning up vacant lots and other abandoned properties “are assessed against the taxes of those properties”. Phoenix is more direct still: “If the property is contractually abated, the cost of the work is assessed to the property in the form of a lien”, and the city runs an abatement lien program that pursues judicial foreclosure on unpaid liens, with the foreclosed properties auctioned at a Maricopa County Sheriff’s Office sale.
Texas works the same way for the serious cases. If a city repairs or demolishes a building after the owner fails to comply, it “may assess the expenses on, and the municipality has a lien against” the property, and that lien is “a privileged lien subordinate only to tax liens.” The one real protection, in both Texas and Florida, is homestead: Texas excludes a homestead protected by the state constitution from that repair and demolition lien. A vacant house, a rental or an inherited house you never lived in does not get that shield.

Every address has a file at the city. The title company opens it long before your buyer sees the house.
Here is the mechanism. In Florida, once the board imposes a fine, a certified copy of that order “may be recorded in the public records and thereafter shall constitute a lien” against the land, and against other property the violator owns. After three months unpaid, the board can authorise the local government’s attorney to foreclose on the lien or sue for a money judgment. The limit on that power matters: “no lien created pursuant to the provisions of this part may be foreclosed on real property which is a homestead.” A fine can sit on a homestead for years and collect interest, but the city cannot take the house over it. A vacant or inherited house is a different story.
Where this bites at closing is the search. A buyer’s title company does not only check the county recorder, because code matters often are not recorded yet. It orders a municipal lien search from the city. Sarasota, Florida’s version covers “outstanding municipal liens, code enforcement liens, outstanding utility balances, and false alarm liens,” costs $87.50 for each lien search request, and needs the full address, the owner names and the parcel ID. A payoff figure is a separate request. Cleveland goes further and requires a Certificate of Disclosure, which reports a property’s code history, for all real property transactions under codified ordinance 367.12, effective 5 August 2024, at $60 a go.
So the violation you have not mentioned shows up anyway, usually about ten days before closing, which is the worst possible time to find out. If you want the full picture of how liens behave in a sale, we wrote a longer guide on that here: can you sell a house with a lien on it.
This is where most sellers lose their deal, and it has little to do with the fine itself. A financed buyer brings a lender, the lender requires title insurance, and the title company will not insure around a recorded municipal lien. So the lien has to be paid or released before closing, out of someone’s pocket, and you are usually that someone. On top of that, the condition behind the citation is often exactly what an appraiser or inspector flags: a roof, a stairway, a structural repair, an unpermitted addition that cannot be signed off without opening walls.
The result is predictable. A house with an open structural case is cash-only in practice, however it is listed. Buyers who need a loan drop out in week four or five, you relist, and the fine keeps running the whole time. Cities that require a disclosure certificate or an inspection before transfer add their own queue to your timeline. None of this is a reason to panic. It is a reason to be honest with yourself early about which buyer pool your house is really in.
Assume you have to tell them, and tell them in writing. State disclosure forms ask about this directly. North Carolina’s owner disclosure, for instance, makes owners answer each question Yes, No, No Representation, or Not Applicable, and it asks whether the property violates zoning ordinances, restrictive covenants or building code requirements. Ohio’s form has a section covering zoning and code violations. Beyond the form, a recorded lien is public record, so the information is not really yours to keep.
The practical risk is not a fine for bad paperwork. It is a buyer who closes, finds the file, and sues you for the fine plus the repair. Telling a cash buyer up front costs you nothing, because they are pricing the house on its real condition anyway. What it buys you is an offer that does not get renegotiated in week three when the lien search comes back.
For a seller with an open case, the honest menu is short: