# Spacing and count

> Members on centres, n = ⌈L/s⌉ + 1, members under a maximum gap and the equal gap between them, each pinned to test vectors.

Page: https://craftquantities.com/formulas/spacing-and-count/ (formula reference). This is the page's Markdown copy; the HTML page is the canonical version.

Studs, joists, posts and balusters are counted the same few ways: from the centres they stand at, or from the largest gap a rule allows, and then spaced so every gap is equal.

- 3 Formulas
- 3 Calculators that run them
- 12 Test vectors

- [This family as JSON](https://craftquantities.com/formulas/spacing-and-count.json)
- [All formula families](https://craftquantities.com/formulas/)

## Members on centres

`count-on-centres`

How many members a run takes at a given centre-to-centre spacing, the closing one included.

n=⌈L s⌉+1

_n = ⌈L / s⌉ + 1_

### Symbols

**Members on centres: Symbols**

| Symbol | Meaning | Metric | Imperial |
|---|---|---|---|
| _n_ | Number of members | — | — |
| _L_ | Length of the run | m | ft |
| _s_ | Centre-to-centre spacing | m | ft |

#### Worked example

A pinned test vector of the [Linear Feet to Studs Calculator (16 in OC)](https://craftquantities.com/calculators/renovation-construction/linear-feet-to-studs-16-oc-calculator/).

- _L_ = 12.192 m (40 ft) (Length of the run)
- _s_ = 0.4064 m (1.33333 ft) (Centre-to-centre spacing)

gives _n_ = **31**. The calculator's own compute function returns 31.

### Calculators that run it

- [Linear Feet to Studs Calculator (16 in OC)](https://craftquantities.com/calculators/renovation-construction/linear-feet-to-studs-16-oc-calculator/) — its headline answer

### Test vectors

**Members on centres: Test vectors**

| Calculator | Inputs | Formula | Calculator returns |
|---|---|---|---|
| [Linear Feet to Studs Calculator (16 in OC)](https://craftquantities.com/calculators/renovation-construction/linear-feet-to-studs-16-oc-calculator/) | _L_ = 12.192 · _s_ = 0.4064 | 31 | 31 pinned |
| [Linear Feet to Studs Calculator (16 in OC)](https://craftquantities.com/calculators/renovation-construction/linear-feet-to-studs-16-oc-calculator/) | _L_ = 10.0584 · _s_ = 0.4064 | 26 | 26 pinned |
| [Linear Feet to Studs Calculator (16 in OC)](https://craftquantities.com/calculators/renovation-construction/linear-feet-to-studs-16-oc-calculator/) | _L_ = 3.048 · _s_ = 0.4064 | 9 | 9 pinned |

## Members under a maximum gap

`count-under-a-maximum-gap`

The fewest members that keep every clear gap at or under a limit.

n=⌈L−g max w+g max⌉

_n = ⌈(L − g_max) / (w + g_max)⌉_

The baluster calculator works to the 4 in (101.6 mm) gap of its US setting.

### Symbols

**Members under a maximum gap: Symbols**

| Symbol | Meaning | Metric | Imperial |
|---|---|---|---|
| _n_ | Number of members | — | — |
| _L_ | Clear length between the end supports | m | ft |
| _w_ | Width of one member | m | ft |
| _g_max | Largest clear gap allowed | m | ft |

#### Worked example

A pinned test vector of the [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/).

- _L_ = 2.4 m (7.87402 ft) (Clear length between the end supports)
- _w_ = 0.0381 m (0.125 ft) (Width of one member)
- _g_max = 0.1016 m (0.333333 ft) (Largest clear gap allowed)

gives _n_ = **17**. The calculator's own compute function returns 17.

### Calculators that run it

- [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/) — its headline answer

### Test vectors

**Members under a maximum gap: Test vectors**

| Calculator | Inputs | Formula | Calculator returns |
|---|---|---|---|
| [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/) | _L_ = 2.4 · _w_ = 0.0381 · _g_max = 0.1016 | 17 | 17 pinned |
| [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/) | _L_ = 1.8 · _w_ = 0.0508 · _g_max = 0.1016 | 12 | 12 pinned |
| [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/) | _L_ = 0.67 · _w_ = 0.041 · _g_max = 0.1016 | 4 | 4 pinned |

## Equal gap between members

`equal-gap-between-items`

The clear gap that spaces a known number of members evenly, with a gap at each end.

g=L−n×w n+1

_g = (L − n × w) / (n + 1)_

### Symbols

**Equal gap between members: Symbols**

| Symbol | Meaning | Metric | Imperial |
|---|---|---|---|
| _g_ | Clear gap | m | ft |
| _L_ | Clear length of the run | m | ft |
| _n_ | Number of members | — | — |
| _w_ | Width of one member | m | ft |

#### Worked example

A pinned test vector of the [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/).

- _L_ = 2.4 m (7.87402 ft) (Clear length of the run)
- _n_ = 17 (Number of members)
- _w_ = 0.0381 m (0.125 ft) (Width of one member)

gives _g_ = **0.09735 m (0.31939 ft)**. The calculator's own compute function returns 3.83268 in.

### Calculators that run it

- [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/) — its breakdown line “Actual gap between balusters”
- [Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)](https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/) — its breakdown line “Clear gap between items”

### Test vectors

**Equal gap between members: Test vectors**

| Calculator | Inputs | Formula | Calculator returns |
|---|---|---|---|
| [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/) | _L_ = 2.4 · _n_ = 17 · _w_ = 0.0381 | 0.09735 | 3.83268 in |
| [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/) | _L_ = 1.8 · _n_ = 12 · _w_ = 0.0508 | 0.0915692 | 3.60509 in |
| [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/) | _L_ = 0.67 · _n_ = 4 · _w_ = 0.041 | 0.1012 | 3.98425 in |
| [Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)](https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/) | _L_ = 2.4 · _n_ = 17 · _w_ = 0.041 | 0.0946111 | 3.72485 in |
| [Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)](https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/) | _L_ = 2.4384 · _n_ = 17 · _w_ = 0.0381 | 0.0994833 | 3.91667 in |
| [Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)](https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/) | _L_ = 0.66 · _n_ = 4 · _w_ = 0.04 | 0.1 | 3.93701 in |

Using the equations

## How to read them

Counting on centres needs the extra one: a run divided into spaces has one more member than spaces. Rounding the spaces up keeps the last space within the centres.

Under a maximum gap, each member takes its own width plus one gap; the count rounds up so no gap exceeds the limit, and the equal gap then spreads the leftover evenly.

The equal-gap equation assumes a gap at both ends. With a member at each end there is one gap fewer, n − 1 instead of n + 1.

Read every symbol in one column: the equation holds in either system as long as the units are not mixed.

Each row is a registry test vector, run through the equation and through the calculator. Only rows on which the two agree are published.

These are quantity equations, not design checks. Nothing here sizes a member or confirms that a structure is safe; that is for the engineer or building official responsible for the work.

Limits

## Where they stop describing the job

Openings, corners, junctions and doubled members at a header are not in a count on centres; add them from the plan.

- The maximum gap is the rule's, not the equation's. A guard's limit depends on the code in force where it is built.

Sources

## What the calculators cite

The citations of the calculators that run these equations, as each calculator states them.

1. 16 in on centre spacing gives 0.75 studs per linear foot of wall Cited by: [Linear Feet to Studs Calculator (16 in OC)](https://craftquantities.com/calculators/renovation-construction/linear-feet-to-studs-16-oc-calculator/)
2. 24 in on centre gives 0.5 studs per linear foot; advanced framing uses this where the structure permits Cited by: [Linear Feet to Studs Calculator (16 in OC)](https://craftquantities.com/calculators/renovation-construction/linear-feet-to-studs-16-oc-calculator/)
3. 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 Cited by: [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/)
4. 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 Cited by: [Deck Baluster Calculator](https://craftquantities.com/calculators/renovation-construction/baluster-calculator/)
5. 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 Cited by: [Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)](https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/)
6. 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 Cited by: [Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)](https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/)
7. [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)Cited by: [Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)](https://craftquantities.com/calculators/measurements-conversions/equal-spacing-calculator/)

Data

## Cite or reuse this family

The same equations, symbols, calculators and vectors as one JSON file.

[https://craftquantities.com/formulas/spacing-and-count.json](https://craftquantities.com/formulas/spacing-and-count.json)

The text and the data of the formula library are published under the Creative Commons Attribution 4.0 licence (CC BY 4.0): reuse them, in any medium and for any purpose, with a credit to Craft Quantities and a link to the page.

Cite as: Craft Quantities, “Spacing and count”, https://craftquantities.com/formulas/spacing-and-count/

---
Source: https://craftquantities.com/formulas/spacing-and-count/
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.
