Housing code violations are conditions in a residential property that fall below the minimum health, safety, and maintenance standards your local government enforces, and they range from a missing smoke alarm to no heat, exposed wiring, pest infestations, lead paint hazards, and failing roofs or plumbing. Most cities build their rules on the International Property Maintenance Code (IPMC), which sets baseline requirements for structure, plumbing, fire safety, and sanitation in rental housing. When a unit falls short, a tenant can file a complaint that triggers an inspection, a formal citation, repair deadlines, and penalties against the owner.
What Counts as a Violation
The specific list varies by jurisdiction, but a handful of categories account for most of what inspectors cite.
Structure and Weatherproofing
Roofs have to keep water out. Foundations have to be stable, without visible shifting or cracking. Exterior walls, windows, and doors have to be weather-tight. Active water intrusion and foundation movement are treated as high-priority deficiencies because unaddressed leaks lead to rot, mold, and eventual structural failure.
Heat, Plumbing, and Electrical
Under the IPMC, heating systems must be capable of maintaining at least 68°F in habitable rooms, bathrooms, and toilet rooms during cold-weather months. In milder climates where the average monthly temperature stays above 30°F, the threshold drops to 65°F. Cooking appliances and unvented portable heaters don’t count toward meeting the requirement.1Verona, New Jersey. 2021 International Property Maintenance Code
Plumbing fixtures must connect to a public water supply or an approved private system. Sinks, bathtubs, and showers need both hot and cold running water, and the supply must be free from contamination. Sewage lines must drain properly without obstruction or leaks. A unit without consistent clean water or working waste disposal is almost always cited.
Electrical systems have to be properly grounded, with no exposed wiring or overloaded circuits. Outlets near water in kitchens and bathrooms should have ground-fault protection. Exposed live wiring is one of the most dangerous conditions an inspector can find, and in federally subsidized housing it is classified as life-threatening.2U.S. Department of Housing and Urban Development. NSPIRE Inspection Checklist
Fire Safety
Smoke alarms are required in every sleeping room, on the ceiling or wall outside each sleeping area, and on every story of the dwelling, basements included.3ICC Digital Codes. IPMC 2018 Chapter 7 Fire Safety Requirements A single missing or dead alarm on any level is enough to trigger a citation. Carbon monoxide detectors are required on each floor in most states, especially in homes with fuel-burning appliances or attached garages.4National Conference of State Legislatures. Carbon Monoxide Detector Requirements Laws and Regulations
Egress matters just as much. Every bedroom needs a window or door large enough to escape through in an emergency, and those exits must open without special tools or excessive force. Painted-shut or blocked windows are common citations.
Sanitation and Pests
Accumulated garbage or debris inside or around a property is a violation on its own because it draws rodents and insects. Active infestations generate separate citations when the owner fails to arrange professional extermination. Cockroaches, bedbugs, mice, and rats are the usual culprits, and inspectors look for droppings, nesting material, live insects, and bite patterns on bedding. In federally assisted housing, extensive infestations are classified as severe deficiencies requiring correction within 30 days.2U.S. Department of Housing and Urban Development. NSPIRE Inspection Checklist
Lead Paint and Federally Assisted Housing
Two federal programs add requirements on top of local codes. If your home was built before 1978, federal law requires the landlord to disclose all known lead-based paint hazards before you sign the lease, include a lead warning statement in the lease, list any known hazards and available reports, and give you the EPA pamphlet “Protect Your Family From Lead in Your Home.”5eCFR. 40 CFR Part 745 – Lead-Based Paint Poisoning Prevention Any renovation that disturbs painted surfaces in pre-1978 housing is governed by the EPA’s Renovation, Repair, and Painting Rule, which requires either a certified landlord or a Lead-Safe Certified Firm to do the work.6Environmental Protection Agency. Compliance With the Lead Renovation Repair and Painting RRP Rule for Landlords
If your unit receives public housing assistance, a Housing Choice Voucher (Section 8), or multifamily subsidy, it must meet HUD’s National Standards for the Physical Inspection of Real Estate (NSPIRE), which often go beyond what local codes require.7Federal Register. Implementation of National Standards for the Physical Inspection of Real Estate
Document the Problem Before You Report It
Inspectors can only evaluate what they see on the day they visit. If a problem is intermittent, like a heater that cuts out at night or a leak that shows up only during heavy rain, your records may be the only proof it exists.
Take dated photographs from multiple angles. A series showing a water stain growing over weeks tells an inspector far more than one shot of a stain. Video is useful for flickering electrical systems or pest activity. Keep a written log of every interaction with the landlord about the problem: the date, whether you called or emailed, what you said, and what they said back. When you send written repair requests, use a delivery method that generates a receipt.
You are trying to show two things: the condition exists and is not improving, and the landlord was told about it and had a reasonable chance to fix it. Most code enforcement offices won’t penalize an owner who was never notified. Your documentation closes that gap.
Filing a Complaint and What the Inspection Covers
Most municipalities offer an official complaint form through a code enforcement office or neighborhood services website. Filing is typically free. The form asks for the property address, the owner or management company’s contact information, and a description of the hazard. Specific language helps: “no hot water in the kitchen since March 3” is more useful than “plumbing problems.” Attach your photos and communication log if the form allows it.
You can usually submit online, in person, or by mail with delivery confirmation. Some jurisdictions accept anonymous complaints, but many require your name and address before an investigation begins. The exception in most places is an immediate threat to health or safety; anonymous tips about gas leaks or collapsing structures generally get investigated regardless.
After you file, a code enforcement officer schedules a physical inspection. The inspector tests systems, measures conditions, checks for required safety equipment, and photographs anything that falls below code. The results go into an official report, which most jurisdictions issue within a few business days to two weeks. If the inspector confirms violations, the report becomes a public record and starts the clock on repairs.
Repair Deadlines After a Citation
Once an inspector confirms a violation and issues a formal notice, the owner faces mandatory deadlines. Timelines vary by jurisdiction and severity, but the pattern is consistent.
Emergency conditions, such as no heat during winter, a gas leak, exposed live wiring, or a collapsed structural element, typically require correction within 24 to 48 hours. Non-emergency violations involving structural repairs, plumbing upgrades, or pest treatment generally allow around 30 days. For HUD-assisted housing, NSPIRE sets the tightest deadlines:7Federal Register. Implementation of National Standards for the Physical Inspection of Real Estate
- Life-threatening deficiencies, including exposed electrical conductors, gas leaks, obstructed exits, and interior temperatures below 64°F during the heating season: 24 hours.
- Severe deficiencies, including extensive pest infestations and deteriorated lead paint above safe thresholds: 24 hours.
- Moderate deficiencies: 30 days, with possible HUD extensions if a permanent repair genuinely cannot be completed in that window.
- Low-priority deficiencies that don’t pose a health or safety risk: 60 days.
Missing a deadline triggers escalating consequences. Most municipalities impose daily fines for each unresolved violation. Persistent non-compliance can produce a lien against the property, which attaches to the title and must be satisfied before the owner can sell. The most severe enforcement tool is revocation of the Certificate of Occupancy, which makes it illegal to rent or inhabit the unit until every cited condition is corrected and a follow-up inspection confirms compliance.
Your Protections and Remedies as the Tenant
The fear that stops most tenants from reporting is retaliation: a rent increase, service cuts, or an eviction notice shortly after the complaint. The vast majority of states now have anti-retaliation statutes that prohibit a landlord from raising rent, cutting services, or starting eviction proceedings because a tenant reported a code violation to a government agency. These protections generally cover complaints to building, housing, health, and safety authorities.
If a landlord retaliates anyway, you can typically use the retaliation as a defense in eviction court, recover actual damages, and in some states collect attorney’s fees. Some states presume retaliation if the landlord acts within a set period after the complaint; others require you to prove the connection. Either way, documenting the timeline between your complaint and any adverse action is critical.
Implied Warranty of Habitability
Separate from anti-retaliation laws, nearly every state recognizes an implied warranty of habitability in residential leases. The landlord has a legal duty to keep the property in livable condition regardless of what the lease says. A clause stating “tenant accepts the property as-is” does not override it. When the landlord breaches that warranty by failing to maintain heat, fix serious plumbing failures, or address dangerous structural conditions, you gain access to several remedies depending on the state.
Rent Withholding and Repair-and-Deduct
Some states let tenants withhold rent entirely when the landlord fails to make habitability repairs. Others require the withheld rent to be deposited into an escrow account or paid to a court rather than simply kept. The procedural requirements are strict, and withholding rent incorrectly, even when conditions are genuinely terrible, can result in eviction for nonpayment. The right exists, but the steps to exercise it safely are narrow and unforgiving.
Repair-and-deduct works differently. You hire a professional to fix the problem and deduct the cost from your next rent payment. Where this remedy exists, it typically caps the deductible amount at one month’s rent per year and requires written notice to the landlord and a reasonable opportunity to act before you proceed. You need receipts and an itemized statement. Doing the work yourself instead of hiring a professional usually disqualifies the deduction.
Constructive Eviction
When conditions get so bad that the unit becomes effectively uninhabitable, you may have grounds to claim constructive eviction. The doctrine applies when the landlord’s failure to maintain the property substantially interferes with your ability to live there, you notify the landlord and they fail to respond, and you then vacate within a reasonable time. A tenant who establishes constructive eviction is released from the lease and the obligation to pay further rent. Courts have recognized severe insect infestations, lack of electricity, and failure to provide heating as conditions sufficient to support the claim.
If the Unit Gets Condemned
If the violations are serious enough that the local government condemns the property and orders it vacated, who pays for your relocation depends on the type of housing. In federally assisted housing, owners may be required to cover moving expenses and interim living costs when displacement results from rehabilitation or demolition activities funded with federal dollars. For Housing Choice Voucher tenants, the local housing authority must issue a voucher with search time if the owner’s substantial repairs make the unit temporarily uninhabitable.
In private, unsubsidized housing, the answer varies. Some localities require landlords to provide relocation assistance when units are condemned due to code violations. Others place no obligation on the owner, leaving displaced tenants to pursue damages through civil court. Checking your local tenant protection ordinance before a crisis is far better than scrambling to research it during one.