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
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
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.
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 and a flush mount.
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 and . The page now has enough to solve the rest of the flight.
Read the solved flight
With a flush mount the mount offset is , so the numbers come out as follows:
The stringer height is , the stringer length is and the pitch is . The last tread is at floor level, which is what makes the bottom step equal to the rest in this flush-mount example.
Check comfort, bottom step and headroom
The comfort check is , 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 know | The page solves | Use it when |
|---|---|---|
| Run of one step + rise of one step | Step count, total run, bottom step, stringer | You have a tread and riser target |
| Total run + rise of one step | Individual run, step count, bottom step, stringer | The horizontal space is fixed |
| Run of one step + number of steps | Rise, total run, stringer | The step count is fixed |
| Total run + number of steps | Rise, individual run, stringer | Both overall dimensions are fixed |
Step count and total run
is the total rise, is the rise of one step and is the mount offset: for a standard mount and 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.
In the rise-known family, total run is simply the tread run multiplied by the solved step count. In the steps-known family the count is yours, so the page uses instead. That extra 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 , 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
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
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 .
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
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 and the horizontal distance to the restriction . In the rise-known family it uses:
In the steps-known family the same idea is written with the rise that was divided evenly:
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.
Worked examples
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
Result
The stringer height drops to and the stringer length to . The pitch stays at , 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.
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
Result
That is below the 2.00 m requirement. If the opening is extended to from the top of the flight, the page returns 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
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 down and puts the remainder into the bottom step. With the count fixed, the page divides the total rise evenly, so . 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.
Why is the bottom step taller than the others?
It absorbs the leftover height after the count is rounded down. The calculation is . 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.
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 . In a flush mount the last tread is level with the floor, so the offset is . That one value changes the solved count, the total run, the stringer height and the bottom step.
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.
Related Calculators
Board Foot Calculator
Calculate board feet from lumber dimensions. Convert timber volume measurements across different unit systems.
Bolt Circle Calculator
Lay out a circular bolt pattern: turn the hole count, radius, first-hole angle and centre offset into an x and y coordinate for every hole.
Bowl Segment Calculator
Turn a segmented bowl's segment count, outer radius, wall thickness and allowances into cut-ready segment lengths, blank thickness and cutting angle.
Material Removal Rate Calculator
Work out how much material a machining pass removes per minute for turning, milling, grooving, drilling or grinding. Enter the cut geometry and the cutting speed, read the removal rate in ten flow units, or leave one box empty to solve back for it.
Beam Deflection Calculator
Find how far a simply supported or cantilever beam bends under a point load, a uniform load, a linearly varying load, a triangular load or an end moment. Enter the span, the load and the flexural rigidity, or the modulus of elasticity and area moment of inertia separately, and read the maximum deflection and where it occurs.
Square Yards Calculator
Multiply a length and a width into square yards and price the material. Seven length units, nine area units from square centimeters to acres, and twenty currencies converted at live exchange rates.