Stair Calculator

Plan a safe, comfortable staircase in seconds. Enter the total rise (floor to floor) and your preferred maximum riser height and tread depth to get the number of steps, exact riser height, total run, stringer length and angle, checked against common building-code limits.

  • 100% free
  • No sign-up
  • Private & local
  • Works on mobile

Code checks

    Based on the US International Residential Code; local codes vary. Always confirm with your building authority.

    Private by design: every calculation runs locally in your browser. Nothing you type is sent to a server or stored by us.

    What Is a Stair Calculator?

    A stair calculator works out the dimensions of a staircase from the height it has to climb. Every step in a flight must be the same height. Even a small difference trips people up, and building codes limit the variation to about 3/8 inch (10 mm). The calculator divides the total rise into equal risers that don't exceed your maximum height, then uses the tread depth to find the total run, the length of the stringers (the sloping boards that support the steps) and the angle of the stairs.

    It works for interior stairs, deck and porch steps, basement stairs and garden steps, in inches or centimetres, and checks the result against common code limits for riser height, tread depth and slope.

    How to Calculate Stairs

    1. Measure the total rise from the finished floor at the bottom to the finished floor at the top.
    2. Enter your maximum riser height: 7¾ in (196 mm) under the IRC, or lower for easier stairs.
    3. Enter the tread depth: at least 10 in (254 mm); 10½–11 in is more comfortable.
    4. Read the results and check the code list and diagram.

    Stair Formulas

    • Number of risers = total rise ÷ maximum riser height, rounded up
    • Riser height = total rise ÷ number of risers
    • Number of treads = risers − 1 (the top floor acts as the last tread)
    • Total run = treads × tread depth
    • Comfort rule: 2 × riser + tread ≈ 24–25 in (61–64 cm)

    Example: a 108 in total rise with a 7.75 in maximum riser needs 14 risers of 7.71 in, 13 treads, and a total run of 136.5 in with 10.5 in treads.

    Common Building Code Limits (IRC)

    ItemRequirement
    Maximum riser height7¾ in (196 mm)
    Minimum tread depth10 in (254 mm)
    Nosing (if treads < 11 in)¾ to 1¼ in
    Minimum headroom6 ft 8 in (2032 mm)
    Minimum width36 in (914 mm)
    Handrail height34–38 in above nosings

    Features

    • Complete layoutRisers, treads, run, stringer and angle.
    • Code checksRiser, tread, nosing and angle limits.
    • Comfort rule2R + T check for natural stride.
    • Profile diagramSee the staircase drawn to scale.
    • FractionsRiser height to the nearest 1/16 inch for layout.
    • Imperial or metricInches or centimetres.

    Planning Tips for Stairs

    • Measure finished heights. Include flooring thickness at both levels. A new tile floor can change the first or last riser and break the equal-height rule.
    • Check headroom along the whole flight: at least 6 ft 8 in (2 m) measured vertically from the nosing line.
    • Plan the landing. Long flights and turns need landings at least as deep as the stair is wide.
    • Allow for the stringer. The first riser is cut shorter by the thickness of the tread so every finished step is equal.
    • Add handrails where there are four or more risers (per the IRC), and guards where the drop exceeds 30 inches.

    Outdoor steps and deck stairs follow the same principles, but lower risers (6–7 inches) and deeper treads (11–12 inches) feel better outside and are safer in wet weather.

    Stair Terminology

    The rise is the vertical height of each step, and the run or going is the horizontal depth. The nosing is the front edge that overhangs the riser below. Stringers are the sloping side supports, either cut (with notches for each step) or closed (with treads housed in grooves). The pitch line joins the nosings, and headroom is measured vertically above it.

    Tip: before cutting stringers, lay the calculated rise and run out on a framing square with stair gauges, then test-fit the first stringer and adjust before using it as a template for the others.

    Frequently Asked Questions

    How many steps do I need for a 9-foot ceiling?

    A typical floor-to-floor rise of about 108 inches needs 14 risers of about 7.7 inches.

    What is the most comfortable stair angle?

    Around 30–35 degrees. Steeper than about 42 degrees starts to feel like a ladder.

    How long should stair stringers be?

    The calculator gives the length along the slope. Buy boards at least a foot longer for plumb and level cuts.

    Do I count the top floor as a step?

    The top floor is the final tread, so there is always one fewer tread than risers.

    Is this a substitute for local codes?

    No. Requirements vary by country and region, so always check with your local building department.