When Is Railing Required for Stairs, Decks & Ramps?

A railing is required under most building codes whenever a walking surface, deck, landing, or balcony sits more than 30 inches above the ground or floor below, and a graspable handrail is required on any stairway with four or more risers or any ramp with a rise greater than 6 inches. Those are the two triggers that answer the question of when a railing is required in nearly every residential and commercial project. Workplaces governed by OSHA and buildings subject to the ADA layer additional rules on top.

Handrails and Guardrails Are Not the Same Thing

Codes treat handrails and guardrails as two separate things with two separate triggers, and knowing which one your project needs is the first step.

A handrail is the graspable rail you hold for balance going up or down. It is triggered by how many steps a stair has or how steep a ramp is. A guardrail is a barrier along an open edge that keeps people from falling off. It is triggered by how far someone could fall.

A single rail can serve both roles at once, but only if it meets both sets of requirements. That dual-purpose design is common on open residential staircases.

When a Guardrail Is Required: the 30-Inch Rule

Under both the International Residential Code and the International Building Code, a guardrail is required along any open-sided walking surface, landing, or platform that is more than 30 inches above the floor or grade below. That measurement is taken vertically from the walking surface straight down to whatever is underneath.

The 30-inch threshold applies at any point within 36 inches horizontally of the open edge. If a deck slopes away from the house and only one corner exceeds 30 inches above the ground, that corner still needs a guardrail.

The minimum height depends on the building type:

  • In one- and two-family dwellings, guardrails must be at least 36 inches high, measured from the walking surface to the top of the rail.
  • In commercial and multi-family buildings, guardrails must be at least 42 inches high.

Openings in the guardrail must be small enough to block a 4-inch-diameter sphere from passing through, a child-safety rule that applies to vertical balusters, horizontal cables, glass panels, and any other infill. The one exception is the triangular opening formed where a stair tread, riser, and the bottom rail meet on an open-sided staircase; that gap only has to block a 6-inch sphere.

When a Handrail Is Required on Stairs

A handrail is required on at least one side of any stairway with four or more risers. The rail must sit between 34 and 38 inches high, measured vertically from the sloped line connecting the front edges of the treads to the top of the rail. That range is set so most people can comfortably grip the rail while going up or down.

Wider stairways and commercial stairs often need a handrail on both sides, and stairways wider than 88 inches typically need an intermediate handrail down the middle.

On an open-sided staircase, both rules apply. If the stair’s total rise exceeds 30 inches above the floor or grade, the open side also needs a guardrail. When the top of that guardrail doubles as the handrail, it has to fall within the 34-to-38-inch handrail range rather than the standard 36-inch guardrail minimum, and it has to meet guardrail strength requirements as well as handrail graspability standards.

When a Handrail Is Required on a Ramp

Ramp railing rules come from the building code and from the 2010 ADA Standards for Accessible Design. Under the ADA, handrails are required on both sides of any ramp with a rise greater than 6 inches. They must be between 34 and 38 inches above the ramp surface and kept at a consistent height along the entire run.1ADA.gov. 2010 ADA Standards for Accessible Design

Handrails on a ramp must extend horizontally at least 12 inches beyond the top and bottom of each run. The extensions must return to a wall, guard, or landing surface so clothing or bags do not snag on an exposed end.1ADA.gov. 2010 ADA Standards for Accessible Design

Ramps also need edge protection along both sides to keep wheelchair casters and crutch tips from slipping off. The ADA allows three approaches: a curb or barrier that blocks a 4-inch sphere within 4 inches of the ramp surface, an extended floor surface that projects at least 12 inches beyond the inside face of the handrail, or a combination.2U.S. Access Board. Guide to the ADA Accessibility Standards – Chapter 4: Ramps and Curb Ramps

No single ramp run can rise more than 30 inches before a level landing is required, which caps the length of any continuous slope and gives users a resting point.1ADA.gov. 2010 ADA Standards for Accessible Design

Decks, Balconies, and Porches

The 30-inch rule applies straightforwardly to any elevated walking surface. If an open edge of a deck, balcony, porch, or walkway is more than 30 inches above the ground, a guardrail is required along that edge. For a residential deck, the minimum height is 36 inches. For a commercial balcony or elevated walkway, 42 inches.

A deck guardrail has to withstand a concentrated load of 200 pounds applied in any direction at the top rail and a distributed load of 50 pounds per linear foot along the top rail. Those loads are tested independently, not simultaneously. The 200-pound figure accounts for someone falling against the rail or leaning hard on it. Railing posts are typically spaced no more than 6 feet apart to meet the structural requirement, but the exact spacing depends on the material and the local code.

The 4-inch sphere rule applies to all baluster openings. Most builders use vertical balusters spaced about 3¾ inches apart, though horizontal cables and glass panels are fine as long as the 4-inch sphere cannot pass at any point from the walking surface to the top rail.

Workplaces Under OSHA Use Different Triggers

OSHA’s general industry standards impose their own railing rules in workplaces, and the triggers differ from residential and commercial building codes.

Any workplace stairway with at least four risers needs handrails and stair rail systems. If one side is open, a stair rail with a handrail goes on the open side. If both sides are open, stair rails go on both. OSHA also requires a handrail on each enclosed side for stairways 44 inches wide or more, and an intermediate handrail down the center for those wider than 88 inches.3Occupational Safety and Health Administration. 29 CFR 1910.28 – Duty to Have Fall Protection and Falling Object Protection

The handrail height range under OSHA is 30 to 38 inches, measured from the leading edge of the tread, which is wider on the low end than the 34-to-38-inch building code range. Stair rail systems installed on or after January 17, 2017 must have a top rail at least 42 inches high. If the top rail also acts as the handrail, its height has to be between 36 and 38 inches.4eCFR. 29 CFR 1910.29 – Fall Protection Systems and Falling Object Protection

The guardrail trigger is different too. OSHA requires guardrails on any unprotected side or edge of a stairway landing or walking surface that is 4 feet or more above a lower level, a higher threshold than the 30-inch building code trigger. Workplace guardrail top rails must be 42 inches high, plus or minus 3 inches, with a midrail installed at the midpoint between the walking surface and the top rail.5Occupational Safety and Health Administration. 29 CFR 1910.29 – Fall Protection Systems and Falling Object Protection

Older Buildings and When Current Code Applies

An older home or building does not automatically have to meet the latest code just because a new edition has been adopted. Most jurisdictions follow a grandfathering approach: if the building met the code in effect when it was built, it can stay as it is until something triggers a compliance obligation. Common triggers include:

  • Major renovation or addition. Expanding a deck, replacing a staircase, or substantially remodeling a space typically requires the affected area to meet current code.
  • Change of use. Converting a single-family home to a duplex, or a warehouse to office space, usually triggers full compliance.
  • Sale or mortgage inspection. FHA-backed mortgage appraisals require that any stairway with three or more steps have a sturdy, graspable handrail. A missing or unstable railing can delay or block a sale when government-backed financing is involved.

Routine maintenance like replacing a damaged baluster or tightening a loose handrail generally does not trigger a full upgrade. But if you are pulling a building permit for work that touches the railing or the structure supporting it, expect the inspector to evaluate the railing against current standards. Where the line falls between repair and renovation varies by jurisdiction, so a quick check with the local building department before starting work is worth the call.

What Happens if a Required Railing Is Missing

Beyond code enforcement, a missing or non-compliant railing creates real legal exposure. If someone falls on your property because a railing was absent, broken, or built to the wrong height, you can face a premises liability claim. The injured person has to show you had a duty to maintain a safe environment, you failed to meet it, and the failure caused the injury.

A building code violation can be powerful evidence in that lawsuit. In many jurisdictions, violating a building code is treated as negligence per se, meaning the violation itself is presumed to be negligent conduct and the injured person does not have to separately prove you should have known better. Property owners sometimes argue the hazard was open and obvious, but courts are inconsistent on whether a missing railing qualifies, since visitors often have no real choice but to use the stairs or walkway.

Landlords, property managers, contractors, and manufacturers of defective railing components can all face liability depending on who controlled the condition. For a homeowner, the simplest protection is to make sure railings meet current code wherever possible and fix problems before someone gets hurt.