Stair Calculator

Number of risers15
Actual riser height7.20 in
Number of treads14
Total run147.0 in (12.25 ft)
Stair angle34.4°
Minimum stringer length (approx.)178.2 in
How this was calculated
  1. Number of risers = total rise ÷ target riser height = 108.0 ÷ 7.50 = 14.40, rounded up to 15 risers so no single step exceeds the target.
  2. Actual riser height = 108.0 ÷ 15 = 7.200 in. US residential codes cap risers at 7¾ in, so 7.20 in complies.
  3. Treads = risers − 1 = 14 (the top landing is the last tread). Total run = 14 × 10.5 in = 147.0 in (12.25 ft).
  4. Comfort check: 2 × riser + tread = 2 × 7.20 + 10.5 = 24.9 in — the traditional comfort band is 24–25 in. Stair angle is 34.4°. Always confirm local code before building.

A stair calculator takes your total rise and target riser height and works out the number of risers, actual riser height, number of treads, total run, and stair angle. The number of risers equals total rise divided by the target riser height, rounded up so no step exceeds the target; the actual riser height is then total rise divided by the number of risers. The number of treads is always one less than the number of risers, because the upper floor itself is the final tread. For a verified example, a 108-inch (9 ft) rise with a 7.5-inch target gives 15 risers of exactly 7.2 inches, 14 treads, a 147-inch run at 10.5-inch treads, and a 34.4-degree angle.

This method is the accepted standard because it keeps every step within code and comfort limits. US residential code (IRC) limits maximum riser height to 7.75 inches and minimum tread depth to 10 inches, while commercial stairs (IBC) are stricter at 7-inch max riser and 11-inch min tread. The traditional comfort rule says 2 x riser + tread should fall between about 24 and 25 inches; the first example above gives 24.9 inches. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result yourself.

Worked examples

A standard 9-foot storey

15 risers of exactly 7.2 in, 14 treads, a 147-inch run and a comfortable 34.4° angle. (108 in · 7.5 in · 10.5 in)

Number of risers15
Actual riser height7.20 in
Number of treads14
Total run147.0 in (12.25 ft)
Stair angle34.4°
Minimum stringer length (approx.)178.2 in

An 8-foot storey

13 risers at 7.38 in and a 120-inch run; 2R + T = 24.8 in, inside the comfort band. (96 in · 7.5 in · 10 in)

Number of risers13
Actual riser height7.38 in
Number of treads12
Total run120.0 in (10.00 ft)
Stair angle36.4°
Minimum stringer length (approx.)149.2 in

A tall 10-foot storey

16 risers of 7.5 in with 11-inch treads: 2R + T hits 26.0 in, slightly steep-feeling but code-legal. (120 in · 7.75 in · 11 in)

Number of risers16
Actual riser height7.50 in
Number of treads15
Total run165.0 in (13.75 ft)
Stair angle34.3°
Minimum stringer length (approx.)199.7 in

Stair maths from the total rise

Every stair calculation starts from one number: the total rise, measured vertically from the surface of the lower finished floor to the surface of the upper finished floor. Once you have that height, divide it by your target riser height. Round the result up to the next whole number so that no individual step exceeds your target. This gives you the number of risers. Then recompute the exact riser height by dividing the total rise by that number of risers. The result is the uniform height every step will share.

Work through the verified 108-inch (9 ft) example to see the full process. A 108-inch rise divided by a 7.5-inch target riser gives 14.4, which rounds up to 15 risers. Divide 108 inches by 15 and you get an actual riser height of exactly 7.2 inches — comfortably under the IRC residential limit of 7.75 inches. The number of treads is always one less than the number of risers, because the upper floor itself serves as the final tread, so this staircase has 14 treads. At a 10.5-inch tread depth the total run is 147 inches, producing a 34.4-degree angle. The traditional comfort rule says 2 times the riser plus the tread should fall between about 24 and 25 inches; here it gives 24.9 inches, right in the sweet spot.

The same method applies to any floor-to-floor height. A 96-inch rise yields 13 risers of 7.38 inches, 12 treads, and a 120-inch run at 10-inch treads. A 120-inch rise with an 11-inch tread produces 16 risers of 7.5 inches and a 2R + T value of 26.0 inches — slightly steep-feeling but still within code. These examples show why rounding up matters: it keeps every riser at or below your target rather than letting one step overshoot.

A reliable stair calculator automates these steps, but the underlying logic is straightforward. Divide the total rise by the target riser, round up, and divide again for the exact riser. Subtract one from the riser count for the tread count, multiply by your tread depth for the run, and check the result against code limits and the comfort rule before you commit to a layout.

  • Number of risers = total rise ÷ target riser height, rounded up
  • Actual riser height = total rise ÷ number of risers
  • Number of treads = number of risers minus one (the upper floor is the final tread)
  • Total run = number of treads × tread depth
  • IRC residential limits: 7.75-inch max riser, 10-inch min tread; IBC commercial limits: 7-inch max riser, 11-inch min tread
  • Comfort rule: 2 × riser + tread should land between about 24 and 25 inches
108-inch rise, 7.5-inch target → 15 risers at 7.2 inches, 14 treads, 147-inch run at 10.5-inch treads, 34.4-degree angle, 2R + T = 24.9 inches.

Code limits you must respect

A stair calculator gives you numbers quickly, but those numbers only matter if they satisfy the building code for your area. In the United States, residential stairs built under the International Residential Code (IRC) must keep each riser at or below 7.75 inches and each tread at or above 10 inches. Commercial stairs fall under the International Building Code (IBC), which is stricter: a 7-inch maximum riser and an 11-inch minimum tread. These are the baselines, not goals — your local jurisdiction may add tighter limits, so confirm the local code before you commit to a design.

Code also governs consistency. The tallest riser and the shortest riser on a single flight must fall within 3/8 inch of each other. A stair calculator helps you meet this rule because it computes a single uniform riser height for every step. The formula is straightforward: number of risers equals total rise divided by your target riser height, rounded up so no step exceeds the target. Your actual riser height is then total rise divided by that number of risers. The number of treads is always one less than the number of risers, because the upper floor itself serves as the final tread.

The traditional comfort rule says that two times the riser plus the tread should fall between about 24 and 25 inches. This is not code, but it tracks how most people walk. The first verified example below hits 24.9 inches, right in the comfortable zone. The third example lands at 26.0 inches — slightly steep-feeling but still within code. Use the comfort rule as a sanity check after your stair calculator confirms the code limits.

  • IRC (residential): 7.75 in max riser, 10 in min tread
  • IBC (commercial): 7 in max riser, 11 in min tread
  • Riser consistency: tallest and shortest within 3/8 in
  • Comfort range: 2R + T ≈ 24–25 in (not code, just a guide)
  • Always confirm the local code before building
Total riseTarget riserRisersActual riserTreadsTread depthRunAngle2R + T
108 in (9 ft)7.5 in157.2 in1410.5 in147 in34.4°24.9 in
96 in—137.38 in1210 in120 in——
120 in—167.5 in—11 in——26.0 in
A stair calculator can verify code compliance in seconds, but it cannot override your local building department. When local rules differ from IRC or IBC, the local rules win.

The 2R + T comfort rule

The 2R + T comfort rule is a long-standing guideline that helps a stair calculator produce stairs that feel natural to walk on. The rule says that two times the riser height plus the tread depth should fall between about 24 and 25 inches. When the result lands in that range, most people find the stairs comfortable because the proportions match a typical human stride. A result below 24 inches usually means the treads are too shallow for the riser height, while a result above 25 inches tends to feel like a stretch with each step.

The first verified example shows the rule working almost perfectly. A 108-inch rise with a 7.5-inch target produces 15 risers of exactly 7.2 inches and 14 treads of 10.5 inches, since the number of treads is always one less than the number of risers (the upper floor serves as the final tread). The run comes out to 147 inches at a 34.4-degree angle. Applying the rule gives 2 x 7.2 + 10.5 = 24.9 inches, sitting right at the top of the comfort range and confirming a well-proportioned residential stair.

The second verified example stays comfortably within the rule as well. A 96-inch rise yields 13 risers of 7.38 inches, 12 treads, and a 120-inch run at 10-inch treads. Here 2 x 7.38 + 10.0 = 24.8 inches, again landing inside the 24-to-25-inch window. Both of these examples also satisfy US residential code, which caps riser height at 7.75 inches and requires a minimum tread depth of 10 inches.

The third verified example tells a different story. A 120-inch rise paired with an 11-inch tread gives 16 risers of exactly 7.5 inches, and 2R + T = 26.0 inches. That result sits an inch above the traditional comfort range, so the stair will likely feel slightly steep even though every dimension is legal. The riser height is well under the 7.75-inch IRC maximum, and the 11-inch tread actually exceeds the 10-inch minimum, so the design passes code review. The 26.0-inch result simply reflects a steeper stride pattern that some users notice in everyday use.

This gap between code compliance and subjective comfort is exactly why the 2R + T rule remains useful. Building codes set hard limits for safety, but they do not guarantee that every legal stair feels easy to climb. When using a stair calculator, checking the 2R + T result alongside the code limits gives a fuller picture. A result near 24 to 25 inches suggests a stair that will feel comfortable for most users, while a result of 26.0 inches or more signals a stair that is safe and legal but may feel steep, especially for young children, older adults, or anyone carrying items up and down.

Total run and headroom planning

Once you know your riser count and tread depth, the total run tells you how much horizontal floor space the staircase will consume. The formula is straightforward: total run equals the number of treads multiplied by the tread depth. Remember that the number of treads is always one less than the number of risers, because the upper floor itself serves as the final tread. A reliable stair calculator applies this relationship automatically so you can plan your layout without guesswork.

To see how run adds up, consider the verified example of a 108-inch (9 ft) total rise with a 7.5-inch target riser height. Dividing the rise by the target and rounding up gives 15 risers of exactly 7.2 inches each, which means 14 treads. At a 10.5-inch tread depth, the total run reaches 147 inches — over 12 feet of horizontal space. That is a substantial footprint, and it is exactly why measuring your available floor area before building is critical. A shorter run is possible with steeper treads, but the trade-off is comfort and code compliance.

US residential code (IRC) sets a maximum riser height of 7.75 inches and a minimum tread depth of 10 inches. Commercial stairs follow stricter IBC limits: a 7-inch maximum riser and an 11-inch minimum tread. The traditional comfort rule offers further guidance — two times the riser height plus the tread depth should fall between about 24 and 25 inches. The 108-inch rise example above produces a value of 24.9 inches, right in the comfort zone. By contrast, a 120-inch rise with an 11-inch tread yields 16 risers of 7.5 inches and a 2R + T value of 26.0 inches, which feels slightly steep but remains within code.

Headroom is the other dimension that determines whether a staircase fits your space. Building codes typically require a minimum of 6 ft 8 in of clear headroom measured vertically from the tread nosing line — the imaginary diagonal connecting the edge of every step — to the ceiling or any obstruction above. This measurement follows the angle of the stairs, not a single flat ceiling height, so a staircase running beneath a sloped ceiling or landing must maintain that clearance at every point along the path.

  • Total run = number of treads × tread depth
  • Treads are always one fewer than risers (the upper floor is the final tread)
  • 147-inch run at 10.5-inch treads requires over 12 feet of horizontal space
  • Headroom minimum: 6 ft 8 in, measured from the tread nosing line
  • IRC residential limits: 7.75-in max riser, 10-in min tread
  • IBC commercial limits: 7-in max riser, 11-in min tread
  • Comfort rule: 2 × riser + tread should total 24–25 inches
Always verify both total run and headroom against your actual floor plan before finalizing stair dimensions. A staircase that meets riser and tread code can still fail if the run extends into a wall or the headroom drops below 6 ft 8 in at any point along the nosing line.

How to use this stair calculator

To use this stair calculator, you only need three field inputs. First, enter the total rise, which is the vertical distance from the lower finished floor surface to the upper finished floor surface. Be sure to include flooring, underlayment, and any subfloor adjustments in your measurement, because even a small error here changes every step. Second, enter your target riser height, the maximum comfortable height you want each individual step to be. Third, enter the tread depth, the horizontal distance from the front edge of one step to the front edge of the next.

The stair calculator determines the number of risers by dividing the total rise by your target riser height, then rounding the result up so no step exceeds the target. For example, a 108-inch rise with a 7.5-inch target gives 15 risers of exactly 7.2 inches each. Once the number of risers is set, the actual riser height is calculated by dividing the total rise by the number of risers. The number of treads is always one less than the number of risers, because the upper floor itself serves as the final tread. In that same 108-inch example, you get 14 treads and a 147-inch run at 10.5-inch treads, resulting in a 34.4-degree angle.

A second verified example shows how the math adapts to different inputs. A 96-inch rise gives 13 risers of 7.38 inches, 12 treads, and a 120-inch run at 10-inch treads. A third example uses a 120-inch rise with an 11-inch tread, producing 16 risers of 7.5 inches. In that case, the comfort formula 2R + T equals 26.0 inches, which is slightly steep-feeling but still within code. The traditional comfort rule says that two times the riser plus the tread should fall between about 24 and 25 inches. The first example gives 24.9 inches, right in the comfort zone.

The stair calculator also provides a stringer length approximation, which is the diagonal distance along the cut board that supports the treads and risers. This approximation uses the total run and total rise as the two legs of a right triangle, with the stringer as the hypotenuse. Keep in mind that the stringer length is an approximation and does not account for thickness of tread material, nosing overhang, or waste at the ends. Always cut a test stringer and dry-fit it before committing to the final cuts.

  • US residential code (IRC) limits: maximum riser height 7.75 inches, minimum tread depth 10 inches.
  • Commercial stairs (IBC) are stricter: 7-inch max riser, 11-inch min tread.
  • Comfort rule: 2 x riser + tread should fall between about 24 and 25 inches.
Always measure total rise from finished floor to finished floor. A mistake of just half an inch across 15 risers changes every step height, which can create a trip hazard and fail inspection.

Common stair mistakes

One of the most frequent errors people make when using a stair calculator is measuring the total rise to the subfloor rather than the finished floor. If you plan to install hardwood, tile, or carpet on top of the subfloor, that added thickness changes your total rise. Even a half-inch difference spread across multiple steps alters each riser height enough to create a noticeable inconsistency. Always measure from the finished surface of the lower floor to the finished surface of the upper floor to get accurate results.

Uneven first or last risers are the classic trip hazard in stair construction. This happens when a builder calculates every riser at the target height but forgets to account for the actual finished floor levels at the top and bottom. The math is straightforward: the number of risers equals total rise divided by your target riser height, rounded up so no step exceeds the target. Your actual riser height is then total rise divided by the number of risers. For example, a 108-inch rise with a 7.5-inch target gives 15 risers of exactly 7.2 inches each. If your bottom or top riser does not match that 7.2-inch actual height because of flooring thickness, someone will eventually catch a foot on the mismatched step.

Another common mistake is forgetting that tread count is risers minus one. The number of treads is always one less than the number of risers, because the upper floor itself serves as the final tread. In the 108-inch example above, 15 risers mean 14 treads. At 10.5 inches per tread, that gives a 147-inch total run and a 34.4-degree angle. A separate verified example with a 96-inch rise produces 13 risers of 7.38 inches, 12 treads, and a 120-inch run at 10-inch treads. Builders who forget the risers-minus-one rule often end up with an extra tread that pushes the staircase beyond its planned footprint.

Code limits exist for a reason, and ignoring them is a mistake that can fail an inspection. US residential code under the IRC allows a maximum riser height of 7.75 inches and a minimum tread depth of 10 inches. Commercial stairs under the IBC are stricter, with a 7-inch maximum riser and an 11-inch minimum tread. A 120-inch rise with an 11-inch tread yields 16 risers of 7.5 inches, and the comfort formula 2R + T equals 26.0 inches, which feels slightly steep but remains within code. The traditional comfort rule says 2 times riser plus tread should fall between about 24 and 25 inches. The 108-inch example hits 24.9 inches, right in that comfort range.

  • Measure total rise from finished floor to finished floor, not subfloor to subfloor
  • Calculate risers as total rise divided by target riser height, rounded up so no step exceeds the target
  • Divide total rise by the number of risers to get your actual riser height, and make sure every step matches it
  • Remember that treads always equal risers minus one, because the upper floor is the final tread
  • Check that riser height stays under 7.75 inches (IRC residential) or 7 inches (IBC commercial)
  • Check that tread depth stays at or above 10 inches (IRC residential) or 11 inches (IBC commercial)
  • Aim for 2R + T between 24 and 25 inches for comfortable stairs
A mismatched first or last riser is the most common cause of stair-related trips. Always recalculate after finalizing your flooring choices, and confirm that every riser matches the actual riser height before installation.

FAQs

How many risers do I need for a 9-foot ceiling?

For a 108-inch floor-to-floor rise at a 7.5-inch target, you need 15 risers of exactly 7.2 inches each, with 14 treads. The calculator divides the total rise evenly across whole risers, giving you a safe and comfortable staircase for a standard 9-foot ceiling.

What is the maximum riser height allowed?

The maximum riser height is 7.75 inches under the US residential IRC and 7 inches under the commercial IBC. Minimum tread depth is 10 inches (IRC) or 11 inches (IBC). Always check local codes, as some jurisdictions adopt stricter requirements than the baseline standards.

Why is the actual riser height different from my target?

The riser count must be a whole number, so the calculator rounds the count up and divides the total rise evenly. For example, 108 / 15 = 7.2 inches, not 7.5. This ensures each step is identical, which is critical for safety and code compliance.

What is the 2R + T rule?

Twice the riser plus the tread should total about 24-25 inches for a comfortable stride. In the verified example, 2 x 7.2 + 10.5 = 24.9. This rule of thumb helps ensure stairs feel natural to walk on, neither too steep nor too shallow for most users.

How long will my staircase be?

Total run equals treads multiplied by tread depth. The 9-foot example needs 147 inches (12.25 ft) of horizontal space. Measure your available floor area before building to confirm the staircase fits without conflicting with walls, doors, or other structural elements.

Why are there fewer treads than risers?

The upper floor serves as the last tread, so treads equal risers minus 1. With 15 risers you get 14 treads. The top step lands directly on the upper floor surface, which acts as the final walking surface in the staircase.

Sources

Related calculators

Concrete Calculator
Concrete volume for a slab in cubic yards and m³, plus exactly how many 60 lb and 80 lb pre-mix bags — with and without 10% waste.
Drywall Calculator
Sheets of drywall for a room: wall and ceiling area minus doors and windows, plus 10% for cuts — for 4×8, 4×10 and 4×12 sheets.
AASHTO Group Index Calculator
AASHTO group index and soil group (A-1 to A-7) from the percentage passing the 75 um sieve, liquid limit and plasticity index, with the capped index terms and the subgrade quality the index implies.