# Deck Baluster Calculator

> Calculate how many balusters (railing spindles) keep every gap within the guard's sphere rule: 4 in in imperial, 100 mm in metric.

Page: https://craftquantities.com/calculators/renovation-construction/baluster-calculator/ (calculator). This is the page's Markdown copy; the HTML page is the canonical version.

Version 1.1.0, sources checked 2026-09-28, 3 published test vectors.

Balusters needed: 17 balusters for Rail Section Length 8 ft and Baluster Width 1.5 in, the page's opening figures; on the metric page, 2.4 m and 3.81 cm give 17 balusters. Sources are cited below.

## 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 |
|---|---|---|---|---|
| Rail Section Length | `railSectionLength` | 2.4 m | 8 ft | mm, cm, m, in, ft, yd; range 0.01–10 m |
| Baluster Width | `balusterWidth` | 3.81 cm | 1.5 in | mm, cm, m, in, ft, yd; range 0.01–0.1016 m |

- **Rail Section Length**: The length of railing between two posts.
- **Baluster Width**: The width of a single baluster (spindle), from the product spec.

## The answer on the opening values

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

### Metric

| Result | Value |
|---|---|
| **Balusters needed** | 17 balusters |
| Rail section length | 2,400 mm |
| Actual gap between balusters | 97.35 mm |
| Largest gap allowed | 100 mm |

### US customary

| Result | Value |
|---|---|
| **Balusters needed** | 17 balusters |
| Rail section length | 96 in |
| Actual gap between balusters | 3.92 in |
| Largest gap allowed | 4 in |

- Confidence: medium.

## How it is worked out

The count is the fewest spindles that keeps every clear gap at or under the largest gap shown: 100 mm (3.94 in) when you work in metric, the sphere England's Part K and Canada's code use, and 4 in (101.6 mm) in imperial, the IRC's. The figure your own building rule sets is the one that governs, and some jurisdictions set stricter guard requirements.

The working the page shows, in order: Rail section length; Actual gap between balusters; Largest gap allowed; then balusters needed.

The method, derived in full:

- [Stair Geometry, Ramps and Guarding](https://craftquantities.com/methodology/stair-geometry-and-guarding/): Why you choose the number of risers rather than their height, why the spread across a whole flight is held to three-eighths of an inch, and why a cable railing has to be checked deflected rather than at rest.

The equations it runs, in the open formula library:

- Formula: [n = ⌈(L − g_max) / (w + g_max)⌉](https://craftquantities.com/formulas/spacing-and-count/#count-under-a-maximum-gap)
- 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 covers one post-to-post bay and includes no spares, so a railing made of several sections has to be worked out and ordered bay by bay, with your own allowance on top for a spindle that splits at the fixing hole.
- Spacing is solved as one repeating baluster-plus-gap unit, which assumes every spindle is exactly the width entered and that the two end gaps against the posts finish the same as the gaps in the middle; setting out from a centred spindle, or leaving a wider gap at one post, breaks the figure shown for 'Actual gap between balusters'.
- Rail section length is taken as the clear opening between posts exactly as typed, with nothing deducted for post faces, newel trim or rail-end brackets, so a centre-to-centre measurement overstates the run and buys more spindles than the real opening needs — squeezed into the true span, the finished gaps close up tighter than the breakdown reports.
- The largest gap follows the unit system the page is worked in, not the place the guard is built: 100 mm (3.94 in) in metric, the sphere of England's Approved Document K and Canada's National Building Code, and 4 in (101.6 mm) in imperial, the IRC's. A Canadian guard set out in inches is still held to 100 mm, so work it in metric; where a code allows a larger sphere, such as Australia's 125 mm (4.92 in), this count can hold more spindles than that code asks for, never fewer.
- Nothing in the result speaks to strength or fixing: baluster thickness, whether each spindle is screwed, pocketed or clipped to the rails, and the load the infill has to resist are all absent from the arithmetic, which counts spacing and nothing else.
- Only the horizontal gaps between spindles are sized here — the gap beneath the bottom rail, the clearance where the guard meets the deck surface and the height of the guard itself are never computed, so a bay that passes on spindle spacing can still leave an opening somewhere the count never looked.

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-09-28):

- US: International Residential Code R312.1.3 — openings in a required guard must not allow passage of a 4 in (101.6 mm) diameter sphere; the imperial page solves to it
- UK: Approved Document K (2013), 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 page solves to it

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

**Why 4 in on one page and 100 mm on another?**

Both are the diameter of a sphere that must not pass through the guard, set to stop a young child's head going through. The International Residential Code, followed across the United States, uses 4 in (101.6 mm); England's Approved Document K and Canada's National Building Code use 100 mm (3.94 in). The page solves to 4 in when you work in imperial and to 100 mm in metric, so on some spans the metric count is one spindle more. Where your own code sets a different figure, that figure governs.

**Does this apply to horizontal cable or glass panel railings?**

The sphere principle still applies, but the calculation method differs — this calculator is specifically for evenly-spaced vertical balusters.

**Should the gaps come out exactly at the limit?**

No — this calculator finds the fewest balusters that keep every gap at or under the limit (4 in in imperial, 100 mm in metric), evenly distributed, which usually leaves each gap slightly under it for a clean, even look. The result shows both the gap you will get and the limit it was held to.

## Related calculators

- [Stair Rise & Run Calculator](https://craftquantities.com/calculators/renovation-construction/stair-calculator/)
- [Deck Board Calculator](https://craftquantities.com/calculators/renovation-construction/deck-board-calculator/)
- [Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)](https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/)

## Run it from a program

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

---
Source: https://craftquantities.com/calculators/renovation-construction/baluster-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.
