Staircase Calculator
Calculate stair dimensions from total rise. Get number of steps, riser height, tread depth, stair angle, and building code compliance.
This stair calculator determines the number of steps, riser height, tread depth, stair angle, and stringer length from your total rise measurement. Enter the floor-to-floor height and preferred riser height, and the tool divides the rise evenly into steps, checks building code compliance, and draws a side-view SVG diagram of the staircase.
Estimates only. Always verify quantities with a professional before purchasing materials. Building projects must comply with local codes and regulations.
About Staircase Calculator
How Stair Calculations Work
| Value | Formula | Example (108 in total rise, 7 in preferred riser) |
|---|---|---|
| Number of risers | Total rise / Preferred riser height (rounded) | 108 / 7 = 15.4, rounded to 15 |
| Actual riser height | Total rise / Number of risers | 108 / 15 = 7.2 inches |
| Number of treads | Number of risers - 1 | 15 - 1 = 14 treads |
| Total run | Number of treads x Tread depth | 14 x 10.5 = 147 inches (12.25 ft) |
| Stair angle | arctan(Total rise / Total run) | arctan(108 / 147) = 36.3 degrees |
| Stringer length | sqrt(Rise² + Run²) | sqrt(108² + 147²) = 182.4 inches (15.2 ft) |
The number of treads is always one less than the number of risers because the top landing counts as the final step but does not need a separate tread.
IRC Building Code Requirements
The International Residential Code (IRC) sets minimum standards for residential stairs in the United States. The calculator checks your design against these limits:
| Dimension | IRC Requirement | What It Means |
|---|---|---|
| Maximum riser height | 7.75 inches (197 mm) | Taller risers feel steep and increase trip risk |
| Minimum tread depth | 10 inches (254 mm) | Your foot needs enough surface to land safely |
| Minimum stair width | 36 inches (914 mm) | Allows comfortable passage and furniture moving |
| Maximum riser variation | 3/8 inch (9.5 mm) | All risers must be nearly identical height to prevent tripping |
| Minimum headroom | 6 ft 8 in (2,032 mm) | Measured vertically from tread nosing to any overhead obstruction |
| Handrail height | 34-38 inches | Measured vertically from tread nosing |
The calculator shows green checks for dimensions that comply and red warnings for those outside limits. Always verify with your local building authority, as some jurisdictions have stricter requirements than the IRC.
Comfortable Stair Design
Building codes set the minimum, but comfort depends on the relationship between riser height and tread depth. Two common rules of thumb have been used by architects for centuries:
| Rule | Formula | Example |
|---|---|---|
| Blondel's rule (17th century) | 2 x Riser + Tread = 24-25 inches | 2 x 7 + 11 = 25 inches (ideal) |
| Riser x Tread rule | Riser x Tread = 70-75 | 7 x 10.5 = 73.5 (ideal range) |
Standard Stair Dimensions by Use
| Application | Typical Riser | Typical Tread | Angle | Notes |
|---|---|---|---|---|
| Residential interior | 7-7.5 in | 10-11 in | 30-35° | Most comfortable for daily use |
| Residential exterior | 6-7 in | 11-12 in | 27-32° | Shallower for safety in wet conditions |
| Commercial / public | 6-7 in | 11-12 in | 27-32° | Shallower for high traffic and accessibility |
| Deck stairs | 7-7.75 in | 10-11 in | 30-37° | May use open risers |
| Steep / space-saving | 8-9 in | 8-9 in | 40-50° | Loft ladders, attic stairs (may not meet code) |
Stair Angle Guide
| Angle Range | Feel | Typical Use |
|---|---|---|
| 20-25° | Very gentle, almost a ramp | Exterior access ramps, grandstand seating |
| 25-30° | Comfortable, easy climb | Public buildings, wide exterior stairs |
| 30-35° | Standard residential | Most home staircases |
| 35-40° | Steeper but acceptable | Compact home stairs, deck stairs |
| 40-45° | Steep, use handrail | Attic stairs, ship ladders |
| 45°+ | Ladder-like | Not recommended for regular use |
Common Total Rise Measurements
| Scenario | Typical Total Rise | Steps (at 7.25 in riser) |
|---|---|---|
| Standard floor-to-floor (8 ft ceiling) | 105-110 inches | 14-15 steps |
| 9 ft ceiling | 117-122 inches | 16-17 steps |
| 10 ft ceiling | 129-134 inches | 18 steps |
| Deck (3 ft above ground) | 36 inches | 5 steps |
| Porch (2 ft above ground) | 24 inches | 3-4 steps |
Side-View Diagram
The SVG drawing shows the stair profile with labelled risers and treads, so you can visualise the proportions before cutting stringers. The stringer is the diagonal board that supports the steps - its length is calculated using the Pythagorean theorem from the total rise and total run. For a deeper walkthrough of the triangle maths, see the Pythagorean theorem calculator.
IRC vs IBC: How Residential and Commercial Differ
Most DIY projects follow the International Residential Code (IRC), but stairs in shops, offices, restaurants, or any occupied commercial building fall under the International Building Code (IBC). The two codes use different limits, and a stair that passes IRC inspection can fail IBC inspection.
| Dimension | IRC 2024 (Residential) | IBC 2024 (Commercial) |
|---|---|---|
| Maximum riser height | 7.75 in | 7 in |
| Minimum tread depth | 10 in (11 in without nosing) | 11 in |
| Minimum stair width | 36 in | 44 in (occupant load > 50) |
| Minimum headroom | 6 ft 8 in | 6 ft 8 in |
| Handrail height | 34-38 in | 34-38 in |
| Riser/tread variation | 3/8 in max | 3/8 in max |
The IBC limits come from IBC 2024 Section 1011.5.2. The shallower 7-inch riser and deeper 11-inch tread result in a gentler 32-degree angle, which suits buildings with higher foot traffic and a wider range of user abilities. Basement and attic stairs in a single-family home stay under IRC.
Why Accurate Stair Dimensions Matter
Falls on stairs send over a million people to emergency rooms in the United States each year and cause roughly 12,000 deaths, according to figures compiled from CDC WISQARS data and National Safety Council reports. A 2017 study published in The American Journal of Emergency Medicine (Starr et al.) analysed 24.7 million stair-related ER visits between 1990 and 2012 and found the incidence actually rose 24% over that period despite stricter building codes. Sprains and soft tissue injuries account for around 60% of cases, fractures around 19%.
The single most common cause of a stair fall is a riser that varies in height from its neighbours by more than 3/8 inch. Human gait calibrates to the first step - if the last riser is taller or shorter, the foot lands wrong. That is why the 3/8 inch tolerance in both IRC and IBC is a hard limit, not a suggestion. When you lay out a stair, divide the total rise by the number of risers and accept the exact decimal - do not round to a "nicer" number and absorb the difference in the top or bottom step.
Worked Example: 9-Foot Floor-to-Floor
A typical modern home with 9-foot ceilings plus a 12-inch floor system gives a total rise of 117 inches (2,972 mm). Using a preferred riser of 7.25 inches and a tread of 10.5 inches:
- Number of risers: 117 / 7.25 = 16.14, rounded to 16 risers
- Actual riser height: 117 / 16 = 7.31 inches (within IRC 7.75 max)
- Number of treads: 16 - 1 = 15 treads
- Total run: 15 x 10.5 = 157.5 inches (13.125 ft)
- Stair angle: arctan(117 / 157.5) = 36.6 degrees
- Stringer length: sqrt(117² + 157.5²) = 196.2 inches (16.4 ft)
- Blondel check: 2 x 7.31 + 10.5 = 25.12 inches (within the 24-25 inch ideal band)
You would cut two 2x12 stringers at about 16 ft 6 in to allow for the top and bottom cuts, then lay out 15 treads with a framing square set to 7.31 inches and 10.5 inches.
How Much Space Does a Staircase Need?
The horizontal footprint of a straight stair is the total run plus landings at top and bottom. For the 9-foot example above, the 13.1 ft run plus two 36-inch landings totals 19.1 linear feet, times a 36-inch width, or about 57 square feet of floor space consumed per level. Space-saving alternatives trade footprint for complexity:
| Stair Type | Footprint | Notes |
|---|---|---|
| Straight run | Largest (15-20 sq ft per floor, excl. landings) | Cheapest, easiest to build, safest |
| L-shape with landing | Medium | Breaks long runs, fits corners |
| U-shape (switchback) | Compact | Common in row houses, needs double stringers |
| Winder (pie-shaped treads) | Very compact | IRC allows but tread narrows - 6 in min at walkline |
| Spiral | Smallest (about 40 sq ft) | IRC allows only as secondary egress in dwellings |
For sizing the stairwell opening - the hole cut through the floor above - you need length equal to headroom divided by the stair slope. An IRC-required 80 inches of headroom at a 36-degree slope means an opening at least 80 / tan(36) = 110 inches (9 ft 2 in) long measured horizontally from the top riser. The square footage calculator can help size the floor opening and any landings.
Common Stair Design Mistakes
- Forgetting the tread count is one less than the riser count. If you order lumber for 15 treads when you have 15 risers, you will end up one tread short.
- Measuring total rise from finished floor to subfloor. Always measure finished floor to finished floor - flooring thickness at both levels affects the actual rise.
- Ignoring nosing. If your tread is exactly 10 inches, IRC 2024 requires a nosing projection of 3/4 to 1-1/4 inch. Without nosing, the minimum tread becomes 11 inches.
- Mixing units. Converting 9 feet to 108 inches is correct, but 9.5 feet is 114 inches, not 95. Double-check decimal feet conversions.
- Skipping the 3/8 inch uniformity check. Even a code-legal design can fail inspection if field construction drifts by more than 3/8 inch between the largest and smallest riser.
- Assuming a 45-degree stair is "steep but fine". Anything over 42 degrees feels ladder-like and is usually rejected by inspectors for primary stairs.
For estimating concrete quantities for outdoor stairs or the pad at the base, the concrete calculator handles cubic-yard volume calculations. All calculations here run in your browser with no data stored.
Sources
- ICC - 2024 International Residential Code, Section R311.7 (Stairways)
- ICC - 2024 IBC Section 1011.5.2 (Riser Height and Tread Depth)
- Starr et al. (2017) - Stair-Related Injuries Treated in US Emergency Departments, Am J Emerg Med
- CDC - Falls Data and Statistics (WISQARS)
- Fine Homebuilding - Residential Stair Code Basics (2024)
- OSHA 1910.25 - Workplace Stairways (Commercial Reference)
Frequently Asked Questions
How do I calculate the number of stairs I need?
Measure the total vertical height from one floor to the next (total rise). Divide by your preferred riser height, typically 7 to 7.75 inches. Round to the nearest whole number. For example, a 108-inch rise divided by 7.5 inches equals about 14 steps.
What is the standard riser height for stairs?
The International Residential Code (IRC) sets a maximum riser height of 7.75 inches. Most comfortable stairs have risers between 7 and 7.5 inches. All risers in a staircase must be within 3/8 inch of each other.
What is the standard tread depth for stairs?
The IRC requires a minimum tread depth of 10 inches. Most comfortable stairs use 10 to 11 inches. The tread is measured from the nose of one step to the nose of the next, not including any overhang.
What is a comfortable stair angle?
The most comfortable stair angle is between 30 and 35 degrees. Building codes generally allow angles between 20 and 45 degrees. Steeper angles feel cramped and can be unsafe, while shallower angles take up more floor space.
How do I calculate the stringer length?
The stringer length is the hypotenuse of a right triangle formed by the total rise and total run. Use the Pythagorean theorem - square the total rise, square the total run, add them together, and take the square root. This calculator shows the stringer length automatically.
Related Tools
Link to this tool
Copy this HTML to link to this tool from your website or blog.
<a href="https://toolboxkit.io/tools/stair-calculator/" title="Staircase Calculator - Free Online Tool">Try Staircase Calculator on ToolboxKit.io</a>