Stair Calculator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free stair calculator. Enter the total rise to get the number of steps, riser height, tread run, total run, stringer length and angle, checked against code.
- Riser height
- 0
- Treads
- 0
- Total run
- 0
- Stringer length
- 0
- Angle
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the stair calculator
- Choose inches or centimeters.
- Enter the total rise: the vertical distance from the finished floor at the bottom to the finished floor at the top. Measure carefully, including floor coverings if they're already in place or planned.
- Enter the maximum riser height. The default is 7¾ inches (or 19.6 cm), the maximum allowed in the US International Residential Code (IRC) for homes. Change it if your local code or design calls for less.
- Enter the tread depth (the run of each step). The default is 10 inches (25.4 cm), the IRC minimum.
The stair calculator shows the number of steps (risers), the exact riser height, the number of treads, the total run, the stringer length and the stair angle. It also checks the riser and tread against the code limits and the comfort rule many builders use.
Stair terms
- Total rise: the height the stairs climb, floor to floor.
- Riser: the vertical part of each step; also the height of each step.
- Tread: the horizontal part you step on.
- Run (tread depth): the horizontal depth of each step, measured from the front of one riser to the front of the next (not counting the nosing overhang).
- Total run: the horizontal distance the stairs cover.
- Stringer: the sloping board that supports the treads and risers.
- Nosing: the front edge of the tread that overhangs the riser below.
- Headroom: the vertical clearance above the stairs.
How to calculate stairs
- Number of risers = total rise ÷ maximum riser height, rounded up.
- Riser height = total rise ÷ number of risers.
- Number of treads = number of risers − 1 (the top floor acts as the last step).
- Total run = number of treads × tread depth.
- Stringer length = √(total rise² + total run²).
For a total rise of 108 inches with a 7¾ in maximum:
- 108 ÷ 7.75 = 13.94, rounded up to 14 risers
- Riser height: 108 ÷ 14 = 7.71 in
- Treads: 13
- Total run: 13 × 10 = 130 in (10 ft 10 in)
- Stringer: √(108² + 130²) = 169 in
The stair calculator does all of this instantly.
US residential code limits
For stairs in one- and two-family homes, the International Residential Code (section R311.7.5) sets:
- Maximum riser height: 7¾ inches (196 mm).
- Minimum tread depth: 10 inches (254 mm).
- Consistency: within a flight, the greatest riser and the smallest riser may differ by no more than ⅜ inch, and the same applies to treads. Equal steps prevent trips.
The IRC also sets requirements for headroom (generally at least 6 ft 8 in), stair width, nosings, handrails and guards. Many US states and cities adopt the IRC with local amendments, and commercial buildings follow different codes. Other countries have their own rules; for example, the UK's Approved Document K sets limits for private stairs. Always check the code that applies where you're building.
The comfort rule
Builders often use a rule of thumb for comfortable stairs:
2 × riser + tread ≈ 24 to 25 inches (about 61 to 64 cm)
This relates the step to a typical walking stride. With a 7.71 in riser and a 10 in tread, 2 × 7.71 + 10 = 25.4 in, which is a slightly long stride but within normal limits. A 7 in riser with an 11 in tread gives 25 in, which many people find very comfortable. The stair calculator shows this figure as a guide.
Stair angle
Most comfortable residential stairs have an angle of about 30° to 37°. Steeper stairs save space but are harder to climb and descend safely; shallower stairs take up more floor space. The stair calculator shows the angle from the riser height and tread depth.
Tips for building stairs
- Measure the total rise accurately at the stair location, and account for finished flooring at the top and bottom, which changes the first and last step heights.
- Make all risers equal. Even a small difference between steps can cause trips.
- Mark stringers carefully with a framing square and stair gauges, and cut a test stringer first.
- Allow for tread thickness when cutting the bottom of the stringer, so the first step isn't too tall.
- Check headroom along the whole flight.
- Install handrails and guards as the code requires.
- Get a permit if your area requires one for new stairs.
Outdoor steps and decks
Deck stairs follow similar rules. Outdoor steps in gardens and landscapes often use lower risers and deeper treads, such as 6 inch risers with 14 to 16 inch treads, for comfort and safety on uneven ground. Enter a lower maximum riser and a deeper tread in the stair calculator to plan them.
A worked example
Alex is building basement stairs. The total rise from the basement slab to the finished upstairs floor is 96 inches. Alex wants risers no higher than 7½ inches and treads of 10½ inches.
In the stair calculator: 96 ÷ 7.5 = 12.8, rounded up to 13 risers of 7.38 in, with 12 treads. Total run = 12 × 10.5 = 126 in. Stringer length = √(96² + 126²) = 158.4 in (about 13 ft 2½ in), so Alex buys 14 ft stringer boards. The angle is about 35.1°, and 2 × 7.38 + 10.5 = 25.3 in.
Who uses a stair calculator
Carpenters and builders use it to lay out stringers. Homeowners use it to plan deck stairs and basement renovations. Architects and designers use it for quick checks, and inspectors use it to confirm dimensions.
Get the next job from Google
Homeowners search Google when something breaks. Search ads put a local trade business at the top of those searches. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.
Stair dimensions at a glance
| Total rise | Risers (7¾ in max) | Riser height | Treads | Total run at 10 in |
|---|---|---|---|---|
| 48 in | 7 | 6.86 in | 6 | 60 in |
| 72 in | 10 | 7.20 in | 9 | 90 in |
| 96 in | 13 | 7.38 in | 12 | 120 in |
| 108 in | 14 | 7.71 in | 13 | 130 in |
| 120 in | 16 | 7.50 in | 15 | 150 in |
These figures come from the same method the stair calculator uses. In practice, many builders choose a lower riser (around 7 to 7½ in) and a deeper tread (10½ to 11 in) for comfort if there's enough space.
Space for the stairs
Before you design stairs, check that you have room for the total run plus a landing at the top and bottom. Short on space? Options include:
- A landing partway up, turning the stairs 90° or 180° (an L-shaped or U-shaped stair).
- Winder treads that turn the corner without a landing, within the limits the code sets for winders.
- Spiral stairs, which have their own code rules and are usually not suitable as the main stairs in a home.
Each flight between landings is calculated the same way: divide its rise by the riser height, and keep every riser and tread consistent.
Headroom
The IRC requires minimum headroom of 6 ft 8 in (2,032 mm) above the stairs, measured vertically from a sloped line through the tread nosings. If a floor or beam above is too low, you may need to move the stairs, change their direction or reframe the opening. Check this early: it's much harder to fix once the stringers are cut.
Handrails and guards
The IRC generally requires a handrail on at least one side of stairs with four or more risers, at a height of 34 to 38 inches measured vertically from the tread nosings. Open sides of stairs and landings more than 30 inches above the floor or ground below need guards. Balusters must be spaced so a 4 3/8 inch sphere can't pass through on the open side of stairs (4 inches elsewhere). Local codes may differ, so check with your building department.
Deck stairs
Deck stairs follow the same calculation as indoor stairs, but the total rise is measured from the deck surface to the ground or landing pad where the stairs will end, which may slope. Measure where the bottom step will actually land. Outdoor stringers are usually pressure-treated, and many codes require handrails and specific connections to the deck frame. Enter the measured rise in the stair calculator and check the result against your local deck code.
Sources and further reading
- International Code Council: 2021 International Residential Code, including section R311.7 on stairways.
- Stairs on Wikipedia: stair design, terminology and history.
- Pythagorean theorem on Wikipedia: the maths behind stringer length.
Frequently asked questions
How do I calculate the number of stairs?
Divide the total rise by the maximum riser height and round up. That's the number of risers; there's one fewer tread.
What is the maximum stair riser height?
In the US International Residential Code, 7¾ inches for homes. Check your local code.
What is the minimum tread depth?
10 inches under the IRC for homes.
How many stairs are needed for a 9-foot ceiling?
With about 9 ft 9 in (117 in) of total rise including the floor structure, 16 risers of about 7.3 in. Measure your actual total rise.
How do I calculate stringer length?
Stringer length = √(total rise² + total run²).
Is the stair calculator free?
Yes. It's free, needs no sign-up, and works in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.