MS Construction and Services logoMS Construction and Services Call Now
Home / Guides

Deck railings: systems, prices and the code

The railings we build, what each costs per foot, the height and gap rules in California, and what keeps a cable railing tight.

By Mike Sankin, owner and CSLB license qualifier · License #1148079

Prices from our own calculatorPhotos of our own railingsUpdated September 2026

Short answer

  1. A railing is required once the drop is over 30 inches. In California it stands 42 inches tall, with no gap a 4-inch ball can pass.
  2. We build redwood picket, redwood wild hog, redwood cable, aluminum picket and aluminum cable, with or without LED lighting.
  3. Installed, they run $140 to $250 per linear foot for 20 to 100 feet, less per foot on longer runs.

Cable railing lives or dies by its end posts. That part is on us.

Deck railing cost per linear foot

Built and installed, for a run of 20 to 100 feet. Straight from our calculator; over 100 feet the rate per foot drops.

Redwood

Redwood picket$140 / linear ftThe classic. Stained with the deck.Over 100 ft: $120 / ft
Redwood with cable$150 / linear ftWarm wood posts, stainless cable.Over 100 ft: $135 / ft
Redwood with wild hog panels$160 / linear ftWelded wire in a redwood frame.Over 100 ft: $145 / ft

Aluminum, powder-coated

Aluminum picket$180 / linear ftPowder-coated. No staining, ever.Over 100 ft: $170 / ft
Aluminum with cable$180 / linear ftThin posts, the widest view.Over 100 ft: $170 / ft
Aluminum cable with LED$250 / linear ftLED lighting built inside the rail.Over 100 ft: $205 / ft

We build railings from 20 feet. On a shorter run the posts and corners decide the price, not the length.

Price my railing

The railings we build

See all projects
Redwood picket railing around a composite deck over a hillside, built by MS Construction and Services
Redwood picketRedwood picket railing around a composite deck over a hillside
Powder-coated aluminum railing on a composite deck above the roofline, built by MS Construction and Services
Aluminum picketPowder-coated aluminum railing on a composite deck above the roofline
Wild hog panels in a redwood frame, facing the valley, built by MS Construction and Services
Redwood wild hogWild hog panels in a redwood frame, facing the valley
Aluminum cable railing along a stone terrace, built by MS Construction and Services
Aluminum cableAluminum cable railing along a stone terrace
Redwood cable railing on a redwood deck, built by MS Construction and Services
Redwood cableRedwood cable railing on a redwood deck
Aluminum cable railing with LED lighting inside the rail, on a composite deck, built by MS Construction and Services
Aluminum cable with LEDAluminum cable railing with LED lighting inside the rail, on a composite deck

Deck railing height and the code in California

Four numbers an inspector checks on every railing. The full list, with stairs, is in our stair and railing code guide.

Cable railing for a deck: what makes it last

How we build railings

Questions people actually ask

Is deck railing height 36 or 42 inches in California?

42 inches on the deck (CRC R321.1.2). The 36 inches you see in national guides is the model code; California requires 42. Along stairs the rail sits 34 to 38 inches above the nosings.

How high can a deck be without a railing?

Up to 30 inches. A railing is required once the drop to the ground below is more than 30 inches anywhere within 36 inches of the edge (CRC R321.1.1).

What is the 4-inch ball rule?

No opening in a railing may let a 4-inch sphere through: between pickets, between cables, or under the bottom rail. Inspectors check it with a ball.

How much does deck railing cost per linear foot?

In our calculator, for 20 to 100 feet: redwood picket $140, redwood with cable $150, redwood with wild hog panels $160, aluminum picket or cable $180, aluminum cable with LED $250. Over 100 feet each costs less per foot.

What is the cheapest deck railing?

Of the ones we build, redwood picket, at $140 per foot for a 20 to 100 foot run.

What are the downsides of cable railing?

It costs more than pickets, the end posts have to be built for the pull of every cable, and small children tend to climb horizontal cable.

What are the downsides of aluminum railing?

The price: $180 per foot against $140 for redwood pickets. In return it never needs stain.

Can you add a railing to an existing deck?

Yes, if the posts can be anchored into sound framing. We look at the framing at the estimate visit. We take railing jobs from 20 feet.

Before you call

Three steps from here

01

See your price

Size, material and ground: the calculator gives you a range in about a minute.

In the calculator, choose Deck railings under project type and enter your size.

Open the calculator
02

See what we built

Redwood deck and pergola built by MS Construction and Services

Decks, stairs and pergolas across the Peninsula, South Bay and Santa Cruz County.

Browse projects

Want a number for your railing?

Pick the system and the length in the calculator and it gives you a range. Posts, anchoring and the finish are settled with you at the estimate visit.

Free on-site estimate. A pro walks the deck with you and goes through every detail in person.