Framing calculator
Stair Calculator
A stair calculator that turns your total rise, floor to floor or ground to deck, into the riser count, tread count, actual riser height and total horizontal run. It works for deck stairs, porch steps, basement stairs and full flights. Uneven risers trip people; a wrong run lands the last step past the landing, so get both numbers before you cut a stringer.
- Free to use
- No sign-up
- Formula and sources shown

Got the number? Save it before it gets lost.
A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.
Floor-to-floor height, measured vertically.
Code max is typically 7.75 in, aim slightly under.
Code minimum is typically 10 in.
Number of risers
15
Actual riser height
7.20 in
Treads
14
Total run
11.67 ft
Turn this result into a priced plan
Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.
Formula
Risers = ceil(Total Rise ÷ Target Riser Height); Actual Riser = Total Rise ÷ Risers; Treads = Risers − 1; Total Run = Treads × Tread Depth
Worked example. A 108 in (9 ft) floor-to-floor rise, targeting a 7.5 in riser: 108 ÷ 7.5 = 14.4, rounded up to 15 risers. Actual riser height = 108 ÷ 15 = 7.2 in. That's 14 treads, and at 10 in deep each, a total run of 140 in (11.67 ft).
Divide the rise into equal steps, then work out the run. Divide the total rise by your target riser height and round up to get the number of risers. Divide the total rise by that number for the actual riser, subtract one for the treads, and multiply by tread depth for the total run. A 108 in rise needs 15 risers of 7.2 in, so every step climbs the same height.
How to use the stair calculator
- Measure the total rise: the vertical distance from the lower finished surface to the upper finished surface. For a deck, measure from the ground (or landing pad) to the top of the deck boards.
- Enter the total rise in inches.
- Enter a target riser height. 7 to 7.5 inches is common.
- Enter the tread depth. Most codes require at least 10 inches.
- Read the number of risers, the number of treads, the actual riser height and the total run.
- Check the results against your local code, then use them to lay out the stringers.
Stair formulas
Risers = ceil[ Total rise ÷ Target riser height ]
Actual riser height = Total rise ÷ Risers
Treads = Risers − 1
Total run = Treads × Tread depth
Stringer length (straight line) = √(Total rise² + Total run²)
Stair angle = arctan(Actual riser ÷ Tread depth)
There is always one fewer tread than risers, because the upper floor or deck surface acts as the top tread. A common comfort check is that twice the riser plus the tread is about 24 to 25 inches.
Stair calculator examples
Example 1: 9 ft floor-to-floor rise
- 108 ÷ 7.5 = 14.4, rounded up = 15 risers
- Actual riser = 108 ÷ 15 = 7.2 in; treads = 14
- Total run = 14 × 10 = 140 in = 11.67 ft
Example 2: deck 42 in above the ground
- 42 ÷ 7.5 = 5.6, rounded up = 6 risers; actual riser = 7.0 in
- Treads = 5; at 10 in each, total run = 50 in (4.17 ft)
- Stringer length = √(42² + 50²) = 65.3 in; angle = 35.0°; 2R + T = 24 in
Example 3: low deck, 30 in above the ground, two 5.5 in boards per tread
- 30 ÷ 7.5 = 4.0, so 4 risers of 7.5 in and 3 treads
- Two 5.5 in boards with a 1/4 in gap make an 11.25 in tread, so the run = 3 × 11.25 = 33.75 in (2.81 ft)
Example 4: tall deck, 96 in (8 ft) above the ground
- 96 ÷ 7.5 = 12.8, rounded up = 13 risers; actual riser = 7.38 in
- Treads = 12; total run at 10 in = 120 in (10 ft)
- Long runs like this often need an intermediate landing, so check your code.
Stair code limits at a glance (IRC)
| Item | Typical requirement |
|---|---|
| Maximum riser height | 7¾ in (197 mm) |
| Minimum tread depth | 10 in (254 mm) |
| Riser variation in one flight | No more than 3/8 in |
| Minimum stair width | 36 in |
| Handrail | Required on at least one side for four or more risers; 34 to 38 in above the nosings |
| Maximum vertical rise between landings | About 12 ft 7 in |
| Landing | At top and bottom, at least as wide as the stair and 36 in deep |
| Nosing (treads under 11 in) | About 3/4 to 1¼ in |
Typical limits in commonly adopted editions of IRC Section R311.7. Some jurisdictions allow or require different values, so confirm with your building department.
Choosing riser height and tread depth
| Riser | Tread | 2R + T | Feel |
|---|---|---|---|
| 6 in | 12 in | 24 in | Gentle, porch-style |
| 7 in | 11 in | 25 in | Comfortable |
| 7.5 in | 10 in | 25 in | Common, a bit steeper |
| 7¾ in | 10 in | 25½ in | Steepest typical residential |
Shallower risers with deeper treads are easier to climb but need more horizontal run.
Deck stairs: what changes
- •Top tread: the deck surface is the top tread, so treads = risers − 1. A 42 in deck needs 6 risers and 5 treads.
- •Two-board treads: two 5.5 in decking boards plus a 1/4 in gap make an 11.25 in tread, which meets the 10 in minimum.
- •Landing pad: stairs should bear on a concrete pad or compacted gravel pad, not bare soil. Use the concrete bag calculator or footing calculator for the pad.
- •Stringers: space them closely enough for your tread material. Wood treads often use 12 to 16 in centers, and composite treads can need closer spacing, so follow the product's span rating. A 36 in wide stair often uses 3 or 4 stringers.
- •Notched stringers: cutting out the steps reduces the lumber. Leave enough uncut depth under the notches as your code or DCA 6 requires.
- •Guards and rails: deck stairs with four or more risers need a handrail, and a guard where the drop is more than 30 in. See the deck railing calculator.
Laying out the stringers
- Set a framing square with stair gauges at the riser height and tread depth.
- Mark each step down the board, starting at the top.
- Shorten the bottom of the stringer by the thickness of the tread, so the first step is the same height as the others.
- Cut the notches without overcutting the corners.
- Test-fit the first stringer, then use it as a template for the rest.
- Check that all risers are the same within 3/8 in once the treads are installed.
Measuring total rise correctly
- •Measure to the finished surfaces, such as the top of the deck boards and the top of the landing pad.
- •Account for the thickness of any flooring or treads added later.
- •Measure at the exact stair location, since the ground may slope.
- •Allow for settling or changes to the final grade.
- •Re-measure before cutting. A small error in total rise changes every riser.
Troubleshooting stair problems
| Problem | Likely cause | What to do |
|---|---|---|
| Uneven riser heights | Wrong total rise, or stringer cut error | Re-measure; cut all stringers from one template |
| Bouncy or loose stairs | Stringers too far apart or notched too deep | Add stringers or use a larger board; follow span guidance |
| Top or bottom step is a different height | Tread thickness not subtracted from the bottom riser | Adjust the bottom cut so the first step matches the others |
| Gap at the top | Stringer not hung at the correct height | Check the total rise against the actual deck or floor height |
Terms explained
| Term | Meaning |
|---|---|
| Rise | Vertical height of one step (riser) or of the whole flight (total rise) |
| Run | Horizontal depth of one step (tread) or of the whole flight (total run) |
| Riser | The vertical part of a step |
| Tread | The surface you step on |
| Stringer | The sloped board that supports the treads |
| Nosing | The front edge of a tread, which may overhang the riser |
| Landing | A flat platform at the top, bottom or turn of stairs |
| Headroom | Vertical clearance above the stairs |
Common stair calculator mistakes
- •Counting treads as equal to risers. There is one fewer tread.
- •Forgetting to subtract the tread thickness from the bottom riser cut.
- •Letting risers differ by more than 3/8 in.
- •Using the horizontal run as the stringer length. The stringer is longer.
- •Measuring the rise before the final grade or landing pad is set.
- •Forgetting the landing, handrail or guard required by code.
Metric conversions
| From | To |
|---|---|
| 7¾ inches | 197 millimetres |
| 10 inches | 254 millimetres |
| 108 inches (9 ft) | 2.74 metres |
| 36 inches | 914 millimetres |
| 1 foot | 0.3048 metres |
The rounding trap: ceil vs round-to-nearest, and the 1/16-inch trap
Stair math has two traps, and both come from rounding. The first is how you turn a divided rise into a whole number of risers. The second is how you mark a riser height that does not land on a neat fraction. Get either one wrong and the stair still looks right on paper, but the top step lands high or low, or every riser is a fraction off.
Take a 108 in rise with a 7.5 in target riser. Dividing gives 108 ÷ 7.5 = 14.4 risers, which is not a whole number, so you must round. Rounding up gives 15 risers of 7.2 in each, with 14 treads and a total run of 140 in at 10 in treads. Rounding to the nearest whole number gives 14 risers of 7.714 in each, with 13 treads and a run of 130 in. Both riser heights are under the 7¾ in code maximum, so both stairs pass inspection, but they are different stairs: the 14-riser stair is steeper at 37.65 degrees against 35.75 degrees, and it takes 10 in less floor space.
Example: the same 108 in rise, two roundings
- Round up (this calculator): 108 ÷ 7.5 = 14.4, rounded up = 15 risers; actual riser = 108 ÷ 15 = 7.2 in (7 3/16 in); 14 treads; run = 140 in; angle = 35.75°
- Round to nearest: 108 ÷ 7.5 = 14.4, rounded to 14 risers; actual riser = 108 ÷ 14 = 7.714 in (7 23/32 in); 13 treads; run = 130 in; angle = 37.65°
- Difference: one fewer riser, a riser 0.51 in taller, one fewer tread, and 10 in less run
- Why this calculator rounds up: rounding up never gives a riser taller than your target, so a 7.5 in target can never come back as a 7.71 in riser
The second trap is the 1/16-inch trap, and it bites after the count is right. The exact riser for the 15-riser stair is 7.2 in, which is 7 3/16 in to the nearest 1/16 inch, or 7.1875 in. That looks close enough to mark, but 15 risers marked at 7.1875 in add up to 107.81 in, which is 0.19 in short of the 108 in rise. The stair would land low by nearly 3/16 in, and the last riser would be visibly different from the rest.
- •Mark from the exact decimal, not the nearest fraction. Set your framing square or tape to 7.2 in, not 7 3/16 in.
- •Or mark cumulatively: the riser marks fall at 7.2, 14.4, 21.6, 28.8 in, and so on, so small errors never accumulate.
- •Or lay out the stringer full-size on the floor or on a sheet of plywood and measure the real rise against it before you cut.
- •Never fix a shortfall by stretching the last riser. Risers in one flight must stay within 3/8 in of each other, and a stretched last riser is the step everyone trips on.
The same trap applies in reverse. If you round the riser count down instead of up, the actual riser comes out taller than your target, and on a rise that divides nearly evenly the difference is small enough to miss. A 105 in rise at a 7.5 in target divides to exactly 14 risers of 7.5 in, so there is no trap at all. A 100 in rise divides to 13.33, and rounding down gives 13 risers of 7.69 in, which is legal but steeper than the 7.5 in you asked for. Rounding up gives 14 risers of 7.14 in. Choose the rounding before you cut, and check the actual riser the calculator returns.
Common total rises: risers, run and stringer
The table below works out nine common total rises with a 7.5 in target riser and 10 in treads, using the same rounding-up rule as the calculator. Find your rise, read off the riser count, and check that the total run fits the floor space you have. A low deck stair and a full floor-to-floor flight are the same calculation with different numbers.
| Total rise | Risers | Riser | Treads | Total run | Angle | Stringer |
|---|---|---|---|---|---|---|
| 30 in (low deck) | 4 | 7.5 in | 3 | 30 in | 36.87° | 42.4 in |
| 36 in (3 ft deck) | 5 | 7.2 in | 4 | 40 in | 35.75° | 53.8 in |
| 42 in (porch) | 6 | 7.0 in | 5 | 50 in | 35.0° | 65.3 in |
| 48 in (4 ft deck) | 7 | 6.86 in | 6 | 60 in | 34.44° | 76.8 in |
| 60 in (5 ft) | 8 | 7.5 in | 7 | 70 in | 36.87° | 92.2 in |
| 96 in (8 ft) | 13 | 7.38 in | 12 | 120 in | 36.43° | 153.7 in |
| 105 in (8 ft 9 in) | 14 | 7.5 in | 13 | 130 in | 36.87° | 167.1 in |
| 108 in (9 ft floor) | 15 | 7.2 in | 14 | 140 in | 35.75° | 176.8 in |
| 120 in (10 ft) | 16 | 7.5 in | 15 | 150 in | 36.87° | 192.1 in |
Target riser 7.5 in, tread depth 10 in. Stringer length is the straight-line hypotenuse before trimming the ends, so buy a board longer than this. Every riser height in this table is inside the 7¾ in IRC maximum.
Notice how the total run grows with the rise. A 30 in deck stair needs only 30 in of floor space, but a 9 ft floor-to-floor flight needs 140 in, or 11 ft 8 in, of run. That is why stairs are planned before the floor layout is fixed: a flight that does not fit the room has to be split with a landing or turned, and both change the numbers.
Headroom and landings: when one flight is not enough
Two limits decide whether a stair can be one straight flight. The first is headroom: the IRC requires at least 6 ft 8 in (80 in) of clear height, measured vertically from the line through the tread nosings to the ceiling or floor above. The second is the rise of one flight: the IRC limits the vertical rise between floors or landings to about 12 ft 7 in (151 in). A flight taller than that needs an intermediate landing.
Example: a 14 ft rise split into two flights
- Total rise 168 in is over the 151 in limit for one flight, so it needs a landing
- Split into two flights of 84 in each: 84 ÷ 7.5 = 11.2, rounded up = 12 risers of 7.0 in per flight
- Each flight has 11 treads, so each run is 11 × 10 = 110 in (9 ft 2 in)
- The landing between them must be at least as wide as the stair and at least 36 in deep
- Total footprint: 110 in + 36 in landing + 110 in = 256 in (21 ft 4 in) in a straight line, or half that in an L-shape
Landings are also required at the top and bottom of every stair, at least as wide as the stair and 36 in deep. On a deck, the bottom landing is usually a concrete pad or compacted gravel pad, not bare soil. Size the pad with the concrete calculator or the footing calculator. If a flight cannot meet the headroom or the landing rules, an L-shaped stair with a landing at the turn, or a ramp, may fit better; check the slope with the ramp slope calculator.
What length stringer board to buy
The stringer length the calculator gives is the straight-line hypotenuse of the total rise and the total run, before the ends are trimmed. The top of the stringer is cut square to sit against the upper floor framing, and the bottom is cut square to sit on the landing, so the board you buy must be longer than the hypotenuse. Standard 2×12 lumber comes in 8, 10, 12, 14, 16, 18 and 20 ft lengths.
| Total rise | Stringer length | Board to buy |
|---|---|---|
| 30 in | 42.4 in (3 ft 6 in) | 8 ft |
| 42 in | 65.3 in (5 ft 5 in) | 8 ft |
| 60 in | 92.2 in (7 ft 8 in) | 10 ft |
| 96 in | 153.7 in (12 ft 10 in) | 14 ft |
| 108 in | 176.8 in (14 ft 9 in) | 16 ft |
| 120 in | 192.1 in (16 ft 0 in) | 18 ft |
A 16 ft board is 192 in long, which is shorter than the 192.1 in stringer for a 120 in rise, so that stair needs an 18 ft board. Always lay out the cuts full-size before you cut, and keep the offcut: it is the template for the remaining stringers.
Count the stringers as well as their length. A 36 in wide stair often uses 3 or 4 stringers, with spacing set by the tread material: wood treads commonly allow 12 to 16 in centers, and composite treads can need closer spacing. Price the stringer lumber with the lumber board feet calculator.
Winder and L-shaped stairs: what changes
Not every stair runs straight. A winder stair turns with wedge-shaped treads instead of a landing, and an L-shaped stair turns at a flat landing. Both use the same riser math as a straight flight, but the treads and the run are measured differently, and the code adds rules for the narrow end of a winder.
- •Winder treads must be at least 6 in deep at the narrow end and at least 10 in deep measured 12 in from the narrow end, along the walk line. A winder that is too narrow at the inside is a trip hazard.
- •Calculate each flight of an L-shaped stair separately, from its own rise. The landing between the flights counts as a tread for the lower flight and as the floor for the upper flight.
- •Headroom is measured at the turn as well as along the flights. The ceiling over a landing in an L-shaped stair is a common headroom failure.
- •Winder and L-shaped stairs need a handrail on the open side and a guard where the drop is more than 30 in. Work out the guard with the
- •
- •.
- •If the turn does not fit, a straight flight with a landing, or a ramp for step-free access, may be the better answer. Check the ramp slope with the
- •
- •.
Related tools
- •Deck calculator for deck boards
- •Deck railing and baluster calculator for stair and deck guards
- •Concrete steps calculator for poured steps
- •Ramp slope calculator for an accessible alternative
- •Footing calculator and concrete bag calculator for landing pads
Assumptions
- •Per IRC R311.7, residential stair risers commonly must not exceed 7¾ inches and treads must be at least 10 inches deep. Check your local code edition, because exact limits vary.
- •All risers in one flight must be within 3/8 inch of each other. The calculator returns one uniform riser height, which satisfies that rule.
- •Assumes a straight flight where the upper floor or deck acts as the top tread. It does not include landings, winders, stringer sizing or structural design.
Sources✓ Verified
- International Residential Code (IRC) Section R311.7, Stairways. Riser height, tread depth, landings, handrails and nosing for residential stairs.
- AWC DCA 6, Prescriptive Residential Wood Deck Construction Guide. Stair stringer and connection details for wood decks.
- International Residential Code (IRC) Section R312, Guards. Guards at stairs and open sides.
- Your local building department. Adopted code edition and local amendments.
Formula reviewed November 2026.
7¾ inches (197 mm) under commonly adopted IRC editions. Some jurisdictions allow other limits, so always check your local code.
10 inches (254 mm) under commonly adopted IRC editions. Some jurisdictions require 11 inches or allow other values, so confirm locally.
Divide the total rise by your target riser height (commonly 7 to 7.5 inches) and round up. That is the number of risers. There is always one fewer tread than risers. For a 108 in rise, that is 15 risers.
A 36 inch rise at a 7.5 inch target needs 5 risers with an actual riser of 7.2 inches, and 4 treads. With 10 inch treads, the run is 40 inches.
A 48 inch rise at a 7.5 inch target needs 7 risers of 6.86 inches and 6 treads. With 10 inch treads, the total run is 60 inches (5 feet).
Use the Pythagorean formula: stringer length = square root of (total rise squared + total run squared). For a 42 inch rise and a 50 inch run, that is about 65.3 inches. Buy a board longer than this to allow for the cuts.
Total rise is the vertical distance from the lower finished surface to the upper one. Total run is the horizontal distance the stairs cover, which equals the number of treads times the tread depth.
It depends on the width and the tread material. A 36 inch wide stair often uses 3 or 4 stringers, with spacing set by the tread's span rating. Wood treads commonly allow 12 to 16 inch centers, and composite treads may need closer spacing.
Most residential stairs fall between about 30 and 37 degrees. A 7 inch riser with a 10 inch tread gives 35.0 degrees. Shallower stairs are easier to climb but take more room.
Stairs with four or more risers generally need a handrail, typically 34 to 38 inches above the tread nosings. A guard is also needed on open sides where the drop is more than 30 inches. Check your local code.
The 7-11 rule is a comfort guideline: a 7 inch riser with an 11 inch tread. It gives 2 × 7 + 11 = 25 inches, which sits at the top of the 24 to 25 inch comfort range, and it matches the commercial limits in the IBC. For a 108 inch rise, 7 inch risers would mean 16 risers of 6.75 inches and 15 treads, with a run of 165 inches at 11 inch treads.
At least 6 feet 8 inches (80 inches) of clear height under commonly adopted IRC editions, measured vertically from the line through the tread nosings to the ceiling or floor above. Measure it at the lowest point of the flight, which is usually where the stair passes under the upper floor.
A 120 inch rise at a 7.5 inch target needs 16 risers of 7.5 inches, with 15 treads. A rise this large may need a landing, since codes limit the height of one flight.
The nosing is the front edge of a tread that overhangs the riser. Codes often limit it to about 3/4 to 1¼ inches, and a rounded nosing is easier on feet.
No. All risers in a flight must be the same, within about 3/8 inch under common codes. Uneven steps are a leading cause of trips.
At least 36 inches wide under common codes, measured clear of handrails. Wider stairs are easier to use and to move furniture on.
Converters to use with the Stair Calculator
Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.
Slope & MeasurementFeet & Inches to Decimal Feet Converter5 ft 6 in = 5.5 ft, both directions.
Slope & MeasurementDecimal Inches to Fraction ConverterTurn 0.6875 in into 11/16 in and back.
Slope & MeasurementSlope Percent to Degrees ConverterPercent, degrees, ratio and in/ft in one tool.
Lumber, Deck & FenceNominal vs Actual Lumber Size ConverterA 2×4 is really 1½ × 3½ in, every size.More framing calculators
FramingLumber Board Feet CalculatorThis board feet calculator converts your lumber's nominal dimensions and quantity into total board feet, the standard unit lumber is priced and sold by, so you can check a quote and estimate the cost before you buy. Enter the thickness, width, length and number of boards. Ten 2 by 6 boards, 8 ft long, are 8 board feet each, or 80 board feet in total.
FramingWall Stud CalculatorA wall stud calculator that turns your wall length and on-center spacing into the stud count for framing it, then adds plates, corners and openings. Miss studs and the framing stops mid-wall while you wait for lumber; over-order and long studs fill the garage. Enter the length and spacing and get the count before you buy.
FramingRamp Slope CalculatorThis ramp slope calculator turns your vertical rise and chosen slope ratio into the horizontal run, total ramp length and incline angle you need, so you can build a ramp that is safe to use and fits the space. Then plan landings and handrails around it. A 24 in rise at the ADA maximum 1:12 slope needs a 288 in, or 24 ft, run, a ramp length of about 24.1 ft and an angle of about 4.76 degrees.
FramingPlywood & Sheathing CalculatorA plywood calculator that turns your roof, wall or floor area into the exact number of standard 4×8 ft sheets of plywood or OSB you need, then helps you choose the right thickness and plan the nailing. A sheet short leaves a patch of deck uncovered; extra sheets tie up money and truck space. Enter the area and get the sheet count the job takes.
FramingLumber Cost CalculatorA lumber cost calculator that turns your board list into board feet, the cost per board foot and per piece, and the total with waste, delivery and tax. Enter how many boards you need, their size and the wood species, then compare all six species side by side for the same order. The species choice matters more than the board count, so compare it before you order.
FramingAnchor Bolt CalculatorThis anchor bolt calculator works out how many foundation anchor bolts your sill plate needs, and where the code says to put them, so the frame is anchored correctly the first time. Enter your sill plate's total length and the maximum allowed spacing. At the IRC maximum of 6 ft spacing, a 20 ft plate needs 5 bolts, with at least 2 bolts per plate section.Was this calculator helpful?
Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.