Stair Calculator — Rise, Run, Stringer & Code Check
● Live · Code-checked · Free

Stair Calculator

Design a safe, comfortable staircase from a single measurement. Enter your total rise and this calculator works out the number of steps, exact riser height, tread depth, total run, stair angle, and stringer length — then checks every dimension against IRC or IBC building code as you type.

Stair details

Everything updates live, including the drawing and code checks.

Stair type
Measurements
in
in
in
in
in
in
The turn happens here. Landing depth is taken as the stair width.
in
°
Building code & material
in
in
Cost (optional)
$
$
$
%
Straight stair · IRC Code OK
Side elevation
Risers (steps)
14
Riser height
7.71 in
Treads13
Tread depth excluding nosing10.5 in
Total run horizontal length136.5 in
Stair angle36.3°
Stringer length add extra for cuts174.1 in
Comfort rule 2 × riser + tread25.9 in
Approx. footprint
Building code check
Material estimate

Design estimate from your inputs. Always confirm against your local building code before you cut.

Quick answer

To calculate stairs, divide the total rise (floor-to-floor height) by your target riser height and round to a whole number — that is your number of risers. Then divide the total rise by that number for the exact riser height. Treads equal risers minus one, and total run = treads × tread depth. Stringer length = √(rise² + run²). A 108 in rise needs 14 risers at 7.71 in with a 136.5 in run.

At a glance

Key facts

Stair types
8 types
Codes checked
IRC · IBC · custom
Units
mm · cm · m · in · ft
Core formula
Rise ÷ risers
Calculation time
Instant
Last updated
2026
Getting started

How to use the stair calculator

Five steps. The elevation drawing, dimensions, and code checks all update as you type.

Pick the stair type

Straight, L-shaped, U-shaped, spiral, deck, concrete, floating, or custom. Each type sets sensible starting dimensions you can still edit.

Measure the total rise

Measure from the finished lower floor to the finished upper floor — not floor to ceiling. This single number drives the whole design.

Set your target riser and tread

Enter the riser height you want and the tread depth. The calculator rounds to a whole number of risers and gives you the exact riser height to build.

Choose your code

Select IRC for residential or IBC for commercial. Every dimension is checked live against the limits, with pass, warning, or fail flags.

Read the layout & export

Get the run, angle, stringer length, material list, and cost. Then print the stringer cut template, copy, share, export CSV, or save the design to compare.

Transparent math

Formula & method

Stair design starts from one fixed number — the total rise — and works outward. Every step of that logic is shown here with worked figures.

1. Risers and riser height

Number of risers = round( Total rise ÷ Desired riser height ) Exact riser height = Total rise ÷ Number of risers # Risers must be whole numbers and all equal — code allows # no more than 3/8 in (9.5 mm) variation between the tallest and shortest.

2. Treads, run and angle

Number of treads = Number of risers − 1 # top riser lands on the floor Total run = Treads × Tread depth Stair angle = arctan( Riser height ÷ Tread depth )

Why treads = risers − 1: the last riser brings you up to the finished floor, which acts as the final tread. Forgetting this is the most common stair-layout mistake and leaves you one tread short.

3. Stringer length (Pythagoras)

Stringer length = √( Total rise² + Total run² ) # Buy longer stock: add ~12 in / 300 mm for the top and bottom cuts.

4. Comfort and code rules

Blondel rule 2 × Riser + Tread = 24–25 in (610–635 mm) IRC maximum riser 7.75 in · minimum tread 10 in IBC maximum riser 7.00 in · minimum tread 11 in Minimum headroom 6 ft 8 in (2032 mm) measured vertically from the nosing line

Example — a 108 in (9 ft) floor-to-floor rise with a 7.5 in target riser: 108 ÷ 7.5 = 14.4, which rounds to 14 risers. Exact riser height = 108 ÷ 14 = 7.71 in. Treads = 13, so with a 10.5 in tread the total run is 136.5 in. The angle is arctan(7.71 ÷ 10.5) = 36.3°, and the stringer is √(108² + 136.5²) = 174.1 in.

Rounding matters. Rounding 14.4 down to 14 risers gives a 7.71 in riser; rounding up to 15 gives 7.20 in and adds a tread, which lengthens the run by about 10.5 in. If floor space is tight, more risers means a steeper-looking but shorter-run stair; if you have room, fewer risers is more comfortable. Always check the result against the code limits either way.
Reference table

30 worked stair examples

Common staircases in imperial and metric, calculated with the same formulas as the tool above.

#ProjectTotal riseRisersRiser heightTreadTotal runAngle
1Residential indoor stair108 in147.71 in10.5 in136.5 in36.3°
2Basement stair96 in137.38 in10 in120.0 in36.4°
3Second-floor stair117 in167.31 in10.5 in157.5 in34.9°
4Garage step-up21 in37.00 in11 in22.0 in32.5°
5Deck stair (low)36 in57.20 in11 in44.0 in33.2°
6Deck stair (standard)48 in68.00 in11 in55.0 in36.0°
7Deck stair (tall)72 in107.20 in11 in99.0 in33.2°
8Porch steps24 in46.00 in12 in36.0 in26.6°
9Outdoor concrete steps42 in67.00 in12 in60.0 in30.3°
10Loft stair (steep)84 in108.40 in9 in81.0 in43.0°
11Tiny-house stair90 in118.18 in9 in90.0 in42.3°
12Attic stair99 in128.25 in9.5 in104.5 in41.0°
13Office stair (IBC)144 in216.86 in11 in220.0 in31.9°
14Commercial stair (IBC)132 in196.95 in11 in198.0 in32.3°
15School stair (IBC)156 in236.78 in11.5 in253.0 in30.5°
16Steel access stair120 in177.06 in11 in176.0 in32.7°
17Floating stair110 in166.88 in11 in165.0 in32.0°
18Split-level stair60 in87.50 in10.5 in73.5 in35.5°
19Sunken living room14 in27.00 in11 in11.0 in32.5°
20Pool deck stair30 in47.50 in11 in33.0 in34.3°
21House stair (metric)2,700 mm15180 mm280 mm3,920 mm32.7°
22Apartment stair2,600 mm15173 mm270 mm3,780 mm32.7°
23Villa stair3,000 mm18167 mm290 mm4,930 mm29.9°
24Basement (metric)2,400 mm13185 mm260 mm3,120 mm35.4°
25Duplex stair2,850 mm16178 mm280 mm4,200 mm32.5°
26Garden steps900 mm6150 mm320 mm1,600 mm25.1°
27Terrace steps1,200 mm8150 mm300 mm2,100 mm26.6°
28Office stair (metric)3,300 mm20165 mm300 mm5,700 mm28.8°
29Loft stair (metric)2,500 mm13192 mm240 mm2,880 mm38.7°
30Warehouse stair3,600 mm20180 mm270 mm5,130 mm33.7°

Riser height is the exact value after rounding to a whole number of risers. Total run assumes a single straight flight; L- and U-shaped stairs add a landing.

Make sense of it

Understanding your result

What the numbers mean before you order material or start cutting.

Riser height

Build this exactly

Every riser must be the same height within 3/8 in (9.5 mm). Uneven risers are the leading cause of stair falls, because people step to the rhythm the first tread sets.

Stair angle

Comfort zone

Between 30° and 37° feels comfortable for everyday use. Steeper than 42° becomes a ladder-like climb and usually fails residential code.

Total run

Check your space

The horizontal floor length the stair consumes. If the run does not fit, switch to an L- or U-shaped layout with a landing rather than steepening the stair.

Stringer length

Order longer stock

The diagonal distance. Add roughly 12 in (300 mm) for the top and bottom cuts, and remember the bottom riser is cut down by the tread thickness.

Common mistakes: measuring floor-to-ceiling instead of floor-to-finished-floor; forgetting that treads = risers − 1; ignoring finished flooring thickness, which changes the first and last riser; and failing to drop the bottom riser by the tread thickness when cutting stringers. Pro tip: always dry-fit one stringer and check the first and last riser heights before cutting the rest.
Compare

How your choices change the stair

These update live. The first shows what happens if you add or remove a riser; the second checks your design against the comfort and code envelope.

Riser count trade-off

Riser height and total run for nearby riser counts. Your current design is highlighted.

Other optionsYour design

Comfort & code envelope

Your riser and tread combination plotted against the safe zone.

Code-compliant zoneYour design
Reference

Stair code requirements compared

The dimensional limits most often checked by inspectors. IRC governs most one- and two-family homes in the US; IBC covers commercial and multi-family buildings.

RequirementIRC (residential)IBC (commercial)Notes
Maximum riser height7.75 in (197 mm)7 in (178 mm)Measured vertically between tread nosings
Minimum tread depth10 in (254 mm)11 in (279 mm)Nosing to nosing, excluding overhang
Minimum headroom6 ft 8 in (2032 mm)6 ft 8 in (2032 mm)Vertical, from the nosing line
Minimum stair width36 in (914 mm)44 in (1118 mm)IBC narrows to 36 in for low occupant loads
Riser / tread variation3/8 in (9.5 mm)3/8 in (9.5 mm)Largest minus smallest within a flight
Nosing projection0.75–1.25 in0.75–1.25 inRequired where treads are under 11 in
Handrail height34–38 in34–38 inAbove the nosing line
Guard height36 in (914 mm)42 in (1067 mm)Where the drop exceeds 30 in
Max rise between landings151 in (12 ft 7 in)144 in (12 ft)A landing is required beyond this
Spiral: min tread depth6.75 in at 12 inMeasured 12 in from the narrow edge
Spiral: max riser9.5 in (241 mm)Minimum headroom 6 ft 6 in

Figures reflect widely adopted recent editions of the IRC and IBC. Local amendments are common and always take precedence — confirm with your building department before construction.

The complete guide

How to design and build a staircase

What a stair calculator does

A stair calculator turns one measurement — the total rise from finished floor to finished floor — into a complete, buildable staircase layout. It works out how many risers you need, how tall each one must be, how many treads that gives you, how much floor length the stair will consume, what angle it sits at, and how long the stringers need to be. Doing this by hand is possible but easy to get wrong, and stair dimensions are unforgiving: an error of a few millimetres repeated across fourteen steps becomes a trip hazard and a failed inspection.

The reason the calculation starts with the rise is that the rise is fixed. The floor above is where it is, and every riser in the flight must be equal, so the total rise has to divide evenly into a whole number of risers. Everything else — tread depth, run, angle — follows from that division and from the space you have available.

Building code requirements

Stairs are among the most heavily regulated elements of a building, because they cause a large share of home injuries. In the United States, the International Residential Code (IRC) governs most one- and two-family homes, and the International Building Code (IBC) covers commercial and multi-family construction. The two differ in ways that matter: the IRC permits a maximum riser of 7.75 in with a minimum tread of 10 in, while the IBC tightens this to a 7 in riser and an 11 in tread, producing a shallower, more gradual stair suited to public buildings.

Both codes require a minimum headroom of 6 ft 8 in measured vertically from the nosing line, limit the variation between the tallest and shortest riser in a flight to 3/8 in, and require a landing where the vertical rise between floors exceeds roughly 12 ft. Other jurisdictions have their own rules — the UK's Approved Document K, the Eurocodes, and Australian and Canadian standards all set comparable but not identical limits. Local amendments are common everywhere, so treat any calculator output as a design starting point and confirm it with your building department.

Ideal riser height

The riser is the vertical face between treads. Comfortable riser heights for everyday residential use fall between about 6.5 and 7.75 in (165–197 mm), with roughly 7 to 7.5 in being the sweet spot most people find natural. Lower risers feel gentle but require more treads and therefore more floor space; higher risers save space but tire people faster and are more dangerous going down. Because all risers must be equal, the calculator divides your total rise by a whole number of steps and gives you the exact value to build — which will rarely be the round number you started with.

One subtlety catches many builders: finished flooring. If you calculate from the subfloor but then add 3/4 in of hardwood at the top and tile at the bottom, your first and last risers will no longer match the rest. Always calculate from finished floor to finished floor, or account for the flooring thickness explicitly.

Ideal tread depth

The tread depth, also called the going, is the horizontal distance you actually step on, measured nosing to nosing. Deeper treads are safer, particularly on the way down, because more of the foot lands on the step. Residential minimums start at 10 in under the IRC, but 11 in is noticeably more comfortable and is the IBC requirement. Deep treads combined with tall risers, or shallow treads with short risers, both feel wrong — which is why the trade uses proportion rules rather than treating the two dimensions independently.

The best-known is the Blondel rule: two risers plus one tread should total 24 to 25 in (610–635 mm). A 7 in riser with an 11 in tread gives 25 in and feels excellent. A 7.75 in riser with a 10 in tread gives 25.5 in, which is at the steep end but still legal residentially. If your combination falls far outside that band, the stair will feel awkward even if each individual dimension passes code.

Stair pitch and comfort

Pitch is the angle of the stair, calculated as the arctangent of riser divided by tread. Most comfortable staircases land between 30° and 37°. Below 30° the stair feels shallow and eats floor space; above about 42° it becomes a steep climb that most codes disallow for primary stairs. Ladders and ship's stairs run much steeper and are only permitted for restricted uses such as lofts and access hatches, under specific exceptions.

Headroom

Headroom is measured vertically from a line drawn along the tread nosings to the ceiling or any obstruction above, and both major US codes require at least 6 ft 8 in. It's easy to overlook when a stair passes under a floor opening or a sloping ceiling, and it's expensive to fix afterwards. Check headroom at the tightest point, which is usually where the stair passes the edge of the upper floor opening — lengthening that opening is the usual remedy.

Stringer design

Stringers are the sloped structural members that carry the treads. A cut stringer has the sawtooth profile notched out of it; a housed stringer has the treads let into routed grooves. The stringer's diagonal length is simply the hypotenuse of the total rise and total run, but you should buy stock longer than the calculated figure to allow for the top and bottom cuts. Typical residential stairs use two or three stringers for a 36 in width, adding more for wider stairs or thinner treads.

The classic cutting technique uses a framing square set with stair gauges at the riser height and tread depth, stepped along the board once per tread. Critically, the bottom of the stringer must be "dropped" by the thickness of the tread material — otherwise the first step ends up one tread thickness taller than the rest, which is precisely the kind of uneven riser that fails inspection.

Landings and turns

A landing is a flat platform that interrupts a flight. Codes require one where the vertical rise exceeds around 12 ft, and they are also how you turn a staircase: an L-shaped stair uses a landing to make a 90° turn, and a U-shaped stair uses one to double back 180°. Landings must be at least as deep as the stair is wide, and they are useful for fitting a long stair into a short floor plan — turning the stair rather than steepening it is almost always the better answer when the run doesn't fit.

Winders — tapered treads that turn a corner without a flat landing — save even more space but have stricter rules, since the narrow end of the tread is a fall risk. Where possible, prefer a proper landing.

Handrails and guards

A handrail is the graspable rail you hold while climbing; a guard is the barrier that stops you falling off the open side. Handrails are typically required on at least one side of any flight with four or more risers, mounted 34 to 38 in above the nosing line, and must be continuous and graspable along the flight. Guards are required where the drop exceeds 30 in, at 36 in high residentially and 42 in commercially, with balusters spaced so that a 4 in sphere cannot pass between them — the rule that keeps small children safe.

Deck, concrete, steel and floating stairs

Deck stairs are exterior wood stairs, usually with wider treads made from decking boards and slightly taller risers, and they need weather-resistant fasteners and a solid footing at the base. Concrete stairs are formed and poured as a single mass, so the calculation shifts from counting boards to computing the volume of concrete in the stepped profile. Steel stairs use fabricated stringers with bolted or welded treads and are common for access and industrial use. Floating stairs omit risers entirely for a lighter look; they must still satisfy riser and tread rules, and open risers cannot allow a 4 in sphere to pass.

Spiral stairs

Spiral stairs wind around a central pole and are governed by their own rules, because tread depth varies across the width. The IRC measures the minimum tread depth of 6.75 in at a point 12 in from the narrow edge, allows a taller maximum riser of 9.5 in, and reduces required headroom to 6 ft 6 in. They are a superb space saver — the footprint is just the diameter — but they are hard to carry furniture up and are usually not permitted as the only means of egress from a floor.

Accessibility

Accessible design goes beyond minimum code. Uniform risers and treads, continuous handrails on both sides with extensions past the top and bottom, contrasting nosings that are visible to people with low vision, and avoiding open risers all make a stair usable by more people. Where accessibility is a requirement rather than a preference, the ADA and equivalent standards set specific rules, and a ramp or lift may be needed alongside the stair.

Professional tips and common mistakes

  • Measure finished floor to finished floor, not subfloor to subfloor, and not floor to ceiling.
  • Remember treads = risers − 1 — the upper floor is the last tread.
  • Drop the stringer by the tread thickness before cutting the bottom.
  • Keep every riser equal within 3/8 in; the first and last are where errors hide.
  • Check headroom at the floor opening before you commit to the layout.
  • Dry-fit one stringer and test it in place before cutting the rest.
  • Confirm with your inspector early — a five-minute conversation is cheaper than rebuilding a flight.
Answers

Frequently asked questions

The questions people ask most about stair design. Tap any question to expand.

Divide the total rise (finished floor to finished floor) by your target riser height and round to a whole number — that's your riser count. Divide the total rise by that number for the exact riser height. Treads = risers − 1, total run = treads × tread depth, and stringer length = √(rise² + run²).
A 9 ft floor-to-floor rise is 108 in. With a 7.5 in target riser that's 14.4, rounding to 14 risers at 7.71 in each, giving 13 treads. With a 10.5 in tread the total run is 136.5 in. Note that floor-to-floor height includes the floor structure, so it's more than the 9 ft ceiling height alone.
Around 7 to 7.5 in (178–190 mm) for the riser and 10 to 11 in (254–280 mm) for the tread suits most homes. Check the Blondel rule as well: two risers plus one tread should total 24–25 in (610–635 mm) for a comfortable stair.
Because the last riser lifts you onto the upper floor, which serves as the final tread. A flight with 14 risers therefore has 13 treads. Forgetting this is the single most common stair layout error.
Under the IRC, which governs most US homes, the maximum riser is 7.75 in (197 mm). The IBC, used for commercial buildings, limits it to 7 in (178 mm). Spiral stairs are allowed up to 9.5 in under the IRC. Local amendments can differ, so always confirm.
The IRC requires at least 10 in (254 mm) and the IBC at least 11 in (279 mm), measured nosing to nosing. Where the tread is under 11 in, a nosing projection of 0.75–1.25 in is required.
Use Pythagoras: stringer length = √(total rise² + total run²). For a 108 in rise and 136.5 in run that's about 174 in. Buy stock at least a foot longer to allow for the top and bottom cuts.
Between 30° and 37° is comfortable for everyday use. Above roughly 42° a stair becomes a steep climb and usually fails residential code for a primary staircase. The angle is arctan(riser ÷ tread).
Typically three for a 36 in wide stair, with more as the width grows or the tread material gets thinner. Space them so the treads don't deflect underfoot — commonly no more than 16–18 in apart, and follow the tread manufacturer's span rating.
Both the IRC and IBC require 6 ft 8 in (2032 mm), measured vertically from a line along the tread nosings. Spiral stairs under the IRC need 6 ft 6 in. Check it at the tightest point, usually at the edge of the floor opening.
A landing is required where the vertical rise between floors exceeds about 12 ft (144 in under the IBC, 151 in under the IRC), and wherever the stair changes direction. A landing must be at least as deep as the stair is wide.
A typical 14-riser straight flight needs roughly 11 ft of floor length plus landing space top and bottom. If that doesn't fit, an L- or U-shaped layout with a landing folds the run into a smaller footprint — a far better solution than making the stair steeper.
Exactly the same way, but measure the total rise from the finished ground or landing pad to the top of the deck surface. Deck stairs often use an 11 in tread from decking boards, and need a solid footing at the base plus weather-rated fasteners.
For solid steps on grade, the volume is width × riser × tread × N(N+1)/2, where N is the number of treads. Select the concrete stair type above and the calculator computes the volume in cubic meters, cubic feet and cubic yards.
A proportion rule from 17th-century French architect François Blondel: two riser heights plus one tread depth should total 24–25 in (610–635 mm). It captures the natural stride and is still the quickest test of whether a stair will feel right.
No. Code limits the variation between the tallest and shortest riser in a flight to 3/8 in (9.5 mm). People climb to the rhythm the first step sets, so an odd riser — usually the first or last — is a genuine fall hazard.
Before cutting the bottom of the stringer, subtract the thickness of the tread material from the first riser. Without this "drop", the first step ends up one tread thickness taller than every other step once the treads are installed.
Between 34 and 38 in (864–965 mm) above the nosing line, under both the IRC and IBC. Handrails are generally required on flights of four or more risers and must be continuous and graspable.
Close enough that a 4 in (102 mm) sphere cannot pass between them. In practice that usually means two balusters per tread. Guards are required wherever the drop exceeds 30 in.
Yes, with their own rules. The IRC requires a minimum tread depth of 6.75 in measured 12 in from the narrow edge, allows a maximum riser of 9.5 in, and requires 6 ft 6 in headroom and 26 in clear width. They usually cannot serve as the sole means of egress from a floor.
Yes, significantly. Always measure finished floor to finished floor. If you calculate from the subfloor and later add hardwood upstairs or tile downstairs, the first and last risers will differ from the rest and may fail inspection.
Yes, completely free with no sign-up. You get the full layout, a live elevation drawing, a printable stringer cut template, code checks, material quantities and costs, plus save, copy, share, CSV export and print.
For a simple deck or basement stair, a careful DIY layout checked against local code is often enough. For structural stairs in a new build, unusual designs such as floating or cantilevered stairs, or anything commercial, involve a qualified architect, engineer or contractor — and confirm the design with your building department first.
Editorial

Author & reviewer

CC
Written by
CalculatorSearch Construction Team
Practical building & renovation content, updated regularly. Reading time: ~15 min.
LB
Reviewed by
Licensed builder
Reviewed for code accuracy and site practice. Last updated 2026. Replace with your named builder, architect or PE for full construction E-E-A-T.

Sources & references

International Code Council (ICC)
Publisher of the IRC and IBC model codes.
International Residential Code (IRC)
Section R311.7 — stairways, risers, treads and handrails.
International Building Code (IBC)
Section 1011 — stairway dimensions for commercial use.
OSHA
Workplace stair and fixed-ladder requirements.
American Wood Council (AWC)
Wood construction and stringer span guidance.
NAHB & local building regulations
Residential construction practice and local amendments.
Disclaimer. This Stair Calculator provides estimates based on the measurements, design preferences, and assumptions you enter. Actual stair dimensions, materials, and code requirements may vary depending on local building regulations, structural conditions, and construction methods. Always verify your design with applicable building codes and consult a qualified architect, engineer, or contractor before construction.