Carpenters

Stair Rise and Run Calculator

Calculate stair riser and tread dimensions to comply with IRC building code. Find number of steps for safe, code-compliant stairs.

Stair Rise & Run Calculator
Precision disclaimer: IRC limits: riser max 7.75", min 4", tread min 10". Local codes may differ. Results are for reference only. Consult local building codes and a licensed contractor.

How to Use This Calculator

Building stairs that are comfortable and code-compliant starts with the numbers. The IRC (International Residential Code) sets strict limits: risers can’t exceed 7-3/4 inches, treads must be at least 10 inches deep, and all steps in a flight must be the same height (within 3/8 inch). When those measurements are consistent, people don’t trip.

Enter your total rise—the vertical distance from one floor level to another. The calculator divides that by your target riser height (most carpenters aim for 7 to 7.5 inches for comfort). This gives you the number of steps needed. Once you know how many steps you’re building, the calculator back-solves for the exact riser height, then tells you whether you’ve met code.

Example: Your deck is 42 inches above ground. Divide by 7 inches per riser: 42 ÷ 7 = 6 risers. That means 5 treads (one fewer than the number of risers). Your actual riser height is 42 ÷ 6 = 7 inches exactly. All steps are identical, well within the 3/8-inch variation limit. You’re good to build.

Formula

Number of Risers: Number of risers = Total rise (inches) / Target riser height (inches)

Round to the nearest whole number if needed, then recalculate the actual riser height:

Actual Riser Height: Riser height = Total rise / Number of risers

Tread Depth Verification: Verify that your chosen tread depth meets or exceeds 10 inches per IRC R311.7.1.

Riser Height Variance: All risers must vary by no more than 3/8 inch (the last riser, which accommodates floor level differences, can be 3/8 inch different from the others).

When to Use This

Every staircase, every time. I’ve seen carpenters eyeball stairs, build them, and then get a code violation—which means ripping out work and rebuilding. The inspector will measure. It takes 60 seconds with a calculator to get it right.

Interior stairs between floors, basement stairs, deck stairs, and commercial stair runs all follow the same IRC rules. The only exception is stairways to lofts in residential buildings (some jurisdictions have relaxed rules there), so check local code. The math is the same whether you’re framing rough or finishing—do it before you cut lumber.

Code References

  • IRC R311.7.1: Riser height maximum of 7-3/4 inches, minimum 4 inches (though 4 inches is rare)
  • IRC R311.7.2: Tread depth minimum of 10 inches (measured from nosing to nosing)
  • IRC R311.7.3: Riser and tread dimensions must be consistent within 3/8 inch throughout the flight
  • IRC R311.3: Stairs must be continuous from floor to floor without landings (unless the stairway is unusually long—then you need a landing midway)

Frequently Asked Questions

What if my total rise doesn’t divide evenly by 7-3/4?

Then you adjust. If you have 42 inches to climb and 42 ÷ 7.75 = 5.42 risers, you can’t build 5.42 steps. You build either 5 steps (42 ÷ 5 = 8.4 inches each—too tall, code violation) or 6 steps (42 ÷ 6 = 7 inches each—code compliant). Always round up to more steps, which makes each step shorter and safer.

Does the code allow different riser heights on the first and last step?

The last riser is allowed to be different because it has to accommodate the finished floor height of the upper level. All intermediate risers must match. The first riser (from the floor up) must also match all others. This is where the 3/8-inch tolerance comes in.

My deck is 48 inches high, but the ground slopes. Do I measure from the highest or lowest point?

Measure from the lowest point where someone would step off the deck. Code assumes the user leaves via the lowest exit point. If the ground slopes significantly, you may need to extend or rebuild the landing. Never rely on grade slope to accommodate poor stair math.

What’s a nosing, and why is it important for tread depth?

The nosing is the part of the tread that sticks out past the riser below it. Tread depth is measured from the face of one riser to the nosing of that tread. A 10-inch tread with a 1-inch nosing means only 9 inches of usable step—that’s the minimum. More is better; fewer causes crammed feet and people missing steps.

Can I use a steeper rise and shallower tread to save space?

No. Both dimensions are code minimums. You can’t trade one for the other. If you’re cramped for space, you build more steps, making them taller and deeper together. Building 6 steps at 7” rise and 11” tread is better than cramming 4 steps at 12” rise and 8” tread, even though both climb the same height.


Want more advanced calculations?

Check out our professional apps →