Stair Calculator
Calculate exact riser height, tread depth, stringer length, and materials for your staircase. Built-in building code compliance check.
Understanding Stair Construction
Building Code Requirements
Building codes regulate every aspect of staircase design to ensure safety. The IRC (International Residential Code) requires a maximum riser height of 7.75 inches and a minimum tread depth of 10 inches. All risers in a flight must be equal within 3/8 inch. The total rise of a flight cannot exceed 12 feet 7 inches without a landing. Landings must be at least 36 inches deep in the direction of travel. Stairways need minimum 36 inches of clear width for residential and 44 inches for commercial. The handrail must be 34 to 38 inches high measured from the stair nosing. These codes exist because stairs are one of the most dangerous areas in any building — following them is not optional.
Headroom Requirements
Building codes require a minimum of 6 feet 8 inches (80 inches) of vertical headroom measured from the stair tread nosing to the ceiling above. This is the most commonly violated stair code requirement. To calculate the required stair opening, multiply the number of risers by the riser height, then add the headroom requirement. For a staircase with 14 risers at 7.5 inches each, the opening needs to be at least 14 × 7.5 + 80 = 185 inches (15 feet 5 inches) measured along the slope. In practice, add 2 to 4 extra inches for the floor thickness above. If your opening is too short, you have several options: steepen the stairs (shorter run), reduce the riser height (more steps), or enlarge the floor opening.
Open vs Closed Risers
Open risers have gaps between treads, allowing light and air to pass through. They create a more modern, airy look and are lighter. Closed risers are solid boards between each tread, creating a traditional appearance. Open risers must have gaps no larger than 4 inches (to prevent children from falling through) and the treads must be at least 10 inches deep. Open risers require a third stringer for support. Closed risers provide better sound insulation between floors and prevent objects from falling through. They also make the staircase feel more substantial and are preferred in traditional architecture. For open-riser stairs, use 2x12 treads with the riser board ripped to the correct height, leaving the required gap below each tread.
Handrail Requirements
Handrails are required on at least one side of every stairway with four or more risers. Stairs wider than 44 inches need handrails on both sides. The handrail height must be between 34 and 38 inches, measured vertically from the stair nosing — not from the floor. The handrail must be continuous for the full length of the flight, extending at least 12 inches beyond the top and bottom riser. The graspable surface must be between 1.25 and 2 inches in diameter for circular rails, or have a specific shape that allows a firm power grip. Wall-mounted handrails must have at least 1.5 inches of clearance between the rail and the wall. For stairs with open sides, install a guardrail at least 36 inches high on the open side, with balusters spaced no more than 4 inches apart to prevent children from slipping through.
How to Build Stairs: Step by Step
Building stairs requires precise calculations and careful execution. Here is the process our calculator helps you plan.
Step 1: Measure Total Rise
Measure the total vertical distance from the finished lower floor to the finished upper floor. Use a level and a straight board to transfer the upper floor height down to the lower floor. This measurement must be exact — even a quarter inch error will throw off every riser. Measure at multiple points along the planned stair path and use the smallest value to ensure code compliance everywhere.
Step 2: Calculate Riser Height
Divide the total rise by the desired riser height (typically 7 to 7.5 inches) to find the number of steps. Round up to the nearest whole number. Then divide the total rise by that number to get the actual riser height. For example, with a 108 inch rise: 108 ÷ 7.5 = 14.4, round up to 15 risers. Actual riser height: 108 ÷ 15 = 7.2 inches. Verify the result is between 4 and 7.75 inches. If not, adjust the number of steps.
Step 3: Determine Tread Depth
The tread depth is typically 10 to 11 inches. Multiply the tread depth by the number of treads (risers minus 1) to get the total horizontal run. For 14 treads at 10.5 inches each, the total run is 147 inches (12 feet 3 inches). This must fit within the available floor space. If it does not, reduce the tread depth (minimum 10 inches) or reduce the riser height to add more steps with shorter treads.
Step 4: Cut the Stringers
Use 2x12 lumber for stringers — the thickest, straightest pieces you can find. Mark the rise and run on the stringer using a framing square. The first step is typically set back by the tread thickness (3/4 inch for a 1-inch actual tread). Make all cuts with a circular saw, finishing the inside corners with a jigsaw. Cut one stringer first and test-fit it against the actual rise and run. If it fits, use it as a template for the remaining stringers. Attach stringers to the header and footer with hangers or ledger bolts.
Step 5: Install Treads and Risers
Cut treads 1/8 inch longer than the stringer width and 1/2 inch deeper than the tread depth to allow for nosing overhang. Use 2x10 or 2x12 lumber for treads. For closed risers, cut riser boards 1/16 inch shorter than the riser height to prevent squeaking. Attach treads with 3-inch screws or 16d nails, pre-drilling to prevent splitting. For open risers, use 2x12 treads with the riser ripped to the correct height, leaving the gap below. Sand and finish treads after installation.
Mastering Stair Geometry: Code, Comfort, and Structural Design
Staircase design is one of the most heavily regulated areas of residential and commercial construction, and for good reason — stairs are the location of a significant share of residential injuries in the United States. The Council of American Building Officials (CABO), the International Code Council (ICC), and the National Association of Home Builders (NAHB) have spent decades refining prescriptive code requirements that balance user safety, biomechanical comfort, and constructability. This guide walks through the geometry, code framework, and structural engineering behind a code-compliant, comfortable staircase.
The Biomechanics of Comfortable Rise and Run
The relationship between riser height and tread depth is not arbitrary. In the 17th century, the French architect François Blondel observed that a comfortable stride on level ground translates to a predictable ratio when applied to stairs. The modern formulation is known as Blondel's Law: (2 × riser height) + tread depth = 24 to 25 inches. A 7.5-inch riser paired with a 10.5-inch tread yields 25.5 inches — slightly outside the ideal range but accepted because modern codes cap riser height at 7.75 inches.
Comfort also depends on the slope angle, which most ergonomic studies place between 30 and 35 degrees. Below 30 degrees, the staircase feels like a ramp and wastes floor area; above 37 degrees, users must shorten their gait and grab the handrail for stability. Above 42 degrees, the staircase functions more like a ladder than a stair. The Occupational Safety and Health Administration (OSHA) sets stricter rules for industrial stairs — 30 to 50 degrees fixed stairs, with 9.5-inch minimum treads and 9.5-inch maximum risers — but residential work follows IRC R311.7.
Equal riser height within a flight is one of the most critical safety rules. The IRC limits variation to 3/8 inch between the tallest and shortest riser in a single flight. The reason is biomechanical: the human body learns the first two steps and then walks the rest by muscle memory. A riser that is even 1/2 inch taller than the others causes the foot to catch the nosing, creating a fall risk. Always measure the actual finished floor heights at both ends of the stair before finalizing riser math.
IRC and IBC Code Frameworks Explained
Two primary model codes govern stair design in the United States. The International Residential Code (IRC), applicable to one- and two-family dwellings and townhouses, sets a maximum riser height of 7-3/4 inches and a minimum tread depth of 10 inches (R311.7.5). The International Building Code (IBC), applicable to commercial and multifamily buildings, is stricter: 7-inch maximum riser and 11-inch minimum tread (IBC 1011.5). The IBC also requires Type I or II handrails on both sides for stair widths above 44 inches.
Beyond risers and treads, codes regulate many other stair features. Headroom must be at least 80 inches measured vertically from the nosing line to the ceiling above (R311.7.2). Open risers cannot allow a 4-inch sphere to pass through, preventing child head entrapment. A flight cannot exceed 12 feet 7 inches vertical rise without an intermediate landing (R311.7.3). Landings must be at least as wide as the stair and at least 36 inches deep in the direction of travel. Winder stairs are restricted and must meet specific geometric constraints.
Handrail requirements (R311.7.8) are commonly misunderstood. A handrail is required on at least one side of any stair with four or more risers. The height must be 34 to 38 inches above the nosing line. The handrail must be "graspable," meaning a circular profile of 1.25 to 2 inches in diameter, or an equivalent shape that allows a power grip. Guardrails (separate from handrails) are required on open-sided stairs and must be at least 36 inches high with balusters spaced to prevent a 4-inch sphere from passing through. Always verify current code adoption — many jurisdictions amend the model code or are still on an older edition.
Stringer Layout, Cutting Sequence, and Lumber Selection
The stair stringer is the diagonal structural member that supports the treads and risers. Residential stringers are typically cut from 2x12 No. 2 or better dimensional lumber, often Douglas Fir, Southern Yellow Pine, or Hem-Fir for strength. After the triangular step notches are cut, the remaining uncut depth of the stringer must be at least 3.5 inches — a critical dimension sometimes overlooked by DIY builders. For long runs or heavy loads, 2x14 stock, LVL (laminated veneer lumber), or PSL (parallel strand lumber) provides additional strength.
The layout sequence starts with a framing square equipped with stair gauges. Set the body of the square to the tread depth and the tongue to the riser height. Starting at the top of the stringer, walk the square down the board, marking each step. The first step typically drops by one riser height minus the thickness of the finished tread — a detail that catches many builders off guard. The bottom of the stringer is trimmed by one riser height to account for the thickness of the finished floor at the lower landing.
Cut the first stringer and test-fit it before cutting the others. Check that it sits flat on the floor, that the top lands correctly at the upper floor, and that every riser is plumb. Use this test stringer as a template by clamping it to each remaining 2x12 and tracing the cuts. Cut with a circular saw up to the corner, then finish each inside corner with a handsaw or jigsaw — overcutting weakens the stringer significantly. For stringers carrying more than the residential 40 psf live load, consult the American Wood Council's Stair Stringer Span Table in the Wood Frame Construction Manual (WFCM).
Tread Material Choices and Slip Resistance
Tread material directly affects safety, durability, and aesthetics. Solid 2x12 wood treads in oak, maple, or pine are the traditional choice and offer long service life with proper finishing. Engineered treads — plywood with hardwood veneer — are common in production homes and provide dimensional stability. For exterior stairs, pressure-treated southern yellow pine, cedar, or composite decking (Trex, TimberTech) resist weather and provide slip resistance through molded wood-grain texture.
Slip resistance is quantified by the Static Coefficient of Friction (SCOF), with most building scientists recommending a minimum of 0.5 for level floors and 0.6 for ramps and stair treads. The Americans with Disabilities Act (ADA) sets a 0.6 SCOF recommendation for accessible routes. Polished stone, ceramic tile, and sealed wood can fall below this threshold when wet. Apply non-slip additives to floor finishes, use abrasive stair nosing inserts on commercial stairs, and avoid high-gloss finishes on stair treads in any occupancy.
Nosing projection — the amount the tread overhangs the riser below — is regulated at 3/4 to 1-1/4 inches (R311.7.5.3). Nosing increases the effective tread depth for descending users and visually defines the step edge. For open-riser stairs, the nosing also prevents toes from slipping through. Radius the front edge of each tread with a 1/8 to 1/4-inch round-over to prevent splinters and improve comfort under bare feet. Always pre-drill screw holes near the ends of wood treads to prevent checking and splitting.
Headroom, Landings, and Floor Opening Sizing
The floor opening — the rectangular hole in the upper floor through which the stair passes — must be sized for both the stair itself and the required headroom along its full length. The required headroom is 80 inches minimum, measured vertically from a line connecting all tread nosings to the ceiling above. For a straight-run stair, the floor opening length is calculated as (number of treads × tread depth) minus the tread at the top landing, plus the horizontal distance needed to clear the headroom at the bottom of the stair.
Landings are required at the top and bottom of every stairway, and intermediate landings are required when the total rise exceeds 12 feet 7 inches or when the stair changes direction. A landing must be at least as wide as the stairway itself and at least 36 inches deep measured in the direction of travel. For U-shaped or L-shaped stairs, landings provide a natural turning point and reduce the linear floor space required. Door swings cannot encroach on a landing by more than the depth of the door when fully open — a frequently overlooked code requirement.
Headroom violations are the most common reason a finished stair fails inspection. To avoid this, calculate the floor opening length using the formula: opening length = (riser count × riser height) − 80 inches, then add the depth of one tread. Round up to the nearest convenient framing dimension. If the opening is too short, options include steepening the stair (shorter run), reducing riser height (more steps), or enlarging the floor opening. Each of these has tradeoffs in floor space, comfort, and structural complexity.
Commercial, Spiral, and Winder Stair Special Cases
Commercial buildings follow the stricter IBC framework, which permits a 7-inch maximum riser with 11-inch minimum tread, requires handrails on both sides for stairs wider than 44 inches, and mandates illuminated egress marking for stairs serving more than 50 occupants. Commercial stairs are typically designed by a licensed engineer with stamped drawings, and they must be load-tested for the 100 psf live load required in assembly occupancies. Dimensional tolerances are tighter — usually 3/16 inch between any two risers.
Spiral stairs (R311.7.10.1 for residential, IBC 1011.10 for commercial) follow a completely different geometric framework. The tread depth is measured 12 inches from the narrower (inner) edge, and the minimum walkline radius is 24 inches for residential and 26 inches for commercial. The minimum clear width is 26 inches for residential spiral stairs. Each tread must be identical, and the total rise per revolution cannot exceed 9 feet 6 inches. Spiral stairs are not permitted as the primary means of egress in most commercial occupancies.
Winder stairs — triangular treads at a corner turn — are allowed in residential construction under R311.7.6 but tightly constrained. The tread depth measured at the walkline (12 inches from the narrow edge) must be at least 10 inches, and the narrow edge cannot be less than 6 inches deep. Winder stairs cannot be the primary egress stair in a dwelling with more than two exit stairs. The geometry is complex enough that specialty layout tools or CAD software is recommended — a poorly laid out winder creates uneven tread depths that violate code and create serious fall risks.
Material Breakdown
Real-World Case Studies
See how these calculations work in real construction and landscaping scenarios. Each case study walks through a practical project with realistic inputs, results, and key takeaways you can apply to your own projects.
How to Use This Calculator (5 Steps)
Follow this sequence to lay out code-compliant stairs and order the right materials.
Frequently Asked Questions
What size lumber should I use for stair stringers?
Use 2x12 lumber for stair stringers — this is the standard and required by most building codes. The stringer must have at least 3.5 inches of material remaining at the thinnest point after the notches are cut. A 2x12 gives you plenty of depth. For very wide stairs or heavy loads, consider 2x12 LVL (laminated veneer lumber) which is stronger and straighter than dimensional lumber. Never use 2x10 or thinner for stringers — the remaining material after cutting is too weak.
How do I calculate the stair angle?
Use the formula: angle = arctan(riser height ÷ tread depth). For a 7.5 inch riser with a 10.5 inch tread: arctan(7.5/10.5) = 35.5 degrees. The ideal range is 30 to 37 degrees. Below 30 degrees, the stairs feel more like a ramp and waste floor space. Above 37 degrees, they become steep and uncomfortable, and above 42 degrees they become a ladder. For a comfortable staircase, aim for 34 to 36 degrees.
Can I build stairs without a landing?
Building codes require a landing if the total rise exceeds 12 feet 7 inches (151 inches) or if the stairs change direction. For straight-run stairs within the rise limit, no landing is needed. However, for safety and comfort, a landing is recommended for very tall staircases even if not required by code. If your total rise is close to the limit, consider adding a mid-stair landing — it provides a rest point and makes the staircase safer for children and elderly users.
What is a closed stringer vs an open stringer?
A closed stringer (also called a housed stringer) has the treads and risers set into routed grooves in the stringer. This is the traditional method used in finish staircases. An open stringer (cut stringer) has triangular notches cut into the top edge where treads and risers sit on top. Open stringers are what most builders use for residential construction because they are faster to build and easier to adjust. Closed stringers are used for finish work where the stringer is visible.
Do I need to add a nosing to my treads?
Building codes require a 3/4 to 1.25 inch nosing overhang on each tread. The nosing extends the effective tread depth and provides a safety margin for descending users. Cut your treads 3/4 to 1 inch longer than the stringer depth. For a finished look, round or chamfer the front edge of each tread. Nosing is especially important for open-riser stairs where the tread edge is fully visible. For carpeted stairs, the nosing is less critical since the carpet wraps over the edge.
How do I prevent stair squeaks?
Squeaks are caused by friction between wood surfaces. To prevent them: apply construction adhesive to the back of each tread before fastening, pre-drill screw holes to prevent splitting, use screws instead of nails for a tighter hold, and cut risers 1/16 inch shorter than the measured rise so they do not bear weight. Fill any gaps between treads and stringers with wood glue. For existing squeaky stairs, drive screws from underneath through the subfloor into the tread, or inject wood glue into the gaps using a syringe.
Related Calculators
Complete every part of your stair, deck, or framing project with these complementary construction calculators.
References & Sources
The information in this guide is based on model building codes, wood engineering standards, and best practices from leading residential construction authorities.
- International Code Council (ICC) — "2021 International Residential Code (IRC) Section R311.7 — Stairways" and "International Building Code (IBC) Section 1011 — Stairways." The ICC publishes the model codes adopted by most US states and jurisdictions, defining riser height, tread depth, headroom, handrail, and guardrail requirements for residential and commercial stairs.
iccsafe.org - OSHA — Occupational Safety and Health Administration — "Stairways and Ladders (29 CFR 1910 Subpart D)" and "Construction Industry Stair Standards (29 CFR 1926 Subpart X)." OSHA sets enforceable safety standards for stair design, construction, and maintenance in industrial and construction settings.
osha.gov - ASTM International — "ASTM F1637: Standard Practice for Safe Walking Surfaces" and "ASTM E303: Test Method for Measuring Surface Frictional Properties." ASTM standards cover slip resistance, tread materials, and safety performance metrics for stair treads and walking surfaces.
astm.org - National Institute of Standards and Technology (NIST) — "Building and Fire Research Laboratory: Stair Safety Research." NIST conducts research on stair geometry, fall prevention, and egress performance to inform building code development.
nist.gov - Stairbuilders and Manufacturers Association (SMA) — "Stair Industry Standards" and "Stair Building Guidelines." The SMA represents stair manufacturers and professional stairbuilders, publishing best practices for stair construction, handrail design, and code compliance.
stairindustry.org - American Wood Council (AWC) — "Wood Frame Construction Manual (WFCM) for One- and Two-Family Dwellings" and "Stair Stringer Design Guide." The AWC develops consensus standards and engineering tools for wood construction, including span tables and connection details for residential stair stringers.
awc.org