To report housing code violations, document the unsafe conditions in detail, send your landlord written notice and a chance to fix the problem, then file a complaint with your city or county code enforcement agency (sometimes called the building inspection, housing, or health department). The agency will send an inspector, and if violations are confirmed, the landlord receives an official notice with a repair deadline. Anti-retaliation laws in nearly every state protect you from eviction, rent hikes, or service cuts tied to the complaint.
What Counts as a Reportable Violation
Code enforcement handles conditions that threaten health or safety, not cosmetic complaints. A scuffed wall or squeaky door is the landlord’s problem to fix eventually, but it won’t get an inspector out. The conditions that do:
- Structural defects: cracked foundations, sagging floors, holes in walls or roofs, broken windows, failing stairs or railings.
- Plumbing failures: no running water, no hot water, sewage backups, persistent leaks that cause water damage or mold, non-functioning toilets.
- Electrical hazards: exposed wiring, overloaded circuits, non-functioning outlets in required locations, missing or broken smoke detectors.
- Heating and ventilation: no working heat in cold months, non-functional bathroom or kitchen ventilation, broken carbon monoxide detectors.
- Pest infestations: roaches, rodents, bedbugs, or other vermin the landlord has failed to address after notice.
- Fire safety: blocked exits, missing fire extinguishers where required, non-operational fire escapes, inadequate egress from bedrooms.
Under the implied warranty of habitability, recognized in the vast majority of states, your landlord must keep the property in substantial compliance with housing codes. That obligation can’t be waived in the lease, even if the lease says otherwise.
Document Before You Report
The quality of your evidence often decides whether a complaint produces action or stalls in a queue. Build the record before you contact anyone.
Photograph every defect. Turn on your phone’s timestamp so each image carries the date. Pair wide shots that show the room with close-ups of the specific damage. For ongoing issues like leaks or mold, take photos across multiple days to show the condition is persistent or getting worse.
Keep a written log of every communication with your landlord about the problem: date, method (phone, email, text, in person), who you spoke with, and what was said. Three weeks of ignored calls to management about a broken heater becomes a timeline that matters. Save every text and email. After in-person or phone conversations, send a follow-up email summarizing what was discussed, so there’s a written record.
Be specific when you describe the problem. “The bathroom has mold” is weaker than “black mold covers approximately two square feet of ceiling above the shower, first noticed March 3rd, and has spread despite two requests to management.” Precision helps inspectors prioritize and strengthens your position if the matter later reaches court.
Put Your Landlord on Notice in Writing
Before filing with code enforcement, give your landlord written notice of the problem. In many jurisdictions this is a prerequisite for later remedies like rent withholding or repair-and-deduct. Even where it isn’t strictly required to file a code complaint, written notice creates a paper trail showing you gave the landlord a fair chance to fix the issue and starts the clock on any legally required response period.
Use a method you can prove was delivered. Certified mail with return receipt is the gold standard. Email works too, especially if your lease lists an address for maintenance requests. Describe the specific condition, reference any earlier verbal complaints, and state clearly that you expect correction within a reasonable time. Keep a copy.
If the landlord ignores the notice or responds without acting, you’ve built the foundation for a strong code enforcement complaint and preserved your ability to pursue self-help remedies later.
Filing the Complaint With the Right Agency
Local governments handle code enforcement through agencies with varying names: Department of Building Inspection, Code Enforcement Division, Housing Department, or the local Health Department for mold, pests, and sewage. Most agencies accept complaints through an online portal; you can also file in person or by certified mail. Certified mail creates proof that the agency received your complaint on a specific date.
Complaint forms typically ask for the property address and unit number, a description of the violation, the owner’s or management company’s contact information, and your own contact details. Fill out every field. Vague or incomplete forms create processing delays. Pull the specific observations straight from your log and keep the language technical rather than emotional.
Anonymous Complaints
Many agencies accept anonymous complaints, but availability and effectiveness vary by jurisdiction. Some localities now require a complainant’s name and address for most violations, with exceptions for conditions that pose immediate threats to safety or the environment. If anonymity matters to you, check your local agency’s policy first. Anonymous complaints sometimes receive lower priority, and you won’t be able to track the case or follow up as easily.
Filing Fees
Most local governments charge little or nothing to process a complaint. Fees typically run from zero to $50, and the complaint itself is usually free. Fees are more common for reinspection after a violation has been cited. Cost shouldn’t stop you from reporting a legitimate hazard.
What Happens After You File
Once your complaint is processed, you’ll receive a case or tracking number. Agencies generally schedule a standard inspection within a few business days. Life-threatening conditions, such as gas leaks, structural collapse risks, or complete loss of heat in winter, can trigger a response within 24 hours.
You’ll need to be available to let the inspector into your unit at the scheduled time. During the visit, the inspector verifies your claims and often documents additional violations you may not have noticed. The resulting inspection report is a public record and serves as official notice to the landlord. It identifies every violation and sets a repair deadline.
Get a copy of that report and keep it with your other documentation. If the landlord misses the deadline, the agency can issue escalating fines and, in serious cases, condemn the unit as unfit for habitation. The report also becomes powerful evidence if you later need to pursue legal remedies.
Protection From Landlord Retaliation
Reporting your landlord while living in their property feels risky, and that’s why anti-retaliation statutes exist in nearly every state. Legislators recognized that code enforcement doesn’t work if tenants are afraid to use it.
Retaliation shows up in predictable forms: a sudden rent increase, a reduction in services like parking or laundry, a notice to vacate, or a refusal to renew the lease. About 21 states have modeled their landlord-tenant laws on the Uniform Residential Landlord and Tenant Act, which specifically prohibits these actions when they follow a tenant’s complaint to a government agency about health or safety.
The strongest protection is the rebuttable presumption of retaliation. Under the URLTA framework, if a landlord takes adverse action within one year of a tenant’s complaint, courts presume the action was retaliatory. The landlord then has to prove a legitimate, unrelated reason, such as a pre-planned building-wide rent adjustment or the tenant’s own lease violations. State statutes vary on the presumption window; some use six months, others shorter periods.
If a court finds retaliation, the tenant can typically recover actual damages, and many state statutes authorize additional penalties of one to three months’ rent. Attorney fee recovery is also available in numerous states, which matters because a tenant who can’t pay a lawyer upfront may still find one willing to take the case. Criminal penalties for extreme conduct like illegal lockouts or utility shutoffs exist in some jurisdictions.
Your documentation is your shield. A landlord who raises rent two weeks after you file a code complaint has an almost impossible time explaining the timing to a judge, especially if rent hadn’t changed in years. Landlords who want to retaliate know this, and the ones who talk to lawyers usually back off.
When the Landlord Still Won’t Make Repairs
A code complaint applies government pressure, but if repairs still don’t happen, several legal remedies let tenants act directly. The rules vary considerably by state, and using any of them incorrectly can backfire, so check what your jurisdiction allows before acting.
Repair and Deduct
Roughly half of states let tenants hire someone to fix a habitability problem and deduct the cost from the next rent payment. Common requirements: written notice to the landlord, a waiting period (often 14 to 30 days) for the landlord to act, a cost cap (frequently one month’s rent or a fixed dollar amount, whichever is greater), and saved receipts. The repair must address a genuine health or safety issue, not a cosmetic upgrade. You can’t use the remedy if you or someone in your household caused the damage.
Rent Withholding and Escrow
A smaller group of states, roughly 14, allow tenants to withhold rent entirely when a landlord fails to maintain habitable conditions. Where it exists, this remedy almost always requires written notice and a waiting period first. Some states require tenants to deposit withheld rent into a court-supervised escrow account rather than keeping it, which demonstrates good faith and protects you if the landlord files for eviction. Paying into escrow rather than spending the money is the safer move even where it isn’t strictly required.
Constructive Eviction
When conditions become so severe that a unit is effectively uninhabitable, the law can treat the situation as if the landlord evicted you. Establishing constructive eviction generally requires three elements: the landlord’s action or inaction substantially interfered with your ability to live in the unit, you gave notice and a reasonable chance to fix the problem, and you vacated within a reasonable time after the landlord failed to act. A tenant who succeeds is released from paying further rent. The detail that trips people up: you generally have to actually leave. Staying for months while claiming the unit is uninhabitable undermines the argument.
Habitability as an Eviction Defense
If your landlord files to evict you for nonpayment, serious code violations can serve as a defense. The argument is that the landlord breached the implied warranty of habitability, reducing or eliminating the rent obligation. This doesn’t work for minor cosmetic issues, and courts will ask whether you notified the landlord and gave a reasonable chance to repair. But a tenant facing eviction while living without heat or with sewage backing up has a strong hand.
If You Live in Section 8 or HUD Housing
Tenants in Section 8 (Housing Choice Voucher) properties have an additional reporting channel and faster enforcement timelines. Federal Housing Quality Standards require every unit receiving housing assistance payments to meet specific safety and habitability criteria, and Public Housing Agencies are legally obligated to enforce them.
When you notify your local PHA of a potential deficiency, the response timeline depends on severity. For life-threatening deficiencies, the PHA must inspect within 24 hours, and if the problem is confirmed, the owner must repair within 24 hours of PHA notification. For non-life-threatening deficiencies, the PHA must inspect within 15 days, and the owner has 30 days to complete repairs after notification.1eCFR. 24 CFR 982.405 – PHA Inspection of Unit
If the owner misses those windows, the PHA must take enforcement action. Available remedies include abating or terminating housing assistance payments to the owner, terminating the housing assistance payments contract entirely, and debarring the owner from future participation.2eCFR. 24 CFR Part 982 Subpart I – Dwelling Unit: Housing Quality Standards, Subsidy Standards, Inspection and Maintenance Cutting off the owner’s subsidy is a powerful lever that often moves faster than local code enforcement alone.
Tenants in HUD multifamily properties can also call HUD’s Multifamily Housing Complaint Line at 1-800-685-8470. Staff can help resolve problems directly, answer questions about tenant rights, refer you to your local PHA, or escalate the complaint to the appropriate HUD field office.3HUD. Multifamily Housing – Complaint Line
One boundary to be aware of: the federal regulations do not create a private right of action. You cannot sue HUD or your PHA for failing to enforce Housing Quality Standards. Your remedies run through the PHA’s administrative process and, for habitability issues, through your state’s landlord-tenant laws.2eCFR. 24 CFR Part 982 Subpart I – Dwelling Unit: Housing Quality Standards, Subsidy Standards, Inspection and Maintenance