Stair Calculator
Calculate stair dimensions including number of steps, riser height, tread depth, total run, and stringer length. Includes IRC building code check.
About the Stair Calculator
Designing a staircase requires balancing comfort, safety, and available space. The key variables — riser height (how tall each step is) and tread depth (how deep each step is) — are governed by residential building codes that establish maximum rise and minimum run dimensions. Getting these dimensions right before cutting your stringers saves expensive lumber and ensures your stairs pass inspection.
This stair calculator takes your total rise (floor-to-floor height), your desired riser height, and your desired tread depth, then outputs the number of steps, actual rise per step, total horizontal run, stringer length, and a check against the International Residential Code (IRC) requirements. Both imperial and metric units are supported.
How It Works
Enter the total rise (floor-to-floor height), preferred riser height, and tread depth. The calculator determines the number of steps (rounding up), adjusts the actual rise, then computes total run and stringer length using the Pythagorean theorem.
Understanding Stair Anatomy
A staircase has several key components, each with specific dimensional requirements. The riser is the vertical face of each step — the part your foot clears as you step up. The tread (or run) is the horizontal surface you step on. The stringer is the diagonal structural member that runs along the side of the staircase, supporting both the risers and treads. The total rise is the vertical distance from the finished floor at the bottom of the stairs to the finished floor at the top. The total run is the total horizontal distance the staircase occupies from the face of the bottom riser to the face of the top riser.
The relationship between rise and run affects both the comfort and safety of a staircase. Steep stairs with tall risers and shallow treads are tiring to climb and dangerous to descend; very shallow stairs with short risers and deep treads consume excessive floor space. Building codes establish the acceptable range: residential stairs must have risers no taller than 7¾ inches (the IRC maximum) and treads no shallower than 10 inches (the IRC minimum). These limits are based on ergonomic research showing that rise-to-run ratios within these ranges produce a natural, comfortable stride for most adults.
The stringer is the most structurally critical component of the staircase. Most residential stairs use three stringers — one on each side and one in the centre — cut to accept the risers and treads. The stringer length is calculated using the Pythagorean theorem: the square root of (total rise² + total run²). For a standard 9-foot floor-to-floor height staircase with a 10-inch tread, this typically produces a stringer length of about 14–16 feet, which fits within a standard 16-foot 2×12 dimensional lumber piece. Stairs with very long total runs or steep angles may require spliced or engineered lumber stringers.
IRC Building Code Requirements for Stairs
The International Residential Code (IRC) Section R311.7 governs stair construction in US residential buildings and is adopted by most states and municipalities. The key dimensional requirements are: maximum riser height of 7¾ inches (7.75"), minimum tread depth of 10 inches, minimum headroom of 6 feet 8 inches measured vertically above the stair nosing, and minimum stair width of 36 inches clear between handrails. The nosing — the part of the tread that projects beyond the riser — must be between ¾ inch and 1¼ inch if risers are solid, and must be uniform throughout the flight.
Consistency is as important as the dimensional limits themselves. The IRC requires that the greatest riser height in a flight not exceed the smallest riser height by more than ⅜ inch, and the same ⅜-inch tolerance applies to tread depths. This means every step must be nearly identical — variations that seem minor on paper can create tripping hazards if one step is noticeably different from the others. When calculating stairs, if your total rise doesn't divide evenly into your desired riser height, the calculator rounds up to the next whole step and recalculates the actual rise per step so every riser is equal.
Local building codes may add requirements beyond the IRC. Many jurisdictions require permits for any new staircase construction, including decks and interior renovations. Before starting construction, check with your local building department: they'll tell you whether a permit is required, if local amendments to the IRC apply (for example, some areas require handrails on both sides for stairs wider than 44 inches), and what the inspection process looks like. Building stairs to code from the start saves the cost and disruption of tearing down non-compliant work after a failed inspection.
Calculating the Number of Steps
The number of steps is determined by dividing the total rise by your desired riser height and rounding up to the nearest whole number. You always round up — not down — because rounding down would require risers taller than your desired height, which may violate code. For example, a total rise of 108 inches (9 feet) with a desired riser height of 7 inches gives 108 ÷ 7 = 15.43, which rounds up to 16 steps. The actual riser height becomes 108 ÷ 16 = 6.75 inches per step — within the IRC maximum of 7.75 inches.
If your calculated riser height comes out above the IRC maximum of 7.75 inches, add one more step and recalculate. For example, a 90-inch total rise with a desired 7-inch riser gives 12.86 steps — round up to 13 steps, giving an actual rise of 6.92 inches per step, which is within code. Some situations produce an awkward number of steps. A 108-inch rise at 7.75 inches per step gives 13.94 steps, rounding up to 14 — producing an actual rise of 7.71 inches, just barely within the code maximum. In such cases, it's often better to use 15 steps (7.2 inches each) for more comfortable climbing.
Remember that the number of risers equals the number of steps, but the number of treads is one less — the top landing is the floor itself, not a separate tread. A 14-riser staircase has 13 treads. This distinction is important when purchasing materials: you need 14 riser boards but only 13 tread boards. When calculating total horizontal run, multiply the number of treads (not risers) by the tread depth. For 13 treads at 10 inches each, the total run is 130 inches (10.83 feet) of horizontal space required for the staircase.
Stringer Layout and Cutting
The stringer is the diagonal board that supports the stair steps and carries the load to the top and bottom supports. Most residential staircases use a cut stringer (also called a notched or sawtooth stringer), where the riser and tread profiles are cut out of the stringer board, leaving the steps resting in the notches. The alternative is a housed stringer, where the steps slot into routed grooves — more common in high-end millwork applications. For cut stringers, a 2×12 dimensional lumber board is standard: after cutting, the remaining depth of the stringer at the notched section must be at least 3.5 inches to maintain structural integrity per the IRC.
To lay out a cut stringer, use a framing square with stair gauges (small clamps that attach to the square at your rise and run dimensions). Place the square on the stringer board with the rise dimension on one arm and the run dimension on the other, mark the step profile, slide the square along to the next step position, and repeat. The bottom step must be adjusted to account for the tread thickness — if your treads are 1 inch thick, shorten the first riser by 1 inch so the top of the first tread aligns at the correct height above the lower floor. Failure to account for tread thickness is one of the most common mistakes in stair construction.
Stringer length calculation uses the Pythagorean theorem: the stringer must span the diagonal from the lower floor to the upper floor, covering both the total vertical rise and the total horizontal run. The formula is √(total rise² + total run²). For a 9-foot rise (108") and 13 treads at 10" each (130" total run): √(108² + 130²) = √(11664 + 16900) = √28564 ≈ 169 inches ≈ 14.1 feet. A 16-foot 2×12 provides enough material for this stringer after accounting for the cuts at the top and bottom. Always purchase stringers slightly longer than calculated to allow for trim cuts and minor adjustments.
Deck Stairs vs Interior Stairs
Deck stairs and interior stairs follow the same IRC dimensional requirements but differ significantly in material choices, weatherproofing requirements, and attachment methods. Deck stairs are typically built from pressure-treated lumber (most commonly 2×12 stringers with 5/4×6 or 2×6 treads) and must be designed to shed water quickly to prevent rot and moisture damage. The open-riser design common on decks — where there is no vertical riser board between treads — allows water to drain freely but creates a gap that may require guards if children are present. Deck stringer attachment to the deck frame requires joist hanger hardware or ledger attachment, not just toe-nails.
Interior stairs are usually built with solid risers (no gaps), finished with hardwood treads or carpeting, and often enclosed with skirtboards and balusters. The structural requirements are the same — the stringer must maintain at least 3.5 inches of depth after cutting, and the riser and tread dimensions must fall within IRC limits — but interior stairs also require a continuous graspable handrail on at least one side for stairs with more than three risers, mounted between 34 and 38 inches above the tread nosing. Baluster spacing must be such that a 4-inch sphere cannot pass through any opening in the guardrail system.
Prefabricated stair stringers are available at most lumber yards for standard configurations — typically 7-inch rise and 10-inch run, in lengths for 3 to 14 steps. These can save significant layout and cutting time for standard applications. However, prefab stringers are sized for specific total rises, so they're only useful if your floor-to-floor height matches one of the standard configurations. For any non-standard rise, custom-cut stringers are necessary. When cutting custom stringers, always cut the first stringer, test-fit it in place, verify the riser and tread dimensions are correct, then use it as a template for the remaining stringers.