Stair Calculator

In a standard stair the upper floor is the last step, so there is one tread fewer than risers.
Height
in
Vertical distance from the lower finished floor to the upper finished floor.
in
If the total rise is not a whole number of steps, the leftover height is added to the bottom step.
Depth
in
Headroom (optional)
Construction Updated 31 Oct 2026

Plans a straight flight of stairs. Enter the total rise from floor to floor, then either the height of one step or the number of steps, and either the depth of one tread or the total run. The calculator gives the number of risers and treads, the rise and run of each step, the total run, the stringer length and the stair angle, and checks the result against the comfort rule and the main 2021 International Residential Code limits, including an optional headroom check.

  • A single straight flight with equal treads; winders, landings and spiral stairs are not modelled.
  • Rise and run are measured between finished surfaces; the stringer length ignores nosing overhang and the thickness of the stringer stock.
  • The code checks cover the main 2021 IRC dimensions only. Your local building code may set different limits.

Formula

Risers R = ⌊total rise ÷ rise⌋ (or the number you enter, with rise = total rise ÷ R). Treads T = R − 1 (standard) or R (flush). Total run = T × run. Stringer height H = total rise − rise (standard) or total rise (flush). Stringer length = √(H² + total run²); angle = arctan(H ÷ total run)
  • When you enter the rise of one step and the total rise is not a whole multiple of it, the number of risers is rounded down and the leftover height is added to the bottom step. The checks flag it if the bottom step then differs from the others by more than the IRC allows.
  • In a standard stair the upper floor acts as the last step, so there is one tread fewer than risers and the stringer stops one rise below the upper floor. In a flush stair the top tread is level with the upper floor.
  • The stringer length is the hypotenuse of a right triangle whose legs are the stringer height and the total run (the Pythagorean theorem). Add the thickness of the stringer stock and any cut at the top and bottom when you order lumber.
  • Comfort rule: two risers plus one tread should be about 60–65 cm (23.6–25.6 in), the length of a normal walking step.
  • IRC checks use the 2021 International Residential Code R311.7: riser at most 7¾ in (196 mm), tread at least 10 in (254 mm), risers within ⅜ in (9.5 mm) of each other, at most 12 ft 7 in (151 in, 3835 mm) of rise per flight, headroom at least 6 ft 8 in (2032 mm). Local codes can differ.
  • Headroom is measured from the tread directly below the edge of the upper floor to the underside of that floor: headroom = total rise − floor thickness − height of that tread.

9 ft (108 in) floor-to-floor, 7.2 in risers, 11 in treads, standard stair

Inputs
  • Units: imperial
  • Top step: standard
  • Total rise: 108
  • I know the: rise
  • Rise of one step: 7.2
  • I know the: run
  • Run of one step: 11
  • Check headroom: no

108 ÷ 7.2 = 15 risers, so a standard stair has 14 treads and a total run of 14 × 11 = 154 in (12 ft 10 in). The stringer climbs 108 − 7.2 = 100.8 in, so it is √(100.8² + 154²) = 184.06 in (15 ft 4.06 in) long at arctan(100.8 ÷ 154) = 33.21°. 2 × 7.2 + 11 = 25.4 in, inside the comfortable range, and every IRC check passes.

Sources & references

Frequently asked questions

How many steps do I need for an 8 ft rise?
An 8 ft (96 in) rise needs at least 13 risers to stay under the 7¾ in IRC maximum (96 ÷ 13 = 7.38 in). Most stairs of that height have 13 to 16 risers, depending on the riser height you prefer.
How do I calculate the length of a stair stringer?
Use the Pythagorean theorem: stringer length = √(stringer height² + total run²). For 100.8 in of height and 154 in of run that is √(10,160.64 + 23,716) = 184.06 in.
What is the ideal rise and run for stairs?
A common target is a riser of about 7 to 7½ in (18 cm) and a tread of 10 to 11 in (28 cm), so that two risers plus one tread come to 60–65 cm (24–25 in), the length of a normal stride.
What is the difference between a standard and a flush stair?
A standard stair ends one step below the upper floor, which forms the last step, so it has one tread fewer than risers. A flush stair has its top tread level with the upper floor, giving as many treads as risers and a slightly longer total run.
What headroom does a stair need?
The 2021 IRC requires at least 6 ft 8 in (2032 mm) measured vertically from the sloped line along the tread nosings to the ceiling or floor above. Enable the headroom check to test where the floor above ends.
How wide do stairs have to be?
The 2021 IRC requires at least 36 in (914 mm) of clear width above the handrail height. With a handrail on one side, at least 31½ in (787 mm) must remain at and below the handrail, and 27 in (698 mm) with handrails on both sides.

Related calculators

Pythagorean Theorem Calculator Solves a right triangle with the Pythagorean theorem, a² + b² = c². Give any two of the two legs, the hypotenuse, the area and the perimeter, and it finds the missing sides, then adds the area, perimeter, both acute angles and the height dropped onto the hypotenuse. Lengths can be in metric or imperial units, from millimetres to nautical miles, and the area in anything from square millimetres to acres. Handy for checking that a corner is square, sizing a ladder or ramp, or finding a diagonal. Slope Calculator Finds the slope (gradient) of the straight line through two points, m = (y₂ − y₁) ÷ (x₂ − x₁), along with the equation of the line in slope-intercept form y = mx + b. You also get the y-intercept, the angle the line makes with the x-axis in degrees, the slope as a percentage grade, the rise and run between the points and the distance between them. Vertical and horizontal lines are handled correctly. Board Foot Calculator Calculates board feet, the unit used in the United States and Canada to measure and price lumber. One board foot is 144 cubic inches (1 in × 12 in × 12 in). Enter the thickness and width in inches and the length in feet (or millimetres and metres), how many boards you have, an optional waste allowance and the price per board foot, to get the board footage per board, the total, the quantity to order, the volume in cubic feet and cubic metres, and the cost. Concrete Slab Calculator Calculates the volume of concrete for rectangular slabs, footings and walls or for round columns and post holes. Choose imperial (feet and inches, result in cubic yards) or metric (metres and centimetres, result in cubic metres), enter the dimensions and how many identical pours you need, and add a waste allowance. If you use pre-mixed bags, enter the concrete density and bag weight to get the total weight, the number of bags and their cost.