Stair Calculator
Enter your floor-to-floor height to get the number of steps, riser height, tread depth, stringer length and stair angle, with a check against IRC limits.
Stair Calculator
Calculate stair dimensions including number of steps, rise, run, stringer length, and ensure compliance with building codes. This calculator helps design safe and comfortable stairs for residential and commercial applications.
Basic Measurements
Step Dimensions
Stair Type & Options
Stair Calculator
Most people assume a stair calculator is a simple division problem: take the total height and split it into equal steps. A stair calculator exists to solve a more subtle problem: finding the set of riser heights and tread depths that divide the total rise cleanly, stay within code limits, and produce a comfortable gait. The tool works out step count and dimensions for a specific stair by starting from one measurement, the vertical distance from finished floor to finished floor, and then applying a set of rules that balance rise, run, and the physical reality of a human stride. You can measure that critical starting point, operate the calculator in its different modes, and read the results to cut stringers with confidence.
How to Measure Total Rise (Finished Floor to Finished Floor)
The single most important measurement you will take is the total rise, and it is the one most often botched. Total rise is the vertical distance from the top surface of the finished lower floor to the top surface of the finished upper floor, where the stair will land. If you are building on a wood subfloor, you must add the thickness of the finished flooring, whether that is hardwood, tile, or carpet, before you take the reading. A 3/4-inch hardwood floor on the lower level and a 1/2-inch underlayment plus carpet on the upper level can shift every riser by over an inch if you ignore it.
Here is the practical method. Do this at several points along the proposed stair opening, because floors are rarely perfectly level. If you find a 1/2-inch slope across a 36-inch width, you have a decision to make: either split the difference across all risers, or adjust the bottom riser to absorb the variation. The second is to also enter the total run, the horizontal distance the stairs must cover, which constrains the tread depth and forces the calculator to fit the steps into a specific footprint. If you are building into a stairwell or between walls, measure the available run and enter it so the results match the space you have.
The calculator also asks you to select a stair type, and this changes the acceptable ranges. For exterior stairs, such as a deck stair, the same general ranges apply, but you must account for the fact that the bottom landing is often lower than the deck surface, so the total rise includes the height of the deck framing plus the thickness of the decking. The calculator's job is to take your total rise, apply the code limits, and then find the combination of riser count and riser height that lands as close as possible to the comfort rules of thumb, which we cover below.
Understanding the Calculator's Key Outputs
The riser height is the vertical distance from the top of one tread to the top of the next, and it is the number that must be identical for every step. The tread depth is the horizontal distance from the nosing of one tread to the nosing of the next, and it must be deep enough for your foot to land fully. The total run is the tread depth multiplied by the number of treads, which is one fewer than the number of risers because the top riser lands on the upper floor. The stair angle is the arctangent of the riser divided by the tread, and it gives you a sense of how steep the stair is.
The code check is where the calculator earns its keep. It compares your chosen dimensions against the 2021 IRC R311.7 limits, flagging any riser over 9.5 inches, any tread under 9.5 inches, and any variation between adjacent risers that exceeds 3/8 inch. It also checks the two rules of thumb that most inspectors use informally: the Blondel formula, where twice the rise plus the run should equal about 24.5 inches, and the rise-plus-run rule, where the sum should be about 17.5 inches. These are not code requirements, but they predict whether a stair feels comfortable to climb. The calculator's comfort rating gives you a read on this, so you can adjust the riser or tread to get closer to the sweet spot before you cut.
Comfort Rating and the Human Factor
The comfort rating is the output that most online stair calculators get wrong, or omit entirely. The first, Blondel's formula, states that twice the rise plus the run should land near 25 inches. The second, the rise-plus-run rule, says the sum should be near 18 inches. A riser of 7 inches and a tread of 11 inches gives a Blondel score of 25 and a rise-plus-run of 18, both within a comfortable range. The calculator cannot know your height, your knee health, or whether you are carrying a mattress up the stairs. What it can do is tell you where your chosen dimensions fall on the comfort spectrum, so you can make an informed trade-off between code compliance and real-world usability. If you are building a vacation rental where every square foot of floor space matters, you may accept a steeper stair.
Common Mistakes and How to Avoid Them
The most common failure in stair building is not a math error in the calculator, but a measurement error that enters before the numbers ever get crunched. Every riser is then too short by 1/12 inch, and the bottom step is a trip hazard. When you cut a stringer, the top of the stringer is where the tread sits, and the riser height is measured from the top of one tread to the top of the next. If you are using 1-inch-thick treads, you must subtract that thickness from the riser height when you lay out the stringer.
Using the riser height and tread depth, you can calculate the stringer length, which is the length of the 2x12 board you need to buy. The stringer length is the hypotenuse of a right triangle with the total rise on one leg and the total run on the other. The calculator gives this to you directly, but it is worth understanding the math so you can check the work. The formula is the square root of (total rise squared plus total run squared). For a total rise of 105 inches and a total run of 110 inches, the stringer length is about 152 inches, so you would need a 12-foot 2x12.
The throat is the amount of wood left below the notch where the treads and risers meet. If the throat comes out too thin, you have two options: use a 2x12 instead of a 2x10, which gives you more material to work with, or add intermediate support so the stringer does not flex. The calculator tells you the throat so you can catch this before you cut, not after.
What to Do When the Normal Route Is Closed
When that happens, you have a few options, and you should choose one before you cut any wood.
The first option is a landing. A landing is a flat platform that breaks up a long run of stairs, and the IRC requires one if the stair has more than 12 risers in a single flight. A landing does not change the riser height or tread depth, but it splits the total rise into two shorter flights, which can help you fit the stairs into an L-shaped or U-shaped opening. The landing is not included in the total run, so you have to measure it separately, and it must be at least 36 inches long in the direction of travel.
The second option is a winder, which is a set of tapered treads that turn a corner. Winder treads are narrower on one side than the other, and the IRC requires that the tread depth at the walkline, which is 12 inches from the narrow end, be at least 9.5 inches. If you are considering a winder, you are better off using a dedicated winder stair calculator design guide, because the layout is error-prone and a mistake is expensive.
The third option is to change the stair type. If you are building exterior deck stairs, you may be able to reduce the total rise by building the deck lower, which reduces the number of steps and the total run. If you are building interior stairs and the ceiling height is fixed, you may need to accept a steeper angle, but only within the code limits.
Deck Stairs and Special Cases
Deck stairs are a special case because the total rise often includes the height of the deck framing plus the thickness of the decking, and the bottom landing is usually a concrete pad that sits lower than the finished grade. The IRC requires that the bottom landing be at least as wide as the stair and 36 inches long in the direction of travel, and it must be level. If you are using composite decking, which is often thicker than wood, measure the actual thickness of the board and add it to the framing height. The same rule applies to the bottom pad: the total rise is from the top of the pad to the top of the deck surface, so if you pour the pad too high, you can make up the difference with the bottom riser, but only within the 3/8-inch variation limit.
The Honest Caveat About Stair Calculators
Here is the truth about stair calculators: they are not a substitute for careful field measurement. They do not know that your floor slopes, that your stringer lumber is bowed, or that your stairwell is not square. Check that the riser height and tread depth match at every point. Use a framing square with stair gauges, and double-check the total rise against the actual opening before you cut. If something does not line up, stop and remeasure. A 1/4-inch error in the total rise becomes a 1/4-inch error in every riser, and that is enough to fail inspection. The calculator gets you 95 percent of the way there, but the last 5 percent is the difference between a stair that passes and a stair that is safe.
Stair Calculator FAQ
What is the maximum riser height allowed by the 2021 IRC?
The 2021 IRC R311.7 limits risers to a maximum of 9.5 inches. The calculator flags any riser over this height as a code violation.
How do I calculate the stringer length for my stairs?
Stringer length is the hypotenuse of a right triangle: square root of (total rise squared plus total run squared). For example, with a 105-inch rise and 110-inch run, the stringer is about 152 inches, requiring a 12-foot 2x12.
What is the minimum tread depth at the walkline for a winder?
The IRC requires winder tread depth at the walkline (12 inches from the narrow end) to be at least 9.5 inches. This is the same minimum as standard treads.
When is a landing required for a stair flight?
Q: When is a landing required for a stair flight?The landing must be at least 36 inches long in the direction of travel.
What is the maximum allowed variation between adjacent risers?
Adjacent risers cannot vary by more than 3/8 inch under the 2021 IRC. The calculator flags any variation exceeding this limit as a code violation.
How does the Blondel formula predict stair comfort?
The Blondel formula states that twice the rise plus the run should equal about 24.5 inches. For example, a 7-inch rise and 11-inch tread gives a score of 25, which is within a comfortable range.