Deck railing cost

Deck railing costs $30 to $150 a linear foot installed. It is frequently a third of the cost of a small deck, because a small deck has almost as much perimeter as a large one.

A porch railing

National average

$65

per linear ft

National estimate as of September 2026, not a quote. Where these figures come from.

Deck railing costs $30 to $150 a linear foot installed, typically around $65. On a deck with 50 feet of railing that is $1,500 to $7,500. It is frequently a third of the cost of a small deck, because a small deck has almost as much perimeter as a large one.

It is also the part of a deck that is governed by code, inspected, and most often built wrong on older decks.

What it costs

MaterialInstalled, per linear foot
Pressure-treated wood$30 to $60
Cedar$40 to $80
Composite$50 to $100
Vinyl$40 to $80
Aluminium$60 to $120
Steel or wrought iron$70 to $150
Cable railing$80 to $200
Glass panel$100 to $250
Wood posts with cable or metal infill$60 to $130
ExtraTypical cost
Removing an existing railing$5 to $15 per linear foot
Post reinforcement to meet code$75 to $250 per post
Stair railing, per linear footadd 20 to 50%
Lighted post caps$40 to $150 each
Integrated rail lighting$15 to $40 per linear foot
Gate$150 to $600

Stairs cost more per foot than the flat run: the angles, the newel posts and the graspable handrail all take longer.

Deck stairs and a handrail
The top rail must resist 200 pounds in any direction. A notched post with two lag screws will not, and that is the most common structural deficiency after the ledger.

The code, and why it matters here

These are the numbers an inspector checks, and the ones older decks routinely fail:

Requirement
Railing required above30 inches from grade
Railing height, residential36 inches minimum, 42 in some jurisdictions
Baluster spacingLess than 4 inches, so a sphere cannot pass
Gap under the bottom railLess than 4 inches
Load on the top rail200 pounds in any direction
Stair handrailGraspable, 34 to 38 inches above the nosing
Stair railing requiredFour or more risers

The 200 pound load is the one that fails. A railing post bolted through a rim joist with two lag screws will not hold it. Posts need to be through-bolted, blocked, and usually fitted with a proprietary tension connector. This is the most common structural deficiency found on existing decks after the ledger.

The 4 inch baluster spacing exists because it is roughly the size of a small child's head. Older decks built at 6 inches are a genuine hazard rather than a technicality.

Choosing a material

Pressure-treated wood is cheapest and needs refinishing every two to four years, which on a railing means brushwork around every baluster. That maintenance is worse than the deck floor by a wide margin.

Composite matches composite decking, needs no finishing, and costs about double wood.

Aluminium is the underrated answer: powder-coated, essentially maintenance free, thin profiles that block less view than wood, and it lasts as long as the deck. It costs more than composite and less than cable.

Cable railing gives the clearest view and needs the end posts engineered for the tension, which is real load. Cables need periodic tightening and the horizontal runs are climbable, which some jurisdictions restrict.

Glass gives the best view, shows every fingerprint and every rain spot, and is heavy enough to need substantial posts.

If the view matters, aluminium or cable. If maintenance matters, anything but wood.

Frequently asked questions

Can I replace just the railing?

Yes, and it is a common upgrade. The posts are the work: if the existing posts are notched or under-fastened, they need replacing to meet the load requirement, and that is where the cost is.

Is a permit needed?

For a new railing on an existing deck, usually yes if it is structural. Replacing like for like is sometimes exempt. The load requirement applies either way.

Why is my railing wobbly?

Under-fastened posts, almost always. A notched 4x4 post with two lag screws is the classic 1990s detail and it does not meet the load requirement. Proper connectors and blocking fix it for $75 to $250 a post.

Can I use horizontal boards instead of vertical balusters?

Some jurisdictions restrict horizontal infill because children climb it. Where it is permitted it looks excellent. Check locally before buying material.

Does a railing add value?

An aluminium or cable railing replacing a tired wood one changes how the whole deck reads, and it removes the maintenance that made the old one tired. It is one of the better-value deck upgrades once the frame is sound.