Railing Calculator
Railing is priced by the linear foot, but posts and balusters are what you actually buy. Enter the run length and material to get posts, sections, baluster count and the cost.
2026 US national averages · last reviewed 2026-12-04 · how we estimate
How the estimate is calculated
- Posts = ceiling(run ÷ post spacing) + 1.
- Sections = ceiling(run ÷ post spacing).
- Balusters at 4 in on center: about 3 per linear foot, so 3 × run rounded up.
- Installed cost per linear foot: wood $35–$60, composite $55–$90, aluminum $70–$120, cable $90–$150.
2026 cost ranges
| Material | Material per linear ft | Installed per linear ft |
|---|---|---|
| Pressure-treated wood | $12–$22 | $35–$60 |
| Composite | $25–$45 | $55–$90 |
| Aluminum | $35–$65 | $70–$120 |
| Cable | $45–$80 | $90–$150 |
| 4×4 posts | $12–$25 each | Included installed |
What changes the price
- Height: most codes require 36 in at 30 in of drop, 42 in above 12 ft in some jurisdictions.
- Baluster gap: the 4 in sphere rule is the most common inspection failure.
- Post attachment: through-bolts and blocking, not just deck screws.
- Cable and glass cost more but preserve a view and last longer than wood.
Frequently asked questions
How many posts for a 20 ft railing?
At 6 ft spacing you need 5 posts — four sections plus the end posts. Posts must be at every change of direction and every stair.
How many balusters do I need?
About 3 per linear foot at 4 in on center. A 20 ft run is roughly 60 balusters plus a few spares.
How high should a deck railing be?
36 in is standard residential; 42 in is required on higher decks in some codes and for commercial use. Measure from the deck surface.
What is the 4 inch rule?
Balusters must be spaced so a 4 in sphere cannot pass between them — the reason most decks use 3 balusters per foot.
Wood or aluminum railing?
Wood is cheapest and repairable; aluminum lasts decades with no maintenance and costs about twice as much installed.
Do I need an engineer for a cable railing?
Cable exerts high tension on posts; many jurisdictions require engineering or a listed system. Check before buying.
Related calculators
Deck Calculator
Estimate deck boards, joists, hangers and installed cost per square foot for a wood or composite deck.
ExteriorDeck Board Calculator
Work out how many deck boards, screws and joists a deck needs from its size, board width and gap, with 2026…
ExteriorPorch Steps Calculator
Plan wood or composite porch steps: stringer count, tread and riser boards, and the 2026 material or…
DeckPrices are national planning estimates, not a quote. Local pricing varies by 15–30%. Structural and permit work requires a licensed professional — see terms.