Stair Calculator

Stair geometry

Risers
Actual riser height
cm
420 cm280 cm
Treads / platforms
15
Tread run
28 cm
Total run
420 cm
Step pitch
32.01°
More info
Envelope diagonal
504.78 cm
Twice rise plus tread
63 cm

The upper floor is the final tread: there is one fewer tread than risers. A landing replaces one tread's horizontal run; it is not added on top.

General geometry only, not building-code approval or a structural design. The diagonal spans the whole flight envelope; it is not a stringer cutting length. Check local requirements and site measurements.

About this tool

This calculator works out the number of risers and treads, the actual riser height, total run, diagonal length and pitch for a straight flight of stairs, with an optional landing. Builders, carpenters and homeowners use it when planning a new staircase or checking an existing opening. Total rise is the vertical distance from the lower finished floor to the upper finished floor, and it is divided equally among all risers.

How it works

Choose centimeters or inches, then enter the total rise from finished floor to finished floor. Pick either a maximum riser height or a fixed riser count. Automatic count rounds up so no step exceeds your maximum, then divides total rise equally, which is why the actual riser height is usually a little below the limit you entered.

For the horizontal side, enter a tread run or solve it from the total run your floor space allows. An optional straight landing replaces one tread at the step you choose and adds its depth to the total run. Results show riser and tread counts, actual riser height, total run, diagonal length, pitch angle and the comfort value. The side diagram follows the calculated dimensions.

Example

A 280 cm rise with a maximum 18 cm riser needs 16 risers, each 17.5 cm high. With the upper floor as the final tread, 15 treads of 28 cm give 420 cm total run.

Step by step: 280 ÷ 18 = 15.56, which rounds up to 16 risers, and 280 ÷ 16 = 17.5 cm per riser. The diagonal across the 280 by 420 cm envelope is about 504.8 cm, and the pitch of one step is the arctangent of 17.5 ÷ 28, about 32.0°. The comfort value is 2 × 17.5 + 28 = 63 cm. If the floor only allows 375 cm of run, entering that as total run gives 15 treads of 25 cm, and the pitch rises to about 35.0°.

Assumptions and limits

The calculation assumes a single straight flight with equal risers and treads and treats the upper floor as the final step. It does not model winders, spiral or L-shaped stairs, nosing overhang, stringer layout, material thickness, headroom or structural loads, and it does not check compliance with any building code.

Frequently asked questions

What does the diagonal mean?

It is the straight distance across the rise/run envelope: L=H2+R2L = \sqrt{H^2 + R^2}. It does not include tread thickness, mount details, notches or separate landing supports, so it is not a fabrication cut list.

Does this check code compliance?

No. Headroom, width, handrails, nosing, landing clearances and structural loads require separate checks under local rules. The pitch is based on one ordinary step, even when the whole flight includes a landing.

What riser height and tread depth are typical?

Requirements vary by jurisdiction and building type. For example, many US residential codes based on the International Residential Code limit risers to about 7¾ inches (19.7 cm) and require treads of at least 10 inches (25.4 cm). Always check the rules that apply where you build.

What does the comfort value mean?

It is twice the riser height plus the tread depth, 2R+T 2R + T , a traditional stair rule often attributed to Blondel. Values of roughly 60 to 65 cm (about 24 to 25 inches) are commonly cited as comfortable, though recommendations differ between sources.

Why are there one fewer treads than risers?

In a straight flight, you step up onto the upper floor with the last riser, so that floor acts as the final tread. A flight with 16 risers therefore has 15 treads.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
unitsmetric or imperialset by the first measured value
count_modeDetermine risers byone of: target, fixeddefault target
run_modeHorizontal dimensionsone of: tread, totaldefault tread
total_rise_cmtotal_rise_inTotal risenumber; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed > 0 – 100000 cm (metric), > 0 – 100000 in (imperial)required
max_riser_height_cmmax_riser_height_inMaximum riser heightnumber; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed > 0 – 100000 cm (metric), > 0 – 100000 in (imperial); used with count_mode = targetrequired
risersRiserswhole number; allowed 2–100; used with count_mode = fixedrequired
tread_cmtread_inTread runnumber; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed > 0 – 100000 cm (metric), > 0 – 100000 in (imperial); used with run_mode = treadrequired
total_run_cmtotal_run_inTotal runnumber; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed > 0 – 100000 cm (metric), > 0 – 100000 in (imperial); used with run_mode = totalrequired
landingInclude a straight landingtrue or falsedefault false
landing_depth_cmlanding_depth_inLanding depthnumber; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed > 0 – 100000 cm (metric), > 0 – 100000 in (imperial)default 100
landing_stepLanding after riserwhole number; allowed 1–99default 8

Examples

  • ?total_rise_cm=270&max_riser_height_cm=18&tread_cm=27
  • ?total_rise_in=108&risers=15&total_run_in=150&landing=true&landing_depth_in=36&landing_step=7

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="stairs"]