Stair Calculator

Calculate stair rise, run, number of steps, and stringer length instantly. Checks building code compliance and shows comfort rule. For deck stairs and interior staircases.

Rise & runNumber of stepsEstimated cost

Results

    How to Calculate Stairs: Step-by-Step

    The stair calculation process starts with one critical measurement: total rise — the vertical distance from the lower finished floor to the upper finished floor (or from ground level to the deck surface). Every other dimension derives from this single number. Divide total rise by your target riser height (7.5 inches is a comfortable default) and round to the nearest whole number to get the number of risers. Then divide the total rise by that number of risers to calculate the exact rise per step. Number of treads is always risers minus one, because the top landing acts as the final step.

    Example: Your deck is 44 inches above grade. 44 / 7.5 = 5.87, round to 6 risers. Exact rise = 44 / 6 = 7.33 inches. Treads = 6 - 1 = 5. With an 11-inch tread depth, total run = 5 x 11 = 55 inches (4 feet 7 inches). Stringer length = square root of (44² + 55²) = 70.5 inches. You'll need three 6-foot 2x12 boards for stringers.

    Deck Stair Riser Calculator

    Deck stairs present unique challenges compared to interior stairs. The total rise measurement should be taken at the point where the stairs will land, because ground slope means the height can vary significantly across even a few feet. Use a level and tape measure: place the level horizontally from the deck edge and measure straight down to the ground at where the bottom step will rest.

    For deck stairs, a slightly lower rise (6.5-7.25 inches) and deeper tread (11-12 inches) is preferred over the steeper indoor stair dimensions. This gentler angle compensates for outdoor conditions: wet treads are slippery, people carry plates and coolers, and there's no handrail wall to lean against. Most deck stairs end on a concrete landing pad (minimum 36x36 inches) that extends at least 36 inches from the bottom riser. Pour or place this pad before cutting stringers so you can verify the total rise to the finished pad surface.

    Stair Stringer Calculator and Cutting Guide

    Stringer length determines what lumber size you need. Calculate it using the Pythagorean theorem: stringer length = square root of (total rise² + total run²). Foidential stairs (30-48 inch total rise), stringers will be 5-7 feet long, easily cut from 8-foot 2x12 pressure-treated boards. After cutting the notches, verify that at least 3.5 inches of solid wood remains at the throat (thinnest point) — this is the structural minimum per code.

    Use a framing square with stair gauge clamps to mark consistent cuts. Set one gauge at the rise measurement and the other at the run measurement. Mark all notches before cutting, then verify the layout by counting treads and checking that total rise and run match your calculations. Cut with a circular saw, stopping short of the inside corners, and finish with a hand saw or jigsaw to prevent over-cutting, which weakens the stringer.

    Stair Step Calculator: Rise and Run Combinations

    The comfort rule (rise + run = 17 to 17.5 inches) helps you choose dimensions that feel natural to walk on. Here are common code-compliant combinations: 7-inch rise with 10.5-inch run (17.5 total), 7.25-inch rise with 10.25-inch run (17.5 total), 7.5-inch rise with 10-inch run (17.5 total), 7.75-inch rise with 10-inch run (17.75 — at the upper limit). Any rise over 7.75 inches exceeds IRC maximum and will fail inspection.

    The angle of the staircase depends on the rise-to-run ratio. Steeper stairs (higher rise, shorter run) save horizontal space but are harder to climb. Shallower stairs (lower rise, deeper run) are more comfortable but require more floor space for the landing. For outdoor and deck stairs where space is less constrained, err toward shallower angles (30-33°) for safety in wet conditions.

    Building Code Requirements for Stairs

    Before building stairs, know the key code requirements that inspectors check: maximum riser height 7-3/4 inches (196 mm), minimum tread depth 10 inches (254 mm) measured nose to nose, maximum riser variation 3/8 inch between tallest and shortest step, minimum width 36 inches clear between walls or railings, minimum headroom 6 feet 8 inches measured vertically from the tread nosing line, and a landing at least as deep as the stair width at the top and bottom.

    Handrails are required on at least one side when there are 4 or more risers, mounted 34-38 inches above the tread nosing. Guardrails are required on any open side where the stair is more than 30 inches above grade, with balusters spaced no more than 4 inches apart. These requirements come from the IRC (International Residential Code) — local amendments may be stricter, so always check with your building department before starting construction.

    Frequently Asked Questions

    What is the ideal rise and run for stairs?

    Most building codes specify 175-190 mm (7-7.5 in) rise and 250-280 mm (10-11 in) run. The comfort rule states rise + run should equal roughly 430-450 mm (17-17.5 in). For exterior deck stairs, slightly lower rise (6.5-7 in) and deeper run (11-12 in) feels more natural since people often carry items up deck stairs. Interior stairs at 7.5-inch rise and 10-inch run are the most common comfortable configuration.

    How do I calculate stair stringers?

    Step 1: Divide total height by desired rise to get number of risers (round to nearest whole number). Step 2: Divide total height by number of risers for exact rise per step. Step 3: Number of treads = risers minus 1. Step 4: Total run = treads x tread depth. Step 5: Stringer length = square root of (total rise² + total run²). Use 2x12 (50x300 mm) lumber for stringers. After cutting notches, at least 3.5 inches (89 mm) of solid wood must remain at the thinnest point for structural integrity.

    How much do stairs cost to build?

    DIY exterior wood deck stairs: $200-$500 for materials (pressure-treated stringers, composite or PT treads, hardware). Interior straight staircase: $1,000-$3,000 professionally installed with basic finishes. L-shaped or U-shaped stairs with a landing: $2,000-$5,000. Custom curved or spiral stairs: $5,000-$20,000+. Materials per step typically cost $15-$30 for stringers, treads, risers, and joist hangers. Add $200-$500 for railings and balusters.

    What is the maximum stair rise allowed by building code?

    IRC (International Residential Code) specifies: maximum riser height 7-3/4 inches (196 mm), minimum tread depth 10 inches (254 mm), minimum stair width 36 inches (914 mm), minimum headroom 6 ft 8 in (2032 mm). The variation between the tallest and shortest riser cannot exceed 3/8 inch (9.5 mm). Handrails required when there are 4 or more risers. Guardrails required when the open side is more than 30 inches (762 mm) above grade.

    How wide should stairs be?

    Minimum 914 mm (36 in) for residential stairs per IRC code. 1067 mm (42 in) or wider is more comfortable for daily use and moving furniture. For deck stairs wider than 36 inches, add a center stringer (3 stringers minimum for 36-inch width, 4 stringers for 48-inch width). Commercial stairs require minimum 44 inches (1118 mm). Exterior deck stairs should have handrails on both sides when more than 30 inches above grade.

    How do I calculate deck stair risers?

    Measure from the deck surface to the ground (total rise). Divide by your target riser height (7-7.5 inches is comfortable for deck stairs). Round to the nearest whole number — that's your number of risers. Then divide total rise by number of risers to get the exact riser height. Example: deck is 42 inches high. 42 / 7.5 = 5.6, round to 6 risers. Exact rise = 42 / 6 = 7.0 inches per riser. You'll have 5 treads (always one fewer than risers).

    What angle should stairs be?

    Residential stairs typically fall between 30° and 37° from horizontal. The ideal angle is 32-35° for comfortable daily use. Below 30° feels like a ramp and wastes floor space. Above 37° starts feeling steep and can be difficult for elderly users or children. Deck stairs are often 30-33° because the gentler angle is safer outdoors. Anything above 42° is considered a ladder by most building codes, not stairs.

    How many stringers do I need for stairs?

    Minimum 3 stringers for stairs up to 36 inches wide. Add a stringer for every additional 16-18 inches of width. So: 36-inch stairs = 3 stringers, 48-inch stairs = 4 stringers, 60-inch stairs = 4-5 stringers. Stringers should be spaced no more than 18 inches apart to prevent tread bounce and flexing. For composite treads (which are less rigid than solid wood), reduce spacing to 12-16 inches.

    How do I build stairs from a deck to the ground?

    Measure total rise (deck surface to ground). Calculate risers and treads using a stair calculator. Cut 2x12 pressure-treated stringers using a framing square with stair gauges set to your rise and run measurements. Attach stringers to the deck rim joist using stringer hangers or a 2x4 ledger board. Set the bottom on a concrete pad or patio block to prevent ground contact rot. Install treads with construction adhesive and 3-inch deck screws. Add a gravel drainage pad under the landing area.

    What is the stair run formula?

    Total run = (Number of risers - 1) x tread depth. The minus 1 is because the top 'tread' is the floor or deck surface itself. Example: 7 risers with 11-inch treads = 6 x 11 = 66 inches (5.5 feet) of horizontal run. This is the distance the stairs project outward from the upper level. You need this measurement to plan landing pad placement and ensure you have enough space for the staircase.