Home / Calculators / Railing Calculator

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

ft
ft
Estimated cost
—
Enter your dimensions to see a range.

Materials to buy

    Advertisement

    How the estimate is calculated

    1. Posts = ceiling(run ÷ post spacing) + 1.
    2. Sections = ceiling(run ÷ post spacing).
    3. Balusters at 4 in on center: about 3 per linear foot, so 3 × run rounded up.
    4. Installed cost per linear foot: wood $35–$60, composite $55–$90, aluminum $70–$120, cable $90–$150.

    2026 cost ranges

    MaterialMaterial per linear ftInstalled 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 eachIncluded installed

    What changes the price

    Advertisement

    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

    Prices are national planning estimates, not a quote. Local pricing varies by 15–30%. Structural and permit work requires a licensed professional — see terms.