Skip to main content

    SiteKiln gives you plain-English information, not legal advice. If you need advice specific to your situation, talk to a qualified professional.

    What is the code for stair rise, run, and railings?

    8 min read·Reviewed July 2026
    By Scott JonesFirst published Jul 9, 2026Updated Sep 4, 2026
    Building Codes & Permits

    How this site is funded →

    Stairs and railings are governed by the stair and guard sections of the building code your jurisdiction adopted, and the ideas are consistent everywhere: risers and treads have a maximum and minimum and must be uniform through a flight, handrails have to be graspable and continuous at a set height, and guards are required above a fall-height trigger with infill tight enough that a small child cannot pass through. The exact numbers, riser height, tread depth, handrail height, guard height, are not national and change between code editions, so this guide teaches the rules and sends you to your AHJ for the figures. Get the concepts right and you know what to build and why. Get the numbers from your jurisdiction's adopted edition, because a stair built to a figure from the wrong edition is both a failed inspection and a genuine fall hazard.‍‌​​‌‌‌​​​​‌‌‌‌​‌‌​​‌​‌‌​​‌‌‌​​​‌‍

    Why this is the guide that routes every number

    Stairs and guards are one of the most safety-critical, most-inspected parts of a house, and they are also a place where the code numbers move. The residential stair provisions, for example, lived in one section in the 2021 code and were renumbered in the 2024 edition. If the section number itself can move between editions, so can a limit inside it, and a stair or a guard built to an outdated figure fails inspection or, worse, lets someone fall.

    That is why this guide deliberately does not print riser heights, tread depths, railing heights, or guard heights. Those come from the specific edition your jurisdiction adopted, plus any local amendments. Get them from the Permit and Code Lookup tool and confirm with your building department. What follows is everything you need to understand so those numbers make sense.

    Stair geometry: rise, run, and uniformity

    A stair is comfortable and safe when every step is the same, and the code enforces that. Three concepts:

    • Maximum riser height. There is a limit on how tall each step can be. Too tall and people trip going up and misjudge going down. Your adopted edition sets the number.
    • Minimum tread depth. There is a minimum on how deep each step is, so your foot lands securely. Nosing, the lip that overhangs the step below, factors into how depth is measured, and the rules differ depending on whether there is a nosing. Your adopted edition sets both the depth and the nosing rules.
    • Uniformity. This is the one that catches people. The risers in a flight must be consistent with each other, and so must the treads, within a small tolerance. A single step that is taller or shorter than the rest is a classic trip hazard and a classic inspection fail. Measure and lay out so every step matches. The allowed variation is a number set by your adopted edition.

    There are also limits on headroom above the stair and on how much total height a single flight can climb before you need a landing. Both are edition-specific numbers, so route them.

    Handrails: graspable, continuous, at the right height

    A handrail is what you actually grab when you slip, so the code cares less about looks and more about grip:

    • When it is required. Handrails are required on stairs once they have more than a certain small number of risers. Below that count you may not need one; above it you do. The trigger count comes from your adopted edition.
    • Graspable. The handrail has to be something a hand can close around and hold. Round rails have a diameter range; other shapes have a perimeter or grip-size range so they are still graspable. Those dimensions are edition-specific.
    • Height and continuity. The rail sits within a height range above the stair nosings and should run continuously along the flight, with clearance from the wall so your hand fits behind it. The height range and clearance are numbers from your adopted edition.

    Build a handrail you cannot actually grip, or set it outside the height range, and it fails, because it will not do its job in a fall.

    Guards: the fall-protection rail

    Guards, often called guardrails, are the barrier at the edge of a walking surface that keeps you from falling off:

    • When one is required. A guard is required along an open-sided walking surface once the drop to the surface below exceeds a trigger height. Below that drop you may not need one; above it you do. The trigger height is set by your adopted edition.
    • How tall it must be. Minimum guard height is where the codes split. Residential guards under the IRC and commercial or multifamily guards under the IBC have different minimum heights, and some states amend the residential requirement upward. So the number depends both on which code governs your building and on your jurisdiction's amendments. Confirm which applies and get the height from your AHJ.
    • Child-safe infill. The gaps in a guard, between balusters or in the infill, are limited so a small child cannot pass through or get stuck. The rule is usually expressed as a maximum sphere size that must not pass through, with a different allowance at the triangular opening under a stair. The exact sizes are edition-specific, so route them, but the concept, keep the openings small enough to stop a child, is universal.
    • It has to take a load. A guard is not decorative. The code requires the top rail to resist a concentrated load from any direction, and the infill to resist a load over its area, so it actually holds when someone falls against it. Build the connections, especially posts, to carry real force, and never notch a guard post in a way that weakens it.

    The move

    Lay out stairs and guards to the concepts, uniform steps, a graspable continuous handrail, a guard above the trigger height with child-safe infill and real load capacity, and pull every actual dimension from your jurisdiction's adopted edition before you cut anything. On a stair or a guard, the wrong number is not just a failed inspection, it is a fall. Confirm riser, tread, handrail, and guard figures with the Permit and Code Lookup tool and your building department.

    Common questions

    What is the maximum stair riser height?

    There is a maximum riser height in the code, but the exact figure depends on the edition your jurisdiction adopted, so it is not a single national number, and the residential stair provisions were even renumbered between recent editions. The concept is fixed: each step has a height ceiling, and all the risers in a flight must be uniform within a small tolerance. Building to a riser height from the wrong edition, or with uneven steps, fails inspection and creates a trip hazard. Get the current maximum for your jurisdiction from the Permit and Code Lookup tool.

    When do stairs need a handrail?

    Stairs need a handrail once they exceed a small number of risers, and the exact trigger count and the required height and grip size come from your jurisdiction's adopted code edition. The universal principle is that the handrail must be graspable, something a hand can close around, continuous along the flight, and within a set height range above the nosings, with clearance from the wall. A rail that is the wrong height or too thick to grip fails, because it will not work in a fall. Confirm the trigger count and dimensions with your AHJ.

    How high does a guardrail have to be?

    Minimum guardrail height is set by the code your jurisdiction adopted, and it differs between residential buildings under the IRC and commercial or multifamily buildings under the IBC, with some states amending the residential height upward. So there is no single national number, it depends on which code governs your building and your local amendments. A guard is required once the drop exceeds a trigger height, and the infill must stop a small child from passing through. Get the exact guard height and trigger for your job from the Permit and Code Lookup tool and your building department.

    How big can the gaps in a railing be?

    The gaps in a guard are limited so a small child cannot pass through or get stuck, usually expressed as a maximum sphere size that must not fit through the openings, with a separate allowance at the triangle under the stair. The child-safety concept is universal, but the exact sizes depend on your adopted edition, so route them. Build the infill tight, and remember the guard also has to resist a real load, so the balusters and posts need solid connections, not just close spacing. Confirm the figures with your AHJ.

    The honest bit

    • No riser height, tread depth, uniformity tolerance, handrail height or grip size, guard height, trigger height, or infill sphere size appears here on purpose. Every one depends on the code edition your jurisdiction adopted and any local amendments, and some of these provisions were renumbered between recent editions. Get all of them from the Permit and Code Lookup tool and your building department.
    • Which code governs, the IRC for houses or the IBC for commercial and multifamily, changes the guard height, and some states amend the residential requirement. Confirm which applies to your building.
    • This is general guidance on how the stair and guard rules work, not code interpretation. On stairs and guards the stakes are a fall, so build to your jurisdiction's adopted edition and let the inspector confirm it.

    Know someone who needs this?

    Share on WhatsApp

    Templates you might need

    How this site is funded →

    Was this guide useful?

    Didn't find what you were looking for?

    Spotted something wrong or out of date? Email us at hello@kilnguides.co.uk.

    In crisis? 988 Suicide & Crisis Lifeline 988 ·

    How this site is funded →