Metal Railing Picket & Post Spacing Calculator
Lay out a level metal railing: posts in equal bays, pickets evenly spaced with every gap under your limit, the picket length between the rails and a cut list. With the National Building Code and OSHA limits beside your numbers.
The method behind it: How to space railing pickets evenly, step by step, with sources.
Dimensions
Results
Beside common code limits
Information, not approval: the rules that apply depend on where the railing is and what the building is for.
Preview
Click a blue number on the drawing to change it; the results that change light up.
Cut list
Rails cut to fit between the posts; pickets between the rails. Add your own allowance for fit-up.
Assumptions and limits
read before you cut
Read these before you cut anything. They describe exactly what this tool does and does not account for.
- Layout only: post, rail and picket sizes, anchorage and loads are for the designer of the railing to settle. Code limits are information, not approval.
- A level run with square posts at both ends; equal bays no wider than your largest post spacing; rails between the posts.
- Pickets equally spaced in each bay with equal gaps at both posts; every gap is within your largest gap.
- Heights from the walking surface; pickets fit between the rails. Sloped stair rails are not covered.
Output is a planning and fabrication aid. You are responsible for verifying dimensions, tolerances and material behaviour before production; see the full disclaimer.
Worked example
A 10 ft (120 in) run, 2 in posts no more than 48 in apart, 3/4 in pickets with gaps under 3 3/4 in, 42 in high, 1 1/2 in rails, 3 1/2 in clear under the bottom rail:
- Bays ⌈(120 − 2) ÷ 48⌉3 bays, 4 posts
- Post spacing 118 ÷ 339 5/16 in
- Pickets per bay ⌈(37.33 − 3.75) ÷ 4.5⌉8
- Gap (37.33 − 8 × 0.75) ÷ 93 1/2 in
- Picket length 42 − 1.5 − 1.5 − 3.535 1/2 in
Method
Posts and pickets
- Bays = ⌈(run − post) ÷ largest spacing⌉; post spacing = (run − post) ÷ bays; clear width = spacing − post.
- Pickets per bay n = ⌈(clear − gap limit) ÷ (picket + gap limit)⌉; gap = (clear − n × picket) ÷ (n + 1).
- Picket length = railing height − top rail − bottom rail − clearance.
Code limits shown
- National Building Code of Canada 2020: guards at least 1070 mm high in general and 900 mm inside a dwelling unit (9.8.8.3); openings must stop a 100 mm sphere (9.8.8.5).
- OSHA 29 CFR 1910.29(b): top rail 42 in ± 3 in; balusters no more than 19 in apart.
How this tool is verified
- A 10 ft run with 2 in posts and 3/4 in pickets is checked against hand calculations: bays, post spacing, pickets per bay, gap, picket length and the cut list (tests/railing.test.ts).
- For several runs, the pickets and gaps are checked to fill each bay exactly, every gap to be within the limit, and one picket fewer to break it.
- Code limits are only those read in the primary text: NBC 2020 9.8.8.3 and 9.8.8.5, and OSHA 29 CFR 1910.29(b) on eCFR.
The method, the reports and the responsibility boundary are on the Verification page.
Questions
How is the picket count worked out?
In each bay between two posts, the fewest pickets that keep every gap within your largest gap, with equal gaps at both posts. A 37 1/3 in bay with 3/4 in pickets and gaps no wider than 3 3/4 in takes 8 pickets with gaps of about 3 1/2 in (3.48 in).
What gap should I use?
Under the National Building Code of Canada 2020 (9.8.8.5) a guard opening must stop a 100 mm (3 15/16 in) sphere, so a gap a little under that, such as 3 3/4 in or 95 mm, leaves room for tolerance. Your local code and the building’s use decide the real limit.
Does it check the railing’s strength?
No. It lays out the posts, rails and pickets you describe and lists the cuts. Member sizes, anchorage and loads are for whoever designs the railing.
How do I mark the pickets?
From the inside face of a post, mark the first picket centre, then step by picket width plus gap. Every bay is the same, so one marked rail is a pattern for the rest.
Does it do stair rails?
Not yet: this is a level run. On a stair the pickets and the gaps are measured differently along the slope.
Missing an option?
A different datum, an offset, a shop allowance, another shape altogether: say what this tool does not cover yet. Requests decide what gets built next, and a report of a wrong result is dealt with before anything new.
Rather have the whole job done (drawings, cut files, the shop documentation, mistakes caught before cutting)? Quoted per job: how we help shops.
Related tools
Square Tube Cut Template (Miter and Pipe Saddle)
Wrap-around template for square and rectangular tube: angled miters for frames and saddles onto round pipe, corner radius included. Print 1:1, mark from a table or take the DXF.
Open the tool →Plate DXF Generator (Holes, Slots, Rounded Corners)
Base plates and mounting plates: size, rounded or chamfered corners, a hole grid, slots or a bolt circle. Hole coordinates, weight, cut length and a free DXF.
Open the tool →Metal Weight Calculator (Plate, Tube, Angle, Bar)
Weight of plate and sheet, discs and rings, round, square and rectangular tube, angle and round bar: per piece, per foot and per quantity, with every density traced to a US government document.
Open the tool →We also make welding table kits and stainless fish tables to order, from our own drawings: the shop.