Tradefox

Tradefox – Build Skills

Learn Construction

‹ All carpentry calculators

Setting out

Count for a maximum clear gap

n=⌈W−gmaxb+gmax⌉g=W−nbn+1
where
n
member count
W
clear opening (mm)
gmax
specified maximum gap (mm)
b
member width (mm)
g
actual gap (mm)
Explain this equation

Finds the fewest members needed so that no clear gap in an opening exceeds a specified maximum, then the actual equal gap.

W is the clear opening, b the member width and gmax the largest gap allowed, all in millimetres. n is the number of members, and g the actual gap.

n members need n + 1 gaps, so nb + (n + 1)g = W. Setting g to gmax and solving for n gives (W − gmax)/(b + gmax). Rounding up with ⌈ ⌉ guarantees every gap is no wider than the limit. The second line then shares the leftover space equally.

A 1000 mm opening with 40 mm members and a 95 mm maximum needs 7 members, giving 90 mm gaps.

Watch out: the maximum gap must come from the design or regulations. This calculator does not confirm compliance. It always uses at least one member.

Choose a whole member count so equal end and internal gaps do not exceed a specified limit.

mm
mm
mm

Enter your values to see the result.

This is a calculation aid, not a structural design or compliance certificate. Every default is an example, not a specification for your project.

Worked example

A garden gate with a 1820 mm clear opening, 32 mm pales and a design maximum clear gap of 90 mm: n = ceil[(1820 − 90) ÷ (32 + 90)] = ceil(14.2) = 15 pales; g = (1820 − 15 × 32) ÷ 16 = 83.75 mm. Fourteen pales would leave gaps over 90 mm, so 15 is the minimum.

Common questions

Why does the actual gap come out smaller than the maximum?
The member count is rounded up to a whole number, so the spare space is shared across more gaps. The result is always at or below the limit.

Can I use this for a horizontal slatted fence?
Yes. Use the clear height between rails as the opening and the slat depth as the member width. Remember timber can shrink, which slightly widens gaps.

Does the maximum gap include the space at the ends?
Yes. The calculation shares the space into equal gaps including the two at each end, so no gap at the posts exceeds the limit either.

Scroll to Top
Secret Link