What is a shelf spacing calculator?
The Shelf Spacing Calculator works out the exact even-spaced position of every shelf in a bookcase or cabinet from just three numbers: the total internal length, how many shelves you want, and the shelf thickness. It divides the remaining space — after subtracting the room the shelves themselves take up — evenly across every compartment (shelf count + 1), so you don't end up with uneven gaps from eyeballing the layout. The result comes with both an exact position list measured from the bottom of the case and a diagram drawn to match your actual proportions.
How to use it
Enter the total internal length of your bookcase or cabinet, how many shelves you want, and the shelf thickness. The compartment gap and compartment count are calculated instantly, and a list below shows the exact install position of every shelf measured from the bottom. The diagram is drawn to match your actual input proportions, so you can preview roughly what the finished piece will look like.
When it comes in handy
- Building your own bookcase or cabinet and wanting evenly spaced shelves
- Pre-calculating and marking shelf positions for a built-in closet or pantry
- Checking exact positions before adding shelves to existing furniture
- Comparing different shelf counts to see which layout is most practical
Why does skipping shelf thickness throw off the spacing?
It's easy to overlook that shelves themselves take up space equal to their thickness — the compartments aren't the only thing filling the case. For example, fitting 4 shelves (each 1.8cm thick) into 180cm leaves only 172.8cm of usable space after subtracting the 7.2cm the shelves themselves occupy, and that remaining space needs to be divided into 5 compartments (shelf count + 1) to get the correct gap. If you ignore thickness and just divide 180 by 5, every compartment ends up slightly narrower than calculated once it's actually built.
Good to know for real-world shelf installation
- Actual board thickness for MDF, particleboard, etc. can differ from the labeled value by 0.1-0.3mm — for critical work, it's worth measuring with calipers first
- For compartments holding heavy items like books, using a tighter spacing than the rest can help reduce shelf sag over time
- The bracket, pin, or dowel system holding the shelves may take up some of that space too, so the real usable gap can end up slightly smaller than the calculated value depending on your support method
- If you want deliberately uneven spacing (like a larger bottom compartment) rather than evenly spaced shelves, it's more accurate to calculate and mark those positions manually instead of using this tool
Frequently Asked Questions
- Does "number of shelves" mean the shelf boards themselves, or the compartments?
- It's the number of shelf boards. For example, adding 4 shelves creates 5 compartments total (above and below each shelf), and this tool makes sure all 5 compartments end up evenly spaced.
- Why do I need to enter the shelf thickness?
- Because the shelves themselves take up space. Without subtracting shelf thickness, the actual gap once installed would end up smaller than the calculated value.
- What are the calculated positions measured from?
- The very bottom of the case (bookcase or cabinet) is treated as position 0, and each shelf's position is the distance from there to the bottom face of that shelf.
- How do I prevent a shelf from sagging?
- This tool only calculates positions — preventing sag depends on shelf thickness, material, and support spacing. If you're planning to hold heavy items, consider a thicker shelf or adding a mid-span support.
- Does this account for shelf width too?
- No, this tool only calculates vertical (height) spacing. Use the shelf's own width for the horizontal dimension.
- Should I include the case's own thickness in the total length?
- Enter the actual interior dimension — the distance between the inner faces of the case's top and bottom panels. The case's own material thickness should already be excluded from that number.