
What the calculator actually solves
A stair stringer calculator starts from two measurements you take on site: total rise, the vertical distance from the lower finished floor to the upper finished floor, and total run, the horizontal distance available for the staircase to occupy. From those two numbers it divides the rise by a target riser height — typically 7-7.75 in (175-190 mm) — to find a whole number of risers, then divides the run by one fewer treads (since the top tread is usually the upper floor itself) to check the run fits. The output is a single riser height and a single tread depth that must be identical on every step; building code in both the US and UK is strict about this because an inconsistent step is the single biggest cause of stair falls.
This is a different tool from a stair runner calculator, which works out carpet length rather than timber geometry, but the two are related in practice: once your stringer layout is fixed, the tread and riser dimensions it produces are exactly what a stair runner length calculator needs to work out how much carpet the finished flight will take.
From numbers to a layout diagram
The diagram is where the calculation becomes something you can actually mark on a board. A stringer layout diagram shows a repeating right-angle triangle — riser height as the vertical leg, tread depth as the horizontal leg — stepped along the length of the stringer board, with the top and bottom cuts adjusted to account for the thickness of the tread and the finished floor at each end. Reading a diagram without understanding these end adjustments is the most common reason first-time builders cut a stringer that is a full riser too tall or too short.
| Input | Typical range (US) | Typical range (UK) | Purpose |
|---|---|---|---|
| Total rise | 96-108 in per floor | 2.4-2.7 m per floor | Vertical distance the stair must climb |
| Total run available | 9-14 ft | 2.7-4.3 m | Horizontal space the stair can occupy |
| Riser height (target) | 7-7.75 in (IRC max 7.75 in) | 150-220 mm (Part K max 220 mm) | Height of each step, must be uniform |
| Tread depth (target) | 10-11 in (IRC min 10 in) | 220-350 mm (Part K min 220 mm) | Depth of each step, must be uniform |
| Stringer board | 2x12 lumber, min | 47x220 mm timber, min | Material the triangles are cut from |
A worked example
Take a total rise of 108 in (2.74 m). Dividing by a target riser of 7.2 in gives 15 risers, so 108 divided by 15 is exactly 7.2 in per step — a clean number that satisfies US code (IRC R311.7 caps risers at 7.75 in) and UK code alike (Approved Document K caps them at 220 mm, and 7.2 in is roughly 183 mm, comfortably within range). With 15 risers there are 14 treads, since the top riser lands you on the upper floor rather than needing its own tread. If the available run is 11 ft 8 in (3.56 m), dividing by 14 treads gives just under 10 in (254 mm) per tread, which clears both the US minimum of 10 in and the UK minimum of 220 mm.

Those two figures, 7.2 in riser and 10 in tread, are what get marked out repeatedly down the stringer board using a framing square, with a stop clamped to the square's blade at exactly those two dimensions so every triangle is identical. The diagram exists to show you where the very first and very last triangles differ from the rest — the bottom is usually trimmed by the thickness of one tread board, and the top is trimmed to sit flush against the header joist.
- Confirm total rise and total run on site with a laser or tape measure, not from a plan drawing, since floors settle and finishes vary.
- Run the numbers through a stair calculator to get a riser height and tread depth that both satisfy your local code minimums and maximums.
- Sketch or print the resulting layout diagram so you can see the top and bottom trim adjustments before marking the board.
- Select a straight stringer board free of large knots, at minimum the size your code and span table require.
- Mark the first triangle with a framing square and a clamped stop, then walk the square down the board repeating the same two settings.
- Cut one stringer fully, test-fit it against the opening, and only then use it as a template to mark the remaining stringers.
Why uniformity matters more than the exact number
Both US and UK inspectors will fail a staircase for inconsistent steps even if every individual riser is within the legal maximum. A variance of more than about 3/8 in (10 mm) between the tallest and shortest riser in a flight is the most commonly cited stair defect on inspection reports, because it is exactly the kind of thing a tired foot does not expect and trips on.
Reading the diagram against a real board
Most confusion with stringer diagrams comes from the difference between the calculated line and the actual cut line. The calculation gives you riser and tread lines, but the cut removes the diagram line entirely and leaves the tread supported on the horizontal shoulder beneath it, with the tread board itself sitting on top of that shoulder. If you cut exactly on the marked line rather than allowing for the tread thickness sitting above it, your finished riser heights will be short by the tread thickness on every step except the bottom one, since the bottom riser is measured to the floor rather than to another tread.
This tread-thickness offset is the detail a layout diagram is best at showing and a bare list of numbers is worst at showing, which is why builders who work from diagrams rather than raw dimensions make far fewer top-and-bottom-riser mistakes. If you are building a run with a landing partway up, the diagram also needs to show where the flight splits and how the two stringer sections relate to the landing framing — get this wrong and the two flights will not meet at a consistent riser height either side of the landing.
Open versus closed stringer layouts
An open stringer, cut with the sawtooth profile visible from the side, is what most DIY layout diagrams show because it is the style built from dimensional lumber without a router or specialist tooling. A closed stringer, where the treads and risers are housed into dado grooves in an uncut board, uses the same rise-and-run numbers from the calculator but a different marking process entirely — the diagram for a closed stringer shows groove positions rather than a cut profile, and cutting those grooves accurately usually needs a router jig rather than a handsaw and framing square.
For most outdoor deck stairs and utility staircases, an open stringer built from the calculator's numbers and a printed layout diagram is well within reach of a competent DIYer with basic tools. For a finished indoor staircase where the stringer itself will be visible and painted or stained, many people bring in a joiner for the closed-stringer work but still use the calculator themselves first, simply to check the quote they are given uses sensible riser and tread numbers rather than squeezing in an extra step to save material.
Still deciding on material, width or pattern? Our hub on stair runners compares weaves, widths, backings and fitting styles side by side, then hands the numbers straight to the calculator.
Frequently asked questions
What is the difference between a stair calculator and a stringer layout diagram?
The calculator works out the riser height and tread depth from your total rise and run. The layout diagram then shows how those two dimensions repeat down the stringer board, including the top and bottom trim adjustments, so you have an accurate picture to mark and cut from rather than just two numbers.
How many risers do I need for a given total rise?
Divide the total rise by a target riser height, typically 7-7.75 in (175-190 mm) in the US or 150-220 mm in the UK, and round to the nearest whole number. Then divide the exact total rise by that whole number to get the precise, uniform riser height every step must share.
Why does the number of treads differ from the number of risers?
The top riser lands you on the upper finished floor, which acts as the final tread, so a flight with 15 risers has only 14 treads on the stringer itself. Forgetting this one-step difference is a common cause of a stringer being cut a full step too long.
What riser and tread limits does US and UK code allow?
US code, IRC R311.7, generally caps risers at 7.75 in and requires a minimum 10 in tread depth. UK code, Approved Document K (Part K), caps risers at 220 mm and requires a minimum 220 mm tread (going), with somewhat different allowances for private stairs versus common ones.
Do I need to allow for tread thickness when cutting a stringer?
Yes. The marked riser line on the stringer is where the tread's top surface will sit, not where the cut itself falls, so failing to account for tread board thickness on intermediate steps produces risers that are inconsistent with the bottom step, which is measured directly to the floor.
Can I use the same layout diagram for open and closed stringers?
No. An open stringer diagram shows a sawtooth cut profile, while a closed stringer diagram shows groove positions housed into an uncut board. Both start from the same riser and tread numbers from the calculator, but the marking and cutting process differs significantly between the two.
How accurate does my on-site measurement need to be before I calculate?
Measure total rise and run to within about 1/8 in (3 mm) using a laser measure or a straight batten and level, since floors are rarely perfectly flat. Small measurement errors compound across multiple risers and can push a calculated riser height outside the legal range.
Does a stringer layout calculator help with a stair runner as well?
Indirectly, yes. Once the calculator fixes your riser height and tread depth, those exact figures are what a stair runner length calculator needs to work out how much carpet the finished flight requires, since runner length depends entirely on the geometry of each step.
Know your numbers in 30 seconds
Enter your step count, tread depth and riser height — the stair runner calculator gives you the exact length to order, in metres and feet, with waste included.
Run your own stringer layoutReady for real prices?
Get quotes from vetted stair runner suppliers and fitters near you. Free, no account, no obligation.
Every guide is written from hands-on measuring and fitting experience, checked against the calculator’s own maths, and re-reviewed whenever prices or methods change. Read our editorial standards.