Bed Frame Calculator that starts from your mattress size and rail stock, then gives the frame size, rail cuts, slat count and spacing, slat sag under load and the floor space left.
Measure your real mattress; sizes can run up to an inch off the label.
Slats and Support
Mattress warranties set the widest slat gap; Queen and larger need a center rail with legs.
Height, Room and Load
The bed sits centered on the headboard wall; load is sleepers plus mattress.
Cut List
| Part | Qty | Length | Section |
|---|---|---|---|
| Head and foot rail | 2 | 64 in | 1-1/2 in x 7-1/4 in |
| Side rail, between ends | 2 | 81 in | 1-1/2 in x 7-1/4 in |
| Slat ledger | 2 | 81 in | 1-1/2 in x 1-1/2 in |
| Center rail, legs to floor | 1 | 81 in | 1-1/2 in x 3-1/2 in |
| Center rail leg | 2 | 7-3/4 in | 3-1/2 in x 3-1/2 in |
| Slat | 13 | 60-3/4 in | 3/4 in x 3-1/2 in |
Frame Size by Mattress
| Mattress | Frame Outside | Slats | Legs |
|---|---|---|---|
| Twin | 42 x 79 in | 12 | 4 |
| Twin XL | 42 x 84 in | 13 | 4 |
| Full | 58 x 79 in | 12 | 4 |
| Queen | 64 x 84 in | 13 | 5 to 6, center rail |
| King | 80 x 84 in | 13 | 5 to 6, center rail |
| California King | 76 x 88 in | 13 | 5 to 6, center rail |
Building a Wood Frame With the Bed Frame Calculator
Most bed size tools stop at picking a mattress. The Bed Frame Calculator starts from the mattress you own and builds a wood frame around it, from rail cuts and slat count to sag under load and the floor left in your room.
All lumber sizes are actual, not nominal. A 2x8 rail goes in as 1-1/2 by 7-1/4 in, and a 1x4 slat as 3/4 by 3-1/2 in. The tool works in inches, feet and pounds, with a centimeter, meter and kilogram option.
Frame Size From the Mattress Out
The opening inside the rails is the mattress size plus a little tuck room for sheets. The outside size then adds one rail thickness on each side.
Here and are the mattress width and length, is the total tuck room and is the rail thickness. A Queen at 60 by 80 in with 1 in of tuck room and 2x rails gives a 61 by 81 in opening and a 64 by 84 in frame.
Measure the mattress itself before trusting the label. Purple's warranty treats size differences under 2 in as normal, so a mattress sold as 60 in wide can arrive larger. If yours runs over, 1 in of tuck room will not fit it, and the opening needs to grow first.
Corner layout decides which rails run long. With end rails full width, the head and foot rails cut at 64 in and the side rails fit between them at 81 in. Switch to side rails full length and the cuts become 84 in sides and 61 in ends, with the outside size unchanged.
| Mattress | Mattress size | Frame outside | Slats | Legs |
|---|---|---|---|---|
| Twin | 38 x 75 in | 42 x 79 in | 12 | 4 |
| Twin XL | 38 x 80 in | 42 x 84 in | 13 | 4 |
| Full | 54 x 75 in | 58 x 79 in | 12 | 4 |
| Queen | 60 x 80 in | 64 x 84 in | 13 | 5 to 6, center rail |
| King | 76 x 80 in | 80 x 84 in | 13 | 5 to 6, center rail |
| California King | 72 x 84 in | 76 x 88 in | 13 | 5 to 6, center rail |
The table uses 1 in of tuck room, 1-1/2 in rails and 3-1/2 in slats spaced to the Purple gap limit. Change any of those in the tool and its own size chart updates to match.
Slat Count and Gap Under Warranty Rules
Mattress warranties set the slat rules, not woodworking convention. The Purple warranty allows gaps of no more than 3.5 in on a slatted frame. It also asks for a center support with five to six legs on Queen, King and Cal King, and four legs on Twin and Full.
The Tempur-Pedic warranty sets the gap at 4 in but adds a width rule, with slats at least 3 in wide. Its leg and center support rules match Purple's. Warranty text changes over time, so check the current one for your exact mattress.
The Bed Frame Calculator fits the fewest slats that keep every gap under your limit, with the end slats tight to the head and foot rails.
Here is the opening length, is the slat width and is the maximum gap. An 81 in Queen opening with 3-1/2 in slats under the Purple rule needs 13 slats at 2.958 in apart. Measure that gap as clear space between slats, not center to center.
Slats are cut 1/4 in short of the opening width, so a Queen slat is 60-3/4 in. Measure the opening at the head, middle and foot before cutting, because rails rarely stay perfectly parallel. Cut every slat to the narrowest reading.
Slat Sag and the Center Rail
A slat is a small beam, and the Bed Frame Calculator checks how far it bends under the sleepers plus the mattress. With no center rail, each slat is a simple span between the side ledgers.
A center rail turns each slat into two spans over three supports. Each span is half as long, and sag grows with the fourth power of span, so the peak sag drops sharply.
In both, is load per inch, is the span, is stiffness and for a slat wide and thick. The values are clear-wood figures at 12% moisture from the USDA Forest Products Laboratory Wood Handbook. Southern yellow pine uses the loblolly value of 1,790,000 psi, and eastern white pine is the softest option at 1,240,000 psi.
The default limit is span/360, the floor deflection limit in the IRC. It is borrowed here as a convention, since no code sets a limit for bed slats.
The center rail matters more than any other choice. A Queen with 1x4 southern pine slats and 430 lb on it sags 0.438 in with no center rail, about span/139. Add the rail and the same slats sag 0.011 in, roughly 38 times less.
Thickness is the next lever, because sag drops with the cube of it. A Full with no center rail and 3/4 in slats sags to span/157 and fails the check. The same slats at 1 in thick reach span/373 and pass.
The check spreads the whole load evenly over every slat, while real weight gathers under hips and shoulders. Knots also make a lumberyard board softer than the clear-wood values. Real stiffness varies with species, grade and moisture content, so leave margin past the limit rather than building right at it.
The same beam math drives the Shelf Span Calculator, where span and thickness trade off the same way on a loaded shelf. Halve a simple span there and sag falls to one sixteenth, just as it does under a slat.
Mattress Height and Room Fit
Deck height is measured from the floor to the top of the slats. Mattress top height is that plus the mattress thickness, so a 12 in deck under a 10 in mattress puts the sleeping surface at 22 in.
Room fit assumes the bed sits centered on the headboard wall. A 64 by 84 in Queen frame in a 12 by 13-1/2 ft room leaves 40 in of floor on each side and 78 in at the foot.
For a reference point on side clearance, ADA section 806.2.3 asks accessible hotel rooms to provide a 30 by 48 in clear floor space along both sides of a bed. That standard covers public lodging, not homes, but 30 in is a useful check for a bedroom where someone walks past the bed every day.
The cut list totals board feet for the rails, ledgers, center rail and slats. The default Queen comes to 41.8 bd ft, and the Board Foot Calculator prices it out once you know your lumber cost.
Bed Frame Calculator Questions From Builders
How much bigger should a bed frame be than the mattress?
The frame grows by your tuck room plus two rail thicknesses. With 2x rails and 1 in of tuck room, that adds 4 in in each direction, so a 60 by 80 in Queen sits in a 64 by 84 in frame.
Thinner 3/4 in rails cut the outside size by 1-1/2 in. Thick 8/4 hardwood at 1-3/4 in adds half an inch, and an upholstered border adds whatever its padding takes up.
How many slats does a queen bed need?
It depends on slat width and the gap rule. Under the 3.5 in Purple limit, a Queen opening needs 15 slats at 2-1/2 in wide, 13 at 3-1/2 in, and 10 at 5-1/2 in.
Narrow 2-1/2 in slats fail Tempur-Pedic's 3 in minimum width, and the tool warns when you pick that rule with slats under 3 in. Wider slats mean fewer pieces to cut, and each one carries more of the load.
Does a queen bed frame need a center support?
Both Purple and Tempur-Pedic list center support and five to six legs for Queen and larger as a warranty condition. Without them, a claim can be refused even if the mattress itself fails.
The sag math backs the rule up. At Queen width, center support cut sag by about 38 times in the example above. The tool marks the support card red whenever a Queen or larger frame has no center rail.
How much weight can a wood bed frame hold?
The calculator does not give a capacity rating, because frame strength depends on joints, fasteners and legs that it cannot see. What it checks is slat stiffness under the weight you enter, sleepers plus the mattress.
The default 350 lb of sleepers and an 80 lb mattress put about 33 lb on each of 13 Queen slats. For heavier loads, raise the sleeper weight and watch the sag line, then add slats, use thicker stock or switch to a stiffer wood if it goes past your limit.