Stair Calculator
Rise, run, riser height & stringer length for straight stairs
Last updated October 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²); stair angle is arctangent(riser ÷ tread). Code checks use the International Residential Code (IRC): riser at most 7 3/4 in, tread at least 10 in, at most 151 in of rise per flight.
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 checks, handrail and guard details, landing sizing, footing/concrete pads, and winder or spiral geometry. Always verify against the code your jurisdiction has adopted.
๐ช Stair dimensions
Results update as you type. The target only sets how many risers to use; the exact riser height is the total rise divided by that whole number.
๐ช Your stairs
๐ Summary
โ๏ธ Code & comfort checks
Estimate only, not engineering or code-compliance advice. Verify riser, tread and headroom limits against the code your jurisdiction has adopted, and when ordering lumber or pre-cut stringers, buy about 10% extra to allow for cutting waste and mistakes. Dimensions assume a straight flight with equal risers.
Stair calculator: rise, run and stringer length explained
A stair calculator turns three measurements (total rise, tread depth and a target riser height) into a build-ready layout. For a 112-inch total rise with a 7-inch target, it returns 16 risers at exactly 7.0 inches each, 15 treads, a 157.5-inch total run, a stringer about 193 inches (16 ft 1 in) long and a 33.7-degree stair angle. Below you get the same geometry for every common floor height, plus rise/run and stringer charts computed with the exact formulas.
This tool sizes the staircase geometry itself; the surrounding project has its own calculators. Pour the footing or landing pad at the base with the Concrete Calculator, estimate finish coats for treads and risers with the Paint Calculator, and if the stairs climb to a covered porch or deck roof use the Roofing Calculator for materials and the Roof Pitch Calculator for the slope above; roof pitch runs the same rise-over-run math as your stair angle.
A worked example with real numbers
Say your finished floor-to-floor height (the total rise) is 112 inches (9 ft 4 in). 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, with 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 stair angle is arctangent(7 ÷ 10.5) = 33.7 degrees.
How many stairs do I need for an 8, 9 or 10 foot floor?
Many people start with one question: "how many steps for my floor height?" This chart assumes a 10.5-inch tread depth and a ~7-inch target riser, and gives the exact, equal riser height the calculator derives after rounding. All step and riser values are computed, not estimated.
| Floor-to-floor height | Total rise | Risers (steps) | Exact riser | Treads | Total run |
|---|---|---|---|---|---|
| 8 ft 0 in | 96 in | 14 | 6.86 in | 13 | 136.5 in |
| 8 ft 6 in | 102 in | 15 | 6.80 in | 14 | 147.0 in |
| 9 ft 0 in | 108 in | 15 | 7.20 in | 14 | 147.0 in |
| 9 ft 4 in | 112 in | 16 | 7.00 in | 15 | 157.5 in |
| 9 ft 6 in | 114 in | 16 | 7.12 in | 15 | 157.5 in |
| 10 ft 0 in | 120 in | 17 | 7.06 in | 16 | 168.0 in |
Notice a 9 ft 0 in and a 9 ft 4 in floor both land near a 7-inch riser but use a different step count: the whole-number rounding is why the exact riser height, not your target, is the figure you cut to. Also note that these heights are floor-to-floor rises, not ceiling heights. A stair under an 8-foot ceiling also climbs the floor structure above it (joists, subfloor, drywall and finish floor), so with 2x10 joists its total rise is closer to 106.5 inches than 96, which works out to 15 risers of 7.10 inches.
The formulas
The calculator uses six 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²) stair angle = arctan(riser height ÷ tread depth) 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.
- Read the results: they update as you type. Note the number of steps, the exact riser height, total run and stringer length, then check the green, amber or red 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, which is 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. The IRC requires a projection of 3/4 to 1 1/4 inches on stairs with solid risers, unless the tread is at least 11 inches deep; it adds usable depth without lengthening the run.
- Headroom: the vertical clearance above the stairs, measured plumb from the sloped line of the tread nosings; the IRC minimum is 6 ft 8 in.
- Stair angle (pitch): the slope of the line through the tread nosings, arctangent(riser height ÷ tread depth).
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 and a 33.7° angle: 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, ~166 in stringer and a 36.6° angle: steeper and more compact for a tight footprint.
- 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 and a 33.2° angle: a short exterior flight with a roomy tread.
Stair rise and run chart: steps, riser, stringer and angle by total rise
A full reference for straight stairs at a 10.5-inch tread depth and a 7-inch target riser. Stringer length is the geometric minimum √(rise² + run²), the angle is arctangent(riser ÷ tread), and the last column is the 2R + T rule-of-thumb figure (traditional target 24 to 25 in). Every cell is computed.
| Total rise | Risers | Exact riser | Treads | Total run | Stringer | Angle | 2R + T |
|---|---|---|---|---|---|---|---|
| 36 in | 5 | 7.20 in | 4 | 42.0 in | 55.3 in | 34.4° | 24.9 in |
| 48 in | 7 | 6.86 in | 6 | 63.0 in | 79.2 in | 33.1° | 24.2 in |
| 60 in | 9 | 6.67 in | 8 | 84.0 in | 103.2 in | 32.4° | 23.8 in |
| 72 in | 10 | 7.20 in | 9 | 94.5 in | 118.8 in | 34.4° | 24.9 in |
| 84 in | 12 | 7.00 in | 11 | 115.5 in | 142.8 in | 33.7° | 24.5 in |
| 96 in | 14 | 6.86 in | 13 | 136.5 in | 166.9 in | 33.1° | 24.2 in |
| 104 in | 15 | 6.93 in | 14 | 147.0 in | 180.1 in | 33.4° | 24.4 in |
| 108 in | 15 | 7.20 in | 14 | 147.0 in | 182.4 in | 34.4° | 24.9 in |
| 112 in | 16 | 7.00 in | 15 | 157.5 in | 193.3 in | 33.7° | 24.5 in |
| 120 in | 17 | 7.06 in | 16 | 168.0 in | 206.5 in | 33.9° | 24.6 in |
| 126 in | 18 | 7.00 in | 17 | 178.5 in | 218.5 in | 33.7° | 24.5 in |
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.
How the riser target reshapes one staircase (112-inch rise)
Hold the total rise and tread depth fixed and change only the target riser to see the trade-off between step count, steepness and stringer length. Note that a 7.75-inch target rounds down to just 14 risers and pushes the exact riser to 8.00 in, over the 7 3/4-inch IRC maximum, so it needs a lower target or a 15th riser.
| Target riser | Risers | Exact riser | Total run | Stringer | Angle | 2R + T |
|---|---|---|---|---|---|---|
| 6.50 in | 17 | 6.59 in | 168.0 in | 201.9 in | 32.1° | 23.7 in |
| 7.00 in | 16 | 7.00 in | 157.5 in | 193.3 in | 33.7° | 24.5 in |
| 7.25 in | 15 | 7.47 in | 147.0 in | 184.8 in | 35.4° | 25.4 in |
| 7.50 in | 15 | 7.47 in | 147.0 in | 184.8 in | 35.4° | 25.4 in |
| 7.75 in | 14 | 8.00 in | 136.5 in | 176.6 in | 37.3° | 26.5 in |
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. The IRC limits the variation across a flight to 3/8 inch, so 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 3/4 in riser, 10 in tread, 151 in per flight) are the IRC model code values; states and cities can amend them when they adopt the code, so confirm before building.
Stair angle and how steep is too steep
The calculator also reports the stair angle (the pitch of the flight measured from horizontal) as arctangent(riser height ÷ tread depth), the slope of the line that touches every nosing. The textbook example above, a 7-inch riser on a 10.5-inch tread, comes out at 33.7 degrees. The IRC does not limit the angle directly, but its riser and tread limits cap it: a 7 3/4-inch riser on a 10-inch tread is arctangent(0.775) = 37.8 degrees, the steepest a code-compliant house stair can be. For workplaces, OSHA allows standard stairs at 30 to 50 degrees and ship stairs at 50 to 70 degrees (29 CFR 1910.25). 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 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: the IRC minimum is 6 ft 8 in, measured vertically from the sloped line of the tread nosings to the ceiling or header above (R311.7.2). 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, a single flight may climb no more than 151 inches (12 ft 7 in) between floor levels or landings, 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. Stairs in commercial and public buildings, including apartment buildings, fall under the International Building Code (IBC), and where accessibility rules apply, the ADA Standards require risers of 4 to 7 inches, treads at least 11 inches deep and handrails on both sides (sections 504.2 and 505.2), so do not apply these house figures there. 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) and 30 inches of rise per run, 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 into a tiny footprint (OSHA's workplace rule sets both at 50 to 70 degrees) 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: 2010 ADA Standards, 405 (ramps), 504 (stairways) and 505 (handrails).
- OSHA: 29 CFR 1910.25, Stairways (angles for standard, ship and alternating tread-type stairs).
- American Wood Council: DCA 6, Prescriptive Residential Wood Deck Construction Guide (stair stringers).
โ ๏ธ 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, so 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 and bottom connections, so buy boards longer than the number shown and add about 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 minus 1.
What is the maximum riser height allowed by code?
Under the International Residential Code (IRC), the model code for one- and two-family houses that states and cities adopt, the maximum riser height is 7 3/4 inches (R311.7.5.1) and the minimum tread depth is 10 inches (R311.7.5.2). The tallest riser in a flight may not exceed the shortest by more than 3/8 inch, and the same 3/8-inch limit applies to tread depths, which is why getting equal risers matters. States and cities can amend these values when they adopt the code, so confirm the exact figures with your local building department.
What is the 2R + T comfort rule?
A long-standing carpentry rule of thumb says that twice the riser height plus one tread depth should fall between 24 and 25 inches (2R + T = 24 to 25). It keeps step height and depth in proportion to a normal stride. It is a design guideline, not a code requirement. A 7-inch riser with a 10.5-inch tread gives 2(7) + 10.5 = 24.5 inches, right in the middle of the range.
Does this calculator work for deck and outdoor stairs?
Yes. The geometry is identical for interior stairs, deck stairs and porch steps: measure the total rise from the deck surface down to the finished grade or pad where the bottom step will land. The American Wood Council's prescriptive deck guide (DCA 6) adds deck-specific rules: stringers at least 2x12, stairs at least 36 inches wide, and an intermediate landing when the total vertical height exceeds 12 feet. The footing or pad at the base is not sized by this calculator.
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 stringer stock at least 10% longer than the calculated minimum length and consider one spare board. For the number of stringers, the American Wood Council's deck guide (DCA 6) calls for at least three cut stringers on a 36-inch-wide stair and a maximum spacing of 18 inches on center on wider stairs. 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 7 3/4 inches, the IRC limit, 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.
How many stairs do I need for an 8-foot ceiling?
The stair has to climb the ceiling height plus the floor structure above it, so an 8-foot ceiling means more than 96 inches of total rise. With 2x10 floor joists (9 1/4 inches deep), a 3/4-inch subfloor and 1/2-inch ceiling drywall, the rise is about 96 + 10.5 = 106.5 inches before the finished flooring. At a 7-inch target that rounds to 15 risers of 7.10 inches and 14 treads, a total run of 147 inches at a 10.5-inch tread. If your measured floor-to-floor rise really is 96 inches, it rounds to 14 risers of 6.86 inches. Always measure your own finished rise, since floor framing and finishes vary.
What angle should a staircase be?
The stair angle (pitch) is arctangent(riser height / tread depth). A 7-inch riser on a 10.5-inch tread gives arctangent(7 / 10.5) = 33.7 degrees. The IRC does not set an angle directly, but its limits do: a 7 3/4-inch riser on a 10-inch tread is arctangent(0.775) = 37.8 degrees, the steepest a code-compliant house stair can be. For comparison, OSHA's workplace rules allow standard stairs at 30 to 50 degrees and ship stairs at 50 to 70 degrees. To flatten a stair, use a deeper tread or a lower riser target, which lengthens the run.
๐ก Good to know
Equal risers are a safety rule, not a preference
The IRC limits how much riser heights can vary within a single flight (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 of thumb
Twice the riser plus one tread depth traditionally lands between 24 and 25 inches. It is a carpentry guideline, not a code limit; if a layout falls outside it, adjust the tread depth or riser target and check the result against the code limits again.
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