Baluster spacing calculator

Type the length between posts and the baluster width, pick your code, and see how many balusters or spindles to buy, the equal gap between them and where to mark each one.

Every gap comes out equal and under the code limit: IRC 2021 4 in, UK 100 mm or Australia 125 mm.

The railing

Length between posts Inside face to inside face. Feet work too: 6'.
Baluster width A 2 x 2 is 1 1/2 in. Round ones: the diameter.
To count the balusters for the whole job.

The gap

The largest opening a sphere may pass. Check your local code, which may differ.
Largest gap you want Optional: a smaller gap for the look. Never more than the code.

Price

Price Optional. What one baluster costs, to see the total.
Free for your own website, with no account and no ads.

Put the baluster spacing calculator on your website

Paste this code into an HTML or embed block on any page. Your visitors use the calculator right there, the same as here: free, no sign-up, no ads, and nothing they type is sent anywhere.

Preview it

It fits any width from a phone up to 640 px and grows to the calculator's height. The line under it links to this page, so your visitors can see where it comes from. Every calculator you can embed

Free calculator by Billsmith

Balusters
Each gap
See the working

Baluster spacing, worked out

The formula

With L the length between posts, w the baluster width and g the largest gap, the fewest balusters is (L − g) ÷ (w + g), rounded up. That number of balusters makes one more gap than balusters, so each gap is (L − balusters × w) ÷ (balusters + 1), always at or under g. If that gap lands within 1/8 in (3 mm) of g, the calculator adds one more baluster, so a small setting-out error or a shrinking baluster cannot open a gap past the code. Start one gap from the post and step one gap plus one width each time.

A worked example

72 in between posts, 1 1/2 in balusters, the IRC 4 in rule: (72 − 4) ÷ (1.5 + 4) = 12.4, so 13 balusters. They make 14 gaps of (72 − 13 × 1.5) ÷ 14 = 3 3/4 in, 5 1/4 in center to center.

Code limits

IRC 2021 (US): no opening over 4 in (4 3/8 in on the open side of a stair, 6 in in the triangle under it); guards 36 in high where the drop is over 30 in, 34 in on stairs; handrails 34 to 38 in. England, Approved Document K: 100 mm; guarding 900 mm on stairs and landings, 1,100 mm on balconies; handrails 900 to 1,000 mm. Australia, NCC 2022: 125 mm; barriers 865 mm on stairs, 1 m on decks and landings.

IRC R312.1.3, R312.1.2 and R311.7.8.1; Approved Document K (2013 edition) paragraphs 1.34 and 1.39 and Diagram 3.1; NCC 2022 Housing Provisions 11.3. Check your local code: states, councils and cities adopt different editions and amend them.

Balusters by rail length

Balusters of 1 1/2 in and the gap, by length between posts
Between posts4 in rule4 3/8 in (stairs)
36 in (3 ft)6 at 3 7/8 in6 at 3 7/8 in
48 in (4 ft)9 at 3 7/16 in8 at 4 in
60 in (5 ft)11 at 3 5/8 in10 at 4 1/16 in
72 in (6 ft)13 at 3 3/4 in12 at 4 1/8 in
84 in (7 ft)15 at 3 7/8 in14 at 4 3/16 in
96 in (8 ft)18 at 3 5/8 in16 at 4 1/4 in

1 1/2 in balusters, fewest that pass with at least 1/8 in to spare, gaps to the nearest 1/16 in. At 48 in, 8 balusters leave gaps of exactly 4 in, and at 96 in, 17 leave 3 15/16 in: too close to the limit, so one more.

Metric

1,800 mm between posts with 41 mm spindles and the UK 100 mm rule: (1,800 − 100) ÷ (41 + 100) = 12.1, so 13 spindles and 14 gaps of 90.5 mm. Under Australia's NCC the limit is 125 mm.

Questions

How do you calculate baluster spacing?

Take the length between posts less one gap, and divide by the baluster width plus the largest gap; round up for the number of balusters. Then the gap is the length less all the balusters, divided by one more than the number of balusters. 72 in with 1 1/2 in balusters at a 4 in limit takes 13 balusters with 3 3/4 in gaps.

What is the 4 inch rule for balusters?

The International Residential Code (IRC 2021, R312.1.3) says a guard must not have openings that let a 4 inch sphere pass, from the walking surface up to the guard height. On the open sides of stairs the limit is 4 3/8 in, and the triangle under the bottom rail of a stair 6 in. Check your local code, which may amend it.

How many balusters do I need for a 6 foot section?

With 72 in between the posts and 1 1/2 in balusters, 13 under the 4 inch rule, spaced 3 3/4 in apart. With 2 3/4 in turned balusters, (72 − 4) ÷ 6.75 = 10.1, so 11. Measure between the posts, not post center to post center.

What is the maximum gap between spindles in the UK?

Approved Document K (2013 edition, paragraph 1.39) says guarding in a building that children under five may use should not let a 100 mm sphere through any opening. Guarding on stairs and landings in a house is 900 mm high, and 1,100 mm on external balconies. Check with your building control body.

How high does a deck railing have to be?

Under IRC 2021 R312.1.2 a guard is at least 36 in high wherever the deck is more than 30 in above the ground below, and 34 in on the open side of stairs. In England external balconies take 1,100 mm; in Australia (NCC 2022) decks with a fall of 1 m or more take a 1 m barrier. Check your local code.

What is the standard handrail height for stairs?

IRC 2021 R311.7.8.1: 34 to 38 in above the line of the stair nosings. Approved Document K: 900 to 1,000 mm above the pitch line. NCC 2022: at least 865 mm above the nosings. Check your local code before you build.