Calculate shelf spacing: enter the inside height, number of shelves and board thickness to get equal gaps and shelf positions, or how many shelves fit.

Use the number of internal shelf boards, excluding the fixed top and bottom.

Prefilled with 0.75 in, a typical ยพ in board. Change it to your boardโ€™s actual thickness.

Optional settings


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Equal clear openingFinds the equal gap between shelves in a cabinet or bookcaseRequires the clear interior height, the number of internal shelves and the shelf thickness
Maximum shelf countFinds the most shelves that fit while keeping a minimum gapRequires the clear interior height, the shelf thickness and the minimum clear opening
Required inside heightFinds the interior height needed for a set number of shelves and a chosen gapRequires the number of internal shelves, the shelf thickness and the clear opening
Wall bracket spacingFinds evenly spaced bracket positions along one wall shelfRequires the shelf length, the end setback, and either the number of brackets or the maximum spacing between them

Dimensions can be entered in inches, centimeters or millimeters, and results can be shown in any of the three. Shelf thickness starts at 0.75 in, a typical ยพ in board, and should be changed to the boardโ€™s measured thickness. The first three functions also list the bottom, center and top position of every shelf, measured up from the inside bottom of the cabinet.

Shelf Spacing Formulas

G = (H โˆ’ N ร— t) รท (N + 1)
GClear opening between shelf surfaces
HClear interior height, from the top of the bottom panel to the underside of the top panel
NNumber of internal shelves, not counting the fixed top and bottom
tActual thickness of each shelf

N shelves split the interior into N + 1 openings: one below the lowest shelf, one above the highest, and one between each pair. The shelves take up N ร— t of the height, and what is left is shared equally.

Equal clear opening

The main formula applies directly. A 72 in interior with 4 shelves that are 0.75 in thick has (72 โˆ’ 4 ร— 0.75) รท 5 = 13.8 in openings. The bottom of shelf i sits at i ร— G + (i โˆ’ 1) ร— t above the inside bottom, so the four shelves start at 13.8, 28.35, 42.9 and 57.45 in. The spacing from the top of one shelf to the top of the next is G + t, or 14.55 in.

Maximum shelf count

N = floor((H โˆ’ Gmin) รท
(t + Gmin))

Floor means rounding down to a whole number. With a 72 in interior, 0.75 in shelves and a minimum opening of 12 in, (72 โˆ’ 12) รท 12.75 = 4.7, so 4 shelves fit. The leftover height is then shared out, which gives 13.8 in openings instead of 12 in.

Required inside height

H = N ร— t + (N + 1) ร— G

Four 0.75 in shelves with 12 in openings need 4 ร— 0.75 + 5 ร— 12 = 63 in of clear interior height.

Wall bracket spacing

S = (L โˆ’ 2 ร— E) รท (n โˆ’ 1)

S is the center-to-center spacing, L is the shelf length, E is the setback from each end of the shelf to the center of the nearest bracket, and n is the number of brackets. A 48 in shelf with a 4 in setback and 4 brackets has (48 โˆ’ 8) รท 3 = 13.33 in between bracket centers, which puts them 4, 17.33, 30.67 and 44 in from the left end.

When a maximum spacing is entered instead of a bracket count, the span L โˆ’ 2 ร— E is divided by that maximum and rounded up to a whole number of gaps, and the number of brackets is one more than the gaps. For the same shelf with a 16 in maximum, 40 รท 16 rounds up to 3 gaps, so 4 brackets at 13.33 in.

Limits of This Estimate

  • This is a layout calculation only. It does not rate a shelf, bracket or wall fixing for a load, and it does not check for sagging over a long span.
  • Shelf positions are board surfaces. Shelf-pin holes and brackets sit below the shelf, so their positions need the supportโ€™s own offset.
  • Boards are often thinner than their nominal size, so measure the actual thickness. Leave some allowance for the items that have to slide in and out.
  • Bracket positions should be checked against the wall studs or other approved fixing points and the bracket makerโ€™s instructions before drilling.