Free planning tool · no account needed
Deck Railing and Baluster Calculator
Work out a railing run before you buy anything: how many posts you need and where they land, how many bays that creates, how many balusters or cable rows fill each bay, the exact clear opening you end up with, and a parts list with an installed cost band. Add a second or third straight run for a corner or a wrap-around deck, change the system between aluminum, composite, cable, and glass, and every number updates as you type. The math runs in your browser.
- The railing math runs in your browser
- Nothing you type is uploaded or stored
- Planning numbers — confirm them with your local authority
Your railing plan
Enter the length of each straight run, pick the system, and the post count, baluster layout, parts list, and cost band appear here. The defaults show a 20 ft aluminum run so you can see the shape of the output before you measure.
Your railing plan
—
- Total railing
- —
- Posts
- —
- Bays between posts
- —
- Balusters per bay
- —
- Clear opening
- —
- Post spacing used
- —
Post mark-out
Measured from the start of each run, to the center of the post. Run a string line off the deck edge, mark these points, then set the posts so the outside faces stay in line.
Parts list
| Item | Quantity | Notes |
|---|
Installed cost band
| Run | Estimate |
|---|
—
Installed railing rates published by Deck Bros, dated 2026-09-01: about $70 per linear ft for wood, $95 for composite, $140 for aluminum, and $185 for cable or glass, installed. The band spreads that rate by about 10% either way.
Planning notes
Planning math only — not a code ruling, an inspection, or a quote. Guard height, opening limits, post attachment, and cable or glass ratings vary by jurisdiction and by manufacturer, so confirm them with your local building authority and the railing manufacturer's installation table before you buy. The 4 in. sphere figure is the widely applied residential planning reference for guard openings, and products over that size should not pass through the opening.
How the deck railing calculator works
Measure each straight section of the deck that will carry a guard and type the length in feet, outside post to outside post. The tool divides every run into posts no further apart than the spacing you allow, then treats the space between each pair of posts as one bay. Bays are all the same size, so the layout looks even from the yard and from the house.
- Enter the runs. One entry per straight side. If two runs meet at a corner and share a post there, tick the shared-post box so the corner is not double-counted.
- Pick the system and the spacing. Aluminum, composite, cable, and glass pull on their posts differently, so each one comes with a post spacing its hardware tables normally allow.
- Close the openings. Baluster systems are divided so every opening is equal and none is wider than your target. Cable systems are counted from the rail height and the cable spacing. Glass bays wider than 5 ft are split into more than one panel.
- Take the list. Read the post mark-out, copy the plan, or download the parts list and hand it to whoever is buying material.
Reading your railing numbers
Posts are counted from the outside end of each run to the other end, so a 20 ft run with 6 ft maximum spacing gets five posts and four bays. The spacing you actually get is the run divided evenly, which is why a 20 ft run lands posts every 5 ft rather than 6 ft — even bays look intentional and leave the openings matching.
Bays are the spaces between posts, and they are what the infill is divided into. A baluster bay is measured between the faces of the two posts, not the centers, so a 5 ft post spacing on a 2 1/2 in. aluminum post gives a 57 1/2 in. bay. The tool then fits whole balusters so the openings come out equal, and reports the clear opening you end up with — with 3/4 in. aluminum balusters and a 4 in. target, that bay comes out at 3 3/4 in.
Cable rows are counted from the rail height: a 36 in. guard at 3 in. cable spacing gives twelve rows. Cable opening is measured on the diagonal, so the 3 in. spacing leaves about 2 13/16 in. clear straight across and stays well inside the 4 in. planning reference. Each row needs a tension fitting at both ends of the run, plus a protector sleeve at every post it passes through.
Glass panels are one per bay until a bay is wider than 5 ft, and then the tool splits the bay into equal panels. Splitting keeps each panel light enough to handle and inside the range most suppliers will quote, but panel sizes are a supplier decision, so confirm the width before ordering.
Worked examples
A 20 ft aluminum run, 6 ft maximum post spacing. Five posts, four 5 ft bays, twelve 3/4 in. balusters per bay at 3 3/4 in. clear — 48 balusters, 96 brackets, and five post caps. At the published aluminum rate of about $140 per linear ft installed, that is roughly $2,520 to $3,220.
A 12 ft front run and an 8 ft side run sharing the corner post. Three posts per run, four bays total, and 40 composite balusters at 1 1/2 in. wide — the 12 ft run closes to 3 15/16 in. openings and the 8 ft run to about 3 11/16 in. Around $1,710 to $2,185 installed for composite at about $95 per linear ft.
A 16 ft cable run with posts every 4 ft. Five posts, four bays, twelve cable rows in each bay at 3 in. spacing — 192 linear ft of cable, 24 tension fittings, and a protector sleeve at each intermediate post. Around $2,664 to $3,404 installed at about $185 per linear ft.
The 4 in. sphere reference and what this tool does not decide
Residential guard openings are commonly checked with a 4 in. sphere: if a 4 in. ball passes through, the opening is treated as too wide. The tool uses that number as its planning target and reports the opening your layout actually produces, but it does not certify compliance, and it does not decide whether a guard is required at all. Decks below 30 in. above grade often need no guard, and some jurisdictions and manufacturers set tighter limits or allow wider post spacing when the rail is rated for it.
The model also stops at straight runs. Stairs, angled sections, corners other than a single shared post, winders, and curved rails are outside it, and so is anything structural: footing depth, frost line, post attachment to the frame, and lateral load. Cable and glass in particular transfer more load into the posts than a baluster rail, so those systems need the load path checked by whoever is building them.
Deck railing questions homeowners ask
How far apart should deck railing posts be?
It depends on the system. Aluminum and composite railing hardware tables commonly allow up to 6 ft on center, glass railings are usually specified closer, and cable railing often needs posts every 4 ft because the tension pulls harder on them. The tool starts from the limit for the system you pick and flags the layout if you set the spacing wider.
How many balusters do I need per foot of railing?
With 3/4 in. aluminum balusters and a 4 in. target opening you get about three balusters per foot of bay; with wider 1 1/2 in. composite balusters and the same target you get closer to two per foot. That is why the tool asks for the baluster width: wider balusters close the same bay with fewer pieces, but the openings land in a different place.
Why is my calculated opening smaller than the number I typed?
Balusters cannot be cut in half, so the tool uses whole pieces and spreads what is left evenly. A 57 1/2 in. bay with a 4 in. target takes twelve balusters and leaves 3 3/4 in. openings, which is tighter than the target but never wider. If you would rather have the target and nothing tighter, you have to shorten the bay or use a narrower baluster.
Can I use the parts list to order material?
Yes, it is written to be taken to the supplier: post count and mark-out, baluster or cable counts, brackets, caps, tension fittings, and panel counts. It does not include a waste allowance for cuts and mistakes, and it does not include rail sections, which are usually ordered by the supplier from the same dimensions.
Does the cost band include labor?
Yes. The band is built from the installed per-linear-foot railing rates Deck Bros publishes, which bundle material and labor, and it spreads that rate by about 10% either way for site conditions. The rates are planning figures dated 2026-09-01, not a quote, and a real quote depends on the deck, the stair rail, and the material you choose.
Where this fits into a deck project
Railing is usually one of the last decisions and one of the first line items in a bid, because the system you pick changes both the look and the price of the deck. Sizing the posts and infill first means you can compare an aluminum upgrade against cable or glass with real quantities in hand instead of a per-foot guess.
Have the railing built with the deck
Deck Bros is a family-owned Omaha deck builder. Railing is part of the build — Westbury aluminum, composite, cable, and glass systems with wrapped columns and stair rail — and every project carries a 5-year workmanship warranty with permits handled for you. Estimates are free.
Get Your QuoteSee what a Deck Bros build includes
Deck Railing and Baluster Calculator · planning numbers only · railing rates dated 2026-09-01. © 2026 Deck Bros.