Bedroom Code Requirements: What Makes a Legal Bedroom

Calling a room a bedroom when it doesn’t meet code creates real legal exposure — at sale, at permitting, and at insurance claim time. The IRC doesn’t have a single “bedroom” section; the requirements come from four separate code sections that all apply simultaneously. Here’s what every one of them requires.

Legal Bedroom Checklist — IRC 2021

✓ Egress window: IRC R310 — minimum clear opening dimensions
✓ Ceiling height: IRC R305 — 7′-0″ minimum for habitable rooms
✓ Natural light: IRC R303 — glazing ≥8% of floor area
✓ Ventilation: IRC R303 — openable area ≥4% of floor area (or mechanical)
✓ Smoke alarm: IRC R314 — inside each sleeping room
✓ Minimum area: IRC R304 — 70 sq ft minimum, 7′-0″ in least dimension

Egress Window — IRC R310

The egress window requirement is the most commonly failed bedroom code requirement and the one that catches homeowners off guard at sale. Every sleeping room must have at least one emergency escape and rescue opening — a window (or door to the exterior) large enough for a firefighter in full gear to enter and an occupant to escape.

Under IRC 2021 Section R310.2, the required dimensions are:

Clear opening means the actual opening available when the window is fully open — not the rough opening or the window frame size. A window with sashes, screens, or frames that reduce the clear opening dimension will fail even if the overall window looks large. Use our Egress Window Calculator to check your specific window against IRC R310.

Basement Bedrooms — High Failure Rate

Basement bedrooms are the most common egress window failure. The below-grade opening minimum (5.0 sq ft) is slightly smaller than above-grade (5.7 sq ft), but sill height is still limited to 44 inches above the finished floor — which means in a basement with a 9-foot floor-to-ceiling height, the window can’t sit at the top of the foundation wall. Window wells are required when the window is below grade, with specific size and depth requirements under IRC R310.2.3.

Check Your Egress Window

Enter your window dimensions and get an instant IRC R310 pass/fail

Open Egress Calculator →

Ceiling Height — IRC R305

Sleeping rooms are habitable rooms, which means they require the habitable room minimum of 7 feet, 0 inches (84 inches) under IRC R305.1. This is measured at the lowest point of the ceiling in the required area.

For sloped ceilings (converted attic bedrooms, cape cods):

A room with 6′-10″ ceilings is not a legal bedroom under the IRC regardless of how nice it is otherwise. This comes up constantly in older New England capes and saltboxes being converted.

Minimum Floor Area — IRC R304

IRC 2021 Section R304 specifies minimum area for habitable rooms:

A room that is 7 x 10 feet (70 sq ft) technically meets the area minimum, but an 8 x 8.75-foot room (70 sq ft) fails because the 7-foot dimension requirement forces one dimension to be at least 7 feet. In practice, a 10×7 room is a very small bedroom, but it is code-compliant under R304.

Note: R304 applies to habitable rooms in general, not specifically to bedrooms. The IRC does not specify a minimum bedroom size separately; R304’s 70 sq ft minimum applies to all habitable rooms including bedrooms.

Natural Light — IRC R303

Habitable rooms require natural light under IRC R303.1. The required minimum glazing area (windows, skylights, glass doors) is 8% of the floor area of the room.

For a 10x12 bedroom (120 sq ft), the minimum glazing area is 9.6 square feet of glass. That is the glass area itself — not the rough opening size, not the window frame, just the glass. A standard 3×4 window has roughly 12 square feet of glass; a single window often satisfies the R303.1 requirement in a typical bedroom.

Exceptions under R303.1:

Ventilation — IRC R303

Alongside the natural light requirement, IRC R303.1 requires that habitable rooms have ventilation. The options are:

The natural light and ventilation requirements are met by the same window: a window that opens satisfies both requirements simultaneously as long as the total glass area meets 8% and the openable area meets 4%. A bedroom with only a fixed (non-opening) window satisfies the light requirement but not ventilation unless mechanical ventilation is provided.

Smoke Alarm — IRC R314

Every sleeping room must have a smoke alarm installed inside it per IRC R314.3. This is separate from the smoke alarm required outside the sleeping area in the hallway — both are required. In new construction, the alarm must be hardwired with battery backup and interconnected to all other alarms in the dwelling.

The smoke alarm inside the bedroom is the life-safety device that matters most: a closed bedroom door significantly slows smoke infiltration, meaning the hallway alarm may not be audible or effective in time. The inside-the-room alarm is what wakes the occupant.

Closet — Not Required by the IRC

The IRC does not require a closet in a bedroom. A room that meets egress, ceiling height, area, light, ventilation, and smoke alarm requirements is a legal bedroom under IRC 2021 regardless of whether it has a closet. However, real estate convention and some state real estate disclosure laws use the closet as an informal qualifier for calling a room a bedroom. Know your state’s disclosure requirements separately from the IRC.

Converting a Basement Room to a Bedroom

Basement bedrooms require every one of the above requirements plus extra attention to egress. The most common issues in basement bedroom conversions:

  1. Egress window opening is too small — Old basement windows are almost always too small. A new or enlarged opening and a window well are almost always required.
  2. Ceiling height below 7′-0″ — An older basement with 6′-8″ floor-to-ceiling height cannot be a legal bedroom. No exceptions under the IRC.
  3. No natural light — A room with only a small fixed basement window may not meet the 8% glazing requirement. Enlarging the window often serves double duty (egress + light).
  4. No smoke alarm inside the room — Often forgotten in basement renovations because the upstairs is already alarmed.

Frequently Asked Questions

What makes a room a legal bedroom under the IRC?

Under IRC 2021, a legal bedroom requires: an egress window (R310), a minimum ceiling height of 7'-0" (R305), a minimum floor area of 70 sq ft with no dimension less than 7 feet (R304), glazing of at least 8% of floor area for natural light (R303), openable area of at least 4% of floor area for ventilation or mechanical ventilation (R303), and a smoke alarm inside the room (R314).

Does a bedroom need a closet to be legal?

No. The IRC does not require a closet in a bedroom. A room that meets all other code requirements is a legal bedroom without a closet. However, state real estate disclosure laws may use closet presence as a factor in how you can describe a room in a listing.

Can a basement room be a legal bedroom?

Yes, if it meets all requirements: egress window per IRC R310 (the below-grade minimum is 5.0 sq ft net clear opening), ceiling height of 7'-0" minimum, natural light (8% glazing), ventilation (4% openable or mechanical), minimum 70 sq ft floor area, and a smoke alarm inside the room. Many older basements fail on ceiling height or egress window size.

What are the egress window requirements for a bedroom?

IRC R310.2 requires a minimum 20-inch clear width, 24-inch clear height, 5.7 sq ft net clear opening area (5.0 sq ft for below-grade openings), and a sill height no more than 44 inches above the finished floor. Use our egress window calculator to check your specific window.

Can you call a room a bedroom without an egress window?

No. Under IRC R310, a room used as a sleeping room must have an emergency escape and rescue opening. A room without a code-compliant egress window is not a legal bedroom regardless of its size or other features. Listing it as a bedroom without disclosing the deficiency may create legal liability at sale.

What ceiling height is required for a bedroom?

IRC R305.1 requires a minimum ceiling height of 7'-0" (84 inches) in habitable rooms, which includes bedrooms. For sloped ceilings, at least 50% of the floor area must meet the 7-foot minimum. Areas with ceiling heights below 5 feet do not count toward the required floor area.

Related Guides & Calculators