Why there is always one more gap than there are shelves
Put four shelves inside an empty cabinet and you have created five spaces: one under the bottom shelf, three between shelves, and one above the top shelf. That off-by-one is where nearly every shelf layout goes wrong. Divide an 84 in opening by four and you get 21 in, which looks reasonable and is not the answer to any question. The shelves themselves also occupy height — four at 3/4 in is 3 in gone before you start — so the correct division is (84 − 3) ÷ 5 = 16.2 in per bay.
Two numbers describe the result and they are not the same. The clear gap is what you can actually put something into: shelf top face to the underside of the shelf above. The pitch is gap plus one thickness, and it is what you measure when marking out, because each shelf's top face sits exactly one pitch above the last. Suppliers quote gaps, cabinetmakers work in pitch, and conflating the two puts every shelf progressively out of position.
Once the pitch is known, the mounting heights are a multiplication rather than a chain of additions, which matters because a chain of additions accumulates measurement error. Shelf k's top face sits at base + k × pitch, where base is the inside floor of the unit above the room floor. Mark all of them from the same datum with a story stick or a tape hooked at the floor, not each one from the last.
The division, the reserves, and the 32 mm grid
The core formula is g = (H − rt − rb − n·t) ÷ (n + 1). Take the clear opening, remove any reserve you want at the top or bottom, remove the material the shelves occupy, and split what is left across n + 1 bays.
The reserves are how you get an intentionally uneven layout out of an even-spacing formula. A pantry usually wants a deep bay at the bottom for large containers, so a 14 in bottom reserve leaves the remaining shelves evenly spaced above it. A closet run wants a taller top bay for luggage. Anything you reserve is taken out before the division, so the remaining bays stay identical to one another.
The 32 mm system is worth understanding if you are building rather than fitting. Since the 1950s, European cabinet hardware has been standardised on a 32 mm grid: shelf-pin holes, hinge plates and drawer runners are all drilled in columns 32 mm apart, and every jig, drilling template and line-boring machine assumes it. If your carcase sides are drilled on that grid, your shelves can only land on multiples of 32 mm (1.2598 in), so a calculated pitch of 16.95 in cannot be built — the nearest achievable pitch is 13 holes, or 16.378 in.
Snapping has a consequence the calculator makes explicit. Rounding the pitch changes the position of the top shelf, so the space above it is no longer the same as the bays below. With a 16.95 in nominal pitch snapped down to 16.378 in, the four bays each become 15.628 in and the space above the top shelf becomes 18.488 in. Nothing is lost — the total still adds up — but the layout is no longer symmetric, and you should decide deliberately whether the extra space belongs at the top or, by adding a top reserve first, somewhere else.
The fit check answers the reverse question: given the tallest thing you want to store plus finger room to lift it out, how many shelves can this opening take? Solve the same equation for n and round down: nmax = ⌊(usable − gmin) ÷ (t + gmin)⌋.
Worked example: four shelves in an 84 in bookcase
A bookcase with an 84 in clear opening, four adjustable shelves of 3/4 in ply, no reserves, standing directly on the floor. The tallest books are 12 in and you want an inch of finger room.
- Material. 4 shelves × 0.75 in = 3 in of the opening is shelf.
- Space to divide. 84 − 3 = 81 in.
- Number of bays. 4 shelves make 5 bays.
- Clear gap. 81 ÷ 5 = 16.2 in per bay.
- Pitch. 16.2 + 0.75 = 16.95 in.
- Mounting heights. Shelf 1 top face at 16.95 in, shelf 2 at 33.90 in, shelf 3 at 50.85 in, shelf 4 at 67.80 in. The space left above shelf 4 is 84 − 67.80 = 16.2 in, equal to the bays below, which is the check that the arithmetic closed.
- Fit check. Minimum gap needed = 12 + 1 = 13 in. (84 − 13) ÷ (0.75 + 13) = 71 ÷ 13.75 = 5.16, so 5 shelves would still clear your tallest books — four is comfortable.
Now suppose the carcase sides are line-bored on the 32 mm grid. The nominal 16.95 in pitch is 16.95 ÷ 1.2598 = 13.45 holes, which is not a hole. Rounding to 13 holes gives a 16.378 in pitch, so the shelves land at 16.38, 32.76, 49.13 and 65.51 in, the bays become 15.63 in, and 18.49 in is left above the top shelf. Both layouts are correct; only one of them is buildable on that carcase.
What gap you actually want
Nine to fourteen inches covers most storage. Below about 8 in a bay only takes paperbacks and small boxes; above about 16 in you are wasting height unless something genuinely tall is going in. The reference table below gives the clear gaps that common contents need, and it is worth reading before you fix the shelf count, because it is far easier to change n now than to redrill later.
Even spacing is a default, not a goal. A bookcase looks better and works better with a taller bottom bay: it gives large-format books somewhere to live and it visually grounds the piece. Achieve that with a bottom reserve rather than by eyeballing, so the remaining bays stay identical.
Check the span before you commit. Shelf spacing decides how much fits; shelf span decides whether it sags. Three-quarter-inch melamine or particleboard starts to deflect visibly past about 24–30 in of unsupported span under a load of books; plywood manages 30–36 in; solid hardwood 36–42 in. A sagging shelf is almost always a span problem, not a thickness problem, and the cure is a centre support, a front edge banding strip glued on edge, or a shorter run.
Reach matters at the extremes. Shelves above about 72 in need a step for most adults, and anything below about 12 in means kneeling. In an accessible layout the usable band is roughly 15–48 in from the floor, which corresponds to the reach ranges in ICC A117.1. If a run spans that whole height, put the things you use daily in the 30–60 in band and the archive at the extremes.
If the shelves are going into a closet, size the hanging space first with the closet rod hanging space calculator — the rod height sets the reserve above and below it. For a media wall, settle the screen height with the TV mount height calculator before spacing shelves around it.
Clear gap needed by what goes on the shelf
| Contents | Item height | Clear gap needed |
|---|---|---|
| Paperback books | 7–8 in | 9 in |
| Hardback and trade books | 9–10 in | 11–12 in |
| Oversize art and cookery books | 12–14 in | 15–16 in |
| Vinyl LPs (12 3/8 in sleeve) | 12.4 in | 13.5 in |
| Ring binders, upright box files | 12 in | 13 in |
| Pantry cans and jars | 5–7 in | 8 in |
| Cereal boxes, tall bottles | 12–14 in | 15 in |
| Dinner plates, stacked | 8 in | 10 in |
| Folded sweaters, stack of five | 10–12 in | 13–14 in |
| Shoes, flat | 5–6 in | 7–8 in |
| Boots, upright | 13–15 in | 16 in |
Item heights are typical retail dimensions; measure your own tallest example before fixing a layout. The clear gap adds roughly 1–2 in of clearance so items can be tilted out rather than dragged.
Maximum unsupported span before a shelf sags
| Material | Thickness | Max span, book load | Max span, light load |
|---|---|---|---|
| Particleboard / melamine | 3/4 in | 24–30 in | 32 in |
| MDF | 3/4 in | 26–30 in | 36 in |
| Plywood | 3/4 in | 30–36 in | 42 in |
| Solid hardwood | 3/4 in | 36–42 in | 48 in |
| Solid hardwood | 1 in | 42–48 in | 54 in |
| Tempered glass | 3/8 in | 28–32 in | 36 in |
Doubling a shelf's thickness increases its stiffness by a factor of about eight, while doubling the span increases deflection by about sixteen; span is the variable to change first. A 1½ in front edge glued on edge stiffens a 3/4 in shelf enough to add roughly a third to its span.
Nominal thickness is not actual thickness
Sheet goods sold as 3/4 in commonly measure 0.72 in (18 mm) because they are manufactured to metric thicknesses and sold under imperial names. Over four shelves that is a tenth of an inch of accumulated difference — small, but enough to make a snapped 32 mm layout miss its holes. Measure a scrap of the actual material with a caliper and enter that figure rather than the label.
Mistakes that put shelves in the wrong place
- Dividing by the number of shelves instead of the number of bays. Four shelves make five bays. This single error accounts for most botched layouts.
- Forgetting the shelf material. Ten shelves of 3/4 in stock swallow 7.5 in of opening before any spacing is calculated.
- Measuring each shelf from the one below. Errors compound. Mark every height from one datum at the floor, or make a story stick and transfer all the marks from it.
- Ignoring the shelf-pin grid. On a line-bored carcase your pitch must be a whole number of 32 mm holes, whatever the arithmetic says.
- Setting spacing before checking span. A bay that holds your books is worthless if the shelf bows under them. Check span and material first.
- Using nominal thickness. A shelf sold as 3/4 in is usually 18 mm, which is 0.709 in. Measure it.
- Planning to the tallest item you own today. Reserve one deeper bay rather than pushing every gap up to suit one object; the rest of the run then stays efficient.
Fixed shelves, adjustable shelves, and when to stop calculating
Adjustable shelving on a 32 mm grid gives you 1.26 in of resolution, which is close enough to any calculated layout to be worth the flexibility. It costs a little stiffness — pins in shallow holes are a weaker support than a dado or a cleat — and the holes are visible. Fixed shelves in dados are stronger, look cleaner, and also stiffen the carcase against racking, but they commit you to the numbers you produce here. For a bookcase you expect to load heavily and never rearrange, fixed shelves are the better engineering; for a pantry or a closet, adjustable wins on the first day someone buys a taller box of cereal.
This calculator handles one column of equal bays plus reserves. Three jobs need something else: a stepped layout where each bay is deliberately different (do it by running the calculator once per group), a floating-shelf wall where the spacing is a visual rhythm rather than a storage requirement (30–40% larger gaps usually look right), and any shelf carrying concentrated point loads such as a fish tank or a stack of records, which is a structural question about the support, not the spacing.
Finish the room with the related tools: the closet rod calculator for the hanging half of a wardrobe, the frame and mat calculator for anything leaning on a picture ledge, the rug size calculator for the floor below, and the wallpaper roll calculator if you are papering the back of the unit, which is the cheapest upgrade an ordinary bookcase can be given.
