# Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)

> Space balusters, posts, battens or fixings equally: the fewest that keep every gap or centre under your maximum, and each mark from one end.

Page: https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/ (calculator). This is the page's Markdown copy; the HTML page is the canonical version.

Version 1.0.0, sources checked 2026-10-05, 5 published test vectors.

Items to set out: 17 items for Length of the Run 8 ft, Width of Each Item 1.5 in and Largest Spacing Allowed 4 in, the page's opening figures; on the metric page, 2.4 m, 41 mm and 100 mm give 17 items. Source: NIST Handbook 44 (2026 edition), Appendix C.

## Inputs

A length, area or volume is entered with its unit. The page opens on the values below: a metric reader sees the metric column, a US customary reader the other.

| Input | id | Opens at (metric) | Opens at (US customary) | Accepts |
|---|---|---|---|---|
| Length of the Run | `runLength` | 2.4 m | 8 ft | mm, cm, m, in, ft, yd; range 0.01–1000 m |
| Width of Each Item | `itemWidth` | 41 mm | 1.5 in | mm, cm, m, in, ft, yd; range 0–1 m |
| How the Run Starts and Finishes | `endCondition` | Gap at each end (between posts) | Gap at each end (between posts) | `gaps`, `items` |
| Count | `solveFor` | Fewest under a maximum | Fewest under a maximum | `limit`, `count` |
| The Maximum Applies To | `limitApplies` | The clear gap between items | The clear gap between items | `gap`, `centres` |
| Largest Spacing Allowed | `maxSpacing` | 100 mm | 4 in | mm, cm, m, in, ft, yd; range 0.001–100 m |
| Number of Items | `itemCount` | 10 | 10 | range 1–1000 |
| Marks To | `markAt` | The centre of each item | The centre of each item | `centre`, `nearEdge` |

- **Length of the Run**: The distance the items are spread across, measured between the faces they start and finish against.
- **Width of Each Item**: The face width of one baluster, post, batten or fixing, measured along the run; 0 for marks to points.
- **How the Run Starts and Finishes**: A gap at each end, for balusters between two posts; or an item at each end, for a line of posts or battens.
- **Count**: Let the page find the count from a maximum spacing, or give the count and get the spacing.
- **The Maximum Applies To**: A guard's opening limit is a clear gap; a fixing pitch or a span is usually given as centres.
- **Largest Spacing Allowed**: The most the gap or centres may be, from your code, the maker's instructions or the design: 100 mm (3.94 in) and 4 in (101.6 mm) are guard-opening limits.
- **Number of Items**: How many items to space out, counting the end items if the run starts and finishes on one.
- **Marks To**: Where each mark is measured to: the middle of the item, or the edge nearer the start of the run.

`limitApplies` applies only when `solveFor` is `limit`.
`maxSpacing` applies only when `solveFor` is `limit`.
`itemCount` applies only when `solveFor` is `count`.

## The answer on the opening values

Worked exactly as the page works it, on the values each system opens on.

### Metric

| Result | Value |
|---|---|
| **Items to set out** | 17 items |
| Clear gap between items | 94.61 mm |
| Centre-to-centre spacing | 135.61 mm |
| Equal spaces across the run | 18 spaces |
| Largest gap allowed | 100 mm |
| Item 1, centre from the start | 115.11 mm |
| Item 2, centre from the start | 250.72 mm |
| Item 3, centre from the start | 386.33 mm |
| Item 4, centre from the start | 521.94 mm |
| Item 5, centre from the start | 657.56 mm |
| Item 6, centre from the start | 793.17 mm |
| Item 7, centre from the start | 928.78 mm |
| Item 8, centre from the start | 1,064.39 mm |
| Item 9, centre from the start | 1,200 mm |
| Item 10, centre from the start | 1,335.61 mm |
| Item 11, centre from the start | 1,471.22 mm |
| Item 12, centre from the start | 1,606.83 mm |
| Item 13, centre from the start | 1,742.44 mm |
| Item 14, centre from the start | 1,878.06 mm |
| Item 15, centre from the start | 2,013.67 mm |
| Item 16, centre from the start | 2,149.28 mm |
| Item 17, centre from the start | 2,284.89 mm |

### US customary

| Result | Value |
|---|---|
| **Items to set out** | 17 items |
| Clear gap between items | 3.92 in (3 15/16 in) |
| Centre-to-centre spacing | 5.42 in (5 7/16 in) |
| Equal spaces across the run | 18 spaces |
| Largest gap allowed | 4 in |
| Item 1, centre from the start | 4.67 in (4 11/16 in) |
| Item 2, centre from the start | 10.08 in (10 1/16 in) |
| Item 3, centre from the start | 15.5 in (1 ft 3 1/2 in) |
| Item 4, centre from the start | 20.92 in (1 ft 8 15/16 in) |
| Item 5, centre from the start | 26.33 in (2 ft 2 5/16 in) |
| Item 6, centre from the start | 31.75 in (2 ft 7 3/4 in) |
| Item 7, centre from the start | 37.17 in (3 ft 1 3/16 in) |
| Item 8, centre from the start | 42.58 in (3 ft 6 9/16 in) |
| Item 9, centre from the start | 48 in (4 ft 0 in) |
| Item 10, centre from the start | 53.42 in (4 ft 5 7/16 in) |
| Item 11, centre from the start | 58.83 in (4 ft 10 13/16 in) |
| Item 12, centre from the start | 64.25 in (5 ft 4 1/4 in) |
| Item 13, centre from the start | 69.67 in (5 ft 9 11/16 in) |
| Item 14, centre from the start | 75.08 in (6 ft 3 1/16 in) |
| Item 15, centre from the start | 80.5 in (6 ft 8 1/2 in) |
| Item 16, centre from the start | 85.92 in (7 ft 1 15/16 in) |
| Item 17, centre from the start | 91.33 in (7 ft 7 5/16 in) |

## How it is worked out

Every space is the same, the first and last included, and every mark is measured from the start of the run, rounded on its own to the nearest 1/16 in (1.6 mm) in imperial and given exactly in millimetres in metric.

The working the page shows, in order: Clear gap between items; Centre-to-centre spacing; Equal spaces across the run; Largest gap allowed; Item 1, centre from the start; Item 2, centre from the start; Item 3, centre from the start; Item 4, centre from the start; Item 5, centre from the start; Item 6, centre from the start; Item 7, centre from the start; Item 8, centre from the start; Item 9, centre from the start; Item 10, centre from the start; Item 11, centre from the start; Item 12, centre from the start; Item 13, centre from the start; Item 14, centre from the start; Item 15, centre from the start; Item 16, centre from the start; Item 17, centre from the start; then items to set out.

The method, derived in full:

- [Spacing, Pitch and the Count That Follows](https://craftquantities.com/methodology/spacing-pitch-and-count/): Why a run divided by a spacing gives the number of gaps and not the number of things, why the division rounds up rather than to nearest, and what the leftover bay at the end does to both.

The equations it runs, in the open formula library:

- Formula: [g = (L − n × w) / (n + 1)](https://craftquantities.com/formulas/spacing-and-count/#equal-gap-between-items)

What this calculation does not cover:

- The count holds every space at or under the maximum entered, and that maximum is the reader's to find: a guard's opening limit from the building code that applies, which is the IRC's 4 in (101.6 mm) sphere in the United States and 100 mm (3.94 in) under England's Approved Document K and Canada's National Building Code; a fixing pitch from the product's instructions; a span from a table. The page compares a spacing with the figure given; it does not decide which figure the work is held to.
- Every item is taken to be the width entered and to stand square to the run. A spindle that is turned or tapered, a post wider at its base than higher up, or a batten fixed at an angle needs its width measured at the height where the gap is measured, or the gaps come out tighter or wider than shown.
- With gaps at both ends the run is the clear distance between the end posts or walls, and the first and last spaces equal the rest. Starting from a centred item, or leaving a different gap at one end, changes every figure here. With a centres limit and gaps at both ends, the end faces are treated as supports as wide as the items.
- The marks are distances from the start of the run, each rounded to the nearest 1/16 in (1.6 mm) on its own. Stepping a spacer block from item to item, or hooking the tape on the last item fixed, carries every small error into the next space and gathers them all into the last one.
- Spacing is the only thing worked out. The opening under a bottom rail, a guard's height, a post's footing, the strength of the items and a fixing's distance from an edge are separate questions with their own rules. For studs or joists that board edges must land on, the standard centres are kept and the last bay is short, which is a different layout from this one.

A professional must decide:

- Structure: sizes, thicknesses, spans, reinforcement and bearing are a structural engineer's or the building official's decision. This is a quantity, not a design.

## Sources

As the calculator cites them (sources checked 2026-10-05):

- International Residential Code R312.1.3 — openings in a required guard must not allow passage of a 4 in (101.6 mm) diameter sphere; one example of the maximum a reader enters
- Approved Document K (2013 edition), Section 3 — guarding in a building likely to be used by children under five should not have openings that allow passage of a 100 mm (3.94 in) sphere; the metric example
- NIST Handbook 44 (2026 edition), Appendix C: 12 inches = 1 foot and 1 inch = 2.54 centimetres exactly, the basis of the tape readings and of the millimetres a metric reader is shown <https://www.nist.gov/document/2026-nist-handbook-44-appendix-c>

The site's pages for the documents these name:

- [International Residential Code](https://craftquantities.com/standards/icc/irc/)
- [Approved Documents to the Building Regulations (England)](https://craftquantities.com/standards/uk-gov/uk-approved-documents/)

A code or standard has force only where a jurisdiction has adopted it, usually with local amendments; check what is in force with the authority where you build.

## Questions answered on the page

**How do I space balusters evenly between two posts?**

Choose a gap at each end, enter the clear distance between the posts, the baluster's face width and the largest gap your code allows, and keep the maximum on the clear gap. The page gives the fewest balusters that keep every gap at or under it, the gap they actually leave, and where each one goes measured from the first post. On an 8 ft (2.44 m) bay of 1.5 in (38 mm) balusters held to 4 in (101.6 mm), that is 17 balusters with gaps of 3.92 in (99.5 mm), marked at 3 15/16 in.

**What is the difference between the gap and the centres?**

The gap is the clear space between two neighbouring items, face to face; the centres are measured from the middle of one item to the middle of the next. The centres are always one item's width more than the gap. Guard openings are limited as a clear gap; fixings, posts and joists are usually specified at centres.

**Should the run start and finish on a post or on a gap?**

On a gap when the ends are already fixed, as with balusters between newel posts or battens between two walls: the end posts are not counted and the end spaces equal the others. On an item when the first and last of the things being spaced sit at the ends, as with a line of fence posts or a row of fixings along a rail: those two are counted, and the run is measured over their outside faces.

**Why are the marks measured from one end instead of from item to item?**

Because every measurement carries a small error, and stepping from one item to the next adds each error to the one before. Measured from a single starting point, each mark carries only its own rounding, so the last space comes out the same as the first. Hook the tape once at the start and mark every figure from it.

**Can I use this for stud or joist layout?**

Only where nothing has to land on the members. Studs and joists under sheet materials are set at a fixed centre, 16 in or 24 in (406 mm or 610 mm) in North America and 400 mm or 600 mm (15.7 in or 23.6 in) in the UK, so that board edges fall on them, and the last bay is simply short. Equal spacing would move every member off the board joints. The stud calculator lays framing out that way.

**How is this different from the deck baluster calculator?**

The baluster calculator counts the balusters in one bay against the guard's sphere for your unit system, and gives the gap they leave. This page takes any item and any maximum, gap or centres, starts and finishes the run either way, accepts a count you choose instead, and lists the mark for every item.

## Related calculators

- [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/)
- [Fence Picket Calculator](https://craftquantities.com/calculators/renovation-construction/fence-picket-calculator/)
- [Feet and Inches Calculator (Add, Subtract, Multiply, Divide)](https://craftquantities.com/calculators/measurements-conversions/feet-and-inches-calculator/)
- [Security Bollard Spacing Calculator](https://craftquantities.com/calculators/materials-quantities/bollard-spacing-calculator/)
- [Stud Calculator](https://craftquantities.com/calculators/materials-quantities/stud-calculator/)

## Run it from a program

- REST: `GET https://api.craftquantities.com/v1/calculate/equal-spacing-calculator` with each input as a query parameter, a length, area or volume with its unit; `https://api.craftquantities.com/v1/describe/equal-spacing-calculator` lists the inputs.
- MCP: the `calculate` tool at https://api.craftquantities.com/mcp with `slug` `equal-spacing-calculator`.
- Definition and test vectors: https://craftquantities.com/api/v1/calculators/equal-spacing-calculator.json

---
Source: https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
