Formula library

CC BY 4.0 · JSON

Spacing and count

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.

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

Members on centres

count-on-centres

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

n=⌈Ls⌉+1
n = ⌈L / s⌉ + 1

Symbols

Members on centres: Symbols
SymbolMeaningMetricImperial
nNumber of members——
LLength of the runmft
sCentre-to-centre spacingmft

Worked example

A pinned test vector of the Linear Feet to Studs Calculator (16 in OC).

  • 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

Test vectors

Members on centres: Test vectors
CalculatorInputsFormulaCalculator returns
Linear Feet to Studs Calculator (16 in OC)L = 12.192 · s = 0.40643131pinned
Linear Feet to Studs Calculator (16 in OC)L = 10.0584 · s = 0.40642626pinned
Linear Feet to Studs Calculator (16 in OC)L = 3.048 · s = 0.406499pinned

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−gmaxw+gmax⌉
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
SymbolMeaningMetricImperial
nNumber of members——
LClear length between the end supportsmft
wWidth of one membermft
gmaxLargest clear gap allowedmft

Worked example

A pinned test vector of the Deck 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)
  • gmax = 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

Test vectors

Members under a maximum gap: Test vectors
CalculatorInputsFormulaCalculator returns
Deck Baluster CalculatorL = 2.4 · w = 0.0381 · gmax = 0.10161717pinned
Deck Baluster CalculatorL = 1.8 · w = 0.0508 · gmax = 0.10161212pinned
Deck Baluster CalculatorL = 0.67 · w = 0.041 · gmax = 0.101644pinned

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×wn+1
g = (L − n × w) / (n + 1)

Symbols

Equal gap between members: Symbols
SymbolMeaningMetricImperial
gClear gapmft
LClear length of the runmft
nNumber of members——
wWidth of one membermft

Worked example

A pinned test vector of the Deck 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

Test vectors

Equal gap between members: Test vectors
CalculatorInputsFormulaCalculator returns
Deck Baluster CalculatorL = 2.4 · n = 17 · w = 0.03810.097353.83268 in
Deck Baluster CalculatorL = 1.8 · n = 12 · w = 0.05080.09156923.60509 in
Deck Baluster CalculatorL = 0.67 · n = 4 · w = 0.0410.10123.98425 in
Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)L = 2.4 · n = 17 · w = 0.0410.09461113.72485 in
Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)L = 2.4384 · n = 17 · w = 0.03810.09948333.91667 in
Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)L = 0.66 · n = 4 · w = 0.040.13.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 wallCited by: Linear Feet to Studs Calculator (16 in OC)
  2. 24 in on centre gives 0.5 studs per linear foot; advanced framing uses this where the structure permitsCited by: Linear Feet to Studs Calculator (16 in OC)
  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 itCited by: Deck 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 itCited by: Deck 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 entersCited by: Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)
  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 exampleCited by: Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)
  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 shownCited by: Equal Spacing Calculator (Balusters or Spindles, Posts, Battens)

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

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/