How to space railing pickets evenly

Pickets look right when every gap is the same, including the two at the posts. The arithmetic has one rule: there is always one more space than pickets, and it was being printed for carpenters more than a hundred years ago. Here it is with that old example and a metric run kept under the 100 mm opening limit.

Published 2026-11-17. Rather have the numbers worked out? Metal Railing Picket & Post Spacing Calculator does it in your browser.

Open this example in the tool same sizes, worked out in the tool

The method in short
  • n pickets leave n + 1 gaps, one at each post: gap = (clear width − n × picket) ÷ (n + 1).
  • The 1912 bay: 96 − 24 × 1.125 = 69 in, ÷ 25 = 2.7600 in for every gap.
  • If you are given the largest gap, n = (clear width − gap) ÷ (picket + gap), rounded up: 24 pickets for gaps of 2.8 in or less.
  • A 3000 mm run with 50 mm posts at most 1200 mm apart: 3 bays of 933.3 mm, 8 pickets of 16 mm a bay, gaps of 89.5 mm.
  • Mark the first centre at one gap plus half a picket from the post, 3.3225 in, then step 3.8850 in.

1. One more space than pickets

Between two posts, n pickets leave n + 1 gaps: one at each post and one between each pair. So the gap is the clear width between the posts, less the pickets, divided by one more than the number of pickets.

The 1912 example: twenty-four 1 1/8 in balusters in 96 in. The balusters take 24 × 1 1/8 = 27 in, leaving 69 in; 69 ÷ 25 = 2 19/25 in, or 2.7600 in, for every opening (Woods, 1912). The railing tool, given the same bay, puts in 24 pickets with 2.7600 in gaps.

2. How many pickets

Usually the number is not given; the largest gap is. Take the fewest pickets that keep every gap under it: n = (clear width − gap limit) ÷ (picket + gap limit), rounded up. Then work out the real gap as above; it always comes out at or under the limit, and one picket fewer would break it.

In millimetres: a 3000 mm run with 50 mm posts at most 1200 mm apart makes 3 bays of 933.3 mm clear; 16 mm pickets with gaps under 95 mm need 8 a bay, at 89.5 mm. The National Building Code of Canada asks that a guard stop a 100 mm sphere (9.8.8.5), so a limit a little under 100 mm leaves room for fit-up.

3. Marking them out

  1. From the inside face of a post, mark the first picket centre at one gap plus half a picket: 3.3225 in in the 1912 bay.
  2. Step by one picket plus one gap, 3.8850 in, for each next centre. The 1915 note gets the same step another way: add one baluster to the total and divide by the number of spaces, (96 + 1 1/8) ÷ 25.
  3. Check the last gap at the far post before welding or drilling: it should match the others.
  4. Every bay of the same width is the same, so one marked rail is a pattern for the rest.

How this matches the tool

The numbers above are computed by the code of the railing picket calculator when this page is built. The tool also spaces the posts, gives the picket length between the rails, and lists the cuts.

Questions

How many pickets do I need between two posts?

Take the fewest that keep every gap no wider than your limit: n = (clear width − gap limit) ÷ (picket + gap limit), rounded up. In the 96 in bay with 1.125 in pickets and a 2.8 in limit that is 24 pickets, with gaps of 2.7600 in. One fewer would give gaps of 2.9219 in, over the limit.

Why is there one more gap than pickets?

The two end gaps are the spaces between the end pickets and the posts. n pickets in a bay make n + 1 gaps, and the gap at each post is the same as the ones between pickets. That is why the first centre is one gap plus half a picket from the post face: 3.3225 in in the 1912 bay.

Do I measure from post centre to post centre?

No, use the clear width between the posts. In the page’s example a 104 in run with a 4 in post at each end is one bay with 96 in clear. Mark from the inside face of a post.

What gap does the code allow?

The National Building Code of Canada 2020, Division B, 9.8.8.5.(1), asks that openings through a guard stop a 100 mm sphere. A limit a little under that, such as 95 mm, leaves room for fit-up: 8 pickets a bay give gaps of 89.5 mm in the metric example. Your local code and the use of the building decide the real limit, so check them.

Can I mark one bay and copy it to the rest?

Yes, when the bays are the same width: every bay is then the same, and one marked rail is a pattern for the rest. The railing tool makes equal bays no wider than your largest post spacing. This page covers a level run, not a sloped stair rail.

Sources

  1. A. W. Woods, letter in American Carpenter and Builder, vol. 12 no. 6 (March 1912): spacing twenty-four balusters in 96 inches (24 × 1 1/8 = 27 in, 96 − 27 = 69 in, “there is always one more space than the number of balusters”, 69 ÷ 25 = 2 19/25 in)
  2. “Spacing Baluster, etc.”, American Carpenter and Builder, vol. 18 no. 4 (January 1915), p. 74, Fig. 2: add one baluster to the total and divide by the number of spaces to get the step from the start to the far side of each baluster
  3. National Building Code of Canada 2020, Division B, Sentence 9.8.8.5.(1): openings through guards must prevent the passage of a 100 mm spherical object

Skip the arithmetic

Metal Railing Picket & Post Spacing Calculator: Posts in equal bays and pickets evenly spaced with every gap under your limit, the picket length between the rails and a cut list, beside the NBC and OSHA guard limits. Layout only.

Free, in your browser; nothing you type is sent anywhere. How the tools are checked is on the Verification page. Rather have the job done for you? See how we help shops, quoted per job.