Stair Calculator

Design a straight stair flight from its rise, run, and step count.

Six length units, standard or flush mounts, and an optional headroom check.

Updated November 9, 2026
Frank Zhao - Creator
CreatorFrank Zhao
Loading calculator…

Introduction

This calculator dimensions one straight flight of stairs before anything is cut. Enter the floor-to-floor rise and one tread dimension, and it returns the step count, total run, stringer height and length, and pitch; when you start from the rise of one step it also returns the bottom-step height. If you ask for it, it checks the headroom through the floor opening above.

It is a planning tool for the point where you know the height you have to climb and either the tread you want to walk on or the number of steps you are willing to build. That makes it useful for a deck stair, a basement stair, a loft access or a replacement flight, and for checking a set of dimensions somebody else supplied before committing to lumber.

The page solves two different questions. In the rise-known family you fix the height of one step and the page rounds the count down from the total rise; in the steps-known family you fix the number of steps and the page divides the total rise evenly. The four menu combinations mix those with either the run of one step or the total run, so you can start from whichever measurement is easiest to take.

4 input combinations

Run or total run, rise or step count

6 length entries

Centimetres through feet / inches

2032 mm default

Required headroom, adjustable

Quick start

1

Choose what you know, then choose the mount

The first two menus decide which measurement leads the calculation. Pick “the run of one step” and “the rise of one step” when you are working from a tread depth and a comfortable riser. Pick “the total run” or “the number of steps” when those are the fixed dimensions. Then choose the mount: a standard mount leaves the top tread one step below the upper floor, while a flush mount puts the last tread level with it.

2

Enter the total rise, not the stair length

Total rise is floor to floor. Measure it vertically from the finished lower floor to the finished upper floor, including the thickness of the floor finish at the top. The example below uses H=2.70 mH = 2.70\ \mathrm{m} and a flush mount.

3

Enter one tread run and one step rise

Use the actual tread you will install and the riser height you want to walk up. For this example, enter R=28 cmR = 28\ \mathrm{cm} and r=18 cmr = 18\ \mathrm{cm}. The page now has enough to solve the rest of the flight.

4

Read the solved flight

With a flush mount the mount offset is m=0m = 0, so the numbers come out as follows:

NN==⌊2.700.18⌋+0\left\lfloor \frac{2.70}{0.18} \right\rfloor + 0==1515
TT==0.28×150.28 \times 15==4.20 m4.20\ \mathrm{m}
rbr_b==2.70−0.18×142.70 - 0.18 \times 14==0.18 m0.18\ \mathrm{m}

The stringer height is 2.70 m2.70\ \mathrm{m}, the stringer length is 4.993 m4.993\ \mathrm{m} and the pitch is 32.7∘32.7^\circ. The last tread is at floor level, which is what makes the bottom step equal to the rest in this flush-mount example.

5

Check comfort, bottom step and headroom

The comfort check is 2r+R=2(18)+28=64 cm2r + R = 2(18) + 28 = 64\ \mathrm{cm}, inside the 60–65 cm band. If the bottom step comes out much taller than the rest — beyond the roughly two-rise result a standard mount naturally produces — the selected rise does not divide the total rise well. Try a different rise, a different step count, or a flush mount before cutting. If you already know the count, type it into Number of steps; the page keeps your count and back-solves the matching rise instead of rounding the count from the rise. Headroom is optional: tick the headroom box, enter the distance to the floor opening, and read the clear height against the required value.

How the dimensions fit together

The two solver families share the same right-triangle geometry. What changes is how the step count is decided, and that one choice moves every downstream number.

You knowThe page solvesUse it when
Run of one step + rise of one stepStep count, total run, bottom step, stringerYou have a tread and riser target
Total run + rise of one stepIndividual run, step count, bottom step, stringerThe horizontal space is fixed
Run of one step + number of stepsRise, total run, stringerThe step count is fixed
Total run + number of stepsRise, individual run, stringerBoth overall dimensions are fixed

Step count and total run

N=⌊Hr⌋+mN = \left\lfloor \frac{H}{r} \right\rfloor + m

HH is the total rise, rr is the rise of one step and mm is the mount offset: −1-1 for a standard mount and 00 for a flush mount. The floor function is deliberate — the page does not round to the nearest step. A standard mount therefore removes one more step from the stringer than a flush mount at the same total rise.

T=R×NT = R \times N

In the rise-known family, total run is simply the tread run RR multiplied by the solved step count. In the steps-known family the count is yours, so the page uses T=R (N−1+m)T = R\,(N - 1 + m) instead. That extra −1+m-1 + m is why the same run and step count can produce a different total run depending on the mount.

The Number of steps box is editable in both families. If you type a count in the rise-known family, the page keeps that anchor and solves the continuous inverse r=H/(N−m)r = H/(N - m), then rebuilds the bottom step, total run and stringer from it. The floor is not inverted value by value; the page simply chooses the rise that makes the unrounded count land on the number you entered.

The bottom step is the remainder absorber

rb=H−r (N−1)r_b = H - r\,(N - 1)

This field appears only when you start from the rise of one step. Because the count is rounded down, the leftover height has to go somewhere; the page puts it in the bottom step. In a flush mount, a bottom step close to the normal rise means the total rise divides neatly. In a standard mount, the bottom step is normally about two rises even when the division is exact, because the top tread sits one step below the floor. A value much beyond that is a warning that the rise and total rise do not suit each other — the arithmetic is still correct, but the stair would be awkward to climb.

Stringer height and length

SH=H+r mS_H = H + r\,m

In the rise-known family, the stringer height is the total rise plus the mount offset times one rise. A standard mount therefore stops one rise short of the upper floor. If you start from the number of steps, the page uses the steps-known form SH=H−r+r mS_H = H - r + r\,m.

SL=SH2+T2S_L = \sqrt{S_H^2 + T^2}

The stringer length is the hypotenuse of the right triangle formed by the stringer height and the total run. It is a straight-line length; it does not add the extra length needed for the top and bottom cuts, nor does it choose a board size.

Pitch

θ=arctan⁡(SHT)\theta = \arctan\left(\frac{S_H}{T}\right)

The pitch is the angle of the flight from the horizontal. The page reports it in degrees by default and can show radians. It is useful for setting a saw guide or comparing the planned flight with a stair you already find comfortable, but it is not a substitute for checking the rise and run themselves.

Headroom through the floor opening

When the headroom box is on, the page needs the floor thickness tt and the horizontal distance to the restriction dd. In the rise-known family it uses:

HclearH_{\mathrm{clear}}==H−tH - t−-(⌈T−dR⌉−1)r\left(\left\lceil\frac{T-d}{R}\right\rceil - 1\right)r−-rbr_b

In the steps-known family the same idea is written with the rise that was divided evenly:

HclearH_{\mathrm{clear}}==H−tH - t−-⌈T−dR⌉r\left\lceil\frac{T-d}{R}\right\rceil r

The ceiling function counts how many treads sit between the top of the flight and the nearest restriction. It is a simple horizontal-opening model, not a general ceiling clearance calculation.

Which fields are inputs, and which are answers

The two menus decide which dimension leads, but the Number of steps and Stringer height boxes can also be typed. A field shown in blue is normally an answer; if you edit one of those two, the page keeps your value and solves the matching companion value. Switching between menu combinations carries the current step count or rise across, so you can compare the two families without starting over.

HHTotal rise from finished lower floor to finished upper floor
rrRise of one step, the vertical distance between treads
RRRun of one step, the horizontal tread depth
NNNumber of steps, counting every time you lift a leg
TTTotal horizontal run of the flight
mmMount offset: −1 standard, 0 flush
rbr_bRise of the bottom step after the count is rounded down
SHS_HStringer height
SLS_LStringer length, the diagonal
θ\thetaPitch angle from the horizontal
ttFloor thickness above the stairs
ddDistance from the top of the flight to the floor opening

Worked examples

1

The same flight with a standard mount

Situation: The rise, tread and riser are the same as the quick-start example, but the top tread must sit one step below the upper floor.

Inputs

Total rise2.70 m2.70\ \mathrm{m}
Run of one step28 cm28\ \mathrm{cm}
Rise of one step18 cm18\ \mathrm{cm}
MountStandard (−1)

Result

NN==⌊2.70/0.18⌋−1\left\lfloor 2.70/0.18 \right\rfloor - 1==1414
TT==0.28×140.28 \times 14==3.92 m3.92\ \mathrm{m}
rbr_b==2.70−0.18×132.70 - 0.18 \times 13==0.36 m0.36\ \mathrm{m}

The stringer height drops to 2.52 m2.52\ \mathrm{m} and the stringer length to 4.660 m4.660\ \mathrm{m}. The pitch stays at 32.7∘32.7^\circ, because the rise and run of one step did not change. The count, total run, bottom step, stringer height and stringer length all move together.

In practice: A 36 cm bottom step is the expected result of the standard mount, not a rounding error. If you want the bottom step near 18 cm, use the flush mount or change the rise and total-rise combination.

2

Checking headroom under a floor opening

Situation: A flush-mounted flight with a 2.70 m total rise, 28 cm run and 18 cm rise passes under a floor with a 23 cm structure and a 2.00 m required headroom.

Inputs

Total rise2.70 m2.70\ \mathrm{m}
Run of one step28 cm28\ \mathrm{cm}
Rise of one step18 cm18\ \mathrm{cm}
Floor thickness23 cm23\ \mathrm{cm}
Distance to restriction1.50 m1.50\ \mathrm{m}

Result

HclearH_{\mathrm{clear}}==2.70−0.232.70 - 0.23−-(⌈4.20−1.500.28⌉−1)\left(\left\lceil\frac{4.20 - 1.50}{0.28}\right\rceil - 1\right)×0.18\times 0.18−0.18- 0.18==0.67 m0.67\ \mathrm{m}

That is below the 2.00 m requirement. If the opening is extended to 4.20 m4.20\ \mathrm{m} from the top of the flight, the page returns 2.47 m2.47\ \mathrm{m} and the warning clears.

In practice: Extending the floor opening moves the restriction farther from the top of the flight and raises the clear height. Re-check the smallest clearance point after any change to the opening, the floor thickness or the tread run.

Measuring and checking

Measure the finished floor to the finished floor

Hold the tape vertically and include the floor finish at the top. A 20 mm hardwood layer changes the last riser, and it is easy to measure to the subfloor by mistake.

Keep the nosing out of the tread run

The run is the horizontal depth of the tread you step on. If the nosing projects over the riser, measure the tread itself rather than the overall projection, or the same nosing will be counted twice.

Check more than one point

Floors are rarely perfectly level. Measure the total rise at both ends of the flight and use the largest value; check the headroom at the lowest point under the opening, not at the first tread.

Compare both step families before cutting

The same total rise and tread can produce a different count, total run and bottom step in the two families. If the bottom step comes out much taller than the rest, change the rise or the mount rather than forcing the first cut.

Check the guard separately

This page dimensions the flight; it does not count balusters, size a handrail or check the gap a child could pass through. Once the stair geometry is fixed, use the baluster calculator to work out the guard infill for the railing run.

Questions

Q

Why did the step count change when I switched from “rise of one step” to “number of steps”?

The two modes answer different questions. With the rise fixed, the page rounds H/rH/r down and puts the remainder into the bottom step. With the count fixed, the page divides the total rise evenly, so r=H/Nr = H/N. If you type the count directly in the rise-known mode, the count stays put and the rise moves instead. The same total rise and tread therefore do not have to produce the same count in both menus.

Q

Why is the bottom step taller than the others?

It absorbs the leftover height after the count is rounded down. The calculation is rb=H−r(N−1)r_b = H - r(N-1). In a flush mount, a value close to the normal rise means the numbers divide cleanly. In a standard mount, the bottom step is normally about two rises even when the division is exact; a much taller value means the selected rise and total rise do not suit each other. Try a different rise, a different step count, or the other mount.

Q

What is the difference between a standard and a flush mount?

In a standard mount the top tread sits one step below the upper floor, so the mount offset is −1-1. In a flush mount the last tread is level with the floor, so the offset is 00. That one value changes the solved count, the total run, the stringer height and the bottom step.

Q

Does passing the built-in checks mean the stairs meet my local code?

No. The page runs the checks it knows about — the rise, run, total-rise and headroom thresholds shown in the warnings — but local amendments, seismic or wind requirements, structural member sizing, connections, landings, guards and egress rules are outside this model. Treat a green result as geometry that fits, not as a permit.

Limits and code checks

The arithmetic is exact for the model, but the model is one straight flight of geometry. It is not a structural design, and it does not replace the code that applies where you build.

What this page does not design

It does not choose the stringer board, check bending or deflection, design connections, footings or landings, or verify handrail and guard loads. It also does not model winders, curved flights, spiral stairs or a flight broken by an intermediate landing.

If you need a concrete quantity rather than a geometry check, the concrete stairs calculator takes the step count, tread, rise, throat depth and width and returns the volume to order. If the stair turns as it rises, start with the spiral staircase calculator instead; the straight-flight formulas here do not describe it.

The built-in warnings use the 2015 International Residential Code figures that the calculator was written around: a maximum rise of 7.75 in (196 mm), a minimum run of 10 in (254 mm), a maximum total rise of 147 in (3,734 mm) between landings, and a default headroom of 6 ft 8 in (2,032 mm). The required headroom is editable because a local code or a particular use may set a different number. Check the edition and amendments that apply to your project before relying on those defaults.

The headroom model assumes a horizontal floor opening and a simple rectangular restriction. Sloped ceilings, a landing inside the opening, a trimmed opening with a different edge, or a change in the tread run near the top all need a separate check.

For a permitted project, have the dimensions and the structural details reviewed by a qualified designer or engineer who knows your local code. The calculator can tell you whether the flight fits the space and whether the basic proportions look reasonable; it cannot certify the stair.

Stair Calculator - Rise, Run and Stringer Dimensions