Free Guides · Not a Phone Line or Law Firm · Not Legal Advice · Editorial Policy

How to File a Housing Code Complaint Against Your Landlord

Short answer: To file a housing code complaint, first give your landlord written notice of the problem and a chance to fix it, then report it to your city or county code enforcement office (often through 311) and ask for an inspection. Keep copies of everything, because a dated record of your complaint is also what protects you from retaliation. If a condition is dangerous right now, such as a gas smell, sparking wires or no heat in freezing weather, call 911 first.

Code enforcement inspectors can do what a tenant alone often can’t: issue official violations and order repairs. This guide explains how to find the right agency, what to report, what happens at the inspection, and the state laws that protect you for complaining.

How to file a housing code complaint: step by step

  1. Right away: handle emergencies. Call 911 for fire, gas, or any immediate danger. Code enforcement is not an emergency service.
  2. Today: notify the landlord in writing. Describe the problem, the date it started and what you want fixed. Some laws expect this first: New Jersey’s anti-reprisal law says a tenant should bring a complaint to the landlord and allow “a reasonable time to correct the violation” before going to a government agency (NJ DCA, Reprisal Law). New York City’s housing agency also tells tenants to contact the landlord first (NYC HPD guide).
  3. Today: document the conditions. Take dated photos and video and keep a log. See our guide to documenting landlord problems.
  4. If the landlord doesn’t act: find the right agency and file. Most cities have a code enforcement, building or housing department. In New York City, Chicago and Philadelphia, start with 311. In New Jersey, the state’s Bureau of Housing Inspection handles complaints about apartments (NJ 211). If you can’t tell who covers your address, ask 211 or your county government.
  5. Write down your complaint number. NYC tells tenants to keep the service request number to track the case.
  6. Be home for the inspection, and show everything. Berkeley’s rent board advises tenants to “show the inspector all the problems in the unit” and ask that each be noted in the report (Berkeley Rent Board).
  7. Afterward: follow up and keep paying rent. Ask for a copy of the inspection report. If repairs still don’t happen, legal aid can help you use the violation in court.

What to report

Housing codes cover conditions that affect health and safety. Common examples include:

  • No heat, no hot water, or no running water
  • Leaks, mold and water damage
  • Pests such as roaches, rats or bedbugs
  • Broken locks, doors or windows
  • Exposed wiring, broken outlets, or missing smoke and carbon monoxide alarms
  • Unsafe stairs, floors, ceilings or porches

Some states spell out the most serious items. North Carolina lists “imminently dangerous conditions” that include unsafe wiring, unsafe floors or steps, no potable water, no working toilet or tub, exterior doors without working locks, and a heating system that can’t warm living areas to 65°F when it is 20°F outside between Nov. 1 and March 31 (G.S. 42-42). For heat problems, see no heat or hot water in your apartment.

What happens after you file

New York City publishes its process, and it is typical of a big-city system. HPD notifies the owner, then calls the tenant to ask whether the problem was fixed. If not, a code inspector visits, generally within 30 days depending on severity, with life-threatening complaints prioritized. If the inspector can’t get into the unit, they leave a card and the tenant has 10 days to call for an appointment.

When a violation is found, the owner is told to fix it within a time that depends on the violation class. Hazardous “Class C” conditions must be fixed within 24 hours for most violations. If the owner fails, HPD’s Emergency Repair Program can hire a contractor and bill the owner, and unresolved cases can go to HPD’s Housing Litigation Division. HPD also says your immigration status does not matter when you file.

Smaller cities move more slowly and have fewer tools, but the inspection report is valuable everywhere: it is an official record that the condition existed and that you reported it.

Retaliation protections by state

Many tenants worry that complaining will get them evicted. Most large states make it illegal for a landlord to punish a tenant for a good-faith complaint to a government agency. Several also presume retaliation if the landlord acts within a set period.

State Protection for complaining to a code agency Source
Texas No eviction filing, rent increase, lease termination, decreased services or similar action within 6 months of a good-faith code complaint. Tenant remedy: one month’s rent plus $500, actual damages, costs and attorney’s fees, less rent owed. Tex. Prop. Code §§ 92.331, 92.333
Florida Landlord may not raise rent, cut services or sue for possession primarily in retaliation for a complaint to a code enforcement agency. Tenant must have acted in good faith; it is a defense to eviction unless the landlord proves good cause. Fla. Stat. § 83.64
New York Good-faith complaints to a government authority are protected. Action within one year is presumed retaliatory unless the landlord shows otherwise; damages, attorney’s fees and injunctive relief available. Rent still owed. N.Y. Real Prop. Law § 223-b
Illinois Landlord may not end a tenancy, raise rent, cut services, sue for possession or refuse renewal because of a good-faith code complaint. Remedies include up to 2 months’ rent or 2 times damages, whichever is greater, plus attorney’s fees. Landlord Retaliation Act, P.A. 103-831
Ohio No rent increase, service cut or possession action in retaliation for a complaint to a government agency. Tenant may use it as a defense, recover possession or end the lease, plus actual damages and attorney’s fees. Ohio Rev. Code § 5321.02
Georgia Filing an eviction, raising rent, cutting services or ending the lease within 3 months of a good-faith code complaint is presumed retaliatory. Remedy: one month’s rent plus $500, costs and possible attorney’s fees, less what is owed. Georgia DCA Handbook
North Carolina A good-faith complaint to a government agency about a health or safety violation is protected. Retaliatory eviction is a defense if the protected act was within 12 months of the eviction filing. G.S. 42-37.1
Michigan No possession judgment if the termination was mainly a penalty for a complaint to a government authority about a health or safety code violation. A complaint within 90 days before the case creates a presumption in the tenant’s favor. Michigan retaliation defense statute (MCL)
New Jersey No notice to quit or eviction as reprisal for a good-faith complaint to a government authority, after first giving the landlord a reasonable time to fix. A notice to quit or major change in tenancy terms afterward creates a rebuttable presumption of reprisal. Exempts owner-occupied buildings with two or fewer rental units. N.J.S.A. 2A:42-10.10 to 10.14 (NJ DCA)
Washington No eviction, rent increase, service reduction or added obligations in reprisal for a good-faith complaint to a government authority. Action within 90 days is presumed retaliatory; tenant may recover costs and attorney’s fees. RCW 59.18.240, 59.18.250

California, Pennsylvania and many cities have their own retaliation rules not shown here; a local legal aid office can tell you what applies to your address. Retaliation protection generally does not excuse unpaid rent, and several of these laws let a landlord proceed for nonpayment or other legitimate reasons.

📨 Get Free Tenant Help Guides Alerts

Free · No spam · Unsubscribe anytime

Worked example: a code complaint in North Carolina

James rents a house in Raleigh. In December his furnace can’t get the living room above 58°F on a night when it is 20°F outside. Under G.S. 42-42, lack of heat able to reach 65°F at 20°F outside between Nov. 1 and March 31 is an imminently dangerous condition, which the landlord must fix within a reasonable time based on its severity.

James texts and emails his landlord on Dec. 3 with thermometer photos. After a week without a repair, he files a complaint with the city’s housing code enforcement office on Dec. 10 and is there for the inspection. In April, the landlord files to evict him even though his rent is current.

Because his good-faith complaint to a government agency came within 12 months of the eviction filing, James can raise retaliatory eviction as an affirmative defense under G.S. 42-37.1, using his dated texts and the city’s inspection report as proof.

Who helps

  • City or county code enforcement. The agency that inspects and issues violations. In New York City, HPD takes complaints through 311 and can make emergency repairs and bill the owner.
  • State agencies in some states. New Jersey’s Department of Community Affairs runs the Bureau of Housing Inspection and publishes landlord-tenant guides, including the reprisal law. Georgia’s handbook notes the state has no agency that can intervene in landlord-tenant disputes, so code inspectors and courts are the main routes there.
  • Attorney general consumer offices. Some take complaints about landlord practices; see filing a complaint with your state attorney general.
  • Legal aid. Find a free legal aid office through the LSC finder or our guide to free legal help for tenants.
  • 211. 211 can point you to local housing services if you don’t know which office covers your area.

If an inspection leads the city to order the building vacated, read building condemned or declared unsafe.

Frequently Asked Questions

Can I file a housing code complaint anonymously?

Some cities allow it; New York City accepts anonymous heat complaints through 311. But an inspector usually needs to get inside your unit, and a complaint in your own name is easier to use later as proof of a protected act.

Can my landlord evict me for calling code enforcement?

Not as punishment in the states in the table above. Georgia’s handbook says it is illegal for a landlord to evict or retaliate against you for requesting a repair or calling code enforcement. Keep your rent current, since most laws still allow eviction for nonpayment.

What if the inspector finds nothing wrong?

Ask for the report and which code sections were checked. If the problem comes and goes, such as heat that fails at night, document it at those times and ask for a follow-up visit.

Do I have to tell my landlord before I complain?

It is wise and sometimes required. New Jersey’s reprisal protection for code complaints applies after you give the landlord a reasonable time to fix the problem. Written notice also starts repair deadlines under many state laws.

Does a code violation mean I can stop paying rent?

No. Rent withholding and repair-and-deduct are only allowed under specific state procedures, and getting them wrong can lead to eviction. Berkeley’s rent board warns that repair-and-deduct “is limited and comes with risks.” Talk to legal aid first.

This guide is general information, not legal advice. Your next step today: send your landlord a dated written repair request, and if it isn’t fixed within a reasonable time, file with your local code enforcement office or 311 and save the complaint number.

Sources

Owed money from a settlement? Check what is open at OpenClassActions.com. Caring for someone with dementia? Find practical guides at HelpDementia.com. Working out a skin routine? Evidence-based answers at AcneAdvocate.com. Forgot the name of a movie? Identify it at FindThisMovie.com. Was your data exposed? Track active breaches at DataBreachRadar.com.

We use cookies to run this site, measure how it’s used, and show ads. Choose “Essentials only” to limit cookies to what the site needs to work. Privacy Policy.