ProCalc.ai
Pro
Constructionexplainer8 min read

Stair Calculator: Rise, Run & Building Codes

P

ProCalc.ai Editorial Team

Reviewed by Jerry Croteau, Founder & Editor

Table of Contents

I Almost Failed a Stair Inspection Once

True story. I was maybe three years into framing houses, and I built a set of stairs from a garage down to a basement workshop. Measured everything, cut the stringers, nailed it all together — honestly felt pretty good about the whole thing. Then the inspector showed up and told me my risers were about 8.5 inches tall. Code max was 7 3/4. I was off by three-quarters of an inch per step, and he failed me on the spot.

Three-quarters of an inch!

That's the thing about stairs. They seem simple — you're just going up or down, right? But the math has to be tight, the code requirements are oddly specific, and if you get the rise-to-run ratio even slightly wrong, somebody's going to trip. Or you're going to fail inspection. Or both. So I ended up building a stair calculator that handles all of this, because doing it by hand on a jobsite with a pencil and a speed square was giving me grief more often than I wanted to admit.

Rise, Run, and Why the Ratio Matters More Than You Think

The two numbers that define any staircase are the rise (how tall each step is) and the run (how deep each tread is, from front to back). And there's a relationship between them that's been studied for literally hundreds of years. The general rule of thumb — and I mean this goes back to like the 1600s or something — is that twice the rise plus the run should equal somewhere around 24 to 25 inches. Some people say 25, some say 24.5. The point is there's a sweet spot.

💡 THE FORMULA

2R + T = 24 to 25 inches

R = individual riser height (inches)
T = individual tread depth (inches)
Result should land between 24–25 for comfortable stairs

So if your risers are 7 inches, your treads should be around 10 to 11 inches deep. That feels natural to walk on. If your risers are 7.5 inches, you'd want treads closer to 10 inches. You can play with it, but stray too far from that range and the stairs feel weird — either too steep and choppy, or too shallow and you're taking baby steps.

Here's a worked example from a deck I built last summer. Total height from the finished deck surface down to the concrete pad was 38 inches. I wanted risers around 7 inches because that's comfortable and well within code.

38 divided by 7 is about 5.43 — so I can't do exactly 7-inch risers with a whole number of steps. I rounded up to 6 risers: 38 ÷ 6 = 6.333 inches per riser. That felt a little short, so I tried 5 risers: 38 ÷ 5 = 7.6 inches per riser. That's under the 7 3/4 max, so it works. Then I set my tread depth at 10 inches (the code minimum), checked the formula — 2(7.6) + 10 = 25.2 — and I was right in the zone. Five risers means four treads (you always have one fewer tread than risers, which confused me for years honestly), so the total horizontal run was 40 inches.

Building Code Requirements — The Stuff That'll Get You Failed

Building codes vary by jurisdiction, but most residential codes in the US follow the IRC (International Residential Code) pretty closely. Here's where people get tripped up — pun intended.

Code Requirement

IRC Specification

Common Mistake

Max riser height

7 3/4 inches (196mm)

Forgetting to account for finished flooring thickness

Min tread depth

10 inches (254mm)

Measuring to the nosing instead of the tread itself

Max riser variation

3/8 inch between any two risers

Not adjusting the top or bottom riser after flooring goes in

Min stair width

36 inches clear

Measuring before drywall and handrails reduce the width

Min headroom

6 ft 8 inches (80 inches)

Measuring from subfloor, not finished floor

Nosing projection

3/4 to 1 1/4 inches

Using treads with no nosing at all

That 3/8 inch maximum variation between risers is the one that kills people. I mean, not literally (well, sometimes literally — uneven stairs are a real hazard). But on the jobsite, this is the one that causes failed inspections constantly. Your top riser and your bottom riser are the usual culprits because the finished floor thickness changes things. If you're going from hardwood to tile, or subfloor to carpet, you need to account for that material thickness when you cut your stringers.

I've seen guys cut perfect stringers and then lose their minds when the inspector measures a 1/2 inch difference on the bottom step. It's because they cut the stringers before the finished floor went down and didn't subtract the flooring thickness from the bottom riser. Always subtract.

Your local code might be stricter than IRC. Always check.

Putting It All Together on a Real Project

Let's say you're building interior stairs from a first floor to a second floor. Your total rise — measured from finished floor to finished floor — is 106 inches. Here's how I'd work through it:

106 ÷ 7.5 (my target riser height) = 14.13. Can't have a fraction of a step, so I'll try 14 risers: 106 ÷ 14 = 7.571 inches per riser. That's under 7.75, so we're good. Now for treads — I want at least 10 inches, and the comfort formula says 2(7.571) + T should be around 25, so T = 25 - 15.14 = about 9.86 inches. That's just under 10, which is the code minimum, so I'd bump to 10 inches even and call it done. Thirteen treads (one fewer than risers) at 10 inches each means 130 inches of total horizontal run — that's 10 feet 10 inches of floor space for the stairwell.

That's a lot of floor space! And this is exactly why some builders go with steeper stairs or L-shaped configurations with a landing. A concrete calculator can help if you're pouring a landing pad, and if you're framing the stairwell opening you'll want to double-check your board footage for the headers and trimmers.

For deck stairs specifically, don't forget that pressure-treated lumber shrinks as it dries. I've had risers that were perfect at installation end up 1/4 inch short six months later. Some guys compensate by cutting risers slightly tall on exterior work. I'm not saying that's code-approved — I'm saying it happens, and there's a reason.

If you're working on a bigger project and need to figure out materials, a framing calculator will save you time on the lumber estimate. And for figuring out how much concrete you need for footings at the base of exterior stairs, the concrete slab calculator is pretty handy too. I also keep a percentage calculator bookmarked for when I'm figuring waste factors — I usually add about 10-15% for stair stringers because one bad cut on a 2x12 and you're back at the lumber yard.

How many treads do I need if I have 14 risers?

Thirteen. You always have one fewer tread than risers because the top "tread" is actually the floor you're stepping onto. This trips people up (myself included, for longer than I'd like to admit) but once it clicks, it clicks.

Can I use 2x10s for stair stringers instead of 2x12s?

It depends on your rise and run, but usually no — not for a standard residential staircase. Once you cut the notches for the treads and risers, a 2x10 often doesn't leave enough solid wood below the cut line. Most codes and best practices require at least 3.5 inches of uncut material below the notch, and with typical rise/run dimensions, a 2x12 is what you need. For very short runs with shallow rises, a 2x10 might technically work, but I'd just use the 2x12 and not worry about it.

What's the maximum number of risers before I need a landing?

The IRC doesn't actually limit the number of risers before requiring a landing — but it does say you need a landing at the top and bottom of every stairway, and the landing has to be at least as deep as the stair is wide. Many local codes DO limit the vertical rise to 12 feet between landings, which works out to roughly 18-19 risers depending on your riser height. Check with your local building department because this is one of those things that varies a lot by jurisdiction.

And if you're pricing out a project, a square footage calculator can help you figure out how much of your floor plan the stairwell is eating up. On a tight lot, that matters more than you'd think.

Related Calculators

Share:

Get smarter with numbers

Weekly calculator breakdowns, data stories, and financial insights. No spam.

Discussion

Be the first to comment!

More from Construction

We use cookies to improve your experience and show relevant ads. Read our privacy policy

Stair Calculator: Rise, Run & Building Codes Gu — ProCalc.ai