Decking calculator

Baluster Calculator

A baluster calculator that works out exactly how many balusters a railing needs and where each one goes. Enter the total rail length and the number of sections for the baluster count per section, the exact even gap between balusters, the on-center spacing to mark out on the rail and a check against the 4-inch sphere rule in IRC R312.1.3. A stair mode lays balusters out along the slope and checks the horizontal gap, which is the measurement the code actually tests.

  • Free to use
  • No sign-up
  • Formula and sources shown
Baluster Calculator

Got the number? Save it before it gets lost.

A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.

Save this estimate in the app

Level is for deck rails, balconies and landings; stair lays balusters out along the slope and checks the horizontal gap.

40

The full railing run, post face to post face across all sections.

4

The number of spans between newel posts. Four sections need five posts.

1.5

1½ in is standard for wood balusters, ½ in for iron. Turned balusters are measured at their widest point.

3.5

Code limit is under 4 in (IRC R312.1.3). 3½ in is the default, giving margin for balusters that are not perfectly straight.

The material changes the cost only. The count and spacing come from the width.

Balusters needed

96

24 per section · actual gap 3.36 in · on-center 4.86 in

✓ Passes the 4 in sphere rule (IRC R312.1.3). 3.36 in is under 4 in

Clear span per section

120 in

Newel posts

5

Baluster cost

$288–$576

Rail length

40.0 ft

Buy 5% extra. One baluster in twenty arrives warped or split. Guard height is 36 in minimum where the deck is more than 30 in above grade (IRC R312.1.2).

Turn this result into a priced plan

Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.

Open this calculator in the app

Formula

Balusters per section = ceil[(Clear span − Max gap) ÷ (Baluster width + Max gap)]; Actual gap = (Clear span − Balusters × Width) ÷ (Balusters + 1); On-center = Width + Actual gap; Stair slope = √(Rise² + Run²)

Worked example. A 40 ft level railing in 4 sections with 1.5 in wood balusters and a 3.5 in maximum gap: each section is 120 in clear span. Balusters per section = ceil[(120 − 3.5) ÷ (1.5 + 3.5)] = ceil(23.3) = 24, so 96 balusters in total. Actual gap = (120 − 24 × 1.5) ÷ 25 = 3.36 in, on-center spacing is 1.5 + 3.36 = 4.86 in, and 3.36 in is under the 4 in code limit. The 4 in sphere cannot pass. Five newel posts (one per section end). Wood balusters at $3 to $6 each cost $288 to $576. Prices are US 2026 planning ranges, as of November 2026.

A 40 ft level railing in 4 sections with 1.5 in wood balusters and a 3.5 in maximum gap needs 96 balusters, 24 per section, with an exact gap of 3.36 in and on-center spacing of 4.86 in, which passes the 4-inch sphere rule in IRC R312.1.3. The formula is direct: balusters per section equals the clear span minus the maximum gap, divided by the baluster width plus the maximum gap, rounded up. This page does that layout for every section of your railing, checks the code and prices the balusters.

Key takeaways

  • •Default answer: 40 ft of railing in 4 sections, 1.5 in wood balusters, 3.5 in maximum gap, 96 balusters (24 per section), 3.36 in actual gap, 4.86 in on center, $288 to $576 for the balusters.
  • •The code limit is under 4 in, not 4 in: IRC R312.1.3 says a 4-inch sphere must not pass through any guard opening, so a gap of exactly 4 in fails.
  • •Design to 3.5 in, not to the limit. It leaves margin for balusters that are not straight and for wood that shrinks as it dries.
  • •A section with n balusters has n + 1 gaps. Forgetting the two end gaps is the most common counting mistake, and it puts the spacing out by a full gap.
  • •On-center spacing is the number you mark on the rail: baluster width plus actual gap. For the default it is 4.86 in.
  • •On stairs, measure the gap horizontally. A 3.40 in gap along a 36.9-degree slope is only 2.72 in horizontally, and the horizontal gap is what the sphere test measures.
  • •Iron balusters are thinner (0.5 in), so you need more of them: 30 per 10 ft section against 24 for 1.5 in wood, but the on-center spacing is tighter at 3.89 in.
  • •Count newel posts separately: one at each section end, so 4 sections need 5 posts on a level run and 2 per side on a stair.
  • •This page lays out every section of a run. For the whole stair; handrail length, newel posts and installed cost, use the stair railing calculator.

How to use the baluster calculator

  1. Choose level or stair mode. Level is for deck rails, balconies and landings; stair is for the balusters under a stair handrail.
  2. For a level railing, enter the total rail length in feet and the number of sections. The number of spans between newel posts. Four sections means five posts.
  3. For a stair, enter the total rise and total run in inches instead, plus the number of sides railed (one side against a wall, two sides for an open stair).
  4. Enter the baluster width in inches: 1.5 in for a nominal 2×2 wood baluster, 0.5 in for iron, 1 in for many aluminium and vinyl balusters.
  5. Keep the maximum gap at 3.5 in unless your local code demands tighter spacing. Never set it to 4 in or more.
  6. Pick the baluster material for the cost. The count and spacing do not depend on the material. Only the price does.
  7. Read the result: balusters per section, the total, the exact gap, the on-center spacing to mark out, the code verdict and the newel post count.

Worked examples

1. The default: 40 ft level railing, 4 sections, 1.5 in wood balusters

  • Clear span per section: 40 ft × 12 ÷ 4 sections = 120 in
  • Balusters per section: ceil[(120 − 3.5) ÷ (1.5 + 3.5)] = ceil(23.3) = 24
  • Total balusters: 24 × 4 sections = 96
  • Actual gap: (120 − 24 × 1.5) ÷ 25 gaps = 84 ÷ 25 = 3.36 in
  • On-center spacing: 1.5 + 3.36 = 4.86 in. Mark the rail every 4.86 in from the post face
  • Code check: 3.36 in is under 4 in. The 4 in sphere cannot pass ✓
  • Newel posts: 4 sections + 1 = 5
  • Cost: 96 × $3 to $6 = $288 to $576 (mid $432)

2. A single 12 ft deck rail, 1.5 in wood balusters

  • Clear span: 12 ft × 12 = 144 in, one section
  • Balusters: ceil[(144 − 3.5) ÷ 5] = ceil(28.1) = 29
  • Actual gap: (144 − 29 × 1.5) ÷ 30 = 100.5 ÷ 30 = 3.35 in
  • On-center spacing: 1.5 + 3.35 = 4.85 in
  • Code check: 3.35 in < 4 in ✓
  • Newel posts: 2, one at each end
  • Cost: 29 × $3 to $6 = $87 to $174

3. Iron balusters: 20 ft in 2 sections, 0.5 in wide

  • Clear span per section: 20 ft × 12 ÷ 2 = 120 in
  • Balusters per section: ceil[(120 − 3.5) ÷ (0.5 + 3.5)] = ceil(29.125) = 30
  • Total balusters: 30 × 2 = 60. More than wood, because iron balusters are thinner
  • Actual gap: (120 − 30 × 0.5) ÷ 31 = 105 ÷ 31 = 3.39 in
  • On-center spacing: 0.5 + 3.39 = 3.89 in. Mark the rail every 3.89 in
  • Code check: 3.39 in < 4 in ✓
  • Cost: 60 × $5 to $12 = $300 to $720

4. Stair mode: 105 in rise, 140 in run, both sides, 1.5 in wood balusters

  • Slope length: √(105² + 140²) = √30,625 = 175 in = 14.58 ft
  • Stair angle: arctan(105 ÷ 140) = 36.9°
  • Balusters per side: ceil[(175 − 3.5) ÷ 5] = ceil(34.3) = 35, so 70 in total
  • Gap along the slope: (175 − 35 × 1.5) ÷ 36 = 122.5 ÷ 36 = 3.40 in
  • Horizontal gap: 3.40 × cos(36.9°) = 3.40 × 0.80 = 2.72 in. The measurement the sphere test uses
  • Code check: 2.72 in horizontal < 4 in ✓ (and 3.40 in along the slope is under 4 in too)
  • Newel posts: 2 per side × 2 sides = 4
  • Handrail length: 14.58 ft per side, 29.17 ft in total

The formula: why n + 1 gaps

Balusters = ceil[(Clear span − Max gap) ÷ (Width + Max gap)] · Actual gap = (Clear span − Balusters × Width) ÷ (Balusters + 1) · On-center = Width + Actual gap

The formula looks odd until you draw it. A section of railing is a row of balusters with a gap between every pair, and a gap at each end, between the last baluster and the post. So a section with n balusters has n + 1 gaps, and the balusters plus the gaps have to add up to the clear span: n × width + (n + 1) × gap = span. Solve for n with the gap at its maximum and you get the first line of the formula; solve for the gap with n fixed and you get the second.

Rounding up is the whole trick. If the maths says 23.3 balusters, 23 balusters would leave a gap wider than the maximum you set, so the calculator rounds up to 24, and the actual gap comes out smaller than the maximum: 3.36 in instead of 3.5 in. That is why the actual gap is almost never exactly the number you entered, and why entering a 4 in maximum is a mistake: 22 balusters in a 10 ft section gives a 3.78 in gap, which passes, but only because the rounding saved you. Set the maximum to 4 in on a longer span and the rounding can land the other way. Design to 3.5 in and the rounding always lands on the safe side.

On-center spacing is the working number. It is the distance between the centres of neighbouring balusters, which is the same as the width plus the gap, and it is what you mark on the rail: hook the tape on the face of the first post, mark every 4.86 in (for the default), and centre a baluster on each mark. The first and last marks land one gap away from the posts, so the end gaps match the middle gaps and the whole section looks even.

For a single-span count without the section layout, the deck railing calculator uses the same formula on one span. For the whole stair; handrail length, newel posts, risers and installed cost, use the stair railing calculator, which recomputes the baluster count along the slope the same way this page does.

The 4-inch sphere rule (IRC R312.1.3)

The rule is one sentence in the International Residential Code, Section R312.1.3: required guard openings shall not allow passage of a sphere 4 inches (102 mm) in diameter. It exists for one reason. A small child's head is about 4 inches across, and a gap a head fits through is a gap a child can get stuck in or fall through. The inspector tests it with a 4-inch ball: if the ball passes through any opening in the guard, the guard fails.

Three things about the rule catch people out. First, it applies to every opening in the guard, not just the gaps between balusters: the gap between the bottom rail and the deck, the gap between the top of the balusters and the handrail, and the triangular opening where a stair rail meets a tread are all tested. On stairs the triangular opening gets its own test; a 6-inch sphere must not pass through the triangle formed by the tread, the riser and the bottom of the rail, which is why stair balusters often need to sit closer to the tread than the 4-inch rule alone would suggest.

Second, the sphere is a diameter, so the gap must be strictly under 4 inches. A gap that measures exactly 4 inches lets the sphere through, and a gap that measures 3.9 inches on a dry day can open up past 4 inches when the wood shrinks in summer. That is the practical reason for the 3.5-inch design maximum: it buys half an inch of margin against shrinkage, warping and balusters that were never perfectly straight.

Third, the rule applies wherever a guard is required, which is wherever the walking surface is more than 30 inches above the grade below (IRC R312.1). A ground-level deck 24 inches off the ground needs no guard at all in most jurisdictions, though many builders fit one anyway, while a deck 36 inches up needs a 36-inch-high guard with 4-inch-maximum openings. Some local codes and all commercial codes raise the guard to 42 inches; the opening rule stays the same.

OpeningRuleTestDesign to
Gap between balusters (level)IRC R312.1.34 in sphere must not pass3.5 in maximum
Gap between balusters (stair)IRC R312.1.34 in sphere, measured horizontally3.5 in maximum along the slope
Triangular opening at stair treadsIRC R312.1.3 exception6 in sphere must not passKeep the bottom rail low or add a baluster at each tread
Gap under the bottom railIRC R312.1.34 in sphere must not passBottom rail 2 to 4 in above the deck
Guard height (residential)IRC R312.1.236 in minimum above the walking surface36 to 42 in

Local codes can be stricter than the IRC. Your building department's amendment is the rule that governs your job.

Baluster spacing by material

The count depends on the baluster width, and the width depends on the material. Wood balusters are the widest, iron the narrowest, and that single difference changes the count by a quarter on the same railing. The table below is for a 10 ft section (120 in clear span) at a 3.5 in maximum gap, so you can see the effect of the material alone.

Baluster materialWidthBalusters per 10 ft sectionActual gapOn-center spacingCost per baluster
Wood, square 2×2 (nominal)1.5 in243.36 in4.86 in$3–$6
Wood, turned (measured at widest point)1.75 in233.35 in5.10 in$5–$10
Wrought iron, square0.5 in303.39 in3.89 in$5–$12
Aluminium1.0 in273.32 in4.32 in$8–$15
Vinyl / PVC1.0 in273.32 in4.32 in$8–$15 (kit) / $6–$10 (each)
Cable (no balusters)n/a0n/an/a$80–$150 per linear ft installed

Turned wood balusters are measured at their widest point, because that is where the gap is smallest. Cable rail has no balusters: the 4-inch rule is met by cable spacing instead, usually 3 to 3.5 in between cables.

Wood is the cheapest and the most forgiving to install: you can cut it on site, sand it, paint it and replace one baluster without disturbing the rest. Iron is the slimmest and the most formal-looking, but each baluster needs a shoe or a drilled hole top and bottom, and the tighter on-center spacing (3.89 in) means more holes to drill and more balusters to buy, 60 for a 20 ft run in 2 sections against 48 for wood. Aluminium and vinyl cost the most per piece but never need painting and never rot, which is why they dominate on coastal decks. Cable rail skips balusters entirely and is priced per linear foot instead, so it does not belong in this calculator. The deck cost calculator prices it at $80 to $150 per linear foot installed.

Price the whole railing, not just the balusters, with the deck cost calculator, which adds the rails, the newel posts and the installation. Order the decking boards for the deck the railing sits on with the deck calculator.

Stair balusters: the slope changes the measurement

Balusters on a stair are laid out along the slope, but the code measures them horizontally. That sounds like a technicality until you run the numbers: on a 36.9-degree stair (a 7-inch riser with a 10-inch tread, near the standard 7.5/10 stair), a 3.40-inch gap along the slope is only 2.72 inches horizontally. The slope gap is always wider than the horizontal gap, by a factor of one over the cosine of the stair angle, 1.25 on a 36.9-degree stair, 1.41 on a 45-degree stair.

That has two practical consequences. First, a stair that passes the code on the slope measurement passes it horizontally too, with room to spare, so if you lay balusters out along the slope at a 3.5-inch maximum, the horizontal gap lands around 2.8 inches and nobody fails an inspection. Second, the reverse is not true: if you space balusters 3.5 inches apart horizontally on a stair, the gap along the slope is 4.38 inches, and an inspector measuring along the rail will fail it. Always lay out on the slope and check horizontally, which is exactly what this calculator does.

The stair angle comes from the rise and the run: angle = arctan(rise ÷ run). A code-compliant stair has risers of at most 7.75 inches and treads of at least 10 inches (IRC R311.7.5), which puts the angle between about 30 and 38 degrees for most residential stairs. Steeper stairs, a ship's ladder or an alternating-tread stair, push the angle past 45 degrees, where the horizontal gap shrinks to 70% of the slope gap and the balusters start to look crowded even though the count is the same.

Stair (rise × run per step)AngleSlope gap at 3.5 in maxHorizontal gapBalusters per 14.58 ft slope
7 in × 11 in (gentle)32.5°3.38 in2.85 in35
7.5 in × 10 in (standard)36.9°3.40 in2.72 in35
7.75 in × 10 in (steepest code stair)37.7°3.40 in2.69 in35
8 in × 9 in (steep, non-code)41.6°3.40 in2.54 in35

All four rows use the same 105 in rise / 140 in run stair (14.58 ft slope) with 1.5 in balusters. The count is the same because the slope length is the same; only the horizontal gap changes with the angle.

Plan the stair itself first with the stair calculator; risers, treads, total rise and total run, then bring the rise and run here. For the handrail length, newel posts and the installed cost of the whole stair railing, use the stair railing calculator.

Marking out: from numbers to a finished rail

The calculator gives you the on-center spacing; the job is to transfer it to the rail without accumulating error. The method that works: hook the tape on the inside face of the first post, mark the centre of the first baluster at one on-center spacing from the post face, then mark every on-center spacing from there. Do not measure each gap separately. Measuring 24 gaps of 3.36 inches one at a time accumulates a quarter inch of error by the end of the section, and the last gap ends up visibly wrong.

  1. Cut the bottom rail and the top rail to the clear span, and lay them side by side on sawhorses.
  2. Hook the tape on the end of the rail and mark the baluster centres at the on-center spacing from the calculator, 4.86 in apart for the default.
  3. Check the last mark: it should land one gap (3.36 in for the default) short of the far end of the rail. If it does not, the span you measured and the span you entered disagree. Re-measure the posts.
  4. Drill or rout the baluster seats on both rails at the marks, keeping the drill square to the rail.
  5. Dry-fit the whole section on the bench before you carry it to the deck. A baluster that is a sixteenth out at the bench is a quarter out on the rail.
  6. Fit the section between the posts, plumb the first and last balusters, and check the end gaps with a 4-inch ball or a 3.5-inch gauge block before you fix anything.

For iron balusters, drill the bottom rail first and use it as the template for the top rail, because the holes have to line up exactly or the baluster binds. For wood balusters, a story stick; a strip of wood marked with the on-center spacing, is faster than a tape and cannot slip. And for a stair, mark the handrail on the slope: the on-center spacing is measured along the slope, so lay the rail on the stair, hook the tape at the bottom newel and mark up the slope.

Common baluster mistakes

  • •Setting the maximum gap to 4 in. The sphere is 4 in across, so a 4 in gap passes it. Design to 3.5 in.
  • •Counting n gaps instead of n + 1. A section with 24 balusters has 25 gaps, and forgetting the two end gaps puts every baluster a full gap out of place.
  • •Measuring the rail instead of the clear span. The rail runs past the posts; the span is post face to post face.
  • •Measuring each gap separately instead of marking centres at the on-center spacing. The error accumulates and the last gap is wrong.
  • •Measuring turned balusters at the narrow waist instead of the widest point. The gap is smallest where the baluster is widest, and that is where the sphere is tested.
  • •Spacing stair balusters horizontally instead of along the slope. The count comes out short and the slope gap fails.
  • •Forgetting the triangular opening at the stair treads. The 6-inch sphere test at the tread catches rails that pass the 4-inch test everywhere else.
  • •Ordering exactly the calculated count. Buy 5% extra. One baluster in twenty arrives warped, split or cut wrong, and a single missing baluster stops the job.
  • •Fitting balusters before the posts are plumb. A post that leans a degree moves the top gap by half an inch over a 36-inch rail.

How this calculator compares with the rivals

The top results are a mix of single-purpose spacing tools and general deck calculators, and none of them lays out a whole railing run section by section, checks the code and prices the job in one place. The gap is the combination, and the stair mode, which the single-span tools skip entirely.

RivalWhat it offersWhere this page beats it
Inch Calculator | baluster calculatorBaluster count and spacing for a single rail length, with a 4-inch gap optionInch does one span. This page splits the run into sections, gives the per-section count and the on-center spacing to mark out, adds the code verdict and prices the balusters.
Blocklayer | balustrade / railing calculatorsRailing layout with baluster spacing, including stair balustrades, in its large free calculator setBlocklayer is a general-purpose set with thin explanations. This page explains the n + 1 gap rule, the sphere test and the horizontal stair measurement, with worked examples in real numbers.
CalcBuilt | baluster / railing calculatorsBaluster count from rail length and spacing, in a construction calculator collectionCalcBuilt gives a count. This page gives the count per section, the exact even gap, the on-center marking spacing, the newel count and the cost by material.
OnlyCalculators | baluster calculatorSimple baluster count and spacing for a deck railOnlyCalculators is a single-span counter. This page adds sections, stair mode, the IRC R312.1.3 code check and a material cost comparison.
CalcMaple | baluster spacing calculatorBaluster spacing for a given rail length and baluster sizeCalcMaple stops at the spacing. This page adds the code check, the stair slope and horizontal gap, the newel posts and the worked examples.
CalculatorSoup | deck and stair calculatorsDeck board counts and stair rise/run calculatorsCalculatorSoup covers the deck and the stair but not the balusters between the posts. This page fills that gap and links to both.
Decks.com | baluster spacing guidesGood written guidance on baluster spacing and the 4-inch rule, with spacing chartsDecks.com explains the rule but does not calculate your railing. This page calculates it, section by section, and marks out the on-center spacing.
Fine Homebuilding | railing spacing articlesTrade-level articles on guard construction and code complianceTrade articles are written for builders and do not produce a number from your measurements. This page does both: the number and the reason behind it.
TimberTech / Trex | railing calculatorsManufacturer calculators for their own railing systems, with baluster counts for their kitsManufacturer tools only count their own kits. This page is material-neutral, wood, iron, aluminium or vinyl, and works for a site-built rail as well as a kit.

The honest summary: every rival counts balusters for one span. None of them splits a real railing run into sections, none of them measures the stair gap horizontally the way the code does, and none of them hands you the on-center spacing to mark on the rail. This page wins by doing the layout the way a carpenter actually builds it; section by section, with the code check built in, and by linking clearly to the deck railing calculator for a single span and the stair railing calculator for the whole stair.

Assumptions

  • •A section with n balusters has n + 1 gaps: one gap at each end plus one between every pair. The calculator rounds the count up so the actual gap never exceeds the maximum you enter.
  • •The code check is IRC R312.1.3: guard openings must not allow passage of a 4-inch diameter sphere. The actual gap must be under 4 in, not exactly 4 in. A 4 in gap lets the sphere through. The 3.5 in default leaves margin for balusters that are not perfectly straight and for wood that shrinks as it dries.
  • •Clear span is the distance between the inside faces of the posts at each end of a section. Measure the posts, not the rail: the rail usually runs past the posts and the extra length is not part of the span.
  • •Level mode splits the total rail length into equal sections. If your sections are different lengths, run the calculator once per section with that section's own length and 1 section.
  • •Stair mode lays balusters out along the slope (the hypotenuse of total rise and total run) and reports both the gap along the slope and the horizontal gap. The horizontal gap is the one the 4 in sphere test measures on a stair, because the sphere sits level.
  • •Baluster widths are the actual widths: 1.5 in for a nominal 2×2 wood baluster, 0.5 in for a typical iron baluster. Turned balusters are measured at their widest point, because that is where the gap is smallest.
  • •Costs are US 2026 planning ranges for the balusters only, wood $3 to $6 each, iron $5 to $12, aluminium $8 to $15, vinyl $6 to $10. Rails, newel posts, brackets and installation are not included.

Sources✓ Verified

  • International Residential Code (IRC) Section R312.1.3, Guards | opening limitations. Required guard openings shall not allow passage of a sphere 4 inches in diameter. This is the code rule behind the gap check on this page.
  • International Residential Code (IRC) Section R312.2, Guard height. Guards are required where the walking surface is more than 30 inches above grade, at a minimum height of 36 inches (42 inches in some commercial and multifamily codes).
  • International Residential Code (IRC) Section R311.7.8, Handrails. Handrail height of 34 to 38 inches measured vertically from the nosing line on stairs, the height the balusters stand under in stair mode.
  • American Wood Council (AWC) DCA 6 | Prescriptive Residential Wood Deck Construction Guide. Deck guard construction, post attachment and guard infill requirements for residential decks.
  • Manufacturer and supplier price lists, 2025 and 2026. Baluster prices per piece by material, used for the cost ranges on this page.

Formula reviewed November 2026.

A 40 ft level railing in 4 sections with 1.5 in wood balusters and a 3.5 in maximum gap needs 24 balusters per section, 96 in total, with an actual gap of 3.36 in and on-center spacing of 4.86 in. Five newel posts, one at each section end. The same 40 ft as one unbroken section would need 96 balusters too, but the gaps would differ. That is why the per-section layout matters.

Under 4 inches. IRC R312.1.3 says guard openings must not allow passage of a 4-inch diameter sphere, so a gap of exactly 4 inches fails. The sphere passes. Use 3.5 inches as the design maximum: it leaves margin for balusters that are not perfectly straight and for wood that shrinks as it dries. This calculator defaults to 3.5 inches and flags any result at or over 4 inches.

On-center spacing is the baluster width plus the clear gap. For the default 40 ft railing, 1.5 in balusters, 3.36 in actual gap, the on-center spacing is 4.86 in. Mark the rail at 4.86 in centres from the face of the first post and every baluster lands in the right place with equal gaps at both ends. For 0.5 in iron balusters the on-center spacing is about 3.89 in.

Measure the total rise and total run of the stair, work out the slope length with Pythagoras; the square root of rise squared plus run squared, and lay the balusters out along that slope. A stair with 105 in of rise and 140 in of run has a 175 in slope (14.58 ft) at 36.9 degrees. With 1.5 in balusters and a 3.5 in maximum gap that is 35 balusters per side, a 3.40 in gap along the slope and a 2.72 in horizontal gap, and the horizontal gap is the one the 4-inch sphere test measures.

A 12 ft (144 in) single section with 1.5 in wood balusters and a 3.5 in maximum gap needs 29 balusters, with an actual gap of 3.35 in and on-center spacing of 4.85 in. Two newel posts, one at each end. Wood balusters at $3 to $6 each cost $87 to $174.

No. The calculator puts a gap at each end of every section, between the last baluster and the post. That is the standard layout: the end gaps match the gaps between balusters, so the whole section looks even. If you put a baluster hard against a post you lose the end gap and the spacing across the section goes uneven.

Converters to use with the Baluster Calculator

Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.

Browse all converters

More decking calculators

Deck Joist CalculatorDeckingDeck Joist CalculatorA deck joist calculator that works out how many joists a deck needs, and whether the joist size you picked can actually span the distance. Enter the deck length along the ledger, the clear span, the spacing and the joist size, and the calculator gives you the joist count, checks the span against the IRC Table R507.6 limits, and adds the blocking, the rim joists, the ledger and the total board feet. With a clear fail warning when the span is too long for the size.Deck CalculatorDeckingDeck CalculatorThis deck calculator works out exactly how many deck boards you need, the total linear feet to order, and the deck's square footage, so you buy the right amount the first time. Enter your deck dimensions and board width, then add a waste allowance and your board length to turn the result into a ready shopping list. A 16 ft by 12 ft deck with 5.5 in boards and a 1/4 in gap needs 26 boards, or 416 linear feet.Deck Railing & Baluster CalculatorDeckingDeck Railing & Baluster CalculatorA deck railing calculator that turns the clear length of a railing section and your baluster width into the baluster count you need to meet the standard 4-inch guard opening limit, and the actual spacing you will get. Gaps wider than the limit are a safety problem, and a wrong count shows up only after the rail is built. Enter the section length and get the spacing right.Trex Decking CalculatorDeckingTrex Decking CalculatorThis Trex decking calculator counts exactly how many Trex boards, hidden fasteners and joists your deck needs, and what the boards cost in Enhance, Select or Transcend. This is an independent estimator, not affiliated with, endorsed by, or sponsored by Trex Company, Inc. Enter your deck size, pick a Trex line and a board length, and get a full materials list with waste included.Composite Decking CalculatorDeckingComposite Decking CalculatorThis composite decking calculator counts exactly how many composite deck boards, joists and hidden fasteners your deck needs, and what the boards cost in composite, pressure-treated wood or capped PVC. Pick your material, board width and board length, and compare all three materials on the same deck before you buy. The material decides the price, the gap and the lifespan, so compare first.TimberTech Decking CalculatorDeckingTimberTech Decking CalculatorThis TimberTech decking calculator counts exactly how many TimberTech boards, hidden fasteners and joists your deck needs, and what the boards cost in Edge, Prime+ or AZEK, including the wide-plank 7.25 in AZEK board. This is an independent estimator, not affiliated with, endorsed by, or sponsored by TimberTech or AZEK Company. Enter your deck size, pick a line and a board width, and get a full materials list with waste included.

Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.