Code inspection
You can ask the city to send an inspector to check your home for unsafe conditions.
Where do you rent?
The rule depends on your state and city. Pick your state to see the rule where you live.
The general rule
Before you move out, ask your city or county to check your home. This office is often called code enforcement, the building department, or the health department. The inspector can make your landlord fix code problems. The dated report is strong official proof of how bad things were.
✓ Sources checked October 5, 2026
If the landlord does not fix the heat, ask your local government for help. Call your city or county code or health office and ask about a rental housing inspection. Your state also has an agency that handles tenant rights problems. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 5, 2026
If your landlord refuses to make repairs, tell your local government about unsafe or unhealthy conditions. The office may be code enforcement, the building department, or the health department. The city or county should inspect your home and require your landlord to repair violations it finds. Keep any papers the city or county gives you. If you face an eviction case, they can be proof of the problems.
✓ Sources checked October 5, 2026
Every place we cover
Albuquerque
You can report housing code problems to the City of Albuquerque. Call 311 (505-768-2000) or report online. The 311 service sends your complaint to the right department to investigate. For very unsafe conditions, an inspector can condemn your home, which means ordering everyone to leave right away. This can happen even if you called for the inspection. Ask a legal aid lawyer first if you are worried about being forced out.
✓ Sources checked October 5, 2026
Arkansas
Cities have building codes to protect your health and safety. The Arkansas Attorney General says to contact the city if you have a health or safety problem with your home. The city can tell you if the home fully complies with housing codes (city building rules). A city check can lead to an order to close a building you live in. Ask the city what could happen before you call.
✓ Sources checked October 5, 2026
Boston
Tell your landlord about the problem first so they know what is wrong and can fix it. If no action is taken in a reasonable time frame, you can ask an inspector from the local board of health to come and look. The inspector can order your landlord to fix anything that breaks the Sanitary Code. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 3, 2026
Boston
Tell your landlord about the problem first so they know what is wrong and can fix it. Give the landlord a reasonable amount of time to make repairs. If they do not comply, you can ask an inspector from the local board of health to come and look. The inspector can order your landlord to fix anything that breaks the Sanitary Code. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 3, 2026
California
If your landlord does not fix the problem, ask your city or county code enforcement or health department to inspect. The inspector can order your landlord in writing to fix conditions that break the housing code. Complaining to an inspector is a protected act, so your landlord cannot legally punish you for it. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 5, 2026
Connecticut
Your city or town has a board of health or another code enforcement agency. It can officially decide that your home is unfit to live in or dangerous to health or life. This can be because of needed repairs or problems with plumbing, drainage, or construction. If so, it can order everyone to leave, giving at least 24 hours and no more than 10 days to do so. You may need somewhere else to stay while this happens.
✓ Sources checked October 5, 2026
Georgia
Georgia landlords must follow local housing codes during a lease. You can contact the local, county or city housing code inspector. Suppose the county or city condemns the property (bans living there) and prohibits residential use. Then you can treat the landlord as having broken the lease and move out. Condemnation can leave you without a home, so think about that before you call.
✓ Sources checked October 5, 2026
Illinois
You can ask your local building or code department to inspect your home for code violations. An inspector's report can help prove the problem exists. In Chicago, call 311 or file a Building Violation Request online. Other cities and counties have their own building or code enforcement office. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 5, 2026
Las Vegas
The City of Las Vegas has a Code Enforcement office. It helps with neighborhood issues and code compliance. During business hours, Monday through Thursday, 7 a.m. to 5:30 p.m., call 702-229-6615 and select 3.
✓ Sources checked October 5, 2026
Los Angeles
If the landlord ignores you, report the problem to the city. Call the LAHD Code Enforcement Unit at 888-557-7368 for apartment buildings. Call LADBS for a condo or single family house. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 5, 2026
Massachusetts
If your landlord does not fix the problem, you can ask an inspector from your local board of health to come look at your home. The inspector can order your landlord to fix anything that breaks the Sanitary Code. For very bad conditions, an inspector can order everyone to leave. Ask legal aid first if you are worried this could happen to you.
✓ Sources checked October 3, 2026
Michigan
Cities, villages, and townships with 10,000 people or more can run a rental inspection program under state law. In smaller cities, this program only covers larger rental buildings unless the city has chosen to cover small buildings too. Where this program runs, a local agency gives out a rental certificate (a paper saying the building is safe). If the agency finds a serious health or safety hazard, it can suspend the certificate and order everyone to leave until the hazard is fixed.
✓ Sources checked October 5, 2026
Minnesota
You can ask the local government agency in charge of code rules to inspect your home for problems. A housing-related neighborhood organization (a nonprofit working on housing issues in your area) can also ask. It needs your written permission, unless the building is empty, then it can ask on its own.
✓ Sources checked October 5, 2026
Minnesota
After the inspection, the inspector must tell you and your landlord in writing about any code problems found. Your landlord then gets a reasonable amount of time to fix them.
✓ Sources checked October 5, 2026
Missouri
Your city or county has an office that checks if landlords follow the housing code. This office is called the code enforcement agency.
✓ Sources checked October 5, 2026
New Hampshire
A New Hampshire city or town may adopt a housing code (a local rule about homes unfit to live in). The code sets up a public agency (a board, department, officer, or employee). After notice and a hearing, the agency may find a home unfit for human habitation (not fit to live in). It may order the owner to repair it, or to vacate (empty) and close it. That order applies if repair costs are reasonable for the home's value and the owner's means. If not, the order may require tearing the home down. For very bad conditions, an inspector can condemn the home and make everyone leave. Think about this before you ask for an inspection.
✓ Sources checked October 5, 2026
New Jersey
Buildings with 3 or more rental units must sign up with the Bureau of Housing Inspection. This agency makes sure landlords follow New Jersey's housing code for those buildings.
✓ Sources checked October 5, 2026
New Jersey
You can report a housing code problem to the Bureau of Housing Inspection. Call 609-633-6227 or email BHIInspections@dca.nj.gov. These buildings must be inspected regularly by this agency. If an inspector finds your home seriously unsafe, they can order everyone to leave right away. Ask a legal aid group for help if you can, since this can happen without much warning.
✓ Sources checked October 5, 2026
New Jersey
Buildings with 1 or 2 rental units are not covered by the Bureau of Housing Inspection. If the building is not owner-occupied, it must follow local rules. It must register with the clerk in the city or town where it is located. An owner-occupied 2-family house does not need to register.
✓ Sources checked October 5, 2026
New York City
If the landlord ignores you, file a complaint with the city. Call 311, or go to nyc.gov/311. For no heat or hot water, call 311 right away. HPD can send someone to look at your home. HPD can also give the landlord a violation. One caution from legal aid: for very bad problems, an inspector can condemn the home. Then everyone must leave.
✓ Sources checked October 5, 2026
North Carolina
If your landlord does not fix a problem that puts your safety at risk, or breaks local codes, you can report it. Contact your local building, health, fire or safety inspector. For very bad conditions, an inspector can condemn your home and order everyone to leave. Ask legal aid first if you are not sure.
✓ Sources checked September 24, 2026
Ohio
If there is a code enforcement office where you live, you can ask them to inspect your home. If the inspector finds a code violation, they will order your landlord to make the repair. Keep a copy of the inspector's report for your own records.
✓ Sources checked October 5, 2026
Oregon
A city or county housing inspector can decide your home is unsafe and unlawful to live in. The inspector makes this call when a problem materially affects health or safety. If so, the inspector can require you to leave and post a written notice on your home. After that, your landlord cannot rent the home to you or to anyone else again until the problem is fixed.
✓ Sources checked October 5, 2026
Pennsylvania
An official inspection is strong proof. Before you decide to move out, ask your city or county code office to inspect the home and write down what is wrong. Courts treat proof of code violations as strong proof that a home was not fit to live in. In Philadelphia, you can report bad rental conditions to 311, online or by phone. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 5, 2026
Pennsylvania
If the landlord does not fix the heat, report it to your city or county code office. Ask for an inspection. The city treats no-heat reports as a priority during the heating season and tells renters to report right away. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 5, 2026
Pennsylvania
If your landlord does not fix the problem, ask your city or county code office to inspect your home. An inspection creates an official record of the conditions. In Philadelphia, you can report a rental property that breaks city codes to 311, online or by phone. Other cities and towns have their own code offices: check your city's guide. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 5, 2026
Pittsburgh
If your landlord will not fix a problem, you can call 311 to report it. 311 sends the complaint to the city's code inspectors in Permits, Licenses, and Inspections, or to the department in charge. Most inspections start with a call, text, or online report to 311, and each request is anonymous. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 5, 2026
Pittsburgh
After a 311 complaint, an inspector visits and, if there is a violation, sends your landlord a written notice with time to fix it. If your landlord does not fix it, the inspector visits again and sends a second notice. If the problem still is not fixed, PLI can file a criminal court complaint against your landlord. The complaint goes to the local magisterial district judge (a local judge who handles smaller court cases), who can order a fine.
✓ Sources checked October 5, 2026
Pittsburgh
If your landlord does not fix the heat, report it to Pittsburgh's 311 Response Center. Call 311, or 412-255-2621 outside the city, or file the complaint online. Pittsburgh's Department of Permits, Licenses and Inspections (PLI) enforces the city's property maintenance code. 311 sends your complaint to PLI code enforcement inspectors or the department in charge. You do not have to give your name to 311, and every request leads to an inspection. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 5, 2026
Texas
Ask your city for a code inspection. Call your city or county's code enforcement or building inspection office. The inspector checks the home and sends the owner a written notice of violations. Ask for a copy of that report. That written notice from an official is what unlocks repair and deduct (take the cost of a fix out of your rent) for most problems. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked September 14, 2026
Washington
If your landlord still has not fixed a serious safety problem, you can ask your city or county code office to inspect your home. First, give your landlord written notice describing the problem. Then, if your landlord still has not fixed it in a reasonable time, ask your local government for an inspection. The inspector must inspect and decide within 5 days of your request. The inspector will certify (put it in writing) whether the problem exists and is serious enough to affect your health or safety. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
✓ Sources checked October 5, 2026
Is something on this page wrong or out of date? Tell us.