Stair Calculator
The Stair Calculator determines how many risers and treads you need based on total rise, keeping each riser height within a comfortable, code-friendly range. Enter measurements in inches or centimeters. Because the riser count comes from rounding total rise ÷ target riser to the nearest whole number, the actual riser height that comes back can land slightly above or below your target — entering a target already near the edge of your code's allowed range (7.75 inches, for example) can push the rounded, real-world result outside that range, so it's safer to aim for the middle of the allowed band. Total run is calculated from tread run alone and does not add any nosing overhang, so if your finished treads project past the riser below them (typical nosing is 3/4 to 1-1/4 inch), add that separately when checking the stair's footprint against available floor space.
Switch between U.S. Customary and Metric units.
How This Tool Works
Pick your units, then enter the total vertical rise (floor to floor height) and your target riser height to calculate the exact number of risers and treads needed.
Formula & Method
Number of risers = total rise ÷ target riser height (rounded to nearest whole number). Actual riser height = total rise ÷ number of risers. Treads = risers − 1. Enter rise and target dimensions in inches or centimeters.
Example Calculation
A staircase with 100 inches of total rise, targeting 7 inch risers and an 11 inch tread run: number of risers = round(100 ÷ 7) = round(14.29) = 14. Actual riser height = 100 ÷ 14 = 7.14 inches. Treads = 14 − 1 = 13. Total run = 13 × 11 = 143 inches (11.92 ft). In metric, 254 cm of rise (equal to 100 inches) targeting 18 cm risers and a 28 cm tread run also gives 14 risers, at an actual height of about 18.1 cm each, with 13 treads and a total run of 364.0 cm (3.64 m).
About the Stair Calculator
Staircases are one of the few parts of a house where a quarter inch matters. People climb stairs by habit, lifting their feet the same distance on every step, and a riser that is noticeably taller or shorter than its neighbors is where most trips happen. That is why building codes spend so much language on uniformity. The Stair Calculator helps you reach a consistent layout by starting from the one number that is fixed by the building, the total rise from finished floor to finished floor, and dividing it into equal steps.
You enter the total rise, a target riser height you would like each step to approach, and a target tread run for the depth of each step. The tool divides total rise by the target riser and rounds to the nearest whole number to get the number of risers, because you cannot build a fraction of a step. It then divides the full rise by that count so every riser is the same height. Treads are one fewer than risers, since the top riser lands on the upper floor, and the total horizontal run is the number of treads times your tread depth.
The outputs give a carpenter what is needed to cut stringers, estimate stair length, and decide where the foot of the stairs lands on the floor below. They do not replace a plan check. Codes set a maximum riser height, a minimum tread depth, headroom, width, and handrail requirements, and the calculator enforces none of them, so every result should be compared against the rules that apply where you are building.
When to Use It
Framing stairs to a basement
A homeowner finishing a basement measures from the finished upstairs floor to the concrete slab, adds the thickness of the planned flooring, and enters the total. The calculator returns the number of risers and the actual riser height, which tells him how many stringer notches to lay out and whether the stairs will fit in the opening he framed.
Building deck stairs
A deck builder needs stairs from a platform that sits 42 inches above grade. She enters the rise and a target riser near 7 inches, and checks how far the stairs will extend into the yard using the total run. If that distance reaches a garden bed or property line, she can adjust the target tread or add a landing.
Checking a plan before cutting stringers
A contractor has a drawing that lists 14 risers for a given floor height and wants to confirm the dimensions before buying lumber. He enters the rise and the intended riser height and compares the returned count and riser height with the plan. A mismatch is a prompt to recheck measurements before material is cut.
Planning a metric loft ladder staircase
A renovator in a metric country is adding a steep stair to a loft and wants an even rise. He switches to centimeters, enters the total height and a target riser, and reads the number of risers, actual height, and run in meters. The run tells him how much floor area to give up on the lower level.
How to Use It, Step by Step
- Choose U.S. or metric units. U.S. mode takes inches and returns inches and feet, while metric mode takes centimeters and returns centimeters and meters.
- Measure Total rise (floor to floor) vertically from the finished lower floor surface to the finished upper floor surface. Include the thickness of any flooring that will be installed later, because it changes the height of the first and last steps.
- Enter a Target riser height. The default is 7.5 inches (18 cm). Aim for the middle of what your local code allows rather than the extreme, since rounding can nudge the result to either side.
- Enter a Target tread run, which is the horizontal depth of each step, not counting the nosing. The default is 10 inches (28 cm). A deeper tread feels more comfortable but lengthens the staircase.
- Click Calculate Stair Layout and read the Number of risers, which is total rise divided by your target and rounded to a whole number.
- Check the Actual riser height. If it is outside the range your code allows, return to the target riser field and adjust it until you get a count that produces an acceptable height.
- Use Number of treads and Total horizontal run to lay out the stringer and to check that the staircase fits the opening, adding space for landings, nosing, and the thickness of the top step.
- Verify headroom, stair width, handrail height, and landing rules with your local building department before cutting any lumber.
Understanding Your Results
The first line tells you the number of risers, which is also the number of vertical steps from bottom to top. The Actual riser height is the real dimension each riser will have, and it is the number to compare with your code. Because the tool rounds the riser count, the actual height may be a bit more or less than the target, and a result that lands above your maximum means you need a different target, not a different calculator.
The number of treads is always one fewer than the number of risers because the upper floor acts as the final tread. Total horizontal run multiplies treads by your target tread depth, and it is the footprint the stairs will take on the floor. It does not include nosing, which typically overhangs the riser below, or the thickness of any landing at top or bottom, so allow extra room when checking against your available space.
A common comfort check is that twice the riser plus the tread should fall roughly between 24 and 25 inches, a rule of thumb that matches the typical stride. Stringer length can be estimated from the right triangle formed by the rise and run. If something looks off, it often traces back to the total rise measurement, which is the single most important input and the easiest to measure incorrectly.
More Worked Examples
Main stair in a two-story house
Scenario: Total rise 109 inches, target riser 7.25 inches, target tread 10.5 inches, U.S. units.
Dividing 109 by 7.25 gives 15.03, which rounds to 15 risers. The tool reports 15 risers at 7.27 inches each, 14 treads, and a total horizontal run of 147 inches (12.25 feet). The comfort check works out to 2 times 7.27 plus 10.5, or about 25.0. A stringer for this stair would be about 183 inches long, since the diagonal of a 109 by 147 triangle is a little over 15 feet.
A target riser too close to the code limit
Scenario: Total rise 96 inches, target riser 7.75 inches, target tread 10 inches, U.S. units.
Ninety-six divided by 7.75 is 12.39, which rounds down to 12 risers. The tool returns 12 risers at 8 inches each, 11 treads, and a run of 110 inches. That riser height is above the 7.75 inch limit many U.S. residential codes use. Lowering the target to 7.4 inches gives 13 risers at 7.38 inches, 12 treads, and a 120 inch (10 foot) run, which fits the limit comfortably.
Metric stair to a loft
Scenario: Total rise 280 cm, target riser 17.5 cm, target tread 27 cm, metric units.
Dividing 280 by 17.5 gives exactly 16, so the tool returns 16 risers at 17.5 centimeters each. There are 15 treads, and the total horizontal run is 15 times 27, or 405 centimeters, which the tool also shows as 4.05 meters. Because the division was exact, the actual riser matches the target. If the rise had been 285 cm, the count would still be 16 but each riser would be slightly taller.
Tips for Better Results
- Measure total rise at the location where the stairs will actually land, using a level and a straight board, since floors and slabs are rarely perfectly flat.
- Account for finished flooring at both ends before calculating. Tile, hardwood, or carpet on the upper and lower floors changes the first and last riser heights, and mismatched steps are a common cause of inspection failures.
- Pick a target riser near the middle of the allowed range, so the rounding of riser count has room to move the height in either direction without crossing a limit.
- Test the layout with a full-size sketch or a chalk line on the floor, because the horizontal run, the headroom above the stairs, and the landing can all conflict with walls and ceilings.
- Cut one stringer and test-fit it before cutting the rest. Use it as a template for the others so every notch is identical, and check that the bottom and top riser heights are adjusted for the tread thickness.
- Confirm local requirements for headroom, width, handrail height, guards, and landings before building, because they differ by jurisdiction and are the most common reasons stairs fail inspection.
Common Mistakes to Avoid
- Measuring rise from the subfloor instead of the finished floor produces a first or last step that is the wrong height once flooring is installed. Add the finished floor thickness at both ends.
- Assuming the actual riser equals the target causes surprises. Always read the Actual riser height line, and check it against your code before laying out the stringer.
- Counting treads as equal to risers adds a step that does not exist. The top floor is the last tread, so there is always one less tread than riser.
- Ignoring the run until the stringers are cut can leave stairs that do not fit the space. Compare the total horizontal run with your opening and add allowance for landings and nosing.
- Skipping a code check is the costliest mistake. Riser height, tread depth, width, headroom, and handrails are all regulated, and rules differ between residential and commercial buildings.
Assumptions and Limits
- The calculator assumes a straight flight of equal risers and equal treads. It does not design landings, winders, spiral stairs, or stairs with varying step sizes, and it does not check headroom or width.
- Because the riser count is rounded, the actual riser height can fall above or below the target. If your target is at the edge of a code limit, the rounded result can end up outside it.
- Total run uses the tread depth you enter and does not add nosing or the thickness of landings. In many designs the nosing projects past the riser below, so the footprint on the floor can be slightly larger.
- Stair requirements vary by jurisdiction and building type, and a safe layout also depends on structure, guards, and handrails. Always confirm the rules with your local building department, and consult a qualified builder or designer for complex stairs.
Key Terms
- Riser
- The vertical part of a step, or the height from the top of one tread to the top of the next. Every riser in a flight should be the same height.
- Tread
- The horizontal surface you step on. Its depth, measured from front to back, is called the run.
- Total rise
- The vertical distance from the finished lower floor to the finished upper floor that the staircase must cover.
- Total run
- The overall horizontal distance a staircase takes up, equal to the number of treads multiplied by the tread depth.
- Stringer
- The sloped structural board, cut with notches, that supports the treads and risers along each side of a staircase.
- Nosing
- The front edge of a tread that projects past the riser below it, which gives more foot room without lengthening the run.
Frequently Asked Questions
What is a comfortable riser height?+
Most building codes require risers between 7 and 7.75 inches (about 18–19.5 cm). The calculator adjusts your target evenly across all risers so every step is the same height.
Can I plan stairs in centimeters?+
Yes — switch the unit toggle to Metric and enter the total rise and target riser and tread in centimeters. Riser height and total run are returned in centimeters and meters.
Why is even riser height important?+
Uneven risers are a major trip hazard — even a 3/8 inch (about 1 cm) difference between steps can throw off a person's stride and cause falls.
Should I check local building codes?+
Yes, always confirm your local code requirements for riser height, tread depth, and handrail specifications before building or modifying stairs.
Why didn't I get exactly my target riser height back?+
The calculator always uses a whole number of risers, so it rounds total rise ÷ target riser to the nearest whole riser, then spreads the full rise evenly across that many risers. If your total rise doesn't divide evenly by your target, the real riser height comes back a bit taller or shorter than what you typed — that's expected and matches how a real staircase gets laid out.
Does total run include the tread nosing overhang?+
No — total run is simply the number of treads (one fewer than the number of risers) multiplied by your target tread run, measuring only the flat run dimension. Most finished treads also have a nosing that overhangs the riser below by about 3/4 to 1-1/4 inch, which adds a small amount to how far the staircase actually projects but isn't included in this total.
How do I know if my stair layout feels comfortable to walk on?+
A widely used rule of thumb is that twice the riser height plus the tread depth should land between roughly 24 and 25 inches, which matches the length of a typical stride. A 7 inch riser with a 10.5 inch tread gives 24.5, while a 7.5 inch riser with a 10 inch tread gives 25. Steeper stairs with tall risers and short treads feel tiring and unsafe. Code limits still apply regardless of how a layout feels, so check both.
How much headroom do I need above a staircase?+
Residential codes in the United States commonly require a minimum of 6 feet 8 inches of vertical clearance, measured from the sloped line connecting the front edges of the treads. This matters when stairs pass under a floor opening or beam, since a low header can force a different layout. Check your local code, because requirements differ, and verify clearance with a full-size mock-up before framing.
How long will my stringers need to be?+
Stringer length comes from the right triangle formed by the total rise and total run. Square each, add them, and take the square root. For a 109 inch rise and 147 inch run the stringer is about 183 inches, or 15 feet 3 inches along the diagonal. Remember that the board must also be long enough to include the cut at the top and bottom, so buy a standard length that exceeds the diagonal.
Do I need a landing on a long flight of stairs?+
Building codes limit how much vertical rise a single flight can have before a landing is required. In the United States model codes the limit for residential stairs is roughly twelve feet of rise. Landings also appear wherever the stairs change direction, and they must meet minimum size requirements. If your total rise is near or above that limit, plan the landing early, since it changes the total run and layout.
Why do the first and last risers sometimes need adjusting?+
Treads and floor finishes add thickness at the top and bottom of the stair, so the rough stringer must be shortened or lengthened to make every finished riser equal. If a stair is cut using the rough floor height and then covered with tile or hardwood, the bottom step becomes shorter or the top step taller. Always account for the finish thickness before marking the stringer.
Found this useful? Share it
Help someone else out — or link to it from your own site.
Link to this tool
Writing about stair calculator? Paste this on your site to link here.
<a href="https://everyfix.net/tools/stair-calculator/">Stair Calculator</a> by <a href="https://everyfix.net">EveryFix</a>Related Tools
Square Footage Calculator
Quickly calculate area in square feet, square yards, acres, square meters, and hectares.
Use tool →Deck Board Calculator
Calculate how many deck boards you need for your project.
Use tool →Cubic Yard Calculator
Convert length, width, and height into cubic yards or cubic meters for any bulk material.
Use tool →Concrete Calculator
Calculate cubic yards, cubic meters, and bags of concrete for slabs, footings, and pads.
Use tool →