Your right to a habitable apartment, and what to do when the landlord won't fix it
Every state and most cities have laws that require landlords to maintain rental housing in a condition fit for living — meaning working heat, water, electricity, a roof that doesn't leak, and walls free of serious mold or pests. If your apartment fails these standards and your landlord refuses or delays repairs, you have legal options that do not require you to move out or break your lease.
The most direct route is to document the problem, notify your landlord in writing, and give them a reasonable timeframe to fix it — usually 14 to 30 days depending on your state. If they don't, you can typically withhold rent, pay for repairs yourself and deduct the cost from rent, break the lease without penalty, or file a complaint with your local housing authority. Which option makes sense depends on where you live, how serious the problem is, and whether you want to stay in the apartment.
Key Takeaways
- Habitability laws exist in every state, but the specific standards and your remedies vary by location — check your state housing code or contact your local housing authority to learn what applies to you.
- You must notify your landlord in writing (email counts) and describe the problem clearly; verbal complaints do not create a legal record and give landlords an excuse to claim they didn't know.
- Rent withholding, repair-and-deduct, and lease termination are legal in most places but have strict procedural requirements — doing them wrong can result in an eviction filing against you.
- Housing code violations can be reported to your city or county housing inspector, who can order repairs and sometimes impose fines on the landlord at no cost to you.
- Retaliation is illegal in most states — landlords cannot raise rent, threaten eviction, or reduce services because you reported a problem or asserted your rights.
Document the problem and notify your landlord in writing
Before you take any legal action, you need a clear record of what is wrong and when you told the landlord about it. Take photos or video of the problem — mold, water damage, broken windows, pest droppings, lack of heat — with today's date visible if possible. Write down when you first noticed it and how it affects your ability to live safely in the apartment.
Send your landlord a written notice describing the problem, the date you discovered it, and the date by which you expect it to be fixed. Email is legally sufficient in most states; certified mail is stronger because it creates a delivery record, but either one protects you. Do not call or text — those leave no proof. Keep a copy of everything you send and every response you receive.
The timeframe you give the landlord matters. Most states define "reasonable" as 14 to 30 days for non-emergency repairs, and 24 to 48 hours for emergencies like no heat in winter or no water. Check your state's housing code or call your local housing authority to confirm the standard in your area. If the problem is truly dangerous — carbon monoxide, active electrical hazard, sewage backup — you can often demand immediate action or call emergency services yourself.
Understand rent withholding and repair-and-deduct in your state
If your landlord does not make repairs within the legal timeframe, two remedies are available in most states: rent withholding (you stop paying rent until repairs are made) and repair-and-deduct (you hire a contractor, pay for the repair, and subtract the cost from your next rent payment). Both are legal, but both have strict rules that vary by state, and doing them wrong can give your landlord grounds to evict you.
Rent withholding requires you to place the withheld rent in an escrow account (a neutral third-party account) or sometimes to pay it into the court. You cannot simply keep the money — that looks like non-payment and gives the landlord an eviction case. Some states require you to notify the landlord that you are withholding rent and why; others require you to file paperwork with the court first. A few states do not allow rent withholding at all. Before you withhold a single dollar, contact your local legal aid office or housing authority to confirm the exact procedure in your state.
Repair-and-deduct is usually simpler but has limits. You typically must get at least two written estimates for the repair, show them to the landlord, and give them a final chance to do the work themselves. The repair cost is usually capped at one month's rent or a percentage of monthly rent (often 25 to 50 percent). You must keep all receipts and documentation. Some states require you to notify the landlord before you hire anyone; others allow you to act immediately if the problem is urgent. Again, the rules differ by location.
File a housing code complaint with your city or county
Your local housing authority or building inspector can order your landlord to make repairs without you having to take them to court. This is often faster and costs you nothing. Call your city or county housing department, describe the problem, and ask to file a complaint. They will typically send an inspector to your apartment within a few days to a few weeks.
If the inspector confirms a code violation, they issue an order requiring the landlord to fix it by a specific date. If the landlord ignores the order, the city can impose fines, place a lien on the property, or in some cases make the repairs themselves and bill the landlord. You do not have to pay for this, and you do not have to appear in court. The downside is that the process can be slow — inspections may take weeks to schedule, and enforcement can take months.
Some cities also have rental licensing programs that require landlords to register their properties and pass annual inspections. If your building is not licensed or fails inspection, you can report it to the licensing office. A few cities will not renew a landlord's license or will revoke it if there are unresolved code violations, which creates strong pressure to make repairs.
Break your lease without penalty if the apartment is uninhabitable
In most states, you have the right to terminate your lease and move out if the landlord fails to maintain the apartment in habitable condition. This is called constructive eviction — the landlord's failure to provide basic living conditions is treated as if they evicted you. You do not owe rent for any period after you move out, and you do not owe a penalty for breaking the lease early.
To exercise this right, you must follow the legal procedure in your state. Typically, you send the landlord a final written notice stating that the apartment is uninhabitable, that you have already asked for repairs, and that you will vacate by a specific date (usually 14 to 30 days out) if repairs are not made. Keep a copy. If the landlord does not fix the problem by that date, you can move out. Do not simply leave — give notice and document that you followed the procedure.
The risk is that if a court later decides the apartment was actually habitable, or that you did not follow the notice procedure correctly, the landlord can pursue you for unpaid rent or damages. This is rare, but it is why you must document everything and follow your state's exact procedure. Before you move out, contact a legal aid office or tenant rights organization to confirm you are doing it correctly.
Understand retaliation protections and what they cover
Retaliation is illegal in most states. This means your landlord cannot raise your rent, threaten eviction, reduce services, or make any other negative change in response to you reporting a code violation, requesting repairs, withholding rent, or asserting your legal rights. If your landlord takes a negative action within a certain period after you assert a right — usually 30 to 180 days depending on the state — the law presumes it is retaliation unless the landlord can prove otherwise.
Retaliation can include raising rent, decreasing services (like removing a parking space or cutting off utilities), threatening or filing for eviction, increasing security deposit demands, or harassing you. If your landlord does any of these things shortly after you report a problem or file a complaint, document it and report it to your local housing authority or tenant rights organization. Some states allow you to sue for damages; others let you use retaliation as a defense if the landlord tries to evict you.
Not all negative landlord actions are retaliation. If you actually stop paying rent and the landlord files for eviction, that is not retaliation — it is a response to non-payment. If you have a lease that says rent increases on a specific date, and that date happens to be after you filed a complaint, that is usually not retaliation either. The key is whether the landlord's action was a response to your assertion of rights, not whether the timing is close.
Know when to contact a lawyer or legal aid organization
Habitability disputes can become complicated, especially if your landlord files for eviction or if you are considering withholding rent. Many areas have free or low-cost legal aid offices that help tenants with housing problems. Search for "[your city or county] legal aid" or "[your state] tenant rights" to find local organizations. They can review your specific situation, tell you what the law says in your state, and help you follow the correct procedure.
You should contact a lawyer or legal aid office before you withhold rent, repair-and-deduct, or break your lease, because doing these things wrong can result in an eviction filing. You should also contact them if your landlord has already filed for eviction, if you are facing retaliation, or if the problem is so serious that you cannot safely stay in the apartment. Many legal aid offices can represent you in court at no cost if you may have access to based on income.
Some tenant rights organizations also offer free consultations or can connect you with a lawyer who handles housing cases. If you cannot find free help, a private tenant rights attorney typically charges between $150 and $300 per hour, though some work on contingency (you pay only if you win). Even one consultation can clarify what your options are and what mistakes to avoid.
Frequently Asked Questions
What counts as an uninhabitable apartment?
Standards vary by state, but generally include: no heat in winter, no running water, no electricity, a roof that leaks into living spaces, active mold or mildew that poses a health risk, pest infestations (rodents, cockroaches), broken windows or doors that cannot be secured, and sewage or plumbing backups. Minor issues like a broken cabinet or peeling paint usually do not may have access to. Your state's housing code defines the exact standards — contact your local housing authority to confirm what applies to your situation.
Can I move out immediately if the apartment is uninhabitable?
In true emergencies — no heat in freezing weather, no water, active gas leak, sewage backup — you may be able to move out immediately and stop paying rent. For other problems, most states require you to give the landlord written notice and a reasonable timeframe to fix it before you leave. If you move out without following the legal procedure, the landlord can argue you broke the lease and pursue you for unpaid rent. Contact legal aid before you move to confirm the procedure in your state.
What if I cannot afford to move out or hire a contractor for repairs?
Filing a housing code complaint is free and does not require you to move or spend money upfront. The city inspector can order repairs at the landlord's expense. You can also contact your local legal aid office, which may be able to help you withhold rent or repair-and-deduct without hiring a private contractor. Some areas have tenant advocacy organizations that can negotiate with landlords or connect you with resources.
Can my landlord evict me for reporting a code violation?
No. Retaliation for reporting a code violation is illegal in most states. If your landlord files for eviction within 30 to 180 days after you report a problem (the timeframe varies by state), the law presumes it is retaliation unless the landlord proves otherwise. Bring documentation of your complaint to court. If you are facing eviction after reporting a problem, contact legal aid immediately — they can help you defend against it.
What if my landlord says repairs are my responsibility?
Landlords are responsible for maintaining the structure and systems of the building — roof, walls, plumbing, electrical, heating. Tenants are typically responsible for minor maintenance like changing light bulbs or cleaning. If your lease says you are responsible for major repairs, that clause is usually unenforceable because it violates habitability laws. Do not accept a lease that shifts the landlord's legal obligations to you. If you already signed one, contact legal aid — they can advise you on whether it is valid in your state.