Home Improvement

Shelf Spacing Calculator

Space shelves evenly in a given height.

Your numbers

Inside height of the space the shelves fill, from the bottom edge to the top edge.

Between ends: the space is already closed top and bottom. Ends count: the top and bottom boards are two of your shelves.

Result

Gap between shelves

13.8 in

4 shelves of 0.75 in in 72 in, about 13 13/16 in

Gap between shelves
13.8 in
Nearest 1/16 inch
13 13/16 in
Number of gaps
5
Total thickness of the shelves
3 in

Where each shelf goes, measured up from the bottom

ShelfBottom edgeTop edge
113.8 in14.55 in
228.35 in29.1 in
342.9 in43.65 in
457.45 in58.2 in
How this was calculated
  1. Total thickness = shelves x thickness = 4 x 0.75 = 3 in.
  2. Gaps = shelves + 1 = 5.
  3. Gap = (height - total thickness) / gaps = (72 - 3) / 5 = 13.8 in.
  • This divides the height into equal gaps. Real shelving often uses unequal gaps, for example taller spaces for large books or a fixed bottom shelf. A shelf also needs enough thickness or support for its span and load, which this tool does not check. Measure to the nearest 1/16 inch and cut a spacer block to the gap to set each shelf.

Calculated using SumPanda.com · https://sumpanda.com/shelf-spacing-calculator/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the shelf spacing calculator

  1. Enter the total height of the space in inches, from its bottom edge to its top edge.
  2. Enter the number of shelves and the shelf thickness.
  3. Choose how to count: Shelves between ends if the space is already closed top and bottom, or Ends count as shelves if your top and bottom boards are two of the shelves.
  4. Read the gap between shelves and the table of where each shelf's bottom and top edges go, measured up from the bottom.

Formula

Total thickness = shelves x thickness

Gaps = shelves + 1 (between ends) or shelves - 1 (ends count)

Gap = (height - total thickness) / gaps

The bottom edge of shelf k is k x gap + (k - 1) x thickness when the ends are not counted. The gap is also shown to the nearest 1/16 inch.

A 72 inch tall bookcase

Four shelves of 0.75 inch plywood fit in a 72 inch space. The total thickness is 4 x 0.75 = 3 inches, there are 5 gaps, and each gap is (72 - 3) / 5 = 13.8 inches, which is 13 13/16 inches to the nearest 1/16. The bottom edges sit at 13.8, 28.35, 42.9 and 57.45 inches.

If instead the top and bottom boards are two of the four shelves, there are 3 gaps of (72 - 3) / 3 = 23 inches, and the shelves start at 0, 23.75, 47.5 and 71.25 inches.

Even gaps, and when not to use them

Equal spacing is easy to build and looks tidy, but it is not always the best use of the height. A bookcase holding paperbacks, cookbooks and large art books might have gaps of different sizes. If you need unequal gaps, subtract the fixed ones first and divide the rest.

Cut a spacer block to the gap and rest each shelf on it while you fasten the supports. That is more accurate than measuring each shelf from the floor.

Strength and sag

The calculator only divides the height. It does not check whether a shelf is thick or stiff enough for its span and the weight it will carry, and long shelves sag under heavy loads. A thicker shelf, a center support or a front edge strip all reduce sag.

For related planning, see the picture hanging calculator, the board foot calculator, the stud calculator and the linear feet calculator.

Assumptions and limits

  • All shelves are the same thickness and the gaps are equal.
  • Heights are measured from the bottom edge of the space.
  • The nearest 1/16 inch value is rounded for convenience and the decimal value is exact to the digits shown.
  • Shelf strength, supports and the weight they carry are not modeled.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

How do I space shelves evenly?

Subtract the total thickness of the shelves from the height and divide by the number of gaps. For 4 shelves of 0.75 inch in 72 inches, that is 69 divided by 5, or 13.8 inches.

How many gaps are there for a given number of shelves?

If the space is closed at the top and bottom, there is one more gap than shelves. If the top and bottom boards are counted as shelves, there is one fewer gap than shelves.

How far apart should bookshelves be?

It depends on what they hold. Paperbacks need less height than large books. Measure the tallest item you plan to store and add a little clearance, then check that the equal gap is at least that.

What if the gap comes out between two tape measure marks?

The tool shows the gap to the nearest 1/16 inch. A cut spacer block set to that gap keeps all shelves consistent, and a small difference at the top is easier to hide than uneven gaps.