Simple pressure-treated wood is usually the lowest cost
The least expensive railing is usually a plain wood design: pressure-treated posts, a top rail and a bottom rail, and simple balusters, the vertical pieces between the rails. Fewer parts and common lumber keep the cost down. Metal, glass, cable and vinyl systems usually cost more, although prices vary by region and product.
Check whether you need a railing
Before you buy anything, check whether the code requires one. Many building codes require a guard where the walking surface is more than about 30 inches above the ground below. A low deck may not need one at all.
Does a deck 2 feet off the ground need a railing? Under many codes, usually not on its own, but stairs and landings often have separate rules. Do you need a railing on both sides of exterior stairs? That depends on the local code and how wide the stairs are, so ask your local building department before you plan the rail.
What drives the cost
- Material. Pressure-treated pine is usually the cheapest. Cedar, composite, vinyl and aluminum often cost more, though they need less upkeep.
- Length and posts. Posts go at the ends, at the corners and at intervals in between, so a longer run needs more posts, rails and balusters.
- Height. A taller railing uses more material for each foot of run.
- Hardware. Bolts, brackets and fasteners add up. Galvanized or stainless fasteners cost more than plain ones, but treated lumber needs them.
A simple wood railing
A common DIY design uses:
- Posts, often 4x4 pressure-treated lumber, set at the ends and corners and at the spacing your design and local code allow.
- A top rail and a bottom rail, often 2x4 or 2x6 boards laid flat between the posts.
- Balusters, often 2x2 pieces, set upright between the rails.
Many residential codes use a 4-inch limit: a sphere that size should not pass through the openings. With 1.5-inch-wide balusters, a center-to-center spacing under 5.5 inches keeps the clear gap under 4 inches. Stair openings can follow a different limit, so check the local rule before you finalize the spacing.
Fasten it solidly
A railing has to resist people leaning on it. The model residential code asks a guard to resist a concentrated load of about 200 pounds applied at any point, so the connections matter as much as the lumber. Check your local code for the exact figure.
- Through-bolt the posts to the deck frame, rather than screwing them to the decking alone.
- Use fasteners rated for treated lumber, such as hot-dipped galvanized or stainless steel.
- Fix the top rail to each post with brackets or bolts, not just a few screws.
Ways to keep costs down
- Use straight runs and fewer corners, since each corner adds posts and cuts.
- Plan the railing during framing, when posts can be bolted to the frame, instead of adding them later.
- Buy the lumber in one trip, and cut carefully to limit waste.
Summary
The cheapest railing is usually a simple pressure-treated wood design, built to code, with small gaps and solid connections. Check whether you need one before you buy material. A low deck may not need a railing at all, and the cheapest choice is the one that passes your local inspection.