Stair Calculator
Table of contents
Stair stringers and treads: terminology explainedStair calculation formulasHow to count steps and why you're doing it wrong?Help! My stairs are uncomfortable to walk on!Building codes vs. childrenFAQsThis stair calculator brings together the three things we all love the most: stairs, math, and people being wrong. We will show you the difference between stair rises and runs, explain why some steps are a pain to walk on, and show you some neat stair calculation formulas. You'll also learn how to count stairs correctly, which will give you an advantage should you ever want to engage in verbal brawls on the identity of a single stair.
Excited? Let's dive right in!
Stair stringers and treads: terminology explained
Before we plunge into the stair calculation formulas and discuss why nobody on the Internet knows how to count steps, we need to establish a common ground: terminology. Our stair calculator uses many specialist terms, and it's important that you understand them before we move on:

Run/tread: the run of stairs is the horizontal part you step on.

Rise/riser: the vertical part of the stairs, measured between two consecutive treads.
Want to learn more about rises and runs? Visit the rise over run calculator.

Stair stringer: it's the construction that the steps are mounted on.

Angle: the inclination angle of the staircase.

Landing: a platform connecting two flights of stairs.

Nosing: the portion of the stair tread that overhangs the front of a riser.

Flush mount: in a standard mount, the last tread is one step below the floor level. In a flush mount, it is at the same height as the floor level.

Headroom: the space between the tread and the point on the ceiling directly above it.

Handrails: a railing or baluster that runs along the stairs. It serves a double purpose  you can hold it when walking up or downstairs, and it prevents you from falling.

Stair width: it is measured in clear, meaning that it doesn't include handrails.
Stair calculation formulas
Our stair rise and run calculator determines the details of your stairs for various combinations of known and unknown values. For example, we can assume that you know the rise and run of one step, and you want to calculate the remaining characteristics. How would you proceed?

First, you have to choose whether the stairs will be installed on a standard or a flush mount.

Then you can calculate the total rise of the staircase according to this formula:
number of steps = total rise / rise
Remember that if the first step has a different height, you should account for it in the calculations.

Once you know the number of stairsteps, you can easily find the total run:
total run = run × number of steps
Deduct one from the number of steps if you decide on a standard mount.

Finally, you can calculate the stair stringer length from Pythagoras' theorem:
stringer length² = total run² + stinger height²
What's the stringer height? It's equal to the total rise in the case of a flush mount and to the
total rise  rise
in the case of a standard mount. 
Finally, you can find the angle at which the staircase is inclined:
angle = arcsin(stringer height / stringer length)
Remember that our stair rise and run calculator is applicable only if you're designing a single flight of stairs — if there's a landing in between, you need to treat every flight separately.
How to count steps and why you're doing it wrong?
You probably noticed that whether you want to calculate the stair stringer, the rise, or the run, you will at some point encounter the phrase "number of steps". If you are reading the article carefully, you also noticed we haven't defined that number yet. Why is that?
Because it's easy to skim over this definition if you don't know the difficulty and baggage that comes with it.
You see, most people don't know how to calculate steps and do it wrong. They will confuse you, saying that if you look at stairs with a standard mount, you calculate the number differently than for stairs with a flush mount. They will give you different formulas for each, just to put you in a pickle. The reality, though, is super simple:
Every time you lift your leg, it's a step.
Look at the two pictures above. They show stairs in a standard and a flush mount. Regardless of the stringer type, all you need to do is count the number of times you lift your leg to take a step (instead of just sliding on a perfectly flat floor).
Why is this so important? Civil engineers will thank you  this is the way they count stairsteps. When civil engineers imagine a staircase, they don't see that pretty and colorful picture above. They see this:
This is a technical drawing: a plan of stairs. The arrow shows the direction of ascent, and each numbered line shows — you guessed it — one stairstep. It doesn't matter how big the runs are and how the stringer is mounted. If it brings you upwards, it's a step.
Help! My stairs are uncomfortable to walk on!
So you built your stairs. And they turned out to be terrible. You hate walking on them. What happened? What did you do wrong?
If this is the case, you probably forgot about one tiny thing called comfort of use. The truth is, designing stairs according to the stair calculation formulas we listed above is a simple task. Creating the optimal and most comfortable stairs is an entirely different pair of shoes. Luckily, our step calculator can help you with that, too!
First of all, let's address the issue of step length. Most people (excluding those that are extremely short or tall) have a similar step length, and we should design stairs so that walking on them is as natural as possible, without lengthening or shortening the steps. Typically, you will use the following rule:
60 cm <= 2 × rise + run <= 65 cm
In Imperial units, it translates to 2 × rise + run ≈ 25 inches
. If you breach this rule, our stair calculator will warn you that the steps you've designed won't be comfortable to use.
Naturally, this rule is not all, which is why building codes in all countries define a few additional limits. Our stair rise and run calculator will warn you about exceeding the limits set in the 2015 International Residential Code (IRC), but if you're not using this particular document, make sure to doublecheck these values!

Maximum rise of one step: no more than 7.75 inches (196 mm).

Maximum total rise between landings: no more than 147 inches (3734 mm).

Minimum run of one step: no less than 10 inches (254 mm).

Staircase width (important not only because of comfort, but also for safety): no less than 36 inches (914 mm).

Headroom: no less than 6 feet 8 inches (2032 mm). To verify the headroom requirement, tick the "Display headroom restriction details" checkbox at the end of the first section of the calculator.
If you're interested in this topic, check out this fantastic article from Michael Maines on the
. He recommends stairs with a 7" rise and an 11" run as the "ideal stairs," and shows a neat graph that sums up comfort requirements.Building codes vs. children
Apart from the comfort criteria, building codes include also a wide range of safety criteria. We mentioned some in the paragraph above: the staircase width (vital in a fire emergency) and the headroom (helps to avoid a bump on the head). There is one special safety element that the codes tend to describe in detail: balusters.
Balusters, handrails, railings  they are all there to ensure you don't fall, and neither does a child. You may laugh, but designing a childrenproof baluster is harder than you think! Here are just a few criteria you should take a look at:

You need a handrail for every flight of stairs with at least four risers.

The handrail height should be between 34 inches (864 mm) and 38 inches (965 mm).

The space between the wall and the handrail should be no less than 1.5 inches (38 mm)  this ensures your hand doesn't get stuck between the railing and the wall.

Even though it's not explicitly defined in every building code, you should make sure that the space below the railing is small enough that a child can't squeeze through it and fall (for example, a 4" diameter sphere is not allowed to pass through).

If you plan to use balusters or spindles for your stairs, make sure that you use vertical balusters and not midrails! Midrails (horizontal elements parallel to the staircase) are an invitation to climb. The vertical baluster spacing must be small enough that a child can't squeeze through (again, the case of a 4" diameter sphere). You can learn more about spacing balusters and spindles in our spindle spacing calculator.
Is this all? Of course not, but it's a good starting point. Good luck with your construction project! Make sure to check out our square footage calculator too 😉
How do I build wooden stairs?
To build your wooden staircase using our stair calculator, you need to:
 Choose between a standard or a flush mount.
 Decide on the total run of your staircase.
 Measure the total rise of the stairs.
 Set either the rise of one step or the number of stairs.
 Omni Calculaor's stair calculator will tell you all the remaining values.
 Build it!
How many stairs do you need to go up 8 feet?
You will need 14‒17 stairs to go up 8 feet comfortably, assuming that one rise (stair) usually measures 6–7 inches. For your staircase to be comfortable, the sum of one run and two rise lengths should be approximately 25 inches.
What is the formula for stair stringers?
The formula for stair stringers is Pythagoras' theorem, where the stringer length (SL) depends on the total run (TR) and the stringer height (SH):
SL^{2} = TR^{2} + SH^{2}
In fact, if you picture it, the three lengths draw a right triangle! The stringer length is the hypotenuse of that triangle.
What is the rule of 27 for stairs?
Your stairway should be 27 inches or wider as measured below the handrail if there are rails on both sides. This is for comfort purposes, and ideally, you should make it as wide as possible.