Most people meet a code violation the hard way, when one shows up on a house they own. Investors meet it the other way around: as a signal. A code violation is one of the earliest public records that a property, and the person who owns it, is under some kind of stress.
I pull code violation data across the Puget Sound every morning for my own deal sourcing. Right now that's 83,788 violations on 46,778 properties across Seattle, Tacoma, Bellevue, Burien, Shoreline, Mountlake Terrace, and unincorporated Pierce County. This is what the record actually is, how to read one, and why a small slice of those 83,788 are worth a phone call while most are noise.
A code violation is a citation a city or county issues when a property breaks a local building, housing, zoning, or maintenance code. It's a public record. It names the property, the code that was broken, and usually a deadline to fix it. Common examples: a junk-filled yard, an unpermitted addition, a structure the city has declared unsafe, or a building left vacant and open.
Violation, case, complaint: same thing, different words
Cities don't agree on vocabulary. You'll see "code violation," "code enforcement case," "notice of violation," "code complaint," and "code compliance case," and they mostly point at the same event: the city found a problem and put it on the record. The word changes by jurisdiction; the meaning doesn't.
What does change, and what you have to learn to read, is the difference between the violation and the enforcement around it. The violation is the citation itself. Enforcement is the machine that acts on it: the inspection, the deadline, the fines, the lien. I broke that whole ladder down in what code enforcement violations mean for a property, because the stage a case has reached often matters more than the violation itself.
How to read a code violation record
Pull one case and you'll usually get a handful of fields. Four of them do the real work:
- Type (or category). The physical problem: Vacant Building, Land Use, Construction, Weeds, Emergency. This is the single biggest tell about the owner, and it's where most investors go wrong.
- Status. Open, closed, under investigation, notice issued, in compliance. This tells you where the case sits in the enforcement process. An open, past-deadline case is live. A closed one is history.
- Date. When the case opened. Recency matters more than people think. A citation from last month is a situation in motion; one from 2014 that closed tells you almost nothing.
- Address. The whole point, because it ties the record to a specific parcel, and from there to an owner.
Here's the part the "buy a list" vendors skip: the data is messy. Across our seven markets, roughly 48,000 of those 83,788 cases carry no type field at all, because some cities publish an uncategorized feed. Normalizing that, matching addresses, and separating the live cases from the dead ones is most of the actual work.
Why the type matters more than the violation
This is the mistake that burns new investors. They treat "has a code violation" as one bucket. It isn't. The type is a clue about what kind of owner is on the other end.
Take the single most common typed category in our data: Construction, at 8,632 cases. A construction violation usually means someone pulled a permit that lapsed, or got caught mid-remodel without one. That's an owner spending money on the property. They're improving it, not fleeing it. It's the opposite of distress, and it's the single biggest category in the dataset. Volume lies.
Now compare Vacant Building violations (1,687 cases, plus several hundred more stacked with an Emergency order). A vacant-building case usually means an owner who has checked out. Nobody's living there, nobody's maintaining it, and the city is now involved. That's a motivated seller far more often than a construction case is. The extreme version is a house the city has condemned outright, often the most motivated seller you will find.
Same label, "code violation." Completely different lead. If you want the full ranking of which types to work and which to skip, I put it in code violation types that signal a motivated seller.
Where code violations sit on the distress timeline
Off-market investing is a timing game. You want to reach an owner before the property hits the MLS, before five other wholesalers mail the same pre-foreclosure list, while the owner is still deciding what to do.
A house rarely goes from fine to foreclosed overnight. It slides: deferred maintenance, then a complaint, then a violation, then fines, then a lien, and eventually a sale or a foreclosure. The violation shows up near the front of that slide. A foreclosure filing shows up near the end, which is exactly why everyone competing for it is late. That gap is the entire argument for treating violations as a leading indicator instead of a lagging one.
Recency is what makes this live rather than historical. Across these markets, roughly 17,600 new code violations land in a typical year, fresh cases every week. It's a continuously refilling pool of early signals, not a one-time download.
They're public, and mostly free
The other reason investors work them: you don't need a data broker. Code violations are public records in every market I've checked, which means you can pull them yourself. Sometimes it's a clean open-data portal; sometimes it's a public records request to a city that swears it "doesn't keep a list." Either way, the records are yours to get. I walk through both routes in how to look up code violations on any property, and the legal side in are code violations public record.
The catch
Volume is not signal. Of those 46,778 flagged properties, most have a single, minor, long-closed violation and mean nothing for your pipeline. The leads are the properties where the signal is real: a distress-type violation, recent, still open, and ideally stacked with a second record like a 311 complaint or a fire incident.
Sorting the few from the many is the whole job. It's why I built FlaggedLeads instead of working off a raw city export, and it's the thread through the rest of the code violations guide. Start with the definition, but don't stop there. The definition tells you what a code violation is. The type, the status, and the date tell you whether it's a deal.
Frequently asked questions
What is a code violation on a house?
It's an official citation from a city or county saying the property breaks a local code, such as building, housing, zoning, or property maintenance rules. It becomes a public record tied to that address, usually with a description of the problem and a deadline to fix it.
What are examples of code violations?
Common ones include an overgrown or junk-filled yard, an unpermitted addition or remodel, a structure declared unsafe or dangerous, a building left vacant and unsecured, and land use or zoning problems. In our Puget Sound data the most common typed categories are Construction, Land Use, Landlord/Tenant, Weeds, and Emergency.
Do code violations mean a house is a good deal?
Not by themselves. Some violations, like construction or permit issues, usually mean the owner is investing in the property, not distressed. The stronger signals are vacant-building, emergency, and land-use violations, especially when they're recent, still open, and repeated.
How serious is a code violation?
It ranges widely. A weeds citation is minor and cheap to clear. An unsafe-structure or vacant-building order is serious, and can escalate to daily fines, a lien, or a city-ordered fix. For an owner the severity depends on the type and how long it's gone unresolved; for an investor, that same severity is the signal.
Are code violations public record?
Yes. In every market we track, code violations are public records you can request or look up online. Access and format vary a lot by city, which is the main reason they're harder to work with than they should be.
How many code violations are there?
It depends on the market. Across the Puget Sound cities FlaggedLeads tracks, there are 83,788 recorded violations on 46,778 properties as of July 2026, and roughly 17,600 new cases land in a typical year.