Skip to content
FiftyCalc Free calculators for all 50 states

Equal Spacing Calculator

Test cases replayed : 4 of 4 match · Methodology · No outside source listed

Place pickets, shelves, frames, holes or posts at even intervals: enter the length, how many items and their width.

Result

Sample figures

Equal gap between items—in

Gap to the nearest 1/16 inch —

  • Center-to-center spacing (in)—
  • First item's center from the start (in)—
  • Number of gaps—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Equal Spacing Calculator

Total length to fill, in in: enter 0 or more. Prefilled example: 96.

Number of items: enter 1 or more. Prefilled example: 7.

Width of each item (0 for points such as holes), in in: enter 0 or more. Prefilled example: 1.5.

Ends: choose Same gap at both ends (gap, item, gap … item, gap) or First and last items flush with the ends. Prefilled example: Same gap at both ends (gap, item, gap … item, gap).

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Total length to fill, in in: enter 0 or more.
  2. Number of items: enter 1 or more.
  3. Width of each item (0 for points such as holes), in in: enter 0 or more.
  4. Ends: choose Same gap at both ends (gap, item, gap … item, gap) or First and last items flush with the ends.
  5. Read the result: Equal gap between items; the panel also shows Gap to the nearest 1/16 inch, Center-to-center spacing (in), First item's center from the start (in) and Number of gaps.

How this calculator works

The free space is the length minus the items: L − n × w. With the same gap at both ends there are n + 1 gaps; with the first and last items flush against the ends there are n − 1 gaps. Gap = (L − n × w) ÷ number of gaps.

Center-to-center spacing = gap + item width. The first center sits at gap + w/2 from the start (or at w/2 when the items are flush with the ends); each next center is one spacing further.

The gap is also rounded to the nearest sixteenth of an inch for marking with a tape measure. Rounding each mark adds up, so mark every center from the same starting point rather than from the previous mark.

The formula

  1. Ng={n+1if eg≠0n−1otherwise
  2. G=L−n×wNg
  3. Gap={Gif G≥0No result for these inputsotherwise
Symbols used in the formula
SymbolMeaningUnit
LTotal length to fillin
nNumber of items
wWidth of each item (0 for points such as holes)in
egOne if Ends is Same gap at both ends (gap, item, gap … item, gap), zero otherwise
NgResult of step 1
GResult of step 2
GapEqual gap between itemsin

Worked example

Total length to fill96 in
Number of items7
Width of each item (0 for points such as holes)1.5 in
EndsSame gap at both ends (gap, item, gap … item, gap)
Gap to the nearest 1/16 inch10 11/16 in
Center-to-center spacing (in)12.19
First item's center from the start (in)11.44
Number of gaps8
  1. Ng=7+1=8
  2. G=96−7×1.58=10.6875
  3. Gap=10.6875

Equal gap between items 10.69 in

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

How do I space 7 pickets 1.5 in wide over 96 in?

With equal gaps at both ends: (96 − 7 × 1.5) ÷ 8 = 10.6875 in, about 10 11/16 in.

How do I space holes evenly?

Set the item width to 0. With holes at both ends, choose "flush with the ends": the spacing is the length divided by the number of holes minus one.

What if I need a maximum gap, like a railing code?

Use the baluster calculator, which finds how many balusters keep each gap under a maximum.

Questions answered

Related calculators