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.
- Renters section, U.S. Environmental Protection Agency. A government guide.
- Know Your Rights as a California Tenant, California Attorney General. A government guide.
✓ Sources checked November 23, 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.
- Our editorial rules.
- Get help for a dispute with a landlord, USAGov. A government guide.
✓ Sources checked November 23, 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.
- Renters section, U.S. Environmental Protection Agency. A government guide.
- Know Your Rights as a California Tenant, California Attorney General. A government guide.
✓ Sources checked November 23, 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.
You or a neighbor can ask the city to send a code inspector. Be careful: if the home is in very bad shape, the inspector can condemn it (say no one may live there). Then everyone must move out, you too, sometimes on short notice. Think about where you would go before you call.
- Our editorial rules.
- Report a Violation, City of Albuquerque. A government guide.
✓ Sources checked November 23, 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).
- Our editorial rules.
- Repair and maintenance, Arkansas Attorney General (undated renter page). A government guide.
✓ Sources checked November 24, 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.
- Our editorial rules.
- State Sanitary Code, Massachusetts Attorney General. A government guide.
✓ Sources checked November 23, 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.
You or a neighbor can ask the city to send a code inspector. Be careful: if the home is in very bad shape, the inspector can condemn it (say no one may live there). Then everyone must move out, you too, sometimes on short notice. Think about where you would go before you call.
- Our editorial rules.
- State Sanitary Code, Massachusetts Attorney General. A government guide.
✓ Sources checked November 23, 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.
You or a neighbor can ask the city to send a code inspector. Be careful: if the home is in very bad shape, the inspector can condemn it (say no one may live there). Then everyone must move out, you too, sometimes on short notice. Think about where you would go before you call.
✓ Sources checked October 12, 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 November 24, 2026
Connecticut
Before you can file this court case, you must first complain to your city or town's housing code or health agency. You must do this at least 21 days before you file your court case. For very bad conditions, this agency can also order everyone to leave the home until it is fixed. This is sometimes called condemning the home. You then file your complaint, under oath, with the clerk of the court. Filing costs $25, though the court can excuse this fee if you cannot afford to pay it.
✓ Sources checked November 24, 2026
Georgia
Georgia’s housing agency says Georgia has no government agency that can step into a landlord-tenant dispute. No agency can force a landlord or renter to act a certain way. Renters who cannot settle a dispute need to use the courts, on their own or through a lawyer. For repairs, the handbook says you can contact the local housing code inspector.
You or a neighbor can ask the city to send a code inspector. Be careful: if the home is in very bad shape, the inspector can condemn it (say no one may live there). Then everyone must move out, you too, sometimes on short notice. Think about where you would go before you call.
✓ Sources checked November 24, 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.
✓ Sources checked November 24, 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.
You or a neighbor can ask the city to send a code inspector. Be careful: if the home is in very bad shape, the inspector can condemn it (say no one may live there). Then everyone must move out, you too, sometimes on short notice. Think about where you would go before you call.
- Our editorial rules.
- Get help, Illinois Legal Aid Online. A nonprofit group.
✓ Sources checked November 23, 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.
- Code Enforcement, City of Las Vegas, Code Enforcement Division. A government guide.
✓ Sources checked November 23, 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.
You or a neighbor can ask the city to send a code inspector. Be careful: if the home is in very bad shape, the inspector can condemn it (say no one may live there). Then everyone must move out, you too, sometimes on short notice. Think about where you would go before you call.
- Our editorial rules.
- TAHO FAQs, Los Angeles Housing Department. A government guide.
✓ Sources checked November 23, 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.
- Our editorial rules.
- State Sanitary Code, Massachusetts Attorney General. A government guide.
✓ Sources checked November 23, 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 November 23, 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 November 23, 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 November 23, 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 November 23, 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. Think about this before you ask for an inspection.
✓ Sources checked November 24, 2026
New Jersey
If your building has 3 or more rental units, the state Bureau of Housing Inspection makes sure it meets the housing code.
✓ Sources checked November 23, 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 November 23, 2026
New Jersey
If your building has 1 or 2 rental units, the state Bureau does not cover it. If the owner does not live there, your city or town's housing rules apply.
✓ Sources checked November 23, 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. Then everyone must leave.
✓ Sources checked November 23, 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.
- Our editorial rules.
- Renting a Home – code violations, North Carolina Department of Justice. A government guide.
✓ Sources checked November 23, 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.
- "Contact code enforcement" step, Ohio Legal Help. A nonprofit group.
✓ Sources checked November 23, 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 November 23, 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.
- Our editorial rules.
- City of Philadelphia. A government guide.
- 486 Pa. 272, Supreme Court of Pennsylvania. A court decision.
✓ Sources checked November 23, 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.
- Our editorial rules.
- City of Philadelphia. A government guide.
✓ Sources checked November 23, 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.
You or a neighbor can ask the city to send a code inspector. Be careful: if the home is in very bad shape, the inspector can condemn it (say no one may live there). Then everyone must move out, you too, sometimes on short notice. Think about where you would go before you call.
- Our editorial rules.
- City of Philadelphia. A government guide.
✓ Sources checked November 23, 2026
Philadelphia
Philadelphia's Department of Licenses and Inspections (L&I) inspects existing buildings. It checks that they follow the fire code, the property maintenance code, and the zoning code. If an inspector finds a violation, L&I issues a notice of violation. The property owner may have up to 35 days to fix the problem. If it is not fixed by the date L&I sets, L&I may take legal action.
- Code enforcement, Philadelphia Department of Licenses and Inspections. A government guide.
✓ Sources checked November 23, 2026
Pittsburgh
Permits, Licenses, and Inspections (PLI) enforces the city code on health and safety in buildings. To report a problem, call 311, or 412-255-2621 outside the city, or file an online complaint. 311 is for problems that are not emergencies. Give as much detail as you can so they can help. You can report without giving your name if you do not need a reply. Your request goes to a PLI inspector, who will look into it. One caution from legal aid: for very bad conditions, an inspector can condemn the home and make everyone leave.
- Our editorial rules.
- City of Pittsburgh 311. A government guide.
- City of Pittsburgh Permits, Licenses and Inspections. A government guide.
✓ Sources checked November 23, 2026
Pittsburgh
The Allegheny County Health Department’s Housing and Community Environment Program handles complaints about housing code violations. This includes problems with a rental home, and vacant lots or abandoned homes nearby. The housing code sets rules for keeping a property safe inside and out. Call the county at 412-350-4636 or 800-581-9145.
- Allegheny County Health Department. A government guide.
✓ Sources checked November 23, 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.
- Our editorial rules.
- Code Enforcement, City of Pittsburgh, Permits, Licenses and Inspections. A government guide.
✓ Sources checked November 23, 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.
✓ Sources checked November 23, 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 November 23, 2026
Tennessee
In Memphis, you can file a complaint about unsafe housing with the Department of Housing Code Enforcement. For emergencies such as no running water, no heat or raw sewage, call 901-636-7464.
- Code Enforcement page, City of Memphis, Code Enforcement. A government guide.
✓ Sources checked November 24, 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.
- Our editorial rules.
- What kinds of repairs is my landlord required to make?, Texas RioGrande Legal Aid (TexasLawHelp.org). A nonprofit group.
- Tex. Prop. Code § 92.0561(d)(3)(D), Texas Legislature. Law.
- Report a code violation, City of Austin. A government guide.
- Repairs: The Tenant's Right and the Landlord's Duty, Austin Tenants Council (via TexasLawHelp.org). A nonprofit group.
✓ Sources checked November 23, 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.
You or a neighbor can ask the city to send a code inspector. Be careful: if the home is in very bad shape, the inspector can condemn it (say no one may live there). Then everyone must move out, you too, sometimes on short notice. Think about where you would go before you call.
✓ Sources checked November 23, 2026
Washington, DC
The DC Department of Buildings has a service to ask for a housing inspection. If conditions are very bad, an inspector can condemn the home (order it closed) and make everyone leave. Call (202) 671-3500.
- Our editorial rules.
- Services, DC Department of Buildings. A government guide.
✓ Sources checked November 24, 2026
Is something on this page wrong or out of date? Tell us.