Building codes for apartments are a layered set of rules that govern how multifamily residential buildings are designed, built, and maintained. The foundation is the International Building Code (IBC), a model code published every three years by the International Code Council (ICC).1International Code Council. 2024 International Building Code (IBC) States adopt a specific edition of the IBC, often with amendments, and local governments layer their own amendments on top. Federal laws add separate requirements for accessibility and lead paint. The result is a system where the enforceable rules for any given apartment building depend heavily on where it sits and when it was built.
Who Writes the Rules and Who Enforces Them
The IBC itself is not law. The ICC develops it through a public process involving building officials, architects, engineers, and industry groups, and publishes a new edition every three years. Enforceability comes only when a state legislature or agency adopts an edition, sometimes with amendments reflecting local climate, seismic risk, or policy. Municipalities then adopt the state code and frequently add further amendments.
Because of this tiered adoption, the rules in one city can differ meaningfully from those 50 miles away. Some states mandate uniform statewide adoption; others leave it to local governments. Many jurisdictions are still operating under the 2018 or 2021 IBC rather than the 2024 edition, and the ICC keeps an adoption map showing which edition each jurisdiction uses.2International Code Council. Adoption Information Solution
Enforcement is a local function. Building departments review construction plans, issue permits, and conduct inspections. The fire marshal typically handles fire safety provisions, and the health department gets involved in habitability complaints.
How Apartments Are Classified
The IBC assigns every building an occupancy classification, and that classification drives nearly every other requirement. Apartment buildings fall under Group R-2, which covers residential occupancies with more than two dwelling units where occupants are primarily permanent. Dormitories, boarding houses, and nontransient hotels also fall into R-2.3International Code Council. 2021 International Building Code – Chapter 3 Occupancy Classification and Use
The classification matters because it dictates how tall the building can be, what materials it can be built from, and which fire protection systems it needs. Maximum height and stories depend on construction type, ranging from Type I (noncombustible materials like concrete and steel, allowing the tallest buildings) to Type V (wood-frame, the most height-restricted). Installing sprinklers throughout the building typically permits an additional story or more.4International Code Council. 2021 International Building Code – Chapter 5 General Building Heights and Areas
Fire and Life Safety
Fire safety is the most demanding area of apartment code, because a fire in one unit can quickly threaten dozens or hundreds of people. Requirements fall into detection, suppression, and compartmentalization.
Smoke and Carbon Monoxide Detection
Smoke alarms must be installed in every sleeping room, outside each sleeping area, and on every level of a dwelling unit. Where more than one alarm is required, the alarms must be interconnected so that when one sounds, all of them do.5National Fire Protection Association. Installing and Maintaining Smoke Alarms Carbon monoxide detectors are required in units within buildings that contain a fuel-burning appliance, a fuel-burning forced-air furnace, or an attached garage.
Sprinkler Systems
The IBC requires automatic fire sprinklers throughout Group R-2 buildings, with a narrow exception for buildings no taller than two stories that contain fewer than five dwelling units. In practice, virtually every new apartment building of any meaningful size has sprinklers. Buildings up to four stories can use the less expensive NFPA 13R system designed for residential occupancies; taller buildings need a full NFPA 13 system.
Compartmentalization
Codes require fire-rated construction between apartment units and between units and common corridors. Entrance doors, stairwell enclosures, and elevator shafts must meet fire-resistance ratings, typically one or two hours depending on building height and construction type. This is why self-closing doors in apartment hallways and stairwells cannot legally be propped open or removed.
Getting Out: Means of Egress
The IBC devotes an entire chapter to egress, covering the number of exits, exit width, travel distance, stairway design, and corridor layout.6International Code Council. 2021 International Building Code – Chapter 10 Means of Egress Most apartment floors need at least two separate exits so that a fire blocking one route cannot trap occupants. Floors with 500 or more occupants need three exits, and 1,000 or more require four.7U.S. Access Board. Accessible Means of Egress
Illuminated exit signs are required at every exit and exit-access door when two or more exits are required, and exit stairways must have tactile signage for people with visual impairments. Emergency backup lighting must activate automatically during a power failure to illuminate egress paths.
Space, Light, Ventilation, and Sound Inside the Unit
The IBC sets minimum standards for the interior environment of each apartment. Habitable rooms (bedrooms, living rooms, kitchens) generally must be at least 70 square feet with no horizontal dimension less than 7 feet. These minimums apply per room, not per unit.
Every room intended for human occupancy must either have windows with glazed area equal to at least 8 percent of the room’s floor area, or artificial lighting that meets code. Ventilation follows a similar rule: rooms with natural ventilation need operable window area equal to at least 4 percent of the floor area. Rooms without adequate windows can substitute mechanical ventilation, which is how interior bathrooms and some kitchens meet code.8International Code Council. 2021 International Building Code – Chapter 12 Interior Environment
Sound insulation is where apartment codes differ from single-family standards. Walls and floor-ceiling assemblies between dwelling units must achieve a Sound Transmission Class (STC) rating of at least 45 to limit airborne noise like voices and music. Floors between units also need an Impact Insulation Class (IIC) rating of at least 45 to dampen footfall. Pipe, duct, and electrical penetrations must be sealed to preserve those ratings. These are minimums, and many tenants can attest that STC 45 still lets plenty of noise through.
Electrical and Plumbing
Electrical wiring must meet the National Electrical Code (NEC), which the IBC references. One practical rule: receptacle outlets must be placed so that no point along any wall is more than 6 feet from an outlet. That spacing exists to prevent residents from running extension cords across rooms, a leading cause of residential electrical fires. Kitchen countertops, bathrooms, and laundry areas have additional outlet requirements, including ground-fault circuit interrupter (GFCI) protection near water sources.
Plumbing codes require every dwelling unit to have hot and cold running water, a working toilet, a lavatory, and a bathtub or shower. Drainage and venting systems must be designed to keep sewer gas out of living spaces. These requirements form the core of what makes a unit legally habitable, and plumbing violations are among the most common complaints in older apartment buildings.
Accessibility
Fair Housing Act Design Requirements
The federal Fair Housing Act requires accessible design in all new multifamily buildings with four or more units first occupied after March 1991. In buildings with elevators, every unit must meet the standards. In buildings without elevators, only ground-floor units must comply. The law specifies seven design requirements:9Office of the Law Revision Counsel. 42 USC 3604 – Discrimination in Sale or Rental of Housing
- At least one building entrance on an accessible route
- Accessible public and common-use spaces
- Interior and exterior doors wide enough for wheelchair passage
- An accessible route into and through each covered unit
- Light switches, outlets, and thermostats at reachable heights
- Reinforced bathroom walls that allow later installation of grab bars
- Kitchens and bathrooms with floor space that allows wheelchair maneuvering
These are federal civil rights requirements, not optional upgrades. HUD’s Fair Housing Act Design Manual gives detailed guidance for each.10U.S. Department of Housing and Urban Development. Fair Housing Act Design Manual
Where the ADA Applies Instead
The Americans with Disabilities Act applies separately to portions of apartment complexes open to the general public. Leasing offices, model units shown to prospective tenants, clubhouses, and fitness centers typically fall under ADA Title III. Common areas used exclusively by residents and their guests are governed by the Fair Housing Act instead.11ADA.gov. ADA Standards for Accessible Design
Lead Paint in Pre-1978 Buildings
Apartments built before 1978 fall under two federal lead-paint rules. Landlords must disclose any known lead-based paint or lead hazards before a tenant signs a lease, include a lead warning statement in the lease itself, provide the EPA pamphlet “Protect Your Family From Lead in Your Home,” and share any available inspection reports.12eCFR. 24 CFR Part 35 Subpart A – Disclosure of Known Lead-Based Paint and/or Lead-Based Paint Hazards
When renovation work in a pre-1978 apartment disturbs more than 6 square feet of painted surface per interior room, or more than 20 square feet of exterior surface, the EPA’s Renovation, Repair, and Painting (RRP) Rule requires that the work be done by an EPA-certified renovator using lead-safe practices and that the firm doing the work also be certified. This applies to landlords doing their own work, not just hired contractors.13U.S. Environmental Protection Agency. What Does the Renovation, Repair, and Painting (RRP) Rule Require?
Energy Efficiency
Most jurisdictions also adopt the International Energy Conservation Code (IECC) alongside the IBC. The IECC sets requirements for insulation, air sealing, HVAC efficiency, and lighting in new buildings and major renovations, and gets updated on the same three-year cycle. Requirements vary by climate zone; a building in Minnesota faces stricter insulation mandates than one in Florida.
A growing number of jurisdictions also require electric vehicle charging infrastructure in new apartment construction, typically mandating that a percentage of parking spaces be wired or “EV-ready.” No single national standard governs the required percentage; these mandates are adopted at the state and local level.14Alternative Fuels Data Center. Building Codes, Parking Ordinances, and Zoning Ordinances for Electric Vehicle Charging Infrastructure
How the Rules Apply to Older Buildings
Newly constructed apartments must meet the codes currently adopted in their jurisdiction. Older buildings are generally held to the codes in effect when they were built, a concept called grandfathering. An apartment built in 1985 is not automatically required to meet every provision of the 2024 IBC.
That protection has limits. The International Existing Building Code (IEBC) sorts renovation work into three levels, each triggering broader code compliance:15International Code Council. 2018 International Existing Building Code (IEBC)
- Level 1 covers replacing materials or equipment with new versions of the same thing, such as new flooring or a new water heater. The altered elements must meet current code, but the rest of the building is generally left alone.
- Level 2 covers reconfiguring space in up to 50 percent of the building’s area, and can trigger upgrades to sprinklers, fire separations, and egress beyond just the renovated area.
- Level 3 covers reconfiguring more than half the building’s area, and can require safety improvements to areas where no work is taking place.
Changing a building’s use, such as converting an office building into apartments, triggers separate requirements that can be more demanding because the new use brings different fire loads, occupant densities, and egress needs.
Separately, the International Fire Code applies retroactively to existing apartment buildings regardless of construction date. Older buildings can be required to install fire alarm systems, smoke alarms, carbon monoxide detectors, and emergency egress lighting even without any renovation. Existing apartment buildings taller than three stories or with more than 16 units must have a manual fire alarm system that activates occupant notification, and smoke and carbon monoxide detection are also retroactively required in existing residential occupancies.16International Code Council. 2021 International Fire Code – Chapter 11 Construction Requirements for Existing Buildings
Inspections and the Certificate of Occupancy
Local building departments enforce codes through inspections at multiple stages of construction. Before walls go up, inspectors verify framing. Before finishes are applied, they check plumbing, electrical, and mechanical rough-ins, because defects concealed behind drywall are far harder to detect later.
After all inspections pass, the local government issues a Certificate of Occupancy (CO) confirming the building complies with applicable codes and is safe for habitation. No new or substantially renovated apartment building can legally be occupied by tenants without a CO. The certificate is tied to the building’s specific occupancy classification, so it also confirms the building is approved for use as apartments rather than some other purpose.
Some jurisdictions require periodic inspections of existing apartment buildings. Fire marshals commonly inspect multifamily buildings on a recurring schedule to verify sprinklers, alarms, and egress paths remain functional. Larger cities may add inspection programs for exterior facades and balconies on high-rise buildings.
Reporting a Code Violation as a Tenant
Building codes create obligations for building owners, but tenants live with the consequences when those obligations go unmet. Every state recognizes some version of an implied warranty of habitability, which requires landlords to maintain rental units in a condition meeting basic health and safety standards. Building code compliance is often the benchmark courts use to measure whether that standard has been met.
If you believe your apartment has a code violation, the usual first step is notifying your landlord in writing and giving them a reasonable opportunity to fix it. If they do not, you can file a complaint with your local building department, health department, or fire marshal, depending on the issue. Many jurisdictions accept anonymous complaints. An inspector will visit, determine whether a violation exists, and issue a notice to the owner if warranted. The owner is given a deadline to correct the problem, and noncompliance can result in fines or, in extreme cases, an order to vacate.
Tenants who report violations are generally protected from retaliation under state law, meaning a landlord cannot legally raise your rent, cut services, or evict you in response to a good-faith complaint. When conditions threaten health or safety and the landlord is unresponsive, contacting your local building or housing department is the most direct path to getting the problem addressed.