How to document and report housing code violations your landlord ignores
When your landlord fails to fix a serious problem—broken heat, mold, exposed wiring, missing smoke detectors—you have legal tools to force action. The process starts with written notice to your landlord, moves to reporting the violation to your local housing inspector, and can end with rent withholding or repair-and-deduct depending on your state. You do not need a lawyer to start, but you do need to follow the steps in order and keep copies of everything.
The first step is always written notice. Call or text is not enough. Send your landlord a letter (email counts in most places) that describes the specific problem, when you first noticed it, and how it affects your safety or use of the unit. Keep a copy. Give them a reasonable timeframe to fix it—usually 14 to 30 days depending on how serious the violation is. If the problem is an when ready safety hazard like no heat in winter or a gas leak, some states require the landlord to act within 24 to 48 hours.
If your landlord does not respond or does not fix the problem within the timeframe, contact your local housing inspector or code enforcement office. This is usually run by your city or county health department, building department, or housing authority. You can find the right office by calling your city's main line and asking for housing code enforcement, or by searching "[your city] housing code violations" online. The inspector will schedule a visit to your unit, document the violations, and issue a citation to your landlord. This creates an official record and puts legal pressure on the landlord to comply.
Key Takeaways
- Send your landlord written notice describing the specific violation and give them 14 to 30 days to fix it; email or a letter both count as written notice.
- If your landlord does not respond, contact your local housing inspector or code enforcement office, which is usually part of your city or county health or building department.
- After the inspector issues a citation, your landlord typically has 30 to 60 days to fix the violation or face fines and legal action.
- In many states, you can withhold rent or pay for repairs yourself and deduct the cost from rent, but only after following written notice and inspection steps first.
- Document everything: take photos and videos of the violation, keep all written communication with your landlord, and save inspection reports.
What counts as a housing code violation
A housing code violation is any condition that breaks your state or local housing standards. Common violations include no heat or hot water, mold or water damage, broken windows or doors that do not lock, exposed wiring or broken electrical outlets, missing or non-working smoke detectors, pest infestations, sewage or plumbing backups, and structural damage that makes the unit unsafe.
The key distinction is between a minor repair and a code violation. A leaky faucet or a small hole in drywall is usually a maintenance issue your landlord must fix, but it may not be a code violation. A missing window that lets in cold air, or a bathroom with no ventilation that causes mold, is a code violation because it affects your health and safety. Your local housing code spells out the specific standards—you can usually find it on your city or county website, or ask the housing inspector to tell you which code section applies to your situation.
Some violations are considered "serious" or "hazardous" and require faster action. These typically include no heat in winter, no running water, exposed electrical hazards, active mold, pest infestations, and structural damage. If your unit has a serious violation, you may be able to withhold rent or break your lease without penalty in many states, even before the inspection process is complete. Check your state's tenant laws or contact a local tenant rights organization to know your options.
The written notice step and what to include
Your written notice to the landlord must be specific enough that they know exactly what to fix. Do not write "the apartment is cold." Write "the heat in the bedroom does not work; the thermostat reads 55 degrees even when set to 70, and this has been the case since January 10." Include the date you first noticed the problem, how it affects your use of the unit, and any attempts you made to contact the landlord before sending the letter.
Send the notice by email, certified mail, or hand-delivery with a witness. Email is fastest and creates a time-stamped record. Certified mail with return receipt gives you proof the landlord received it. Hand-delivery works if you have someone else present to confirm the landlord got it. Do not rely on a phone call or a text message alone, even if the landlord responds—follow up with a written message that references the conversation.
In the notice, state a reasonable important date for repairs. For serious violations like no heat, 24 to 48 hours is standard. For other violations, 14 to 30 days is typical. Your state or local law may specify the timeframe, so check before you send the letter. End the notice by stating what you will do if the problem is not fixed—for example, "If repairs are not completed by [date], I will report this violation to the housing inspector and may pursue other remedies available under state law."
Keep a copy of the notice and proof that you sent it. If you use email, save the sent message. If you use certified mail, keep the receipt. If you hand-deliver it, have the witness sign a statement confirming delivery. You will need this documentation if the landlord disputes whether they received notice or if you end up in a dispute later.
How to file a complaint with the housing inspector
Once your landlord has had a reasonable time to fix the problem and has not, contact your local housing code enforcement office. Start by finding the right agency. In most cities, this is the building department, health department, or a dedicated housing authority. Call your city's main phone line and ask for housing code enforcement or housing inspection. You can also search online for "[your city name] housing code violations" or "[your county name] building inspector."
When you call or visit, explain the violation and that you have already notified your landlord in writing. Have your written notice and the date you sent it ready. The office will ask for your address, a description of the problem, and your contact information. Some offices let you file a complaint online through their website. Others require you to call or visit in person. A few may ask you to submit a written complaint form.
The inspector will schedule a time to visit your unit, usually within 5 to 14 days. You do not need to be present, but it helps if you are—you can point out the problem and answer questions. The inspector will photograph or document the violation and compare it against the housing code. If the violation is confirmed, the inspector issues a citation to the landlord. This citation includes a description of the violation and a important date for the landlord to fix it, usually 30 to 60 days.
After the inspection, ask the housing office for a copy of the inspection report and citation. This is a public record and you have the right to it. Keep it with your other documentation. If the landlord does not fix the violation by the important date on the citation, the housing office may issue fines, place a lien on the property, or refer the case to the city attorney for legal action. You do not have to do anything else at this stage—the government agency handles enforcement.
Rent withholding and repair-and-deduct options
In many states, if your landlord does not fix a serious code violation after you have given written notice, you can stop paying rent (called rent withholding) or pay for the repair yourself and subtract the cost from your rent (called repair-and-deduct). These are legal remedies, but they come with strict rules and can backfire if you do not follow them correctly.
Rent withholding means you set aside your rent money in a separate account instead of paying the landlord. You must have given written notice first, waited a reasonable time for repairs, and the violation must be serious enough to make the unit uninhabitable or unsafe. You cannot withhold rent for minor repairs. You also cannot straightforward stop paying and keep the money—you must hold it in a separate account and be ready to show the landlord or a court that you set it aside. If you go to court, the judge will decide whether the violation justified withholding and whether you owe the landlord any of the withheld rent.
Repair-and-deduct means you hire a contractor to fix the problem yourself, pay them out of pocket, and then deduct that cost from your next rent payment. Again, you must have given written notice first and waited a reasonable time. The repair must be necessary to make the unit safe or habitable, and the cost must be reasonable. You cannot deduct more than one month's rent, and in some states the limit is lower. You must provide the landlord with receipts and an explanation of what was repaired.
Before you use either remedy, check your state's tenant laws or contact a local tenant rights organization. Some states do not allow rent withholding or repair-and-deduct at all. Others require you to file the violation with the housing inspector first before you can withhold rent. Some states require you to give the landlord notice and a specific timeframe before you can act. Getting the steps wrong can result in an eviction case against you, so verify the rules in your state before you take action.
What to do if your landlord retaliates
Retaliation means your landlord punishes you for reporting a code violation or asserting your tenant rights. Common forms of retaliation include raising your rent, threatening eviction, decreasing services, or harassing you. Most states have laws that forbid retaliation within a certain timeframe after you report a violation—usually 30 to 180 days depending on the state.
If your landlord retaliates, you have legal defenses against eviction and can sometimes sue for damages. The key is proving the timing: if your landlord raises your rent or files for eviction within 30 to 180 days of your written complaint or housing inspection, the law presumes retaliation unless the landlord can prove another reason. Document everything: keep copies of your complaint letter, the inspection report, and any notice of rent increase or eviction. Write down dates and details of any harassment or threats.
If you receive an eviction notice after reporting a violation, contact a tenant rights organization or legal aid office when ready. Many can represent you in court for free or low cost. Retaliation is a strong defense, and courts take it seriously. Do not ignore an eviction notice or assume you will lose—bring your documentation to court and explain the timeline to the judge.
Building a paper trail and staying organized
The most important thing you can do is document everything from the start. Take photos or videos of the violation from multiple angles and in different lighting. Include the date in the photo if your phone or camera can do that. Take new photos every week or two if the problem persists—this shows the landlord has had time to fix it and has not.
Keep all written communication with your landlord: emails, text messages, letters, and notes from phone calls (write down the date, time, and what was discussed). Save the housing inspector's report and citation. If you pay for repairs yourself, keep receipts and invoices. If you withhold rent, document how much you withheld and when. Organize these materials in a folder or binder, in chronological order. If you end up in a dispute or court case, this documentation is your evidence.
Consider sending all notices to your landlord by email or certified mail so you have a time-stamped record. If you speak to your landlord by phone, follow up with an email that says "This confirms our conversation on [date] about [the problem]. You agreed to fix [specific issue] by [date]." This creates a written record of what was said.
When to contact a tenant rights organization or lawyer
You do not need a lawyer to report a code violation or file a housing complaint. The process is designed for tenants to use on their own. However, you should reach out to a tenant rights organization or legal aid office if your landlord files for eviction after you report a violation, if the violation is severe and making you sick, if your landlord is harassing you, or if you are unsure about your state's specific rules.
Tenant rights organizations and legal aid offices offer free or low-cost help. They can review your documentation, tell you what your state law allows, represent you in court if needed, and help you understand your options. You can find these organizations by searching "[your state] tenant rights" or "[your county] legal aid," or by calling 211 and asking for housing legal services.
If you decide to hire a private lawyer, many offer free initial consultations. A lawyer can be especially helpful if you are considering rent withholding or repair-and-deduct, because getting the steps wrong can result in an eviction case. A lawyer can also help if your landlord is retaliating or if the violation has caused you harm—for example, if mold has made you sick.
Frequently Asked Questions
Can I break my lease if my landlord will not fix a serious code violation?
In most states, yes, but only if the violation is serious enough to make the unit uninhabitable or unsafe, and only after you have given written notice and given the landlord time to fix it. Uninhabitable usually means no heat, no water, no electricity, active mold, or structural danger. Check your state's tenant laws or contact a tenant rights organization to know whether your specific violation qualifies. If it does, you can usually move out without penalty, but you must follow the notice and waiting period first.
What if the housing inspector says there is no violation?
If the inspector finds no violation, you have limited options. You can request a second inspection or ask the inspector to explain their decision in writing. If you believe the inspector made a mistake, contact the housing office supervisor or file a complaint with the agency. You can also consult a lawyer to see whether the condition violates a different code section or whether you have other legal remedies. In rare cases, you can sue your landlord for breach of the implied warranty of habitability, but this usually requires a lawyer.
Do I have to pay rent while waiting for repairs?
That depends on how serious the violation is and what your state law says. If the violation makes the unit uninhabitable—no heat in winter, no water, active mold—you may be able to withhold rent or pay reduced rent. If it is a less serious violation, you usually must keep paying rent while the repair process happens, but you can pursue other remedies like repair-and-deduct. Check your state's tenant laws before you stop paying rent, because doing so without legal justification can result in eviction.
How long does the whole process take?
From written notice to landlord to housing inspection usually takes 2 to 6 weeks. After the inspector issues a citation, the landlord typically has 30 to 60 days to fix the violation. If the landlord does not comply, the housing office may pursue fines or legal action, which can take several more months. If you end up in court over retaliation or eviction, the case can take 2 to 6 months depending on your state and court backlog. The faster route is to report the violation early and document everything as you go.
What if I rent from a large property management company instead of an individual landlord?
The process is the same. Send written notice to the property management company at the address listed on your lease or rent payment instructions. If they do not respond, file a complaint with the housing inspector. Large companies often respond faster to official citations because they have compliance departments and do not want fines or legal liability. Keep all documentation and follow the same steps as you would with an individual landlord.