Stair Calculator
Rise, run, riser height & stringer length for straight stairs
๐ช Stair dimensions
At a ~7.00 in target riser, this layout rounds to 16 risers.
Last updated June 2026
Method: Riser count rounds total rise to a target riser height; the exact riser is total rise divided by that whole number; total run is treads × tread depth; stringer length is the hypotenuse √(rise² + run²). Code checks reflect common U.S. residential limits (max riser 7.75 in, min tread 10 in).
Included: Number of steps, exact riser height, tread count, total run, minimum stringer length, stair angle, and code/comfort checks.
Not included: Headroom and nosing requirements, handrail and guard details, landing sizing, footing/concrete pads, and winder or spiral geometry. Always verify against your local building code.
Stair calculator: rise, run and stringer length explained
Building a set of stairs is really just one piece of geometry repeated until you reach the next floor. Get the riser height right and every step feels identical and safe; get it wrong and the top or bottom step ends up a different height - the classic "trip step" that catches people out. This stair calculator turns three measurements (total rise, tread depth and a target riser height) into the numbers you actually need at the saw: how many steps, the exact riser height, the total horizontal run, and the minimum length of the diagonal stringer board that carries the staircase.
A worked example with real numbers
Say your finished floor-to-floor height (the total rise) is 112 inches - a typical 9-foot-plus build-up once you include the floor framing and finish. Aiming for a comfortable 7-inch riser, divide 112 by 7 to get 16. So you need 16 risers. The exact riser height is then 112 / 16 = 7.0 inches exactly - every step identical. With 16 risers you install 15 treads (the top step lands on the upper floor). At a 10.5-inch tread depth, the total run is 15 × 10.5 = 157.5 inches, or just over 13 feet of horizontal space. The stringer length is the hypotenuse: √(112² + 157.5²) = √(12,544 + 24,806) ≈ 193.3 inches, roughly 16 feet 1 inch. (To solve any right triangle directly, the Triangle Calculator runs the same Pythagorean math.) So you would buy 2x12 stringer stock at least that long, plus extra for the cuts.
The formulas
The calculator uses four short formulas. Total rise and tread depth are in inches:
risers = round(total rise ÷ target riser) riser height = total rise ÷ risers treads = risers − 1 total run = treads × tread depth stringer = √(total rise² + total run²) Notice the riser height is derived after rounding, never the target you typed. The target only decides how many steps to use; the real riser height is whatever divides the total rise evenly across those steps. That is what guarantees equal risers - a code requirement and the single most important thing for a staircase that feels right underfoot.
How to measure and use the calculator
You only need three inputs, but measuring the rise accurately is what makes or breaks the result:
- Measure total rise: the vertical distance from the finished lower floor to the finished upper floor. Include the thickness of any flooring, underlayment or landing that will be in place when you are done.
- Choose a tread depth: 10 to 11 inches is standard for interior stairs (the calculator defaults to 10.5). Deck and porch stairs often go a little deeper for comfort.
- Set a target riser height: around 7 inches is the comfort sweet spot. The tool rounds the step count to whatever whole number lands closest to your target.
- Press Calculate: read the number of steps, the exact riser height, total run and stringer length, then check the green/amber code and comfort indicators.
Who this calculator is for
- DIY remodelers framing a basement or attic staircase and laying out stringers for the first time.
- Deck builders sizing exterior steps from a deck or porch down to grade.
- Carpenters and handy homeowners who want a quick rise/run sanity check before cutting expensive 2x12 lumber.
- Planners and designers figuring out how much horizontal floor space a new stair will eat up before committing to a layout.
Key terms
- Total rise: the full vertical floor-to-floor height the staircase has to climb.
- Riser: the vertical face of one step; its height is total rise divided by the number of risers.
- Tread (run / going): the horizontal surface you step on; tread depth is how deep it is front to back.
- Total run: the combined horizontal distance of all treads - how far out the staircase reaches.
- Stringer: the angled structural board, usually a 2x12, notched to support each tread and riser. Its length is the diagonal hypotenuse.
- Nosing: the small overhang of a tread beyond the riser below it (typically about 1 inch); it adds usable depth without lengthening the run.
- Headroom: the vertical clearance above the stairs, measured plumb from the tread nosings - commonly required to be at least 6 ft 8 in.
Three quick scenarios
Changing one input ripples through the whole staircase. Here is how three common setups compare:
- Standard interior (112 in rise, 10.5 in tread, 7 in target): 16 risers at 7.0 in, 15 treads, 157.5 in run, ~193 in stringer - a textbook, comfortable flight.
- Basement with tight rise (104 in rise, 10 in tread, 7.5 in target): rounds to 14 risers at ~7.43 in, 13 treads, 130 in run, ~167 in stringer - steeper and more compact for low headroom.
- Deck steps (36 in rise, 11 in tread, 7 in target): 5 risers at 7.2 in, 4 treads, 44 in run, ~57 in stringer - a short, gentle exterior flight.
Factors that change the result
- Total rise: the dominant driver - more rise means more risers and a longer stringer.
- Target riser height: a lower target produces more, shallower steps; a higher target produces fewer, steeper steps.
- Tread depth: deeper treads lengthen the total run and the stringer without changing the step count.
- Rounding: because the step count is a whole number, the exact riser often lands a little above or below your target - the calculator shows the true value.
Tips for a clean job
- Order about 10% extra lumber. Notching stringers is unforgiving; an extra board is cheap insurance against a mis-cut.
- Keep risers equal. Code limits the variation across a flight to roughly 3/8 inch - lay out from the calculated riser height, not by eye.
- Account for the bottom step. If the floor or pad thickness differs from the tread thickness, the first step can end up taller or shorter; adjust the stringer notch to compensate.
- Use a framing square with stair gauges to mark identical notches, and cut to the line for tight, even steps.
Limitations and assumptions
- It assumes a straight staircase with equal risers - not winders, curved, or spiral stairs.
- It does not size headroom, handrails, guards, landings, or footings, all of which your local code governs.
- The stringer length is the geometric minimum; add length for end cuts, the bottom plate, and the connection at the top.
- Code limits cited (7.75 in riser, 10 in tread) reflect the common IRC residential standard; your jurisdiction may differ, so confirm before building.
Stair angle and how steep is too steep
The calculator also reports the stair angle - the slope of the flight measured from horizontal - using arctangent(total rise ÷ total run). Most comfortable residential stairs land between about 30 and 38 degrees. The textbook example above - a 112-inch rise with a 10.5-inch tread - comes out near 35 degrees, which feels natural to climb and descend. As the angle climbs past roughly 38 to 42 degrees the stairs start to feel steep and ladder-like, demand more headroom-saving care, and become tiring on the knees. If your angle reads high, the usual fix is a deeper tread or a lower riser target (more steps), provided you have the horizontal run to spare. If it reads very low, the staircase is gentle but eats a lot of floor space - sometimes more than a room can give up. The angle is just a slope expressed in degrees; if you would rather work in percent grade or rise-over-run ratio, the Slope Calculator converts between all three.
Planning the floor opening and headroom
Two numbers from the calculator drive the rough framing around the stair. The total run tells you how long the floor opening (the stairwell) must be so that anyone walking down has full headroom over every tread - commonly a minimum of 6 ft 8 in measured vertically from the tread nosings to the ceiling or header above. A steeper flight needs a shorter opening; a gentle flight needs a longer one. The stringer length tells you the size of lumber to buy and the diagonal clearance you need during installation. Before you frame anything, sketch the staircase in place using these two figures to confirm the opening fits the room and that the bottom step lands where you want it, clear of doors and traffic paths.
Stair building codes in plain English
Most U.S. residential stairs are governed by the International Residential Code (IRC), which your local jurisdiction adopts and sometimes amends. The numbers that matter most for layout are simple to remember. The maximum riser height is 7.75 inches and the minimum tread depth is 10 inches (measured between the leading edges, or nosings, of adjacent treads). The variation between the tallest and shortest riser - and between the deepest and shallowest tread - in a single flight may not exceed 3/8 inch, which is the whole reason the calculator derives an exact, equal riser height from a whole number of steps rather than letting you eyeball it. Minimum headroom is 6 ft 8 in measured plumb from the line of the nosings, the minimum stair width is 36 inches above the handrail, and a handrail is required on at least one side of any flight with four or more risers, set 34 to 38 inches above the nosings. Commercial and public stairs fall under the stricter International Building Code (IBC) and ADA rules - typically a 7-inch maximum riser, an 11-inch minimum tread, and handrails on both sides - so do not apply these residential figures to a workplace or rental common area. Whatever you build, the figures here are a planning baseline: confirm the adopted code and any local amendments with your building department before you cut a single stringer.
Stairs vs a ramp or ladder
Sometimes the right answer is not a staircase at all. A flight of stairs is the most space-efficient way to climb a normal floor-to-floor rise on foot, but it is not always the best fit. A ramp is the accessible choice for wheelchairs, strollers, and rolling equipment; the ADA limits a ramp to a 1:12 slope (about 4.8 degrees), which means a 30-inch rise needs a 30-foot run - far more horizontal space than the same rise as stairs, but no steps to negotiate. A ship ladder or alternating-tread device packs a steep climb (often 50 to 70 degrees) into a tiny footprint and suits a loft, attic hatch, or mezzanine where a code-compliant stair will not fit and full accessibility is not required. The trade-off is always the same: gentler slopes are safer and easier but consume floor space, while steeper slopes save space at the cost of comfort and, past a point, code compliance. Run your rise through the calculator first - if the resulting angle is comfortable and the total run fits your room, a normal stair is almost always the best option.
Related materials and tools
Once the geometry is set, you can estimate the rest of the project. Use the Cubic Yard Calculator or Concrete Calculator to size a footing or landing pad at the base of exterior stairs, the Square Footage Calculator to plan tread and riser finish materials, and the Gravel or Mulch calculators for the ground prep around outdoor steps. To price the stringer and tread lumber by board foot, use the Board Feet Calculator. If the staircase is part of a larger deck build, the Deck Calculator sizes the framing and decking above it. For a fresh coat on a finished staircase, the Paint Calculator estimates the gallons you will need.
Sources
- International Code Council (ICC) - 2021 International Residential Code, Section R311.7 (stairways).
- U.S. Access Board - ADA Accessibility Standards (ramps and stairs).
- U.S. Consumer Product Safety Commission (CPSC) - stair-related fall safety guidance.
โ ๏ธ Common mistakes & edge cases
Measuring rise to the subfloor
Total rise must be finished-floor to finished-floor. Forgetting the thickness of flooring, tile, or a landing throws off every riser, leaving an uneven top or bottom step.
Using your target riser as the real riser
The 7-inch target only sets the step count. The actual riser is total rise divided by the rounded number of risers - cut to the calculated exact value, not the target you typed.
Counting treads equal to risers
There is always one fewer tread than riser, because the top step is the upper floor itself. Ordering one too many tread boards is a common slip.
Cutting stringers exactly to the calculated length
The stringer figure is the geometric minimum. You still need extra length for end cuts and the top/bottom connections - buy boards longer than the number shown and add ~10% waste.
❓ Frequently asked questions
How do I calculate the number of stairs I need?
Divide your total rise (the finished floor-to-floor height) by a comfortable target riser height of about 7 inches, then round to the nearest whole number. That rounded figure is your number of risers. For example, 112 inches of rise / 7 = 16 risers. The exact riser height is then the total rise divided by that whole number of risers (112 / 16 = 7.0 inches), so every step is identical.
What is the difference between rise and run?
Rise is the vertical height of one step (the riser), and run is the horizontal depth you step onto (the tread, sometimes called going). Total rise is the full floor-to-floor height, and total run is the combined horizontal distance the staircase travels - the number of treads multiplied by the tread depth.
How is stringer length calculated?
The stringer is the diagonal board that supports the steps, so its length is the hypotenuse of a right triangle: stringer = the square root of (total rise squared + total run squared). With a 112-inch rise and a 157.5-inch run, the stringer is about 193 inches, or roughly 16 feet 1 inch. Always buy a board longer than the calculated minimum to allow for end cuts and the notch layout.
Why is the number of treads one less than the number of risers?
The top step lands on the upper floor itself, so that final riser does not need its own tread board. If a staircase has 16 risers, it has 15 treads. The calculator handles this automatically: treads = risers - 1.
What is the maximum riser height allowed by code?
Under the most common U.S. residential standard (IRC R311.7), the maximum riser height is 7.75 inches and the minimum tread depth is 10 inches. Codes also limit the variation between the tallest and shortest riser in a flight to 3/8 inch, which is why getting equal risers matters. Always confirm the exact figures with your local building department.
What is the 2R + T comfort rule?
A long-standing carpentry guideline says that twice the riser height plus one tread depth should fall between 24 and 25 inches (2R + T = 24-25). It keeps the relationship between step height and depth comfortable for an average stride. A 7-inch riser with a 10.5-inch tread gives 2(7) + 10.5 = 24.5 inches, right in the sweet spot.
Does this calculator work for deck and outdoor stairs?
Yes. The geometry is identical for interior stairs, deck stairs and porch steps - just measure the total rise from the top of the landing or deck surface down to the finished grade or pad. Outdoor stairs often use a slightly deeper tread and a shorter riser for comfort, and you may need a concrete footing or pad at the base, which this calculator does not size.
How much lumber should I buy for stringers?
Cutting stringers is easy to get wrong, and a single mis-cut notch can ruin a board. Order your stringer stock at least 10% longer than the calculated minimum length, and buy one extra board beyond the number you need (typically one stringer every 12-16 inches across the stair width). It is far cheaper to return an unused board than to make another lumber run.
What if my riser height comes out too tall?
If the exact riser height exceeds about 7.75 inches, add one more riser. Increasing the riser count lowers the height of each step. For example, going from 15 to 16 risers on a 112-inch rise drops each riser from 7.47 inches to 7.0 inches. The trade-off is a slightly longer total run, so make sure you have the horizontal space.
How do I measure total rise correctly?
Measure the vertical distance from the finished surface of the lower floor to the finished surface of the upper floor - not the subfloor. Account for any flooring, underlayment or landing thickness that will be in place when the stairs are finished, because even a half-inch error, multiplied across many risers, can throw off the whole layout and create an uneven top or bottom step.
๐ก Good to know
Equal risers are a safety rule, not a preference
Building codes limit how much riser heights can vary within a single flight (about 3/8 inch). Even small differences are a real trip hazard, which is why the exact riser height is calculated from a whole number of steps.
The "2R + T" rule keeps stairs comfortable
Twice the riser plus one tread depth should land between 24 and 25 inches. Steps that feel too steep or too shallow usually fall outside this range - tweak the tread depth or riser target to bring them back in.
Buy about 10% extra lumber
Stringers are notched, expensive boards that are easy to mis-cut. Ordering a little extra - and one spare stringer - is far cheaper than a second trip to the lumber yard mid-project.
Related Calculators
Concrete Calculator
Calculate cubic yards of concrete for slabs, footings & columns
Square Footage Calculator
Calculate the square footage of any area
Gravel Calculator
Calculate tons or cubic yards of gravel needed
Mulch Calculator
Calculate cubic yards or bags of mulch for your beds
Cubic Yard Calculator
Convert dimensions to cubic yards for any material
Paint Calculator
Estimate how many gallons of paint you need