Bunk bed mattresses have one dimension that matters more than comfort: thickness. A mattress that's too thick pushes the sleep surface up into the guardrails, and on a loft or top bunk that's not a stylistic quibble — federal safety rules require the rails to stand at least 5 inches above the mattress top precisely so a sleeping child can't roll over them. Pick too thin and you trade away support the sleeper will feel every night. So the question "how thick should a bunk bed mattress be?" has a real answer, and it starts with a tape measure and ends with the foam inside.

The 5-Inch Guardrail Rule Comes First
Under the federal bunk bed standards (16 CFR 1213 and 1513, which incorporate ASTM F1427), the upper edge of guardrails must sit no less than 5 inches above the top surface of the mattress — and critically, that measurement is taken using a mattress of the maximum thickness the manufacturer allows. The limit for your specific bed is usually printed in the assembly instructions or on a label on the frame. If the manual says 8 inches, an 8-inch mattress is the ceiling, not a suggestion; add a pillow-top topper on top of it and you've quietly built a fall hazard. If you've inherited a frame with no documentation, measure from the slat platform to the top of the guardrail and subtract 5 inches of clearance — that difference is your maximum mattress height, bedding included. Comforters and foam toppers count toward the limit even though nobody measures them.
Standard Sizes, Non-Standard Frames
Most bunk beds take a standard twin mattress: 39 inches wide by 75 inches long. But length runs long in many lofts and adult-oriented frames — 80-inch and even extra-long variants show up constantly — and the real constraint is fit. The same federal rules prohibit gaps between 3.5 and 9 inches anywhere between the mattress and the frame or guardrails, because that range is exactly the size a small body or head can wedge into. A mattress that leaves a 4-inch gap down one side of the frame isn't "close enough"; it's non-compliant and dangerous. Push the mattress to one corner and check the remaining gaps on both sides and at the foot — anything wider than 3.5 inches means the size is wrong. Custom-cut foam earns its keep here: odd-size frames, vintage bunk beds, and built-in lofts rarely accept off-the-shelf sizes without exactly these gaps.
How Thick for Which Sleeper
Within the height limit, thickness should follow the sleeper:
- Young kids on the top bunk (6–8 inches). Children are light enough that even 6 inches of firm foam gives full support, and the thinner build keeps weight down — which matters when you're wrestling sheets onto an elevated bed or a 9-year-old is hauling their own mattress corner during a sheet change.
- Teens and adults (8 inches, if the frame allows). Heavier sleepers bottom out thin mattresses; the extra inch of a quality 8-inch foam core keeps hips from sinking through to the slats across a full night.
- Guest lofts and occasional use (5–6 inches). A bed slept in a dozen nights a year doesn't need a thick build, and the thinner mattress doubles the headroom underneath.
Whatever you pick, err toward the middle of the manufacturer's range rather than the top. It leaves you room for a winter comforter without flirting with the rail line.
Firmness: Err Firm for Growing Spines
Bunk mattress foam should sit on the firm end of medium. Kids' spines are still developing and lighter bodies need a surface that pushes back rather than letting them hammock into it; a too-soft mattress also makes rolling over harder for toddlers. High-resilience foam in the density range used for quality seat cushions does this well — it bounces back morning after morning, doesn't take a permanent body impression, and shrugs off the jumping-on-the-bed phase better than memory foam, which runs soft and sleeps hot in a cramped top-bunk airflow pocket. The trade-offs between grades and densities are the same ones we break down in our foam firmness and density guide, and they apply exactly the same way on a sleeping surface.
Fit Beats Everything: Measure in This Order
- Inside frame length and width, at the slat platform, not the top rail — frames taper and inside corners get rounded.
- Guardrail-to-mattress gap on both sides once the mattress is in place, checking against the 3.5-inch limit.
- Height from platform to rail top, minus 5 inches, for the thickness ceiling.
- The stairwell and hatch you'll carry it through — a rigid foam mattress can't fold like a spring coil, so the delivery path matters as much as the frame.
Ordering foam cut to the quarter inch starts with these numbers, which is why we keep the same discipline in our cushion thickness guide: decide the space, then decide the foam, never in reverse.
Weight and Handling Are Part of the Math
Whoever changes those sheets is hoisting bedding above their head, and mattress weight decides whether that's a two-second job or a shoulder workout. Foam builds the lightest mattresses in the business — a 39″ × 75″ × 6″ firm foam core weighs a fraction of an innerspring, and it holds rails-friendly firmness without springs poking through thin tops. If the bunk gets remade weekly, look for foam with a fabric cover you can zip off and wash, and consider a lighter 6-inch build for the top even when the frame would tolerate 8.
Get the three numbers right — snug fit, height under the rail limit, firmness for the sleeper — and a bunk bed stops being furniture you worry about and becomes the sleepover headquarters every kid wants. When the frame is an odd size, custom-cut foam to your exact measurements closes the gap that off-the-shelf mattresses leave behind, and it's the same quarter-inch-precision cutting we do for RV and camper mattresses every day.