Stair Stringer Calculator: Risers, Treads and Run
Lays out a straight flight of stairs from the total floor-to-floor rise, a target riser height and a tread depth. The rise divided by the target, rounded up, gives the number of risers, so no riser is taller than the target. Treads number one fewer than risers, or the same when the top tread sits level with the upper floor. The run is treads times depth, and the stringer length is the diagonal of rise and run.
This calculator lays out a straight flight of stairs from the floor-to-floor height, the tallest riser you will accept and the tread depth you want. It returns the actual riser height to the nearest sixteenth of an inch or the nearest millimetre, the riser and tread counts, the run, the stringer length and the angle, then checks them against the US residential code, England's Approved Document K and the two-risers-plus-a-tread comfort rule.
How the layout works
Every riser in a flight should be the same height, so the count is the total rise divided by the target, rounded up:
n = ⌈H ÷ Rtarget⌉ r = H ÷ n
Here H is the total rise and r the actual riser height, which is never taller than the target. In a standard layout the highest tread on the stringer sits one riser below the upper floor, and the floor is the last step, so there is one fewer tread than risers, as the Journal of Light Construction notes. In a flush layout the highest tread is level with the floor, so treads and risers are equal. Then:
run = t × T stringer = √(H² + run²) angle = arctan(r ÷ T)
where t is the number of treads and T the tread depth. The stringer length is the hypotenuse of a right triangle with the rise and run as legs, the sum the Pythagorean theorem calculator does.
A worked example
Take the defaults: a total rise of 105 in, a 7 in target riser, 10 1/2 in treads and a standard top. 105 ÷ 7 is exactly 15, so the stair has 15 risers of 7 in and 14 treads. The run is 14 × 10 1/2 = 147 in, or 12 ft 3 in. The stringer length is √(105² + 147²) = 180.65 in, which rounds to 15 ft 0 5/8 in, and the angle is arctan(7 ÷ 10 1/2) = 33.7°. Two risers plus a tread come to 24 1/2 in, inside the comfort band, and every code check passes.
Switch to a flush top and the stair gains a tread: 15 treads, a run of 13 ft 1 1/2 in and a stringer of 15 ft 9 5/16 in. The risers do not change.
Rounding up matters more than it looks. Raise the total rise by a single inch to 106 in and 106 ÷ 7 is 15.14, so the stair needs 16 risers of 6 5/8 in. Two of those plus a 10 1/2 in tread come to 23 3/4 in, just under the comfort band, and the check says so. A 10 3/4 in tread brings the sum back to 24 in.
In millimetres the defaults are a 2,800 mm rise, a 175 mm target and 265 mm treads, which give 16 risers of 175 mm, 15 treads, a run of 3,975 mm, a stringer of 4,862 mm and an angle of 33.4°.
The limits it checks
The checks judge the figures as shown, so the words always agree with the number beside them.
| Rule | Source | Limit |
|---|---|---|
| Riser height | International Residential Code 2012, R311.7.5.1 | 7 3/4 in (196 mm) maximum |
| Tread depth | International Residential Code 2012, R311.7.5.2 | 10 in (254 mm) minimum |
| Rise of one flight | International Residential Code 2012, R311.7.3 | 12 ft (3,658 mm) maximum |
| Rise, private stair | Approved Document K 2013, Table 1.1 | 150 to 220 mm |
| Going, private stair | Approved Document K 2013, Table 1.1 | 220 to 300 mm |
| Twice the rise plus the going | Approved Document K 2013, Table 1.1 | 550 to 700 mm |
| Pitch, private stair | Approved Document K 2013, Table 1.1 | 42° maximum |
| Two risers plus a tread | Architectural Graphic Standards, via Autodesk | 24 to 25 in (610 to 635 mm) |
The 2012 International Residential Code states that "The maximum riser height shall be 7 3/4 inches (196 mm)" and that "The minimum tread depth shall be 10 inches (254 mm)." It measures the riser "vertically between leading edges of the adjacent treads", and millimetre mode uses the code's own metric figures. R311.7.3 limits a flight to 12 feet (3658 mm) of rise "between floor levels or landings", and the flight check flags a taller stair. Approved Document K covers a private stair, "A stair intended to be used for only one dwelling", and defines pitch as the angle between the horizontal and the line connecting the nosings, the angle shown here. Its rows are judged in whole millimetres in either mode. The comfort band is converted from inches and rounded inward.
From Blondel's stride to the code book
On 28 January 1675 the Académie royale d'architecture in Paris examined, and approved, a proposal by François Blondel recorded in its minutes. A man walking on the level, the proposal ran, takes a natural pace of about 24 pouces, while a man climbing straight up a ladder manages only about 12. So each unit of height costs two of length, and the tread is whatever is left of 24 after doubling the step height. Steps 3 pouces high get 18 pouces of tread, and steps 4 high get 16. The minutes close: "Laquelle proportion a esté approuvée de la compagnie", the proportion was approved.
The US Department of Agriculture's 1955 handbook Wood-Frame House Construction, by L. O. Anderson and O. C. Heyer of the Forest Products Laboratory, gave two rules in inches: "Tread plus twice the riser equals 25" and "Tread multiplied by the riser equals 75." It added that a riser of 7 to 7 1/2 in "combines both comfort and safety". Its worked example divided a 114 in rise by a 7 1/2 in riser, took the nearest whole number, 15, and settled on risers of 7.6 in, a little taller than the riser it started from. Entered here with the same target, 114 in gives 16 risers of 7 1/8 in, because this page treats the target as a ceiling.
When the National Bureau of Standards reviewed the research in its 1979 Guidelines for Stair Safety, it reported that Grandjean, writing in 1973, recommended 17 cm risers and 29 cm treads, a slope of 30°, and the formula 2r + t = 63 cm, or 24.8 in. The band of 24 to 25 in that Autodesk's Revit documentation attributes to Architectural Graphic Standards takes in both the handbook's 25 in and Grandjean's 24.8 in.
Measuring your own stair
Measure the total rise from finished floor to finished floor, counting any hard flooring still to be laid; the IRC measures "exclusive of carpets, rugs or runners". Outdoors, measure where the bottom step will land, since ground often slopes away from a deck. Enter fractions as decimals: 7 3/4 in is 7.75. The maximum riser height is the target, so enter the tallest riser you are comfortable with. Tread depth runs from nosing to nosing, so an overhanging tread board adds nothing to it.
What the stringer length leaves out
The stringer length is the straight line from the foot of the first riser to the point where the stair meets the upper floor. If treads sit on top of a cut stringer, each one raises its step by its own thickness, so cut the bottom riser shorter by one tread thickness, or the first step will be taller than the rest by that much and the top step shorter. The IRC allows no more than "3/8 inch (9.5 mm)" between the tallest and shortest riser in a flight. The length leaves out board that runs past either floor, hangers and waste, so buy a board with length to spare.
The American Wood Council's DCA 6 deck guide, a prescriptive guide rather than a code, calls for stringers of at least 2x12, at least three cut stringers if only cut stringers are used, and, like the IRC, an intermediate landing if the stair climbs more than 12 ft. It also sets the posts on footings at least 12 in below undisturbed ground or below the frost line, whichever is deeper, which the concrete calculator can size. Simpson Strong-Tie puts the longest horizontal span at 6 ft for a cut stringer and 13 ft 3 in for a solid one, and DCA 6 lets a 4x4 post shorten a span that is too long, so the default 12 ft 3 in run on cut stringers would need support partway down. The Journal of Light Construction recommends at least 5 in of uncut depth left in a notched stringer.
A stair is a sloped plane much like a rafter, and the roof pitch calculator works the same triangle for a roof. Winders, spiral stairs, landings and headroom are outside this model.
This calculator gives layout estimates from simple geometry, not a design approved for your site. Building codes vary by country, state and town, and by edition, so confirm riser, tread, landing, handrail and structural requirements with your local building department before you cut. See the site disclaimer.
Frequently asked questions
How many steps do I need for a given height?
Divide the total rise by the tallest riser you want and round up. A 105 in rise with a 7 in target needs exactly 15 risers of 7 in. With a standard top, where the upper floor serves as the last step, that is 14 treads. Add one inch, a 106 in rise, and the count jumps to 16 risers of 6 5/8 in, because rounding up keeps every riser at or below the target.
What riser height and tread depth does the code allow?
The 2012 International Residential Code allows a riser of at most 7 3/4 in (196 mm), a tread of at least 10 in (254 mm) and a single flight no more than 12 ft (3,658 mm) of rise between floors or landings. England's Approved Document K allows a private stair a rise of 150 to 220 mm and a going of 220 to 300 mm, a pitch of no more than 42 degrees, and twice the rise plus the going between 550 and 700 mm. Your local code may differ, so check the edition your building department uses.
What is the 2R + T rule?
It says that two risers plus one tread should add up to a comfortable stride. François Blondel proposed it to the French Royal Academy of Architecture in 1675, taking a level pace as 24 pouces. Autodesk's Revit documentation, citing Architectural Graphic Standards, gives 24 to 25 in. The defaults here give 2 × 7 + 10 1/2 = 24 1/2 in.
What is the difference between a standard and a flush top?
With a standard top the highest tread on the stringer sits one riser below the upper floor, and the floor itself is the last step, so there is one fewer tread than risers. With a flush top the highest tread is level with the floor, so treads and risers are equal and the stair runs one tread further. At the defaults the run grows from 12 ft 3 in to 13 ft 1 1/2 in.
How long a board do I need for the stringer?
The stringer length shown is the straight line from the foot of the first riser to the point where the stair meets the upper floor: 15 ft 0 5/8 in at the defaults. It is a minimum guide, not a cut list. Allow extra for any end of the board that runs past those two points and for trimming, and lay out the real cuts on the board with a framing square.
Sources
- 2012 International Residential Code, Section R311.7 Stairways, International Code Council, via Public.Resource.Org, 2012
- Approved Document K: Protection from falling, collision and impact, 2013 edition, UK Government, 2013
- Procès-verbaux de l'Académie royale d'architecture, 1671–1793, tome 1, Henry Lemonnier (ed.), J. Schemit, 1911
- Wood-Frame House Construction, Agriculture Handbook No. 73, U.S. Department of Agriculture, Forest Products Laboratory, 1955
- Guidelines for Stair Safety, Building Science Series 120, National Bureau of Standards, 1979
- Rule-of-Thumb Formulas for Stairs (Revit 2014 help), Autodesk
- DCA 6: Prescriptive Residential Wood Deck Construction Guide (2015 IRC), American Wood Council, 2018
- Building and Installing Deck Stairs, Journal of Light Construction, 2011
- Avoiding Deck Stair Defects, Journal of Light Construction, 2017
- Building Safe and Sturdy Stairs for Your Deck, Simpson Strong-Tie, 2025