What does a stair calculator do?
A stair calculator turns a total vertical rise into a practical straight-flight stair layout. It determines how many equal risers are needed, the actual height of each riser, how many treads are involved, the total horizontal run, the stair angle and the theoretical sloping distance of the stringer line.
The central challenge is that stair risers must be laid out as a whole number. You cannot build 14.3 risers. The calculator therefore chooses a whole riser count from the total rise and the maximum or target riser height, then divides the total rise equally so every riser is the same.
The basic stair formulas
1. Number of risers
If you enter a total rise and a maximum riser height, divide total rise by that limit and round up to the next whole number. Rounding up prevents the actual equal riser from exceeding the entered maximum.
Number of risers = ceil(total rise ÷ maximum riser height)For example, if total rise is 108 inches and your maximum riser is 7.75 inches:
108 ÷ 7.75 = 13.94 → round up to 14 risers2. Actual equal riser height
After choosing the whole-number riser count, divide the total rise evenly:
Actual riser height = total rise ÷ number of risersWith 108 inches and 14 risers:
108 ÷ 14 = 7.714 inches per riserThe actual riser is slightly below the input limit, and—most importantly—all 14 risers are the same in the geometric layout.
3. Number of treads
For a common straight stair where the upper floor or landing itself acts as the final stepping surface, there is usually one fewer tread than risers:
Number of treads = number of risers − 1If the design includes a separate top tread before the upper landing, the tread count can equal the number of risers. That is why this calculator includes a top-configuration choice instead of assuming one arrangement for every stair.
4. Total horizontal run
The total run is the horizontal footprint created by all the unit runs:
Total run = number of treads × unit runIf 13 treads each have a 10-inch unit run, the total run is 130 inches.
5. Stair angle
The overall stair angle is based on total rise and total horizontal run:
Stair angle = arctan(total rise ÷ total run)Angle is useful for comparing layouts and checking whether a stair is unusually steep or shallow. It is not a substitute for checking the actual riser, tread, headroom, landing and handrail requirements that apply to the project.
6. Stringer slope length
The overall rise and run form a right triangle. The theoretical sloping line is the hypotenuse:
Stringer slope length = √(total rise² + total run²)This number is useful for geometry and preliminary stock planning, but it is not automatically the exact board length to buy. Real stringers need top and bottom cuts, bearing, attachment details, enough uncut wood at the throat, and often extra stock beyond the theoretical pitch-line distance.
Worked example: 9 ft total rise
Consider a finished-floor-to-finished-floor rise of 9 feet, or 108 inches. Use a maximum target riser of 7.75 inches and a 10-inch unit run.
108 ÷ 7.75 = 13.94 → 14 risers 108 ÷ 14 = 7.714 in actual riserWith the upper floor acting as the final step, the stair has 13 treads:
14 risers − 1 = 13 treads 13 × 10 in = 130 in total runThe overall angle is about:
arctan(108 ÷ 130) ≈ 39.7°The theoretical sloping distance is:
√(108² + 130²) ≈ 169.0 inThis worked example demonstrates the geometry only. It does not say that a 7.714-inch riser and 10-inch tread are legal everywhere; local requirements still control.
How to measure total rise correctly
Total rise should normally be measured vertically from the finished lower walking surface to the finished upper walking surface. Measuring framing before flooring, decking, tile, underlayment or other finish thickness is accounted for can create a first or last riser that differs from the rest.
For exterior deck stairs, the lower reference may be finished grade, a concrete pad or another permanent landing. If the landing surface has not been built yet, establish its finished elevation before laying out stringers. A change of even a modest thickness at either end changes the first or last riser.
Measure vertically, not along the stair slope. A laser level, builder's level or careful level-and-tape method is generally more reliable than measuring diagonally.
Why equal riser height matters
Human gait adapts quickly to a repeating stair rhythm. A noticeably different riser can interrupt that rhythm and increase the chance of a misstep. Modern codes therefore place strong emphasis on uniformity within a flight.
As one example, the 2021 International Residential Code states that the greatest riser height within a flight must not exceed the smallest by more than 3/8 inch. OSHA's general-industry stair standard likewise requires uniform riser heights and tread depths between landings. These are examples of why field layout must preserve equal finished dimensions; they are not a claim that one rule governs every staircase.
Riser height and tread depth: code varies by use
There is no single universal stair dimension. Residential stairs, commercial means-of-egress stairs, industrial workplace stairs, ships' stairs, alternating-tread devices and spiral stairs can fall under different rules.
For example, the 2024 International Building Code generally uses a 7-inch maximum riser and 11-inch minimum rectangular tread depth for many building stairs, while an exception for certain dwelling and residential occupancies permits a 7¾-inch maximum riser and 10-inch minimum tread depth. By contrast, OSHA's current general-industry standard for standard stairs requires a maximum 9.5-inch riser, a minimum 9.5-inch tread depth and an installation angle from 30° to 50°.
Those differences are important. A calculator that labels one dimension pair “code compliant” without asking where the stair is located, what it serves and which code is adopted can give false confidence. SonoCalculator therefore calculates geometry and explains reference values without issuing a compliance verdict.
Unit run, tread depth and nosing are not always the same thing
These terms are often mixed together online, but they describe related—not always identical—measurements.
- Unit run is the horizontal distance from one riser reference plane to the next in the stair layout.
- Tread depth is the usable horizontal tread dimension measured according to the applicable code definition.
- Nosing is the projection of a tread beyond the face or reference plane of the riser below.
OSHA clarified in a 2025 interpretation that its 9.5-inch minimum tread depth is measured horizontally between the foremost projections of adjacent treads and that a large nosing cannot simply turn an 8-inch run into a compliant 9.5-inch tread under that standard. Residential and building-code definitions can differ in detail, so actual tread design must follow the rule that applies to the project.
Number of risers versus number of treads
This is one of the most common stair-planning mistakes. If the upper floor is the final stepping surface, the number of physical treads in the flight is normally one less than the number of risers. Ten risers create nine intermediate tread surfaces before the upper landing.
Some construction details use a separate top tread or platform condition. In that case the number of treads used in the horizontal run can differ. Always match the calculator's top configuration to the actual framing and landing detail.
Understanding the 2R + T comfort relationship
A traditional stair-proportion check is often written as:
2R + Twhere R is riser height and T is tread or run dimension. Many designers use a value in the general neighborhood of a human walking stride—often roughly 24 to 25 inches, or around 600 to 650 mm—as a comfort reference.
This is a proportion heuristic, not a universal building code. A stair can land near a traditional comfort range and still violate a legal tread, riser, headroom, landing or handrail requirement. Conversely, a code-permitted stair may not feel ideal for every user. The calculator reports 2R + T as planning information only.
Stair angle and steepness
Stair angle is controlled by the ratio of rise to run. Increase the riser height or reduce the run and the stair becomes steeper. Reduce the riser or increase the run and the stair becomes shallower but takes more floor space.
OSHA's standard-stair range of 30° to 50° illustrates how workplace rules can use angle as one part of the requirement. However, current OSHA rules also impose separate riser and tread limits, so being inside the angle range by itself does not prove compliance.
For residential and public stairs, the adopted building code may not express the primary limit as one simple angle. Riser and tread dimensions, headroom, landings, width, guards and handrails usually matter more directly.
Headroom matters even when rise and run work
A mathematically neat stair can still be unusable if the stair passes under a floor edge, beam or ceiling. Headroom is measured vertically above the tread nosing line or tread surface according to the applicable code.
As one current example, OSHA requires at least 6 ft 8 in (203 cm) of vertical clearance above standard stair treads to overhead obstructions. Residential and building codes have their own headroom provisions. This calculator does not model the surrounding floor opening, so headroom must be checked separately on the actual plan or site.
Landings and doors
Long stairs, changes in direction and doors near stairs can require landings. A landing is not just empty space; its dimensions and relationship to door swings can be regulated.
OSHA, for example, requires workplace stair landings and platforms to be at least the width of the stair and at least 30 inches deep in the direction of travel. Building and residential codes use their own landing rules. If your stair ends at a door, turns at a platform or includes more than one flight, model each flight separately and verify the landing requirements independently.
Stair width, handrails and guards
Width does not change the rise/run geometry calculated here, but it affects usability, structural framing and code. The required clear width can depend on occupancy and whether handrails project into the stair.
Handrail height, graspability, continuity, extensions and required sides are separate design questions. Guards may be required where the stair or landing is elevated above the adjacent surface. Those rules are intentionally outside the numeric result because they depend on the specific building and jurisdiction.
Stringer length versus stringer stock length
The calculator's stringer result is the hypotenuse of the overall stair rise/run triangle. It is useful for checking slope and getting a first sense of required lumber length.
A cut stringer needs more than that abstract line. The board must extend far enough for the top connection, bottom bearing or cut, possible hanger or ledger detail, and enough material beyond the first and last layout points. Tread thickness and any bottom-riser adjustment also affect the cut layout.
Structural capacity depends on species, grade, board size, remaining throat depth after notches, stair width, stringer spacing, supports and loads. Do not use the hypotenuse alone to decide whether a stringer is structurally adequate.
Tread thickness and the first riser
Tread thickness is a classic source of stair-layout errors. If stringer notches are laid out using the full equal riser but a tread is then placed on every notch, the bottom riser can become one tread thickness taller unless the bottom cut is adjusted appropriately. At the top, the connection detail determines whether the upper finished surface already accounts for the tread thickness.
The safest workflow is to design from finished walking surface to finished walking surface, then translate that finished geometry into the actual framing detail. The optional tread-thickness field on this calculator is shown only as a reminder; it does not automatically alter the stringer cuts because the correct adjustment depends on the top and bottom connection.
Metric stair calculations
Metric stair geometry is identical. Enter total rise, riser limit and unit run in millimetres. The formulas use the same ratios:
Risers = ceil(total rise mm ÷ max riser mm) Actual riser mm = total rise mm ÷ risers Total run mm = treads × unit run mmThe stair angle is unitless because both rise and run use the same unit. The stringer slope is returned in millimetres and also converted to metres for easier stock planning.
Deck stair example
Suppose the finished deck surface is 42 inches above the finished landing. If your chosen maximum riser is 7 inches:
42 ÷ 7 = 6 risersWith the deck surface acting as the final step, that gives five treads. If unit run is 11 inches:
5 × 11 = 55 inches total runThis geometry may fit the site, but the actual deck stair still needs correct landing dimensions, footing/bearing, stringer connections, guards, handrails where required and local code review.
Interior stair example
For a 102-inch finished-floor rise with a 7.5-inch maximum riser:
102 ÷ 7.5 = 13.6 → 14 risers 102 ÷ 14 = 7.286-inch actual riserUsing a 10.5-inch unit run and 13 treads:
13 × 10.5 = 136.5 inches total runIf the available floor opening or room cannot accommodate that footprint, the solution is not simply to force a shorter run. The stair may need a different configuration, landing, turn or professionally resolved plan.
Common stair-layout mistakes
- Rounding the riser height instead of the riser count. Choose a whole count first, then divide total rise equally.
- Measuring unfinished floor elevations. Flooring and landing thickness can create a nonuniform first or last riser.
- Confusing tread board width with unit run. Nosing and code measurement rules matter.
- Using the same number for risers and treads automatically. The top landing configuration changes tread count.
- Checking only the stair angle. Angle alone does not establish code compliance.
- Treating 2R + T as law. It is a comfort heuristic, not a universal code requirement.
- Buying stringer stock equal to the hypotenuse. Real cuts and connections need extra board length.
- Ignoring headroom and landings. Good rise/run geometry can still fail spatial requirements.
- Changing one riser to absorb an error. Recalculate the whole flight so finished risers remain uniform.
How to use this calculator well
Start with the best measurement you can get for finished total rise. Enter a riser limit or target based on your project requirements, not on guesswork. Enter the intended horizontal unit run. Calculate and review the resulting actual riser, tread count, total run and angle.
Then compare the total run with the real available floor space. Check headroom using the surrounding framing and ceiling geometry. Confirm landing requirements, width, handrail and guard details, and the adopted local code. Finally, translate the finished geometry into structural framing and stringer details.
Frequently asked questions
How do I calculate the number of stair risers?
Divide total rise by the maximum permitted or desired riser height, then round up to the next whole number. Divide total rise by that whole count to get the actual equal riser height.
Why do stair risers need to be equal?
Uniform risers create a predictable walking rhythm and are required by modern stair standards. Even small field errors can make the first or last step feel noticeably different.
How many treads are there for 14 risers?
For a typical straight flight where the upper floor or landing is the final stepping surface, 14 risers usually correspond to 13 intermediate treads. A separate top-tread configuration can change that relationship.
How do I calculate total stair run?
Multiply the number of treads used in the horizontal flight by the unit run.
How is stair angle calculated?
Use arctan(total rise ÷ total horizontal run). The calculator performs this automatically in degrees.
Is the calculated stringer length the board length I should buy?
No. It is the theoretical sloping hypotenuse. Actual stock must allow for end cuts, bearing, attachments and framing details.
What is a good stair angle?
There is no universal ideal angle. Comfortable and legal ranges depend on the stair type and governing code. Evaluate riser, tread, headroom and other requirements rather than angle alone.
What does 2R + T mean?
It is a traditional stair-proportion relationship: twice the riser height plus the tread/run dimension. It is useful as a comfort reference but is not a universal code rule.
Can this calculator certify my stairs meet code?
No. It calculates geometry. Code compliance depends on jurisdiction, occupancy, adopted edition, stair type, headroom, width, landings, handrails, guards, structural details and other requirements.
Can I use it for metric stairs?
Yes. Metric mode uses millimetres for rise and run and returns stringer length in millimetres with the same geometry.
Final note: SonoCalculator's Stair Calculator is a geometry and planning tool for straight stair flights. Use finished elevations, keep risers uniform, and verify the applicable local code and structural details before construction. Official requirements can differ between residential, commercial and workplace stairs, and code editions can change.