DIY Repair Guide

Stair Stringer Calculator

Divide total rise by 7-3/4 inches, then round up for your risers.

Compiled by DIY Repair Guide · reviewed 2026-11-18 ·how we research these

Divide your total rise by 7-3/4 inches and round up to get your number of risers. Divide the total rise by that count for the riser height. Subtract one from the risers for the tread count, multiply treads by tread depth for total run, and take the hypotenuse of rise and run for the stringer length. At DIY Repair Guide, we compiled the code limits below from our stair rise and run guide so you can lay out stairs accurately.

The calculator sits directly under this intro to compute these dimensions automatically. Enter the total rise measured finished floor to finished floor, your preferred tread depth, and an optional available run limit. The calculator displays your riser count, riser height as a decimal and to the nearest 1/16 inch, tread count, tread depth, total run, and stringer layout length in inches plus feet and inches. It checks riser height and tread depth against the code limits, notes that equal division meets the uniformity limit, and flags whether your run fits the available space. The calculator runs in your browser, makes no network calls, and includes buttons to copy or print your results.

Stair layout from DIY Repair Guide. Geometry only: confirm the limits with your local building department.

Number of risers-
Riser height-
Number of treads-
Tread depth-
Total run-
Stringer layout length-

    Calculate Your Stairs

    The interactive calculator above runs the geometry for your stairway using your finished floor measurements. In our internal calculations, we ran these formulas on seven example rises and three boundary cases and saved the results so you can compare your layout against known dimensions.

    A standard flight requires a total rise input and a tread depth selection. The calculator loads with a 105-inch rise and a 10-inch tread to demonstrate a common residential flight. Entering an available horizontal run lets the calculator flag whether the stairway footprint exceeds your floor space before you mark lumber.

    When a layout requires only a single step, the calculator notes that the rise needs one riser and zero treads because the top floor acts as the last step. If an available run is too short to permit 10-inch treads, the calculator advises planning a landing, a turn, or allocating more room rather than steepening the steps beyond the code limits. For very short risers it adds a neutral note to check the rise and the floor space.

    How the Calculation Works

    Stair layout uses basic arithmetic based on your total vertical rise. The layout takes five steps, listed below the worked example.

    Consider a total vertical rise of 105 inches. Dividing 105 by 7.75 yields 13.55, which rounds up to 14 risers. Dividing 105 by 14 produces an exact riser height of 7.5 inches. The flight requires 13 treads, which at 10 inches each create a total run of 130 inches, or 10 feet 10 inches. The stringer layout length is the square root of 105 squared plus 130 squared, resulting in 167.1 inches, or 13 feet 11-1/8 inches.

    Rounding up in the initial division guarantees that your calculated riser height never exceeds the 7-3/4 inch residential ceiling. The example table below shows outputs calculated using these formulas across seven common total rise heights with a 10-inch tread depth.

    • Riser count. Divide the total rise by 7-3/4 inches (7.75) and round up to the nearest whole integer.
    • Riser height. Divide the total rise by the whole riser count calculated in step one.
    • Tread count. Subtract one from the riser count, because the top floor acts as the last step.
    • Total run. Multiply the tread count by your chosen individual tread depth.
    • Stringer layout length. Calculate the square root of the total rise squared plus the total run squared.
    Total RiseRiser CountRiser HeightTread CountTotal RunStringer Layout Length
    30 in47.5 in330 in (2 ft 6 in)42.4 in (3 ft 6-7/16 in)
    42 in67.0 in550 in (4 ft 2 in)65.3 in (5 ft 5-5/16 in)
    52.5 in77.5 in660 in (5 ft 0 in)79.7 in (6 ft 7-3/4 in)
    70 in107.0 in990 in (7 ft 6 in)114.0 in (9 ft 6 in)
    90 in127.5 in11110 in (9 ft 2 in)142.1 in (11 ft 10-1/8 in)
    105 in147.5 in13130 in (10 ft 10 in)167.1 in (13 ft 11-1/8 in)
    120 in167.5 in15150 in (12 ft 6 in)192.1 in (16 ft 0-1/8 in)
    Stair layout dimensions calculated for common total rises with a 10-inch tread depth.

    Code Limits the Calculator Checks

    Safety standards establish clear geometric boundaries for residential stairways to reduce missteps and falls. The calculator checks step dimensions against section R311.7 of the International Residential Code (IRC), published by the International Code Council (ICC).

    Under these rules, the maximum riser height is 7-3/4 inches (7.75 inches) and the minimum tread depth is 10 inches. The code also requires uniformity: the difference between the greatest and smallest riser height or tread depth within any flight must not exceed 3/8 inch. Every riser and every tread comes out equal, so the 3/8 inch limit is met by the layout.

    For full dimensional limits, consult our guide on stair rise and run code. Local jurisdictions adopt specific code editions and create local amendments. We compiled these figures from that guide, and the ICC's own code text was not available to us when we checked.

    DimensionIRC R311.7 RequirementVerification Method in the Calculator
    Maximum Riser Height7-3/4 inches (7.75 in)Computed check: pass if riser height is 7.75 inches or less
    Minimum Tread Depth10 inchesComputed check: pass if tread depth is 10 inches or more
    Step Uniformity3/8 inch maximum varianceComputed check: met by equal mathematical distribution
    Minimum Stairway Width36 inches clearReference limit: not computed from rise and run inputs
    Minimum Headroom6 feet 8 inches (80 in)Reference limit: vertical clearance requires jobsite framing check
    Flight Vertical Rise LimitSet by the IRC per flight. Confirm the figure for your adopted editionReference limit: a landing is required once a flight exceeds the limit. Check your building department
    Residential stairway dimensional rules under IRC section R311.7.

    What the Calculator Does Not Decide

    While the calculator produces layout geometry, it does not determine the structural specifications of your stair framing. Stringer lumber sizing and board spans depend on load demands and local building codes.

    For exterior stairways tied to decks, consult our guide on deck framing for stringer support and framing. The calculator also does not decide how many stringers your stairway requires across its width.

    The calculator does not calculate handrail heights, which section R311.7 specifies must sit between 34 and 38 inches measured vertically from the tread nosing, or perimeter guards. For railing installation rules, see our breakdown of deck railing height code. Finished floor adjustments also require manual calculation: if floor finishes differ, adjust the rise before using the calculator to preserve the 3/8-inch step uniformity limit.

    When to Call a Professional

    Framing structural stair stringers and making changes to a stairway require professional planning. A licensed builder should handle complex stairwells that involve intermediate landings, turns, or structural stringers.

    Permitting and code enforcement are handled entirely by your local building department. Permits and structural reviews are inspector and builder work, and no online calculator can replace their review.

    If you encounter existing slope, structural stringers, or changes to a stairway, consult a licensed builder. A builder or inspector should review stringer lumber, landings, and railings under local code.

    What to Do with Your Result

    For standard residential stairs, divide the total vertical rise by 7-3/4 inches and round up to get the riser count. Keep the tread depth at least 10 inches. This calculation gives step proportions within the IRC limits listed above. Your building department enforces its own edition.

    This guidance rests on our own calculations with the IRC R311.7 limits. We ran our formulas on seven common rises and three boundary cases. A 7-inch rise needs one riser and no treads. Exactly 7.75 inches needs one riser at the maximum. A 7.76-inch rise needs two risers of 3.88 inches and one tread.

    This layout approach is not suitable for stairways where horizontal floor space is severely constrained, nor for commercial stairs governed by stricter codes. Take a 105-inch rise with only 100 inches of run available. The 14-riser layout needs 130 inches, so it does not fit. Squeezing the 13 treads into 100 inches would make each tread about 7.69 inches deep, under the 10-inch minimum.

    Our recommendation changes if your jurisdiction amends the 7-3/4 inch maximum riser or the 10-inch minimum tread. It also changes if your stairway has a landing or a turn. If your available run is too short for standard treads, look at a landing, a turning stair or a wider rough opening rather than steeper steps. Measure your vertical rise from finished floor to finished floor, then enter your numbers into the stair calculator to check your stringer layout.

    Common questions

    What is the formula for figuring stair stringers?

    Use five steps. Divide total rise by 7.75 and round up for the riser count. Divide total rise by that count for the riser height. Subtract one for the tread count and multiply by tread depth for total run. Stringer layout length is the square root of total rise squared plus total run squared.

    What is the 7-11 rule for stairs?

    The 7-11 rule is shorthand for a 7-inch riser and an 11-inch tread. It is an informal, unsourced rule of thumb and not an IRC limit. The IRC allows a maximum riser of 7-3/4 inches and requires a minimum tread of 10 inches. A 7-inch riser with an 11-inch tread falls inside the informal rules of thumb on our stair rise and run guide.

    What is the 27 rule for stairs?

    Neither the IRC section cited here nor the sources we reviewed define a 27 rule for stairs, and the calculator does not use it. Two other informal, unsourced rules of thumb circulate: riser plus tread of 17 to 18 inches, and twice the riser plus tread of 24 to 25 inches. Standard layout follows the IRC limits.

    How long is a 2x12 for a 7 step stringer?

    A 7-riser stringer with 7.5-inch risers and six 10-inch treads has a geometric layout length of 79.7 inches, or 6 feet 7-3/4 inches. The actual lumber purchased must be longer to accommodate the angle cuts at the top header and bottom landing. Lumber sizing, board thickness, and allowable spans are not decided here.

    Should stair stringers be 2x10 or 2x12?

    Stringer lumber sizing is not decided here, as the choice between 2x10 and 2x12 lumber depends on span, load, and local code. Consult a licensed builder or your local building department before cutting lumber.

    Can you use 2x8 stringers?

    Whether 2x8 lumber is permitted for stair stringers is not decided by this calculator. Stringer suitability depends on span, load, and local code. Consult a qualified professional or your local building department.

    Related

    Last reviewed 2026-11-18