Building and housing code requirements for rental units set the minimum conditions a landlord must meet before legally renting a home: a sound structure, working plumbing and heat, safe wiring, functioning smoke and carbon monoxide alarms, control of environmental hazards, and rooms large enough to live in safely. Most of these standards come from locally adopted versions of the International Property Maintenance Code (IPMC), and they are backed by the implied warranty of habitability recognized in nearly every state, which treats every residential lease as carrying an unwritten promise that the unit is safe and livable.
Structural Integrity and Security
The exterior shell has to keep weather out and intruders out. Roofs must be weatherproof, walls sound against rain, snow, and wind, and windows and exterior doors intact and operable.
Security hardware is specific. Exterior doors into a unit must have a deadbolt with a minimum one-inch throw that opens from the inside without a key. Sliding bolts don’t count. Operable windows within six feet of the ground need a sash locking device.1UpCodes. GSA Property Maintenance Code 2024 – Building Security
Stairs with more than four risers require a handrail on at least one side, and that handrail has to withstand at least 200 pounds of outward or downward force.2U.S. Department of Housing and Urban Development. NSPIRE Standard – Handrail Guards are required on any open-sided walking surface — balcony, porch, deck, or landing — sitting more than 30 inches above the ground below.3UpCodes. GSA Property Maintenance Code 2024 – General Requirements Missing handrails and wobbly balcony rails are among the most common citations inspectors write.
Working Utilities: Water, Heat, and Power
Every sink, tub, and shower needs continuous hot and cold running water connected to a public sewer or a code-compliant private system. Water heaters generally have to deliver water between 110°F and 120°F at the tap. Persistent leaks, sewer backflows, and makeshift plumbing that bypasses code all count as violations.
Heating is where habitability law has the sharpest teeth. Under the IPMC, the heating system must be able to maintain at least 68°F in all habitable rooms and bathrooms. Cooking appliances and unvented portable space heaters do not qualify as acceptable heating sources, and handing a tenant a few plug-in heaters doesn’t satisfy the requirement either.4UpCodes. GSA Property Maintenance Code 2024 – Mechanical and Electrical Requirements Many jurisdictions set a defined heating season when the landlord must supply heat.
Cooling is different. No widely adopted model code mandates air conditioning in residential rentals. A handful of cities have enacted cooling ordinances, but most places treat cooling as an amenity. If your lease promises an air conditioner, the landlord has to maintain it; otherwise, there is usually no freestanding obligation to provide one.
On the electrical side, every habitable room needs at least two separate receptacle outlets, and bathrooms need at least one grounded outlet.4UpCodes. GSA Property Maintenance Code 2024 – Mechanical and Electrical Requirements Inspectors look hard at unpermitted wiring, overloaded circuits, and amateur electrical work. Faulty wiring can trigger immediate enforcement.
Fire Safety: Alarms and Extinguishers
Smoke alarms are required inside every sleeping room and on every level of the home, including the basement. This comes from NFPA 72, the National Fire Alarm and Signaling Code, and it applies even to older homes that predate the rule.5NFPA. Installing and Maintaining Smoke Alarms Carbon monoxide alarms are required where the unit has a fuel-burning appliance or fireplace, or where the building has an attached private garage.6UpCodes. Building Conditions Where Carbon Monoxide Detection Is Required Installation and replacement are the landlord’s responsibility.
Portable fire extinguishers are generally required in multifamily buildings but not in single-family or two-family rental homes. Where required, they typically need a minimum 2-A:10-B:C rating, covering ordinary combustibles, flammable liquids, and electrical fires, and they have to be inspected regularly and replaced after use or expiration. Larger apartment buildings may also fall under local fire code requirements for sprinklers and fire escapes.
Environmental Hazards: Lead, Asbestos, Radon, Mold, and Pests
Lead-based paint was banned for residential use in 1978 but remains in millions of older homes. Federal law requires sellers and landlords to disclose known lead-based paint hazards in any housing built before 1978 before a renter signs a lease.7Environmental Protection Agency. Real Estate Disclosures About Potential Lead Hazards Intact lead paint is generally not a hazard; peeling or deteriorating paint is, and needs prompt attention.
Any renovation, repair, or painting that disturbs lead-based paint in a pre-1978 rental must comply with the EPA’s Renovation, Repair, and Painting (RRP) Rule. A landlord doing the work personally must hold both firm certification and renovator certification. A hired contractor must be a Lead-Safe Certified Firm using a certified renovator.8U.S. Environmental Protection Agency. Lead Renovation, Repair and Painting (RRP) Rule Compliance for Rental Apartments Federal enforcement here is genuinely aggressive.
Asbestos and radon are weaker at the federal level. There is no federal disclosure requirement for asbestos in residential rentals; the EPA’s asbestos regulations under the National Emission Standards for Hazardous Air Pollutants focus on demolition and renovation of larger structures and explicitly exclude residential buildings with four or fewer dwelling units.9Environmental Protection Agency. Asbestos Laws and Regulations Some states add their own asbestos rules. Radon is similar: HUD requires evaluation for HUD-assisted housing projects using the EPA’s action level of 4 pCi/L,10U.S. Department of Housing and Urban Development. CPD Notice on Addressing Radon in the Environmental Review Process but for private-market rentals, radon obligations are a matter of state law. In an area with known radon risk, ask for test results before signing.
Dampness and persistent mold growth violate health codes in most jurisdictions. Kitchens and bathrooms must have adequate ventilation through operable windows or exhaust fans. Pest infestations — rodents, cockroaches, bedbugs — are the landlord’s responsibility to eliminate before move-in and to address during the tenancy when the tenant didn’t cause the problem. Inadequate trash disposal can compound pest issues and draw separate citations.
Minimum Space and Egress
Housing codes set floor-area and ceiling-height minimums to prevent overcrowding. Under the IPMC, a bedroom for one person must have at least 70 square feet.11International Code Council. 2015 IRC Significant Changes – R304.1 Minimum Habitable Room Area A shared bedroom needs at least 50 square feet per occupant.12UpCodes. Area for Sleeping Purposes Habitable spaces must have ceilings at least seven feet high over at least half the floor area, with limited exceptions for basements and sloped ceilings.
A room cannot legally serve as a bedroom without an emergency escape opening. The egress window or door must provide a net clear opening of at least 5.7 square feet (5.0 for grade-floor openings), large enough for an adult or a firefighter to pass through. Converted basement and attic bedrooms frequently fail this standard, and the failure is a real life-safety risk in a fire.
What You Can Do When a Landlord Won’t Fix It
Knowing the standards matters less than knowing what to do when they’re ignored. Tenants have several legal tools, but each has procedural requirements that have to be followed precisely. Skip a step and a legitimate complaint can turn into an eviction case.
Repair and Deduct
Many states let a tenant hire a professional to fix a habitability problem and subtract the reasonable cost from the next month’s rent. The usual procedure: give the landlord written notice, wait a reasonable period for a response (typically 7 to 30 days, shorter for emergencies), then have a licensed contractor do the work. Most states cap the deductible amount at roughly one month’s rent or a fixed dollar figure. Keep receipts, photos, and copies of every written communication. The remedy is designed for problems serious enough to affect health and safety but not so severe that the unit is uninhabitable.
Rent Withholding
Some states allow withholding rent when a landlord fails to address conditions that materially threaten health or safety. It’s more powerful than repair and deduct, and more dangerous. In most states that permit it, the withheld rent has to go into an escrow account rather than the tenant’s pocket. Written notice of the specific violations, with a reasonable cure period, is required before payment stops. Skipping those steps exposes you to a nonpayment eviction, and the court may refuse the habitability defense if procedure wasn’t followed.
Lease Termination
When conditions are severe enough that the unit is essentially unlivable, a tenant may be able to end the lease outright. This is sometimes called constructive eviction: the landlord’s failure to maintain habitable conditions forces the tenant out even though no formal eviction occurred. The defects generally need to be serious and tied to health or safety, the tenant must have notified the landlord and allowed reasonable time to repair, and the tenant has to actually vacate. Leaving without following the proper steps can still leave you on the hook for the remaining rent.
Protection From Retaliation
Tenants who report code violations to a government agency are protected from retaliation in most states. Protected activities typically include filing a complaint with the local building or health department, requesting an inspection, and participating in a tenant organization. Landlords cannot respond by filing eviction, raising rent, reducing services, or otherwise penalizing the tenant for exercising a legal right.
Many states create a rebuttable presumption of retaliation when a landlord takes adverse action within a set window after a complaint, often 90 to 180 days. If your landlord moves to evict three months after you called the building inspector, the burden shifts to the landlord to prove the eviction has a legitimate basis unrelated to the complaint. A handful of states — Idaho, Indiana, Missouri, North Dakota, Oklahoma, and Wyoming — do not provide a statutory defense against retaliatory eviction, so tenants there carry more risk when reporting.
How Code Enforcement Works
Reporting starts with the local building or housing department. A code enforcement officer is assigned to evaluate the specific complaints against the applicable regulations. Inspectors generally have a legal right of entry but must give the landlord reasonable notice unless there’s an emergency. If violations are confirmed, the department issues a formal notice identifying the code sections breached and setting a deadline for repair.
Repair timelines track severity. Life-safety issues like nonfunctional smoke alarms, exposed wiring, or a failed heating system in winter may require correction within 24 to 48 hours. Standard maintenance violations typically carry a 30-day window. A follow-up inspection confirms whether the work meets code.
Under the IPMC, each day a violation continues after proper notice counts as a separate offense. The code itself does not set a dollar amount; penalties come from state and local law. In practice, daily fines accumulate quickly, and persistent noncompliance can escalate to misdemeanor prosecution. Severe cases can lead to revocation of the certificate of occupancy or condemnation, with abatement costs becoming a lien against the property. Landlords can appeal through an administrative hearing, but filing an appeal does not automatically pause the repair deadline unless a stay is granted.