U

Stair Calculator

Plan a comfortable, code-friendly staircase: compute the number of steps, riser height, tread depth, total run and stringer length from your total rise and target riser.
Staircase
270cm
cm
60cm500cm
400cm
cm
100cm1500cm
30cm
cm
20cm60cm
Comfort
17.5cm
cm
12cm25cm

Staircase layout

Riser height versus typical codes

Steep — check local codeComfortable rangeShallow — check local code101418222630
0cm
Steep — check local code

Breakdown

Tread depth
0cm
Total run
0cm
Stair angle
0deg

Key Assumptions

  • The number of steps is found by dividing the total rise by the target riser height and rounding up, so the actual riser is always equal to or smaller than the target.
  • Building codes are local; the common guidance of a 25.4 cm (10 in) minimum tread and a 19.7 cm (7.75 in) maximum riser is used only as a general reference.
  • The stringer length is the straight-line distance between the top and bottom of the flight, assuming no landings, turns or intermediate supports.
  • All measurements are in centimetres; imperial users can convert with 1 inch = 2.54 cm, and tread and riser are assumed square and uniform.

Formula Used

Steps = ceil(Total rise / Target riser) Actual riser = Total rise / Steps Tread = Total run / Steps (single run when using one-run mode) Total run = Single run x Steps Stringer = sqrt(Total run^2 + Total rise^2) Angle = atan(Total rise / Total run)
Embed this calculator on your website

Add this embed page to your site — visitors use the calculator right from your page.

Building a staircase that is safe, comfortable and legal comes down to two numbers above all others: the riser height and the tread depth. Too steep and every step is a struggle; too shallow and the flight eats up half the room. The Stair Calculator turns your total rise and the run you can spare into a complete layout — the number of steps, the exact riser height, the tread depth and the stringer length — so you can check a design against the common code guidance before you cut a single board.

How to Calculate the Number of Steps

The first decision is how many steps the flight needs. Start with the total rise, the vertical distance from the finished floor below to the finished floor above. Divide it by a target riser height — about 17.5 cm, or 7 inches, is the comfortable middle of the guidance range — and round up to a whole number:

Number of steps = ceil(Total rise ÷ Target riser height)

Rounding up matters because you can never build a fraction of a riser. A total rise of 270 cm against a target of 17.5 cm gives 270 ÷ 17.5 = 15.4, which rounds up to 16 steps. The actual riser is then the total rise split evenly: 270 ÷ 16 = 16.9 cm, comfortably within the 15 to 19 cm band that most guidance treats as ideal.

The Riser Height and the Comfort Range

Once the step count is fixed, the actual riser height falls out of simple division. It is the total rise divided by the number of steps, and it is always equal to or a little less than the target you asked for:

Actual riser = Total rise ÷ Number of steps

Most building guidance agrees on a workable window. The common rule of thumb keeps risers between about 15 cm and 19 cm, with 17.5 cm often quoted as the sweet spot, and insists risers never exceed about 19.7 cm (7.75 inches). Risers much below 15 cm feel awkwardly shallow and multiply the number of steps, while risers above the ceiling are genuinely unsafe to climb. The calculator's gauge shows at a glance where your actual riser lands against these bands so a design that misses the target still flags itself.

Tread Depth and the Run

The horizontal side of the stair is governed by the run. You can tell the calculator how much horizontal space the whole flight can use, or enter the depth of a single tread and let the calculator multiply it by the step count. In either case the tread depth is the run split across the number of steps:

Tread depth = Total run ÷ Number of steps

The other famous rule of thumb ties the two dimensions together: about 63 cm of combined riser and tread. A riser of 17.5 cm therefore pairs naturally with a tread near 25 to 30 cm. Building codes commonly look for a minimum tread depth of around 25.4 cm (10 inches), and going much below that makes the footing feel cramped and increases the risk of a misstep. Using the single-run mode, a 30 cm tread across 16 steps needs a total run of 480 cm — a number you can immediately compare against the room you actually have.

Finding the Stringer Length

The stringer is the sloping board that carries the treads, and its length is simply the hypotenuse of the right triangle formed by the total rise and the total run:

Stringer length = √(Total run² + Total rise²)

For the example flight with a 400 cm run and a 270 cm rise, the stringer is √(400² + 270²) = √(160,000 + 72,900) = √232,900 ≈ 482.6 cm. That is the straight-line material you need before any allowance for nosing, overhang or bearing into the floors — always add a little extra when you buy lumber, and always check the exact specification against the stringer table your code or manufacturer requires.

Stair Angle and Pitch

The pitch of the flight is the angle the stringer makes with the floor, found from the same triangle:

Angle = atan(Total rise ÷ Total run)

A run of 400 cm with a rise of 270 cm sits at about 34 degrees, squarely inside the 30 to 35 degree range that feels natural to climb. Shallow ramps below 30 degrees start to feel like a walkway, while angles much above 40 degrees creep toward ladder territory. The pitch is a useful sanity check because it summarises the whole geometry in a single number you can compare against other staircases you have climbed and liked.

Unit Tabs and What Each One Is For

The calculator works entirely in centimetres, and the mode selector lets you choose how to describe the run. In Total Run mode you enter the full horizontal span of the flight, which is the right choice when you are designing to fit a known space. In Single Run mode you enter the depth of one tread, which suits you when you already have a tread size in mind and want to know what the flight will look like. Whichever mode is active, only its own inputs are used — the inactive slider simply drops out of the calculation, and the outputs always reflect the mode you chose.

A Worked Example

Walk through a concrete design. Your floor-to-floor rise is 270 cm, you would like steps near 17.5 cm, and the stairwell has 400 cm to play with. The calculator reports 16 steps, an actual riser of 16.9 cm, a tread depth of 25 cm, a total run of 400 cm and a stringer of about 482.6 cm. Every number is consistent: 16 steps times 25 cm of tread equals the 400 cm run, and the riser multiplied by the step count returns exactly the 270 cm rise. If the tread depth comes out below the 25.4 cm code minimum, nudge the target riser down and rebuild the flight — the calculator recomputes the whole layout instantly.

Practical Uses

Stair calculations show up far beyond house building. Deck stairs, porch steps, basement stairs and attic pull-down stairs all follow the same riser-and-run logic, just with different target numbers. Contractors use the stringer length to price framing lumber before a job starts. Renovators use the step count to plan floor coverings and nosing profiles. Even temporary access ramps and scaffolding stairs borrow the same arithmetic, because the physics of a comfortable step does not change with the project. In every case the workflow is the same: measure the rise, choose a target riser, and let the run tell you whether the design fits.

Stair Types and the Calculator's Scope

Not every staircase is a straight flight, and the geometry changes with the type. A straight run is the simplest case and the one this calculator covers directly: every step is identical and the stringer is one clean hypotenuse. Open-riser stairs, which leave the space between treads open, follow the same rise-and-run arithmetic but need their own safety review because the gaps change how the flight is used. L-shaped and U-shaped stairs introduce landings and winders, which both consume run and require the flight to be split into segments; the calculator's straight-line numbers then describe each segment rather than the whole. For those layouts, compute the straight portion first and then add the landing run, treating each segment as its own rise-and-run problem. The step count and riser logic never change, only the way the run is divided up.

Common Mistakes

  • Forgetting to round up, which produces a fractional step and an over-height riser that fails inspection.
  • Mixing units — a rise measured in metres with treads in centimetres produces a nonsense layout unless everything is converted first.
  • Ignoring the floor finish; the total rise must be measured between finished floor surfaces, not the subfloor.
  • Designing the tread depth from the run before checking the riser against its code maximum.
  • Forgetting landings and turnings, which change both the run available and the stringer layout.
  • Reading the gauge bands as law — codes are local, and the calculator's bands are general guidance only.

Key Assumptions

  • The flight is straight with no landings, turns or winders, so the stringer is a single hypotenuse.
  • All treads and risers are uniform, so the rise and run divide evenly across the step count.
  • The total rise is measured between finished floor levels.
  • All measurements are entered in centimetres; imperial users convert with 1 inch = 2.54 cm.
  • Code limits quoted (about 19.7 cm maximum riser, 25.4 cm minimum tread) are general references, not a substitute for your local requirements.

A staircase is one of the few structures in a home where a centimetre of error can become a daily irritation or a real safety issue. Measure the rise, choose a comfortable target riser, and the calculator hands back the full layout — step count, riser, treads, stringer and pitch — in seconds, so your design is comfortable and code-adjacent before the first saw cut.

Disclaimer

Results are provided as estimates for informational purposes only and may be inaccurate. Always verify outcomes with a qualified professional before making financial or personal decisions based on these calculations.

FAQs

Related Calculators