Stair Calculator
Risers, tread depth, total run, stringer length, and stair angle from total rise, with code checks.
Stair layout is the one framing calculation where being close is not good enough: risers must be equal to within a fraction of an inch, tread depth is set by code, and the total run has to physically fit the opening you have. This rise and run calculator takes your finished-floor-to-finished-floor height, divides it into equal risers, and returns the exact riser height, tread count, total run, stringer length, and stair angle — then checks the result against the riser, tread, and 2R + T comfort rules that inspectors and carpenters actually use, so you can confirm a layout works before you cut a single stringer.
How stair rise and run are calculated
Every stair calculation begins with total rise: the vertical distance from the finished surface of the lower floor to the finished surface of the upper floor. Finished is the operative word — measuring to a subfloor and then installing three-quarter-inch hardwood on top changes every riser in the flight, and a flight where the top or bottom riser differs from the others by more than three-eighths of an inch will fail inspection in most jurisdictions.
The number of risers comes from dividing total rise by your target riser height and rounding to the nearest whole number, because risers must be equal and you cannot have a fraction of one. Divide the total rise back by that whole number of risers and you get the actual riser height — the number you will mark on the stringer. A 108-inch rise with a 7.5-inch target gives 108 ÷ 7.5 = 14.4, which rounds to 14 risers, and 108 ÷ 14 = 7.714 inches per riser.
Treads always number one fewer than risers in a standard straight flight, because the upper floor itself serves as the final tread. Fourteen risers means thirteen treads, and total run is thirteen multiplied by the tread depth. At a 10.5-inch tread that is 136.5 inches, or about 11 feet 4.5 inches of floor space the stair will consume — a figure worth checking against the actual opening before committing.
Stringer length is the hypotenuse of the triangle formed by total rise and total run, found with the Pythagorean theorem: the square root of rise squared plus run squared. For 108 inches of rise and 136.5 inches of run, that is roughly 174 inches, or 14.5 feet, which tells you immediately that a 16-foot stringer board is required and a 14-footer will not do.
Stair angle follows from the same triangle: the arctangent of rise divided by run. Comfortable residential stairs land between about 30 and 37 degrees. Below 30 degrees the flight consumes an impractical amount of floor space; above 38 degrees it feels steep and begins to strain against code limits on riser height.
Worked example: a 9-foot floor-to-floor stair
Take a typical residential stair between two floors with 108 inches of total rise — nine feet from finished floor to finished floor, which is common in a house with 8-foot ceilings plus floor structure. The carpenter targets a 7.5-inch riser and plans on 10.5-inch treads with a 1-inch nosing.
Dividing 108 by 7.5 gives 14.4 risers, which is not a whole number, so the layout uses 14. Actual riser height becomes 108 ÷ 14 = 7.714 inches, safely under the 7.75-inch maximum in the International Residential Code and identical for all fourteen steps.
Fourteen risers produce thirteen treads. At a 10.5-inch tread depth, total run is 13 × 10.5 = 136.5 inches, which is 11 feet 4.5 inches. If the stairwell opening is only 10 feet long, this layout will not fit and either the tread depth must be reduced to the 10-inch code minimum (130 inches of run) or the stair must turn with a landing or winders.
Stringer length is the square root of 108² + 136.5², which is the square root of 11,664 + 18,632 = 30,296, giving about 174.1 inches — 14 feet 6 inches. Order 16-foot stringer stock and allow for the plumb cut at the top and the level cut at the bottom.
The angle is arctan(108 ÷ 136.5) = 38.4 degrees, at the steep edge of comfortable. Checking the comfort rule, 2R + T is (2 × 7.714) + 10.5 = 25.93 inches, above the classic 24 to 25 inch target range, which confirms the numerical impression: this flight is a little steep and a little tight. Widening treads to 11 inches would bring 2R + T to 26.4 — worse on that rule but easier underfoot — while adding a fifteenth riser drops the riser to 7.2 inches and 2R + T to 24.9, landing squarely in the comfortable zone at the cost of another 10.5 inches of floor space.
Code limits, comfort rules, and headroom
Under the International Residential Code, which most U.S. jurisdictions adopt with local amendments, the maximum riser height for residential stairs is 7 3⁄4 inches and the minimum tread depth is 10 inches. Commercial stairs under the International Building Code are less steep: typically a 7-inch maximum riser and an 11-inch minimum tread. Always confirm with your local building department, since amendments are common and some jurisdictions are stricter.
The uniformity rule is enforced as strictly as the dimensional limits. The largest and smallest riser in a flight may not differ by more than 3⁄8 inch, and the same tolerance applies to tread depths. This is a safety rule grounded in how people climb stairs: after two or three steps the body stops looking and starts predicting, and an uneven riser is exactly where falls happen.
The 2R + T comfort rule — twice the riser plus the tread depth should total 24 to 25 inches — dates to seventeenth-century French architect François Blondel and still tracks human stride remarkably well. A related check, R + T between 17 and 18 inches, and the rule that riser times tread should land near 72 to 75 square inches, give the same answer from different directions. None of these are code; all of them are what separates a stair that feels right from one that technically passes.
Minimum headroom is 6 feet 8 inches (80 inches) measured vertically from the tread nosing line to the ceiling or soffit above, and it is the constraint most often discovered too late. Adding risers to reduce steepness lengthens the run and pushes the stair further under the floor above, which can eat the headroom clearance at the stairwell opening. Check headroom and run together, not sequentially.
Nosing projection — the lip of the tread overhanging the riser below — must be between 3⁄4 and 1 1⁄4 inches when treads are less than 11 inches deep. Nosing adds effective foot room without adding to the total run, which makes it a useful tool when floor space is tight, but it is not a substitute for adequate tread depth.
Stair width must be at least 36 inches above the handrail height in residential construction, and handrails may project no more than 4.5 inches into that width on each side. Handrails themselves are required on at least one side of any flight with four or more risers, set between 34 and 38 inches above the nosing line.
Cutting stringers and building the flight
Stringers are laid out with a framing square using stair gauges clamped at the riser height on the tongue and the tread depth on the blade, stepping the square down the board once per tread. Any small error in a single step multiplies across the flight, so most carpenters lay out the full stringer, then check that the cumulative rise at the top matches the calculated total before cutting anything.
The bottom of the stringer must be dropped by the thickness of one tread. Because the bottom step's riser sits on the floor while every other step's riser sits on a tread, cutting the stringer without this drop makes the first step taller than the rest by exactly one tread thickness — the single most common stair-building mistake, and one that fails the uniformity rule immediately.
A 2x12 is the standard stringer stock because a full-depth cut stringer needs at least 5 inches of uncut material remaining behind the notches to retain its strength. Cutting stringers from a 2x10 leaves too little effective depth on typical residential dimensions and produces a springy, undersized carriage.
Stringer spacing is generally 16 inches on center for standard 1-inch-nominal treads, and no more than 12 inches on center where treads are thinner or the stair is wide and will see heavy loads. A 36-inch-wide residential stair typically uses three stringers; wider stairs need four or more.
Exterior and deck stairs follow the same geometry but usually use shallower risers, often 6 to 7 inches, and deeper treads built from two 2x6 boards, giving roughly 11 inches of tread depth. Outdoor stairs also need a solid footing or landing pad at the bottom — stringers bearing directly on soil will settle, and settling changes the bottom riser height for everyone using the stair.
Common stair layout mistakes
Measuring to the subfloor instead of the finished floor is the error that costs the most rework. Half an inch of tile at the bottom and three-quarters of an inch of hardwood at the top changes the total rise by more than an inch, and once stringers are cut to the wrong rise there is no adjustment short of recutting.
Rounding riser height instead of dividing evenly produces a flight where the last step is short or tall. Riser height is a derived value, not a chosen one: pick the number of risers, then let the arithmetic set the exact height, even when that height is an awkward 7.714 inches. Carpenters mark that fraction on a story pole rather than trying to find it on a tape.
Forgetting to drop the bottom stringer by one tread thickness produces a first step taller than all the others — an immediate inspection failure and a genuine trip hazard, since the first step is where the climber's expectations are formed.
Ignoring total run until after the stringers are cut is a scheduling disaster. A flight can satisfy every riser and tread rule and still be unbuildable because it runs into a wall, blocks a doorway, or lands in the middle of a hallway. Check the run against the actual opening first, then optimize riser and tread within that constraint.
Overlooking headroom at the stairwell opening is the subtler version of the same problem. Every riser added to soften the pitch lengthens the run and moves the walking surface further beneath the floor above, and a stair that clears 80 inches at the bottom can drop below it near the top of the opening.
Finally, treating the comfort rules as optional produces stairs that pass inspection and still feel wrong. A flight at 7 3⁄4 inch risers with 10-inch treads is fully code-compliant and measurably unpleasant to descend, particularly for older occupants. Where floor space allows, trading an extra riser and a few inches of run for a gentler pitch is nearly always the better decision.
Frequently asked questions
How do I calculate the number of stairs I need?
Divide the total rise from finished floor to finished floor by your target riser height and round to the nearest whole number. That is your riser count. Divide the total rise by that whole number to get the exact, equal riser height for every step.
What is the standard rise and run for stairs?
In U.S. residential construction, a riser of about 7 to 7.75 inches with a tread depth of 10 to 11 inches is standard. Commercial stairs are less steep, typically a 7-inch maximum riser and an 11-inch minimum tread.
What is the maximum riser height allowed by code?
The International Residential Code caps residential risers at 7 3/4 inches with a 10-inch minimum tread. Commercial stairs under the IBC are typically limited to a 7-inch riser and 11-inch tread. Local amendments vary, so confirm with your building department.
What is the 2R + T rule for stairs?
Twice the riser height plus the tread depth should total between 24 and 25 inches. It is a centuries-old comfort formula that matches natural stride length. It is not code, but flights that satisfy it consistently feel better to climb and descend.
How do I find stringer length?
Stringer length is the hypotenuse of the rise-and-run triangle: the square root of total rise squared plus total run squared. A 108-inch rise with a 136.5-inch run gives about 174 inches, so you would buy 16-foot stringer stock.
How much floor space will my staircase take up?
Total run equals the number of treads (one fewer than the risers) multiplied by the tread depth. Thirteen treads at 10.5 inches consume 136.5 inches, or about 11 feet 4.5 inches of floor length.
Why are there one fewer treads than risers?
The upper floor surface serves as the final tread, so a flight with 14 risers has 13 treads. Forgetting this is a common reason a calculated total run comes out one tread too long.
How much headroom do stairs need?
A minimum of 6 feet 8 inches, or 80 inches, measured vertically from the tread nosing line to the ceiling or soffit above. Adding risers to soften the pitch lengthens the run and can reduce headroom at the stairwell opening.
Can risers in a staircase be different heights?
No. Code limits the difference between the tallest and shortest riser in a flight to 3/8 inch, and the same tolerance applies to tread depths. Uneven risers are a leading cause of stair falls and an automatic inspection failure.
Why do I have to drop the bottom stringer?
The bottom riser sits directly on the floor while every other riser sits on a tread, so the stringer must be trimmed at the bottom by exactly one tread thickness. Skipping this makes the first step taller than the rest.
What is stair nosing and how much is required?
Nosing is the tread lip that overhangs the riser below. When treads are less than 11 inches deep, code generally requires a projection between 3/4 and 1 1/4 inches. It adds effective foot room without lengthening the total run.
What angle should a staircase be?
Comfortable residential stairs fall between about 30 and 37 degrees. Below 30 degrees the flight consumes excessive floor space; above 38 degrees it feels steep and begins to strain code limits on riser height.
What size lumber should stair stringers be?
A 2x12 is standard. A cut stringer must retain at least 5 inches of uncut material behind the notches to stay strong, which a 2x10 generally cannot provide at typical residential riser and tread dimensions.
How far apart should stair stringers be spaced?
Generally 16 inches on center for standard 1-inch-nominal treads, and no more than 12 inches on center for thinner treads or heavily loaded stairs. A 36-inch-wide residential stair typically uses three stringers.
More in Exterior & Structures
Outdoor builds and replacements: roofing squares, fence panels and posts, deck boards and joists, and asphalt driveway tonnage.
- Roofing Calculator
Roofing squares, shingle bundles, underlayment, ridge cap, and material cost by roof pitch.
- Fence Calculator
Posts, rails, pickets or panels, concrete bags, and cost per linear foot of fence.
- Deck Calculator
Deck boards, joists, beams, footings, fasteners, and cost per square foot.
- Asphalt Driveway Calculator
Tons of asphalt and base gravel for a driveway, plus sealcoating and installed cost.
- Gravel Driveway Calculator
Tons and cubic yards of gravel for a driveway, plus truck loads, fabric, and delivered cost.
- Retaining Wall Calculator
Blocks, courses, caps, base and drainage gravel tons, and material plus installed cost.
Related calculators
Browse all Home →Brick & Block Calculator
Bricks or CMU blocks, mortar bags, sand, and cost per square foot of wall.
Gravel Driveway Calculator
Tons and cubic yards of gravel for a driveway, plus truck loads, fabric, and delivered cost.
Retaining Wall Calculator
Blocks, courses, caps, base and drainage gravel tons, and material plus installed cost.
Pipe Volume Calculator
Internal volume and water capacity of PVC, copper, or PEX pipe by diameter and length.
Party Drink Calculator
How much beer, wine, liquor, ice, and cups you need based on guests, hours, and drink mix.
Party Food Calculator
How many appetizers, ounces of main, sides, and desserts you need per person.
Catering Calculator
Food quantities, staff count, and total bill (with service charge, tax, gratuity) for any event style.
Paint Calculator
Gallons of paint needed for a room or surface — adjusts for doors, windows, coats, and ceiling.