Audited 27 Jul 2026·Last updated 28 Oct 2026·5 citations·Tier 1·0 uses

Stair Calculator

Find how many risers and treads a straight stair needs from its total rise, with total run, pitch, 2R + T comfort and IRC or OSHA riser and tread checks.

Stair Calculator

Stair standard / code check
Number of risers
14
How many risers the flight has: the number of vertical lifts from the lower floor to the upper one, including the last lift onto the upper floor.
Actual riser height
7.7143
Number of treads
13
Total run
136.5
Total run
11.375
Stair pitch angle
36.3045
Comfort value (2R + T)
25.9286
Riser check
Pass: 7.714 in riser is at or under the 7.75 in residential maximum
Tread check
Pass: 10.5 in tread meets the 10 in residential minimum
Pitch check
Not checked: only the OSHA setting tests the pitch angle
Single-flight rise check
Pass: 108 in total rise fits one flight (IRC maximum 151 in)

Background.

Ask how many steps a stair needs and the answer hangs on one measurement: the vertical distance from the finished floor at the bottom to the finished floor at the top. Divide that rise into equal risers and everything else follows from it — how far the flight reaches into the room, how steep it feels underfoot, and whether an inspector signs it off.

The division has a catch, because risers come in whole numbers. Take a deck 108 inches above the patio. Thirteen risers would each be 8.31 inches tall, over the 7.75-inch maximum of the International Residential Code; fourteen bring each one down to 7.714 inches and pass. That one extra step also brings one more tread, so the flight grows by a full tread depth. Most stair layout errors are of this kind: a fractional riser count rounded the wrong way, or a rise measured to the subfloor when tile or decking will later add height at one end.

The calculator works the problem the way a framer does. It finds the fewest risers that keep every riser at or under the maximum you set, moves up to the riser count closest to your preferred height if that needs more, and then reports the actual riser, the number of treads, the total run in inches and feet, the pitch angle and the 2R + T comfort figure. Choose the residential code (the 2021 IRC) or the workplace option named after OSHA 29 CFR 1910.25, and plain-language lines say whether the riser and the tread pass that standard's limits, whether the pitch is within the OSHA range, and whether the rise fits one IRC flight.

Those lines are the entire code check. Headroom, stair width, landings, handrails, guards and nosing projection are all IRC requirements, and none of them is tested here; the 151-inch limit on a single flight is flagged under the residential setting, but it is only a flag, and the calculator still lays the rise out as one flight. The geometry assumes a straight flight of uniform steps between two level surfaces; winders, spiral stairs and flights broken by an intermediate landing need another tool, or a separate run for each flight.

What is stair calculator?

A straight stair is a row of identical right triangles. Each riser is the vertical leg, each tread the horizontal one, and together they build one large triangle with the total rise on one side and the total run on the other. The IRC fixes how each leg is measured. Riser height is taken vertically between the leading edges of adjacent treads (R311.7.5.1). Tread depth is taken horizontally between the foremost projections, the nosings, of adjacent treads (R311.7.5.2), so it is the distance your foot advances from one step to the next, not the depth of the board you buy. A tread board with a 1-inch nosing overhang on a 10½-inch run is 11½ inches deep.

There is one fewer tread than riser, because the upper floor is the last surface you step onto. Pitch is the angle of the line through the nosings, the same at every step when the steps are uniform. Uniformity is part of the definition rather than a refinement: the IRC allows no more than 3/8 inch between the tallest and shortest riser in a flight, and the same between the deepest and shallowest tread, because a foot that has learned a stair's rhythm over a few steps stops checking each one.

How to use this calculator.

  1. Measure Total rise from the finished surface at the bottom to the finished surface at the top, in inches. If flooring, tile, decking or a concrete topping is still to go on at either end, allow for its thickness now; hardwood laid on the upper floor later adds its full thickness to the top riser alone.
  2. Enter a Target riser height, the step you would like, and a Maximum allowed riser height. Use 7.75 for a house or deck stair under the IRC; the workplace check accepts any riser up to 9.5 inches, so the same figure works there.
  3. Enter Tread depth as the nosing-to-nosing run of one step, not the depth of the tread board. Ten inches is the IRC minimum, and every extra inch is added once per tread to the length of the flight.
  4. Choose the standard: Residential (2021 IRC), Workplace (OSHA 29 CFR 1910.25), or No code check when you only want the geometry, for instance for garden steps that are not part of a building, porch or deck and so fall outside the IRC stair rules.
  5. Read the riser count and actual riser height, then compare the total run with the floor space you have, leaving room for a landing at the bottom. If a check fails, its line names the number and the limit it broke, and a rise over 151 inches under the residential setting is flagged as too tall for one flight; if the run is too long, a shallower tread or a taller target riser shortens it.

The formula.

R = max( ⌈ H ⁄ Rmax ⌉ , round( H ⁄ Rt ) )

Write H for the total rise, Rmax for the maximum riser, Rt for the target riser and T for the tread depth. The fewest risers that keep every step within the maximum is ⌈H ÷ Rmax⌉: H divided by the maximum and rounded up to the next whole number. Rounding up is what guarantees the actual riser can never exceed Rmax. The calculator also finds the riser count nearest your target, H ÷ Rt rounded to the closest whole number, and uses whichever of the two counts is larger. A target can therefore add risers to make a gentler stair, but it can never take one away.

With the riser count N settled, the rest is direct arithmetic. The actual riser is H ÷ N. Treads number N − 1. Total run is (N − 1) × T, shown in inches and in feet (inches ÷ 12). The pitch is arctan((H ÷ N) ÷ T), converted from radians to degrees, and the comfort figure is 2 × (H ÷ N) + T. Because N is a whole number, the outputs move in jumps: a few more inches of rise, or a quarter inch off the maximum riser, can add a whole step and a whole tread depth of run.

The code lines compare those results with fixed limits. Under the residential setting the riser must be no more than 7.75 inches and the tread at least 10 inches, the limits in IRC R311.7.5.1 and R311.7.5.2. Under the workplace setting, which follows 29 CFR 1910.25(c) for standard stairs, the riser must be no more than 9.5 inches, the tread at least 9.5 inches, and the pitch between 30 and 50 degrees; there is no minimum riser. Pitch is checked only under the workplace setting. The residential setting adds a note when the total rise is over 151 inches, the IRC limit for one flight. At the residential limits, a 7.75-inch riser on a 10-inch tread, it is arctan(0.775) = 37.78 degrees, the steepest a stair can be and still pass both IRC lines; the regulation's 9.5-inch riser on a 9.5-inch tread comes to exactly 45 degrees.

A worked example.

Example

Take the default deck stair: 108 inches of total rise, a 7.5-inch target riser, a 7.75-inch maximum and 10.5-inch treads, checked against the residential code. The limit comes first: 108 ÷ 7.75 = 13.9355, which rounds up to 14 risers. The target gives 108 ÷ 7.5 = 14.4, and the nearest whole number is also 14, so the two counts agree and the stair has 14 risers. Each riser is 108 ÷ 14 = 7.714 inches. With the deck surface as the top step there are 14 − 1 = 13 treads, and the run is 13 × 10.5 = 136.5 inches, or 136.5 ÷ 12 = 11.375 feet. The pitch is arctan(7.714 ÷ 10.5) = 36.30 degrees, and the comfort figure is 2 × 7.714 + 10.5 = 25.93 inches. Both lines pass: 7.714 inches is under the 7.75-inch maximum and 10.5 inches is over the 10-inch minimum. The riser passes by 0.036 inch, a little more than 1/32 inch and under a millimetre. The limit applies to every riser as built, so a stringer layout that drifts by a sixteenth of an inch on one cut can put that step over 7.75.

target Riser In7.5
max Riser In7.75
total Rise In108
tread Depth In10.5

Frequently asked questions.

Why didn't my target riser height change the number of steps?
Because a target only ever adds risers. The calculator takes the larger of two counts: the fewest risers that keep each one within your maximum, and the count closest to your target. A target taller than the maximum allows is overruled: 8.5 inches on a 108-inch rise rounds to 13 risers, but 13 would make each one 8.31 inches, so you still get 14. A smaller target does change things. Seven inches on the same rise gives 15 risers of 7.2 inches, 14 treads and 147 inches of run, a gentler stair that costs 10.5 inches of floor.
How does the OSHA setting differ from the residential setting?
The workplace setting follows 29 CFR 1910.25(c) for standard stairs: a riser of no more than 9.5 inches, a tread of at least 9.5 inches and a pitch between 30 and 50 degrees from horizontal. The default 7.714-inch riser passes (it is under 9.5), the 10.5-inch tread passes, and the 36.30-degree pitch is inside the range, so all three lines pass, where a riser over 9.5 inches or a tread under 9.5 inches would fail. There is no minimum riser in the regulation. The section also requires uniform risers and treads between landings (1910.25(b)), which this calculator does not test, and stairs installed before January 17, 2017 are treated differently under (c)(5).
Does the tread depth I enter include the nosing?
No. Enter the run from one nosing to the next, which is how the IRC measures tread depth and what the total run is built from. The nosing is extra board on top of that. Under R311.7.5.3 a stair needs a nosing projection of between 3/4 and 1¼ inches unless its tread depth is at least 11 inches, so a stair with a 10-inch run has visible treads between 10¾ and 11¼ inches deep. Because the nosing never changes the run, it is not an input.
How long does the floor opening above a basement stair need to be?
Long enough for 6 feet 8 inches, or 80 inches, of headroom measured straight up from the sloped line through the tread nosings (IRC R311.7.2). The calculator doesn't check headroom, but its outputs give you the answer. The nosing line climbs one riser for every tread, so the edge of the opening must sit at least (80 + d) × T ÷ R inches back from the top nosing, where d is the floor depth from finished floor to ceiling below, T the tread and R the actual riser. For the default stair under a 10-inch floor that is 90 × 10.5 ÷ 7.714 = 122.5 inches, just over 10 feet.
What if my total rise is more than 151 inches?
Under the IRC a single flight may rise no more than 12 feet 7 inches, which is 151 inches, between floors or landings (R311.7.3), so a taller rise needs an intermediate landing. The calculator treats whatever you enter as one flight and accepts rises up to 360 inches; under the residential setting the flight-rise line reads Fail above 151 inches, as a flag only, and the other results are still those of a single flight. Split the rise between flights, run each flight separately, and add the landings to your floor plan: on a straight run each must be at least 36 inches deep in the direction of travel and at least as wide as the stair (R311.7.6).
How much floor space does the whole stair take up?
More than the total run, which covers the treads only. Add a landing at the bottom, at least 36 inches deep on a straight IRC stair, and one at the top as well unless it is an interior stair with no door swinging over it, the exception in R311.7.6. For the default stair the run is 136.5 inches, and with a 36-inch bottom landing the footprint is 172.5 inches, about 14 feet 4½ inches. Width is a separate requirement: at least 36 inches clear above the handrail under R311.7.1.
What does the comfort value 2R + T tell me?
Two risers plus one tread approximates the length of a comfortable climbing step, a proportion usually traced to the 17th-century French architect François Blondel. England's building regulations guidance, Approved Document K, turns it into a range: twice the rise plus the going between 550 and 700 mm, about 21.7 to 27.6 inches. A stair at exactly the IRC limits scores 25.5 inches, the default example 25.93 and the 15-riser version 24.9. Nothing here passes or fails on this number; it is a comparison between layouts that already meet the code.
Do commercial buildings use the same riser and tread limits?
No. Stairs in commercial and public buildings fall under the International Building Code, whose general limits are stricter: risers between 4 and 7 inches and treads of at least 11 inches (IBC 1011.5.2), with the residential 7.75 and 10 inch figures allowed in limited cases such as stairs inside individual dwelling units. There is no IBC setting here. Enter 7 as the maximum riser, choose No code check, and confirm the tread is at least 11 inches yourself.
What happens if the finished flooring goes down after the stair is built?
The top or bottom riser changes and the flight stops being uniform. Laying 3/4-inch hardwood on the upper floor after the stringers are cut adds 3/4 inch to the top riser alone: on the default stair it becomes 7.714 + 0.75 = 8.46 inches, which breaks the 7.75-inch maximum and the IRC's 3/8-inch limit on variation between risers. Flooring added at the bottom does the reverse and shortens the first riser. Measure the total rise between finished surfaces, or allow for each finish when you lay out the stringer.
Does a short flight of steps need a handrail?
Under the IRC a handrail is required on at least one side of every flight with four or more risers (R311.7.8), with its top 34 to 38 inches above the sloped line through the nosings (R311.7.8.1). A flight of three risers or fewer escapes that rule, and the 14-riser default stair needs one. Steps that are not within or serving a building, porch or deck, such as a run of landscape steps across a garden, fall outside the IRC stair section altogether.

How this page was produced

Published by
Quanta Calculator
Primary sources
5 cited below
Method
R = max( ⌈ H ⁄ Rmax ⌉ , round( H ⁄ Rt ) )
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon