Skip to content
LokalMatch

Railings

Railings near you

Railings look like one thing and are two. A guard exists to stop a person going over an edge, and it is a structural element with a load it has to resist. A handrail exists to give a hand something to hold while moving up or down, and it is judged on height and on whether a hand can actually close around it. Cheney, Washington, publishing the code it enforces, puts the distinction plainly: guard rails guard a person from falling over an edge, whereas hand rails give a person something to grab in case of stumbling to help in stabilizing oneself while navigating a stairway or ramp.

Tell us about your railing project and we’ll help you find local railing installers who serve your area.

Free for homeowners · No obligation to hire

On this page

One assembly often serves both purposes, which is legitimate, but only if it satisfies both sets of rules at once. That is where most residential railing work goes wrong, and it is why a railing that looks finished can still fail an inspection.

The rules themselves are short and worth knowing before you shop. Guards are required where a walking surface is more than 30 inches above what is below it. Required guards are generally at least 36 inches tall. A 4-inch sphere must not pass through a guard, with two specific exceptions for stairs. And a guard is designed to a load, not just to a height, which is the part that decides how the posts are attached rather than what the infill looks like.

A guard and a handrail are different parts with different jobs

A guard is a barrier along an open-sided walking surface. Its job is containment, its dimensions are about height and openings, and its structural job is to resist somebody falling against it. A handrail is a graspable rail alongside a flight of stairs or a ramp. Its job is support, its dimensions are about height above the walking surface and about the shape of the section your hand closes around.

The two are required in different circumstances, which is the part homeowners find counterintuitive. Handrails are required on at least one side of all stairs of four or more risers even where the stair is less than 30 inches above the ground, so a short flight off a deck or into a sunken room can need a handrail and no guard at all. Conversely a balcony or a landing needs a guard whether or not anyone is walking up anything.

Cheney's published guidance notes that a handrail can be incorporated into a guard rail design as long as it meets the height and graspability requirements, and that a guard rail can serve as the required handrail in certain situations. That is the normal residential solution: a single assembly with a graspable top rail at the right height. It only works if somebody has checked both requirements rather than assuming one implies the other.

Where a guard is required and how tall it has to be

The trigger is a height and a horizontal distance together. As published by cities enforcing the 2021 IRC, guards must be provided for those portions of open-sided walking surfaces, including floors, mezzanines, lofts, stairs, ramps and landings, that are located more than 30 inches measured vertically to the floor or grade below at any point within 36 inches horizontally to the edge of the open side. That second clause is the one people miss: a landing only 24 inches above a patio can still need a guard if the ground drops away within 3 feet of the edge.

The required height is not the same everywhere on a stair. Required guards at open-sided walking surfaces, including stairs, porches, balconies and landings, must be not less than 36 inches in height measured vertically above the adjacent walking surface. For the sloped portion of a stairway, exclusive of its landings, the published guidance is that the top of the guard must have a minimum height of 34 inches measured vertically from the nosing of the tread. Cheney's handout says the same thing in one line: a guard at the side of an open stair may be 34 inches minimum in height.

One further clarification is in the published code text and is worth repeating because it comes up on porches: insect screening is not considered a guard. A screened porch still needs a compliant guard behind or within the screening where the floor is more than 30 inches above the ground.

The sphere rules: 4 inches, 4 3/8 inches and 6 inches

Guard openings are tested with spheres rather than with a tape measure, because the concern is a small body passing through rather than a dimension on a drawing. The general rule is that required guards must not have openings, from the walking surface to the required guard height, that allow the passage of a sphere 4 inches in diameter.

Two exceptions apply on stairs, and both are published in the adopted code text. First, the triangular openings at the open side of a stair formed by the riser, the tread and the bottom rail of a guard must not allow passage of a sphere 6 inches in diameter. That is the wedge-shaped gap under a raking bottom rail, and it gets a larger sphere because closing it entirely is geometrically awkward. Second, guards on the open sides of stairs must not have openings that allow passage of a sphere 4 3/8 inches in diameter, slightly more generous than the 4-inch rule on a level guard, which is what makes standard baluster spacing on a stair different from the spacing on the landing above it.

Those three numbers, 4, 4 3/8 and 6, are the single most useful thing to carry into a conversation about balusters, cable infill or a panel system. Cable railings in particular need enough tension and enough intermediate support that the 4-inch sphere still cannot pass when somebody leans on them, which is a common inspection failure, and glass guards or guards with glazing are governed by their own section of the code rather than by the sphere rule.

A guard is a load-carrying part, and posts are where they fail

This is the part of railing work that is invisible in a photograph and decisive in a fall. Guards must be structurally designed to comply with the residential code's load table, and as published by Lake Stevens, Washington, that means designed for a 200 pound load in any direction along the top and a 50 pound point load. A guard that satisfies every height and sphere rule and cannot take that load is not a guard; it is a visual barrier.

Where residential guards fail is almost always the connection of the post to the structure, not the rail or the infill. A post lag-screwed to the face of a single rim board, a newel fastened only through finished flooring, a post notched thin at its base, or fasteners that reach nothing but decking are all common. Proper post attachment usually means blocking, through-bolts and hardware chosen for the job, and on a stair it means the bottom newel is anchored into framing rather than to a tread.

This is also the honest reason to be cautious about a railing installed as a purely cosmetic upgrade. Replacing balusters between existing posts changes nothing structural. Replacing the posts, moving them, or adding a guard where none existed is structural work, and it is worth asking the contractor to describe how each post is anchored before agreeing to the job.

Wood, metal, cable, glass and panel railings

The material changes the maintenance, the cost and, importantly, the way the opening rules are satisfied.

  • Traditional wood: newels, balusters and a shaped top rail, endlessly repairable and the easiest to match in an older house.
  • Wood posts with metal balusters, the most common American interior stair combination, where baluster spacing is set by the 4 3/8 inch sphere on the stair.
  • All-metal railings, either shop-fabricated steel or an aluminum system, strong and slim but requiring a fabricator rather than a carpenter.
  • Cable railing, popular for keeping a view, which needs enough tension and enough intermediate support that the sphere rule still holds when someone leans on it.
  • Glass guards, which are governed by the code's safety glazing section rather than by the sphere rule and need hardware engineered for the load.
  • Panel infill, from perforated metal to slatted wood, which reads solid and has to be checked for the same sphere limits as balusters.
  • Continuous graspable top rails, which are what let a single assembly serve as both the guard and the required handrail.

Handrail height, grip and continuity on the same job

Because a railing job usually touches the handrail as well as the guard, the handrail rules are worth having in front of you. Handrails are required on at least one side of all stairs with four or more risers, regardless of how high the stair is above the ground. The handrail must be installed between 34 and 38 inches above the stair, measured from the front corner of the tread nosing vertically to the top of the handrail, and it must not project more than 4 1/2 inches into the walkway on either side of the stairway.

Grip and continuity are specified as well. A circular handrail must have an outside diameter of at least 1 1/4 inches and not more than 2 inches; non-circular sections are permitted but must meet defined perimeter and cross-section criteria. The graspable portion must extend from directly above the bottom tread nosing to directly above the top tread nosing at minimum, and the handrail must have returns to the wall or floor so clothing or limbs cannot be hooked on an open end. A ramp steeper than one unit vertical in twelve horizontal needs a handrail too.

Whether a permit is required for railing work varies by jurisdiction. Replacing a guard, adding one where none existed, or altering a deck or balcony guard usually is permitted work, because the guard is a safety element with a structural load. Replacing balusters between existing compliant posts often is not. Call the building department rather than guessing, and if a contractor tells you no permit is needed for adding a guard to a raised deck or balcony, get that confirmed independently.

How a railing is actually attached, and what to ask before work starts

  • Measure the existing condition first: height above the surface below, the horizontal distance to any drop-off within 36 inches, and the current guard height at both the landing and the raking stair.
  • Establish what the posts will be anchored to, and whether blocking has to be added while anything is open.
  • Confirm which sphere rule applies where, since the stair and the landing above it have different limits.
  • Decide whether one assembly is serving as both guard and handrail, and check that the top rail is graspable at the right height if so.
  • Plan the handrail returns and the bottom newel before ordering parts, because both change the piece count.
  • Install posts and check each one by pushing hard on it at the top before any infill goes on; this is the cheapest quality test there is.
  • Fit rails and infill, then verify with an actual sphere or a spacer block rather than by eye.
  • Call the inspection where one is required, before the finish and the trim cover the connections.

What changes a railing quote, and how LokalMatch fits in

Railing prices track the number of posts and the difficulty of anchoring them far more than the length of rail. What moves an American quote is the number of newels and how each one is attached, whether existing posts are reused, the length of level guard versus raking stair guard, the infill type, the species or metal and finish, whether a graspable handrail is separate or integral, whether blocking has to be added and finishes opened up to do it, whether the work is interior or exposed outside, and whether a permit and inspection are required. Ask specifically how each post will be anchored; that answer explains most of the difference between two quotes.

LokalMatch makes the introduction and leaves the rest to you. You describe the railing once: where it is, how long, how high above what, whether it is a stair or a landing or both, and what you want it made of. Carpenters, deck builders and metal fabricators serving your area receive that request, and the ones interested contact you directly. Those professionals pay for the requests they receive, and homeowners are never charged for the introduction. LokalMatch does not install railings, does not set or negotiate prices, and does not vet, rank or recommend the contractors who respond, so confirming licensing and insurance, and confirming the adopted guard heights and sphere limits with your own building department, remains your responsibility.

Railings: frequently asked questions

When does my deck or balcony need a guard?

Guards are required along open-sided walking surfaces, including floors, lofts, stairs, ramps and landings, located more than 30 inches measured vertically to the floor or grade below at any point within 36 inches horizontally of the open side. That horizontal clause catches a lot of people: a low landing next to ground that falls away within 3 feet can still need a guard. Insect screening is not a guard.

How tall does a guard have to be?

Required guards at open-sided walking surfaces, including stairs, porches, balconies and landings, must be not less than 36 inches measured vertically above the adjacent walking surface. On the sloped part of a stair, exclusive of its landings, the published guidance allows a minimum of 34 inches measured vertically from the tread nosing. Your state may have amended these, so check with your building department before ordering parts.

What is the 4-inch sphere rule?

Required guards must not have openings from the walking surface to the required guard height that allow a sphere 4 inches in diameter to pass. Two exceptions apply on stairs: the triangular opening formed by the riser, the tread and the bottom rail must not pass a 6-inch sphere, and guards on the open sides of stairs must not have openings that pass a sphere 4 3/8 inches in diameter. Those three numbers govern baluster spacing and cable tension.

Is a guard rail strong enough just because it looks solid?

No, and this is the failure people cannot see. Guards are designed to a load: as published by cities enforcing the 2021 IRC, a 200 pound load in any direction along the top and a 50 pound point load. Residential guards almost always fail at the post connection rather than in the rail, so ask how each post is anchored, and push hard on a finished post before you accept the work.

Do I need a handrail on a short flight of steps?

If it has four or more risers, yes, even where the stair is less than 30 inches above the ground. The handrail must sit between 34 and 38 inches above the stair, measured from the front corner of the tread nosing, must not project more than 4 1/2 inches into the walkway, and its graspable portion must extend from above the bottom tread nosing to above the top tread nosing with returns to the wall or floor.

Can one rail be both the guard and the handrail?

Yes, and it is the normal residential solution, as long as it satisfies both sets of rules simultaneously. Published guidance states that a handrail can be incorporated into a guard rail design provided it meets the height and graspability requirements, and that a guard can serve as the required handrail in certain situations. In practice that means a top rail that is graspable, at the right height above the nosings, on a guard of the right height with compliant openings.

Do I need a permit to add or replace a railing?

It depends on your jurisdiction and on what is changing. Adding a guard where none existed, or replacing guard posts on a deck or balcony, is usually permitted work because the guard carries a structural load. Swapping balusters between existing compliant posts often is not. Call the building department for your address rather than relying on a contractor's assurance, particularly where the work is on a raised deck.

Sources

  1. City of Lake Stevens, Washington: 2021 IRC Section R312 Guards, including guard loads
  2. City of Cheney, Washington: Residential Railings, 2021 IRC R311.7.5, R311.7.8 and R312
  3. Town of Essex, Connecticut: Residential Stairways and Ramps, code excerpts including Section R312 Guards

Written by the LokalMatch editorial team. Last reviewed September 21, 2026. How we write and check our guides

Find railing installers by city

Alaska

Show 1 cities

California

Show 186 cities

Delaware

Show 1 cities

Florida

Show 82 cities

Maine

Show 1 cities

Texas

Show 79 cities

What affects the cost of railing

Prices depend on the details of your project. We only publish price ranges when they’re backed by real LokalMatch quote data or reliable sources. Until then, here’s what usually changes the price:

  • Size and complexity of the piece or structure
  • Wood species or material
  • Custom design compared with standard sizes
  • Hardware, railings and finishing
  • Removal of what's there now
  • Permits and drawings, where needed

How to compare railing installers before you hire

  • Choose a carpenter whose past work matches your project, whether that's framing, trim, built-ins, stairs or a deck.
  • Ask for drawings or a clear description of what will be built, including materials and finishes.
  • For decks, stairs and railings, ask whether a permit is needed, since these are safety items.
  • Get a written quote that says who supplies materials and whether finishing, such as painting or staining, is included.
  • Ask how they'll handle surprises like rot or uneven walls and floors.

Questions to ask railing installers before you hire

  • Can you show me photos of similar work you've done?
  • What materials will you use, and why?
  • Does this project need a permit, and will you get it?
  • Is finishing, such as sanding, painting or staining, included?
  • How will you attach the work to the existing structure?
  • What warranty do you offer on your workmanship?

Railing permits and local rules

Some railing work needs a permit or has to meet local bylaws. Rules vary by municipality, so ask your pro whether a permit is needed and who will apply for it — and check with your city or town if you’re unsure.

Permits and licensing

Ready to get railing quotes?

Tell us about your railing project.

Do you offer railing services?

Join LokalMatch to get matched with homeowners in the areas you serve.