Skip to content
DIY Measures
Menu

Stair Calculator

Plan a straight flight of stairs. Enter the total rise from floor to floor, the maximum riser height your code allows and the tread depth, and get the number of risers and treads, the total run, the stringer length and the stair angle.

  • Imperial and metric
  • Formula and working shown
  • Last reviewed

Your stair

Units

From the top of the lower floor to the top of the upper floor, finished surfaces.

Your local code decides this. US IRC: 7¾ in. England (private stairs): 220 mm.

Measured from the front of one step to the front of the next, without the nosing. US IRC minimum: 10 in.

Results update as you type. You can enter fractions such as 3 1/2.

Result

Enter the total rise to see how many steps you need.

Calculated in your browser. Nothing you type is sent anywhere.

Quick answer: Number of risers = total rise ÷ maximum riser height, rounded up. For a 108 in rise and the US IRC maximum of 7¾ in, you need 14 risers of 7.71 in each and 13 treads.

Building codes vary

Stair rules are set by each country, and often by each state, province or city. The defaults here come from the US International Residential Code and from England's Approved Document K, but your local code may be different. The calculator shows warnings for those two codes only. It does not check your local rules and is not engineering advice.

How to use the stair calculator

  1. Measure the total rise from the top of the lower finished floor to the top of the upper finished floor.
  2. Enter the maximum riser height allowed by your local code.
  3. Enter the tread depth (going) you want, measured nosing to nosing.
  4. Read the number of risers, the equal riser height, and the total run you need to fit the stair.

Code figures used in the checks

RuleUS IRC R311.7.5 (homes)England ADK, private stair
Riser (rise)Max 7¾ in (196 mm)150 to 220 mm
Tread (going)Min 10 in (254 mm)220 to 300 mm
PitchNot set directlyMax 42°
2 × rise + goingNot setNormally 550 to 700 mm

Figures as published in the sources listed below. Always check the edition and amendments adopted where you live.

What the calculator does not cover

  • Headroom, handrails, guards and balusters.
  • Landings, winders, spiral stairs and turns.
  • Nosing projection and the thickness of tread material.
  • Structural sizing of stringers. The stringer length is an approximate straight-line length only.

How do you calculate stairs?

Side view of a straight stair showing total rise, riser height, tread depth, total run and the stringer
Risers = total rise ÷ riser height, rounded up. There is one fewer tread than risers.

Number of risers

Risers = total rise ÷ maximum riser height, rounded up

Rounding up makes every riser equal and no taller than the maximum you enter.

Riser height, treads and run

Riser = total rise ÷ risers; treads = risers − 1; total run = treads × tread depth

The upper floor acts as the top step, so there is one fewer tread than risers.

Stringer and angle

Stringer ≈ √(total rise² + total run²); angle = arctan(riser ÷ tread)

The stringer figure is the sloped length of the flight; the cut stringer board must be longer to allow for its ends and the nosing.

Code figures shown

US IRC: riser ≤ 7¾ in, tread ≥ 10 in. England, private stair: rise ≤ 220 mm, going ≥ 220 mm, pitch ≤ 42°, 2R + G normally 550–700 mm

Used for the defaults and the warnings only. Your local code decides.

Worked examples

A 9 ft (108 in) floor-to-floor rise, US IRC limits

  1. Risers: 108 ÷ 7.75 = 13.94, rounded up to 14.
  2. Riser height: 108 ÷ 14 = 7.71 in.
  3. Treads: 13; total run: 13 × 10 = 130 in (10.83 ft).
  4. Stringer: √(108² + 130²) = 169.0 in = 14.08 ft. Angle: arctan(7.71 ÷ 10) = 37.6°.

A 270 cm rise in England, 250 mm going (metric)

  1. Risers: 2,700 ÷ 220 = 12.27, rounded up to 13.
  2. Riser height: 2,700 ÷ 13 = 207.7 mm.
  3. Treads: 12; total run: 12 × 250 = 3,000 mm.
  4. Angle: arctan(207.7 ÷ 250) = 39.7°; 2R + G = 665 mm (within 550–700).

Assumptions and limitations

This calculator assumes

  • A straight flight with equal risers and equal treads, and no landing.
  • Total rise is measured between finished floor surfaces.

What it does not cover

  • It is not a design or engineering tool. Headroom, width, handrails, guards, nosings and landings also have code rules.
  • Codes differ by country, state and city, and change over time. Check with your building department before building.
  • Winders, spiral stairs and stairs with landings are not covered.

Not professional advice

Results are estimates for planning and buying materials. For structural work, follow your local building code and ask a qualified professional.

Questions and answers

How do I calculate the number of steps?

Divide the total rise (floor to floor) by the maximum riser height your code allows and round up. For a 9 ft (108 in) rise with a 7¾ in maximum: 108 ÷ 7.75 = 13.9, so you need 14 risers, each 108 ÷ 14 = 7.71 in tall.

Why is there one fewer tread than risers?

In a straight flight, the top floor acts as the last step. So 14 risers need 13 treads, and the total run is 13 × the tread depth.

What are the US code limits for stairs?

The International Residential Code (R311.7.5) used in many US states sets a maximum riser height of 7¾ in and a minimum tread depth of 10 in for homes, and limits how much risers and treads can vary within a flight. Your state or city may have adopted a different edition or amendments, so check with your building department.

What are the rules in England?

Approved Document K (2013) gives, for private stairs, a rise of 150 to 220 mm, a going of 220 to 300 mm, a maximum pitch of 42°, and says 2 × rise + going should normally be between 550 and 700 mm. Wales, Scotland, Northern Ireland, Canada and Australia have their own rules.

Is this calculator enough to build my stairs?

No. It gives planning figures only. Stairs also need correct headroom, handrails, guards, nosings, landings and structural design. Check your local building code and get professional advice before you build.

Guides that explain this

Sources and review

Review status: Checked against the sources below, with a hand-calculated example. Last reviewed .