Do You Have to Have a Window in a Bathroom? What the Code Actually Says

No, a bathroom doesn’t have to have a window. What it does have to have is ventilation, either a window that meets a specific minimum size or a mechanical exhaust fan rated to a specific airflow. Building codes give you a choice between the two, not a requirement for a window specifically. Most bathrooms built in the last few decades, including plenty of windowless ones in the middle of a house, are perfectly legal because they use a fan instead.

Here’s exactly what the code requires either way, what it costs to go each route, and how to design a bathroom well whichever option you’re working with.

window in a bathroom

The Short Answer | No, But You Need Ventilation One Way or the Other

Under the International Residential Code, which most U.S. jurisdictions base their local code on, Section R303.3 gives bathrooms two compliance paths:

PathRequirement
Natural ventilation (window)Minimum 3 square feet of glazed window area, with at least 1.5 square feet (half) operable
Mechanical ventilation (fan)Minimum 50 CFM for intermittent use, or 20 CFM for continuous use, vented directly to the exterior

You need one or the other, not both, though many builders install a fan even in bathrooms with a window, since a window that’s closed all winter provides zero ventilation exactly when a hot shower needs it most.

One detail that trips people up: if you go the fan route because your bathroom has no window, the code also requires artificial lighting in that bathroom. A windowless bathroom can’t rely on daylight for either light or air, so the lighting requirement is baked into the same code section.

Why the Code Cares About This

This isn’t a bureaucratic formality. A single shower releases roughly half a pound of water vapor into the air, and without anywhere for that moisture to go, it settles into walls, ceilings, grout, and framing. The EPA specifically calls out bathroom ventilation as a priority for controlling household moisture, and notes that poor ventilation contributes to mold and mildew that can trigger allergic reactions and worsen conditions like asthma. The American Lung Association similarly lists inadequate bathroom and kitchen exhaust as one of the more common causes of indoor mold growth, and notes that dampness alone, even without visible mold, can trigger respiratory symptoms.

Beyond health, unchecked moisture causes real, expensive damage: peeling paint, warped doors, rusted fixtures, and eventually rot in framing behind walls that stay damp for months at a time. This is the actual reason the code doesn’t let you skip ventilation altogether, window or no window.

Sizing an Exhaust Fan Correctly

If you’re going the fan route, the 50 CFM minimum is a floor, not necessarily the right number for your specific bathroom. The standard sizing approach:

  • For bathrooms up to 100 square feet: 1 CFM per square foot of floor area, with 50 CFM as the practical minimum regardless of how small the room is.
  • For bathrooms over 100 square feet, or ones with multiple fixtures: size by fixture instead of square footage. Add 50 CFM for each of the toilet, shower, and standard tub, and 100 CFM for a whirlpool tub.

A 40-square-foot bathroom with a single toilet and shower would need roughly 50 CFM, the code minimum. A larger primary bathroom with a soaking tub and a separate shower would need considerably more, often 100 CFM or higher, calculated by adding up the fixtures rather than just the floor area.

Whatever CFM you land on, look for a fan that’s HVI-certified (Home Ventilating Institute), which confirms the manufacturer’s airflow claim has actually been tested rather than just stated on the box.

If You Want to Add a Window: What It Actually Costs

The cost difference between the two paths is significant, and it’s worth knowing upfront if you’re deciding between them for a remodel.

OptionTypical CostWhat Drives the Price
Install a new exhaust fan$250 – $900 (avg. ~$400)Fan features (light, heater, humidity sensor), whether ductwork already exists
Cut a new window opening$1,000 – $7,000+Wall material (wood-frame vs. brick or block), window size and style, structural work, permits

A simple frosted or privacy window on an accessible exterior wall with straightforward framing tends to land in the $1,100 to $2,800 range. Brick, block, or load-bearing walls push costs well beyond that, since they require cutting through structural material and often a header to carry the load above the new opening. If your bathroom simply needs to meet code and budget is a real factor, a fan is the far cheaper way to get there. A window is a design choice on top of that, not a substitute for it in most cases, since even windowed bathrooms benefit from a fan for the months the window stays shut.

Design Considerations for a Bathroom With a Window

If you do have a window, or you’re adding one, a few decisions matter more in a bathroom than almost any other room.

Privacy. Frosted or obscured glass is the standard choice for anything at eye level from outside, especially on a street-facing or close-neighbor wall. Privacy film is a lower-cost retrofit option for an existing clear window if replacing it isn’t in the budget.

Placement and height. A window set higher on the wall, above eye level, often solves the privacy question without needing obscured glass at all, though it does reduce the outward view. Lower placement gives you more of a view and easier operability but usually requires privacy glazing or window treatments.

Style and function. Casement and awning windows open fully and seal tightly, which makes them a strong choice for ventilation. Awning windows in particular can stay cracked open during light rain without letting water in. Sliding windows are easier to operate one-handed but typically only open halfway. Whatever style you choose, make sure it comes with a screen if it opens, and use moisture-resistant framing (vinyl or fiberglass hold up better than wood in a humid room over time).

Modern bathroom with a round window

Designing a Bathroom Without a Window

A windowless bathroom isn’t a design compromise if you plan around it deliberately.

Layer your lighting. A single overhead fixture leaves shadows and reads as flat. Combine an overhead light, vertical sconces at either side of the mirror (which light the face far more evenly than a single fixture above it), and, if there’s room, a small accent light. Daylight-temperature bulbs, in the 4000K to 5000K range, come closest to mimicking the light a window would provide.

Use mirrors deliberately. A large mirror positioned to reflect your main light source does more to open up a windowless bathroom than almost any other single change, since it doubles the perceived light and depth in the room.

Don’t rely on the fan alone in a humid climate. In consistently humid regions, pairing the exhaust fan with a small dehumidifier, or a fan with a built-in humidity sensor that runs automatically when moisture levels rise, keeps the room drier between showers rather than only during them.

Choose moisture-tolerant finishes. Without natural airflow backing up the fan, a windowless bathroom benefits from finishes that shrug off residual humidity: porcelain tile over natural stone, mold-resistant paint, and a door that seals reasonably well to keep the exhaust fan’s negative pressure actually pulling air out rather than in from the hallway.

A Note on Basements and Interior Bathrooms

Bathrooms in the middle of a house or in a finished basement, with no exterior wall to put a window on, are extremely common and fully code-compliant with a properly sized fan. One thing worth clarifying since it causes confusion: the “egress window” requirement that applies to bedrooms and basements used for sleeping (a window large enough to climb out of in an emergency) does not apply to bathrooms. Bathrooms aren’t classified as habitable sleeping space, so they’re never required to have an egress-sized opening, window or otherwise.

Common Mistakes to Avoid

  • Venting the fan into the attic or a soffit instead of outside. Code requires exhaust to terminate outdoors. Venting into an attic just relocates the moisture problem to a space that’s much harder to fix once mold sets in.
  • Undersizing the fan for the bathroom’s actual layout. A single CFM number that ignores a separate shower and tub, or a larger-than-average room, often leaves the space under-ventilated even though a fan is technically installed.
  • Assuming a window means you don’t need a fan. Legally, that’s often true. Practically, a window that stays shut for five months of winter provides no ventilation during exactly the months indoor humidity tends to be worst.
  • Skipping the artificial light requirement in a fan-only bathroom. This gets missed more often than it should, especially in DIY basement bathroom builds.
  • Assuming local code matches the base IRC exactly. Many cities and states amend these numbers, sometimes requiring a fan regardless of window presence, especially in any bathroom with a tub or shower. A quick call to your local building department before finalizing plans avoids a failed inspection later.

Frequently Asked Questions

Is a window legally required in a bathroom? No. Building code requires either a window meeting a minimum size (3 square feet, half operable) or a mechanical exhaust fan rated at least 50 CFM intermittent or 20 CFM continuous. Either one satisfies the requirement on its own.

Can I have a bathroom with no window at all? Yes, as long as it has a properly vented, adequately sized exhaust fan and artificial lighting. This is standard for interior bathrooms and basement bathrooms with no exterior wall.

Do I need a fan if my bathroom already has a window? Not legally, in most jurisdictions, if the window meets the minimum size and is operable. Practically, most people find a fan still useful, since windows tend to stay closed during cold weather and rain, right when ventilation matters most.

How big does a bathroom exhaust fan need to be? At minimum, 50 CFM for a standard-sized bathroom used intermittently. For larger bathrooms or ones with multiple fixtures, size by adding 50 CFM per toilet, shower, or tub, and 100 CFM for a whirlpool.

Is it expensive to add a window to a bathroom that doesn’t have one? Yes, relative to a fan. Cutting a new window opening typically runs $1,000 to $7,000 depending on wall material and window style, compared to $250 to $900 for a professionally installed exhaust fan.

Does a bathroom need an egress window like a bedroom? No. Egress window requirements apply to bedrooms and basements used for sleeping, not to bathrooms, regardless of whether the bathroom has a window at all.

Scroll to Top