Stair Calculator
Stair Calculator
Designing a staircase means balancing comfort, safety, and building codes. The key relationship is between the total rise (the vertical distance the stairs must climb) and the individual riser height and tread depth. Our Stair Calculator takes the total rise and a target riser height, then computes how many steps you need, the actual (equalized) riser height, the total horizontal run, and the stair angle. It is useful for decks, basements, porches, and interior remodels.
What Makes a Good Stair?
Comfortable, safe stairs have a consistent riser height and tread depth. Building codes in the US typically limit risers to about 7.75 in and require treads of at least 10 in, with the sum of riser and tread often near 17-18 in. Consistency matters more than any single dimension.
Why Calculate?
Guessing step counts leads to uneven rises that trip people and fail inspection. Equalizing the rise across all steps (by dividing total rise by the step count) keeps every step the same height.
The rise-over-run relationship
The most-used comfort guide is the "rule of 7 and 11": a 7 in riser with an 11 in tread feels natural. Many designers also target riser + tread near 17–18 in, or 2 × riser + tread near 25 in. These are starting points; your local code sets the hard limits (IRC caps the max riser at 7.75 in and min tread at 10 in for most homes, and requires the largest and smallest riser in a flight to differ by no more than 3/8 in).
- Enter the Total Rise in inches (measure from finished floor to finished floor).
- Enter the Target Riser Height in inches (default 7 in).
- Enter the Tread Depth in inches (default 11 in).
- Click Calculate for step count, actual riser, total run, and angle.
Worked Example 1: A 108 in Rise, 7 in Target Riser
Steps = ceil(108 / 7) = ceil(15.43) = 16. Actual riser = 108 / 16 = 6.75 in. Total run = (16 − 1) × 11 = 165 in. Angle = atan(108 / 165) ≈ 33.2°.
Worked Example 2: A 72 in Rise, 7.5 in Riser
Steps = ceil(72 / 7.5) = ceil(9.6) = 10. Actual riser = 72 / 10 = 7.2 in. Run = 9 × 11 = 99 in.
Edge Cases
- Zero rise → no result.
- Very low rise → one or two steps.
- Thick tread → longer run for the same step count.
- Non-integer steps → the calculator always rounds up to a whole step and equalizes the rise.
- Headroom and codes → this tool does not check local code limits; verify with your authority.
Worked Example 3: A Low 42 in Porch Step
42 / 7 = 6 steps. Actual riser = 42 / 6 = 7.0 in. Run = 5 × 11 = 55 in — a tidy single step up to a porch. With a 6 in target instead, steps = ceil(42/6) = 7, riser = 6.0 in, run = 6 × 11 = 66 in.
Worked Example 4: Matching a Fixed Tread
If your stringer stock fixes the tread at 10 in and the rise is 96 in, steps = ceil(96/7) = 14, riser = 96/14 = 6.86 in, run = 13 × 10 = 130 in. The same rise with a 12 in tread needs the same 14 steps but a 156 in run — 2 ft more horizontal space.
When the rise does not divide evenly
A 100 in rise at a 7 in target gives 15 steps at 6.67 in each. That is comfortable, but note the largest-riser rule: keep every step identical (the calculator equalizes them), and avoid mixing a 6.67 in step with a 7.5 in step in the same flight.
Worked Example 5: A 126 in Basement Stair
126 / 7 = 18 steps. Actual riser = 126 / 18 = 7.00 in — a textbook-even result. Run = 17 × 11 = 187 in. The equalized riser lands exactly on the target, which happens whenever the rise is a clean multiple of the step count.
Worked Example 6: Tight Headroom Forces a Shallow Rise
A finished ceiling limits total run to 150 in, yet the rise is 108 in. With an 11 in tread, steps = 16 and run = 165 in — too long. Dropping to a 10 in tread gives the same 16 steps and a 150 in run, exactly fitting. The calculator lets you trade tread depth for run length when space is constrained.
Worked Example 7: A 90 in Rise, 6.5 in Target Riser
Steps = ceil(90 / 6.5) = ceil(13.85) = 14. Actual riser = 90 / 14 = 6.43 in. Run = 13 × 11 = 143 in. A gentle 6.43 in riser suits an accessible or low-slope exterior stair where a 7 in step would be too tall.
Worked Example 8: A 60 in Rise With a 10 in Tread
Steps = ceil(60 / 7) = 9. Actual riser = 60 / 9 = 6.67 in. Run = 8 × 10 = 80 in. The shorter 60 in rise with a 10 in tread gives a compact, shallow stair ideal for a stoop or a short basement step.
Worked Example 9: A 150 in Rise, 7.5 in Riser
Steps = ceil(150 / 7.5) = 20. Actual riser = 150 / 20 = 7.50 in — exactly on target. Run = 19 × 11 = 209 in. A clean 20-step result like this happens when the rise is a multiple of the step count, and it makes the stringer layout trivial.
Riser and tread from a known run
If your rough opening fixes the available run instead of the rise, solve the other way: with a 12 in tread and a 150 in run, you have 13 treads (n − 1 = 13), so n = 14 steps, and a 108 in rise gives a 7.71 in riser — just under the 7.75 in code cap. Always confirm the resulting riser against your local limit.
Total stringer length
The sloped stringer length is √(rise² + run²). For a 108 in rise and 165 in run that is √(108² + 165²) = √(11,664 + 27,225) = √38,889 ≈ 197 in, or about 16.4 ft of 2×12 per stringer. Order two (or three for wide stairs) plus a margin for the top and bottom cuts.
The number of steps is the ceiling of the rise divided by the target riser:
The actual equalized riser height:
Total run (horizontal distance), with n−1 treads:
Stair angle from the horizontal:
Step count and actual riser for a 7 in target across rises:
| Total Rise (in) | Steps | Actual Riser (in) |
|---|---|---|
| 84 | 12 | 7.00 |
| 96 | 14 | 6.86 |
| 108 | 16 | 6.75 |
| 120 | 18 | 6.67 |
| 144 | 21 | 6.86 |
Higher rises need more steps; the actual riser drops slightly below the target as steps increase.
Total run for 11 in treads at various rises:
| Total Rise (in) | Steps | Total Run (in) |
|---|---|---|
| 84 | 12 | 121 |
| 108 | 16 | 165 |
| 120 | 18 | 187 |
| 144 | 21 | 220 |
| 168 | 24 | 253 |
Run grows with step count because each added step adds a tread (except the top).
Stair angle for common rise/run ratios:
| Rise (in) | Run (in) | Angle (°) |
|---|---|---|
| 84 | 121 | 34.8 |
| 108 | 165 | 33.2 |
| 120 | 187 | 32.7 |
| 144 | 220 | 33.2 |
| 168 | 253 | 33.6 |
Typical comfortable stairs sit around 30-35°.
Stair angle for wider treads (various rises, 12 in tread):
| Rise (in) | Run (in) | Angle (°) |
|---|---|---|
| 84 | 132 | 32.5 |
| 108 | 156 | 34.7 |
| 120 | 156 | 37.6 |
| 144 | 180 | 38.7 |
| 168 | 204 | 39.4 |
Widening the tread at a fixed rise makes the stair steeper because the run grows faster than the rise.
- Equalize risers: keep every step the same height to avoid tripping.
- Follow code: check local maximum riser and minimum tread rules.
- Measure finished floor to finished floor for the true rise.
- Add nosing: tread depth often includes the nosing overhang.
- Check headroom: tall runners need adequate clearance.
- Round up steps: always use a whole number and recompute the actual riser.
- No code compliance: does not enforce local building-code limits.
- Straight stairs only: landings, switches, and curved stairs need separate design.
- Uniform tread: assumes a constant tread depth.
- No stringer cut list: this estimates geometry, not lumber cuts.
- Single flight: does not handle multi-flight stairs with landings.
- US units: inches for all inputs.
How many steps do I need?
Divide the total rise by your target riser height and round up to a whole number, then equalize the rise across those steps.
What is a comfortable riser height?
Around 7 to 7.5 inches is typical and comfortable for most adults.
What is the stair angle?
The angle from horizontal, found from the rise and run: atan(rise / run). Comfortable stairs are about 30-35°.
Does tread depth affect step count?
No, but it affects the total run (horizontal length) of the stairs.
Why round up the step count?
You cannot have a fraction of a step; rounding up and equalizing keeps every riser consistent.
What is total run?
The horizontal distance the stairs occupy, equal to (steps − 1) × tread depth.
Are my stairs code compliant?
This calculator does not check codes; verify riser, tread, and headroom against your local building department.
Can I use this for a deck?
Yes — measure the deck surface to ground (or to the lower finished floor) as the total rise.
What is a good riser plus tread sum?
Many comfortable designs aim for riser + tread near 17-18 inches.
Do I include the top landing as a step?
No. The top tread meets the upper floor, so the run uses (steps − 1) treads.
What is the maximum allowed riser?
Most US residential codes cap the riser at 7.75 in and require at least a 10 in tread. Some commercial stairs differ, so check your local authority having jurisdiction.
How much headroom do I need?
Codes commonly require 6 ft 8 in of clear headroom above the nosing line. The calculator does not check this, but it matters for finished basements and attics.
Should the nosing overhang count as tread?
Yes — the 10 in minimum usually includes the nosing projection. Measure the total going, not just the structural board.
Can I build stairs with unequal runs?
Not safely in one flight. Keep the run and rise uniform; if space forces a change, insert a landing and start a new flight.
How do I cut the stringer?
Once you know the equalized riser and tread, lay them out on a 2×12 with a framing square. The calculator gives the geometry; the cut list is the next step.
What is the 7-and-11 rule exactly?
A 7 in riser with an 11 in tread (rise + tread = 18 in) is the classic comfortable pairing. Many builders also check 2 × riser + tread ≈ 25 in. The calculator reports the actual numbers so you can verify both rules after equalizing.
How many stringers do I need?
Typically one stringer at each end, plus one in the middle for every 36 in of stair width. A 36 in-wide stair needs 3 stringers; a 48 in stair needs 3 or 4. The stringer length from the calculator applies to each one.
Do winders or landings change the count?
Yes. A landing resets the rise count for the next flight; winders (pie-shaped treads) change the run per step. This calculator covers a single straight flight, so break a multi-flight stair into separate flights and total them.
Can I build exterior stairs to the same rules?
Mostly yes, but exterior steps often use a 4 in or 6 in riser for gentle grade changes and may have different nosing and grip requirements. Use the calculator with your chosen target riser and verify against the local exterior-stair code.
How does the rise-over-run rule change the angle?
The 2 × riser + tread ≈ 25 in rule and the riser + tread ≈ 17–18 in rule both shape comfort. A 7 in riser with an 11 in tread gives 25 in on the second rule and 18 in on the first, landing squarely in the comfort zone. The calculator reports the actual angle so you can confirm the stair feels right before you cut stringers.
What about a spiral or winder stair?
Spiral and winder stairs pack steps into a tight footprint by shrinking the tread at the narrow end, which this straight-flight calculator does not model. Estimate a spiral from the maker's per-step tread at its minimum width, and treat winders as a separate layout where each pie tread carries its own going. The equalized-riser principle still holds, but the run math does not.
How do I size the landing between flights?
A landing should be at least as deep as the stair is wide, and it resets the rise count for the next flight. If your 108 in rise splits into two 54 in flights, each needs its own step count (ceil(54/7) = 8 steps, 6.75 in riser) and its own run; total them but keep each flight's riser equal within itself.
Does the finished-floor thickness matter?
Yes — measure from the top of the lower finished floor to the top of the upper finished floor, including both floor assemblies. Forgetting a 3/4 in subfloor or a 1/2 in tile on either end shifts the true rise and throws off the equalized riser by a fraction across every step, which is exactly the tripping inconsistency codes forbid.
How do I check the largest-riser difference rule?
The IRC requires the largest and smallest riser in a flight to differ by no more than 3/8 in. Because the calculator equalizes every step to R_total / n, all risers are identical and the rule is satisfied by construction — provided you build to the computed actual riser and do not round individual steps differently.
Can I use this for a loft ladder or ship stair?
No — loft ladders and ship stairs use steep, often alternating-tread geometry with different rules and much smaller going. Those are specialty products with their own code path; this calculator assumes a conventional straight residential flight where the run uses (steps − 1) treads.
How does the stair angle affect headroom?
A steeper stair (smaller tread, same rise) has a shorter run but the same vertical climb, so it can fit under a lower ceiling. The trade-off is comfort and the 7.75 in riser cap; if you steepen to save run, confirm the actual riser still lands under the code maximum or the stair fails inspection.
Last updated: July 18, 2026
UnByte — Independent Software Engineering
Every calculator references authoritative sources — Editorial policy