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
Equal gap between itemsin
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Total length to fill, in in: enter 0 or more.
- Number of items: enter 1 or more.
- Width of each item (0 for points such as holes), in in: enter 0 or more.
- Ends: choose Same gap at both ends (gap, item, gap … item, gap) or First and last items flush with the ends.
- 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
| Symbol | Meaning | Unit |
|---|---|---|
| Total length to fill | in | |
| Number of items | ||
| Width of each item (0 for points such as holes) | in | |
| One if Ends is Same gap at both ends (gap, item, gap … item, gap), zero otherwise | ||
| Result of step 1 | ||
| Result of step 2 | ||
| Equal gap between items | in |
Worked example
| Total length to fill | 96 in |
|---|---|
| Number of items | 7 |
| Width of each item (0 for points such as holes) | 1.5 in |
| Ends | Same gap at both ends (gap, item, gap … item, gap) |
| Gap to the nearest 1/16 inch | 10 11/16 in |
|---|---|
| Center-to-center spacing (in) | 12.19 |
| First item's center from the start (in) | 11.44 |
| Number of gaps | 8 |
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.