A loft bed frees the floor for a desk, a sofa or play space, but it needs enough height both under the bed and above the mattress. Too little room above and you hit your head when you sit up; too little below and the desk is unusable. This calculator works out both, plus the guardrail height.
How the calculation works
- Headroom above the mattress = ceiling − clearance under the bed − deck thickness − mattress
- Most clearance below = ceiling − headroom wanted − deck − mattress
- Guardrail height above the deck = mattress + guardrail above the mattress
- Mattress top height = clearance under the bed + deck + mattress
Under a 96 in ceiling, a loft bed with 60 in of clearance below for a desk, a 3 in deck and a 6 in mattress leaves 27 in above the mattress, too little to sit up. To keep 33 in of headroom, the clearance below can be at most 54 in. The guardrail must reach 11 in above the deck, and the top of the mattress sits 69 in above the floor.
Typical heights
| Use under the bed | Clearance needed |
|---|---|
| Storage or play space | 36 to 48 in |
| Seating area | 48 to 54 in |
| Desk for a child | 54 to 60 in |
| Desk for an adult | 60 in or more |
Sitting up in bed takes about 30 to 36 in above the mattress for an adult.
Safety
- US rules ask for guardrails on both sides with gaps of 3.5 in or less, and the top of the rail at least 5 in above the mattress.
- Use the mattress thickness the maker recommends, so the rail stays high enough.
- Children under 6 should not sleep on a loft or top bunk.
- Anchor the bed to the wall and keep the ladder secure.
- Keep ceiling fans and light fixtures well away from the sleeping area.