Search guides and tools

Loading search

Where to Put a Desk in a Bedroom: What the Window, the Wall and the Door Each Cost You

The wall beside the window is the position the rules point to, and the reasons are specific: OSHA's glare guidance, an outlet within 6 ft (1.8 m) along any wall, and a window the residential code treats as the way out. What a desk facing the window, backing onto it, or tucked in the closet gives up.

By Martijn van Houten
11 min read
A small bedroom with a desk against the wall beside the window, daylight falling across the desk from the side, a monitor on the desk and the bed visible on the far side of the room.

What to know

  1. OSHA's workstation guidance puts the face of the screen at right angles to a window, so the side wall next to the window is the position that satisfies it.
  2. Every US bedroom built to the residential code has an operable emergency escape opening; in a room without a door to the outside that is the window. Bottom of the opening no higher than 44 in (112 cm), a clear opening of at least 5.7 sq ft (0.53 m2) or 5 sq ft (0.465 m2) at grade, openable without tools. Our reading: a desk under it must leave it that way.
  3. On a wall wired to code, no point along the floor line is more than 6 ft (1.8 m) from a receptacle, so a wall position needs no extension cord. A closet is not on the list of rooms that rule covers.
  4. A bedroom built to code without a wired ceiling or wall light has a switched receptacle instead, and the wall switch by the door controls it. Plug a lamp into each outlet and flip the switch before the PC goes on that wall.
  5. A window behind you is backlighting on every daytime call; Microsoft's guidance is to be lit from the front. A window behind the monitor is the daytime glare case, and a bias light has no wall to work with there.

The wall beside the window, with the window at your side, is where three sets of rules meet: OSHA's computer workstation guidance puts the face of the screen at right angles to a window, a bedroom wall wired to the US residential code has a receptacle within 6 ft (1.8 m) of any point along it, and a webcam then sees a wall behind you instead of a bright window or the bed. The other positions each give something up. Facing the window puts the brightest surface in the room behind your monitor. Backing onto it puts that surface behind your head on every call. A desk in the closet runs on an extension cord unless someone added an outlet, because a closet is not on the list of rooms the code's spacing rule covers.

The rules here are American: the 2021 International Residential Code, a model code, and OSHA's workstation guidance. The edition in force where you live can differ, a house built decades ago was built to whatever applied then, and a rented room is what it is. The code is useful anyway, because it says what the room was built to do: a bedroom gets a window sized for daylight and air, an exit through that window, and outlets spaced along its walls by a rule. None of that was drawn with a monitor in mind. The window, the wall and the closet each run into one of those three; the door runs into the camera.

Desk under the window: the daylight, and the exit you are sitting in front of

A bedroom has a window because the code asks for daylight and air in every habitable room. IRC section R303.1 sets glazing at not less than 8 percent of the floor area and an openable area of not less than 4 percent, with exceptions for houses that have mechanical ventilation. In a 12 by 12 ft room (3.66 by 3.66 m) that is at least 11.5 sq ft (1.07 m2) of glass, and the desk that goes under it sits at the brightest point in the room.

OSHA's workstation guidance gives one instruction for glare: "Place the face of the display screen at right angles to windows and light sources." Its Monitors page says the same in five words, "Place monitor perpendicular to window." A monitor with its back to the window puts the window directly in your field of view, and the guidance offers two ways out. One is blinds, which it says "should be adjusted to allow light into the room, but not directly into your field of view", vertical ones for east- and west-facing windows and horizontal for north and south. The other is to reorient the desk so the window sits at right angles to the screen, which is the side-wall position. That page is workplace guidance; the placement rule is what we take from it. The light levels behind it are in the bias lighting guide: the European workplace standard sets 500 lux at the desk, the review in that guide finds measured rooms at 100 lux for more than half the day, and a monitor facing a window has no wall for a bias light to use.

Section R310.1 requires "not less than one operable emergency escape and rescue opening" in every sleeping room, with an exception for sprinklered basements, and in a bedroom without its own door to the outside that is the window. Section R310.1.1 adds that it has to be "operational from the inside of the room without the use of keys, tools or special knowledge", and R310.2 sets the opening: a net clear opening of at least 5.7 sq ft (0.53 m2), or 5 sq ft (0.465 m2) for a grade-floor opening, at least 24 in (61 cm) high and 20 in (51 cm) wide, with the bottom of the opening no more than 44 in (112 cm) above the floor. BIFMA's guideline, as the small-office desk guide records it, puts a seated keyboard surface between 22.6 and 29.4 in (57.5 to 74.7 cm), so under a window whose opening starts at the 44-in cap the desk sits below it; where the sill is lower than the desk top, the desk itself sits in part of the opening. The code says nothing about furniture. Our reading of the operational requirement, which is what we test furniture against: a desk you can lean over to open the window and climb across still leaves the opening usable, and a hutch, a shelf unit across the glass, a monitor arm clamped at the window, or anything you could not shove aside in the dark does not.

At standing height the desks in that guide reach 48.7 to 53.5 in (124 to 136 cm), above the 44-in cap, so the desktop then covers the lower part of the glass. The monitor is above the sill in either position, so the glare rule applies to the desk under the window sitting and standing.

Below the sill, with the window still reachable. Our reading of the code's requirement that the window opens from inside without tools: the desk stays, and anything in front of the glass that you could not shove aside does not.

Larger view

Desk against a wall: the outlet, and the switch by the door that may control it

A wall position is the one the electrical chapter of the code has already provisioned. Section E3901.2.1 requires receptacles so that "no point measured horizontally along the floor line of any wall space is more than 6 feet (1829 mm)" from one, in bedrooms as in the other rooms it lists. Wall space, for that rule, is any stretch 2 ft (61 cm) or wider that is unbroken by a doorway, measured around corners. So on a wall wired to the 2021 code, the horizontal run from any point along the wall to a receptacle is at most 6 ft (1.8 m), and the power strip's own cord is the only one that crosses the floor. A floor outlet counts only if it is within 18 in (46 cm) of the wall.

One of those outlets may be on the light switch. Section E3903.2 requires a lighting outlet on a wall switch near the entrance of every habitable room, and its first exception lets a bedroom meet that with "one or more receptacles controlled by a listed wall-mounted control device" instead. A bedroom with no wired ceiling or wall light and a switch by the door has a switched receptacle somewhere on its walls, and the section does not ask for a label on it. If the PC, the router or a smart desk ends up on it, the switch by the door turns them off. Before the desk goes against a wall, plug a lamp into each socket of each outlet on that wall and flip the switch by the door; the socket that goes dark is the one to keep for the lamp. A standing desk that asks for a reset every time someone flips the light is on that outlet: Uplift's instruction to reset after every power loss is in the ASR guide.

The wall also settles the camera. With your back to a wall, the webcam sees paint, and Microsoft's Teams guidance asks for that: "Choose a clean, uncluttered background". A side wall next to the window gives daylight from the side on your face and a wall behind the monitor for a bias light in the evening.

The test to run before the PC goes on that wall. The socket that goes dark with the switch is the room's switched receptacle, and the code section that allows it asks for no label.

Larger view

Desk facing the door, or with your back to it: what the camera sees

The door decides what happens on camera when someone comes in. The same Teams page puts the lighting rule in one sentence: "Make sure your face is lit from the front and avoid strong backlighting, shadows, or glare." A desk with the window behind you fails that on every daytime call. A desk with the door behind you puts the hallway, and whoever opens the door, in the frame; a desk with the bed behind you puts the bed there.

We would face the door or have it at your side, with a wall behind you: the door then opens outside the frame, and the window at your side lights your face from the front. If the room's only free wall is the one with the door in it, put the desk beside the door, so the door still opens outside the frame. Leave the door's swing clear, chair included.

Desk in the closet: no outlet required

The closet office is the layout for a bedroom that has to stay a bedroom, and the code accounts for both of its problems: no outlet and no reading light. The receptacle spacing rule in Section E3901.2 lists the rooms it covers, "kitchen, family room, dining room, living room, parlor, library, den, sunroom, bedroom, recreation room, or similar room or area", and a clothes closet is not on it. The spacing rule requires none in a closet, so unless someone added one, the desk in it runs on a cord from the nearest bedroom receptacle, through or under the closet door.

For the light, Section E4003.12 limits installed fixtures in a clothes closet to enclosed incandescent or LED, fluorescent, and closet-rated luminaires, with a set clearance from the storage space, 12 in (30.5 cm) for a surface-mounted enclosed LED, and it prohibits open incandescent lamps, pendants and lamp-holders. That rule is about wired fixtures, and the clearance it demands from the rod and the shelf is why a closet fixture sits above the door or on the ceiling, out of reading range. A closet without a window has no opening to the outdoors, so with the door shut for a call it has none of the ventilation the bedroom itself is required to have.

Door closed for calls: what the bedroom does with the air

The bedroom's ventilation, under the same Section R303.1, is the window: an openable area of not less than 4 percent of the floor. The section's exception for houses with mechanical ventilation only applies where the opening is not required by Section R310, and a bedroom window that serves as the emergency exit is required by it, so that window opens by design. The CO2 guide spells out what that means for a workday: an office is ventilated to a code, a spare bedroom has a window and a door, and the door goes shut for calls.

The desk beside the window is the desk that can open it between calls without getting up; the desk across the room and the desk in the closet cannot. A CO2 meter on the desk turns that into a time: how long the room takes to climb with the door closed is how often it needs the window open.

Sources

Everything above comes from the model code, the workstation guidance and the video-call guidance linked below, read in September 2026, plus figures from our own guides linked in the text; quoted wording is theirs. The code figures are from the 2021 International Residential Code; the edition in force where you live may differ. How we research explains the approach.

International Code Council, "2021 International Residential Code, Chapter 3 Building Planning" (R303.1 light and ventilation, R310.1 to R310.2.3 emergency escape and rescue openings)

International Code Council, "2021 International Residential Code, Chapter 39 Power and Lighting Distribution" (E3901.2 receptacle distribution and spacing, E3903.2 habitable room lighting outlets and the switched-receptacle exception)

International Code Council, "2021 International Residential Code, Chapter 40 Devices and Luminaires" (E4003.12 luminaires in clothes closets)

OSHA, "Computer Workstations eTool: Workstation Environment" (lighting and glare, window orientation, blinds)

OSHA, "Computer Workstations eTool: Monitors" (monitor perpendicular to window)

Microsoft, "Tips for presenting in large meetings and events in Microsoft Teams" (front lighting, backlighting, background)

Common questions

Can a desk go in front of a bedroom window?
The residential code requires an emergency escape opening in every sleeping room, the window where the room has no door to the outside, openable from inside without tools, and it says nothing about furniture. Our reading: a desk below the sill that you can lean over and climb across leaves that intact; a hutch or shelving across the glass does not.
Is it better to have the window behind the monitor or behind me?
Neither, on the two rules that apply. OSHA puts the screen at right angles to the window, and Microsoft's Teams guidance asks for light from the front. Both are satisfied by the window at your side.
Why does my computer lose power when I flip the bedroom light switch?
The likely cause is the room's switched receptacle. A bedroom without a wired ceiling or wall light meets the code's lighting requirement with an outlet on the wall switch instead, and the code section that allows it does not ask for a label. Move the PC to another outlet and keep that one for a lamp.
M

Written by

Martijn van Houten

Martijn van Houten writes independent guides about smart homes and home offices, drawing on product specifications, manufacturer documentation, and editorial research. When he has personally used or tested a product, the article states this clearly.

Read next

Related guides