Home / Stair Calculator
Construction & Framing Calculators

Stair Calculator

Stair Calculator

Enter the total rise, your maximum riser height and tread depth to get the number of steps, exact riser height, total run, stringer length, stair angle and IRC code checks.

Measure the total rise from the finished surface at the bottom to the finished surface at the top. Every riser gets the same height, so the calculator rounds the number of risers up and divides the rise evenly.

Number of risers and riser height
0

Total run (stair length on the floor)0
Stringer length (rise and run diagonal)0
Stair angle0
Comfort check 2R + T (24–25 in)0
Stringer throat depth left after cutting0
Stringers and board to buy0

Calculation details

Use this free stair calculator to find how many steps you need, the exact riser height, tread run, total run, stair stringer length and angle from the total rise, with IRC code checks for decks, porches and basement stairs.

Enter the total rise from floor to floor, your maximum riser height and tread depth. Add the stair width and stringer board to count stringers and check the throat depth.

How to Calculate Stairs

Follow these four steps to lay out a straight run of stairs by hand, or let the calculator above do the math and round it to the nearest 1/16 inch.


01

Measure the Total Rise

Measure plumb from the finished surface at the bottom (floor, patio or ground pad) to the finished surface at the top. For a deck, measure from the deck surface straight down to where the bottom step will land.

02

Find the Number of Risers

Divide the total rise by your maximum riser height and round up. A 108 in rise with a 7-1/2 in maximum gives 108 ÷ 7.5 = 14.4, so 15 risers of 108 ÷ 15 = 7.2 in each.

03

Set the Treads and Total Run

When the upper floor is the top step there is one tread fewer than risers. 14 treads at 10 in give a total run of 140 in (11 ft 8 in). Check that 2 risers plus 1 tread lands between 24 and 25 in: 2 × 7.2 + 10 = 24.4 in.

04

Size and Lay Out the Stringer

The stringer runs along the diagonal: √(108² + 140²) = 176.82 in, or 14 ft 8-13/16 in, so buy a 16 ft 2x12. Mark the steps with a framing square and cut the first riser shorter by the tread thickness.

FORMULA & EXPLANATION

Stair Formulas & Glossary

A straight stair is a row of equal right triangles. The riser is the vertical side, the tread is the level side and the stringer follows the sloped line through the nosings, so simple division and the Pythagorean theorem give every number.

STAIR FORMULA

Number of risers and riser height

Risers n = ceil(H ÷ Max riser)  |  R = H ÷ n

Treads and total run

Treads = n − 1 (upper floor is the top step) or n  |  Total run = Treads × T

Stringer length and stair angle

L = √(H² + Run²)  |  Angle = arctan(R ÷ T)

Comfort and stringer checks

2R + T = 24 to 25 in  |  Throat = Board depth − R × T ÷ √(R² + T²)  |  First riser cut = R − Tread thickness

Stringer count and code limits

Stringers = ceil((Width − 1.5 in) ÷ Spacing) + 1

IRC (US) limits: riser max 7-3/4 in, tread min 10 in, nosing 3/4 to 1-1/4 in when treads are under 11 in, max 151 in rise per flight, landings 36 in deep, handrail at 4+ risers (34 to 38 in), headroom 6 ft 8 in, width 36 in. Actual US board depths: 2x10 = 9-1/4 in, 2x12 = 11-1/4 in.


All risers in a flight must match within 3/8 in, and so must all treads (IRC R311.7.5). Code values shown are from the US International Residential Code; your city or county may adopt a different edition or amendments, so check with your building department.

H

Total Rise (H)

The vertical height the stairs climb, from the finished floor or ground at the bottom to the finished floor or deck surface at the top.

R

Riser Height (R)

The height of one step: R = H ÷ number of risers. The IRC allows up to 7-3/4 in, and 7 to 7-1/2 in feels most comfortable.

T

Tread Depth (T)

The level run of one step, measured nosing to nosing. The IRC minimum is 10 in; 10 to 11 in is common. Total run = number of treads × T.

L

Stringer Length (L)

The sloped board that carries the treads. L = √(H² + total run²). Add about 12 in for the top and bottom cuts when you buy the board.

Stair Calculator Examples

These worked examples come straight from the calculator above, with lengths rounded to the nearest 1/16 inch.

9 ft Basement Stairs

A straight basement stair with a 108 in floor-to-floor rise, a 7-1/2 in maximum riser, 10 in treads and 2x12 stringers for a 36 in wide stair.


Given: Total rise 108 in, max riser 7.5 in, tread 10 in, width 36 in, stringers 16 in o.c.

Calculation:
Risers = ceil(108 ÷ 7.5) = 15; riser = 108 ÷ 15 = 7.2 in
Treads = 14; run = 14 × 10 = 140 in; 2R + T = 24.4 in
Stringer = √(108² + 140²) = 176.82 in; angle = 35.8°

Answer: 15 risers of 7-3/16 in, 14 treads, run 11 ft 8 in, 4 stringers of 14 ft 8-13/16 in from 16 ft 2x12s

40 in Deck Stairs

Deck stairs 48 in wide from a deck 40 in above a concrete pad, with treads made of two 2x6 boards (11 in deep, 1-1/2 in thick).


Given: Total rise 40 in, max riser 7.5 in, tread 11 in, tread thickness 1.5 in, width 48 in, 16 in o.c.

Calculation:
Risers = ceil(40 ÷ 7.5) = 6; riser = 6.67 in
Run = 5 × 11 = 55 in; stringer = √(40² + 55²) = 68.01 in
First riser cut = 6.67 − 1.5 = 5.17 in; stringers = ceil(46.5 ÷ 16) + 1 = 4

Answer: 6 risers of 6-11/16 in, 5 treads, run 4 ft 7 in, 4 stringers of 5 ft 8 in from 8 ft 2x12s; handrail required

22 in Porch Steps

Short porch steps 36 in wide with a 22 in rise, a 7-3/4 in maximum riser, 10 in treads and stringers up to 18 in apart.


Given: Total rise 22 in, max riser 7.75 in, tread 10 in, width 36 in, 18 in o.c.

Calculation:
Risers = ceil(22 ÷ 7.75) = 3; riser = 7.33 in
Run = 2 × 10 = 20 in; 2R + T = 24.67 in
Stringer = √(22² + 20²) = 29.73 in; stringers = ceil(34.5 ÷ 18) + 1 = 3

Answer: 3 risers of 7-5/16 in, 2 treads, run 1 ft 8 in, 3 stringers of 2 ft 5-3/4 in; nosing needed on 10 in treads

Stair Calculator FAQs

Answers to common questions about stair rise and run, the number of steps, stringer length and spacing, landings, handrails and stair code limits.

How do you calculate stairs?

Measure the total rise, divide it by your maximum riser height and round up to get the number of risers. Divide the rise by that number for the exact riser height. Treads are usually one fewer than risers, and total run = treads × tread depth. For a 108 in rise: 108 ÷ 7.5 = 14.4, so 15 risers of 7.2 in, 14 treads of 10 in and a 140 in run.

A 9 ft (108 in) floor-to-floor rise needs 15 risers of 7.2 in with a 7-1/2 in maximum, or 14 risers of 7.71 in with the 7-3/4 in code maximum. With 15 risers you get 14 treads, so at 10 in each the stair is 140 in (11 ft 8 in) long. Measure your own rise from finished floor to finished floor before you decide.

Under the IRC (US), residential risers may be up to 7-3/4 in high and treads at least 10 in deep (sections R311.7.5.1 and R311.7.5.2). Most people find a 7 to 7-1/2 in rise with a 10 to 11 in tread comfortable. Risers in one flight must match within 3/8 in, and so must treads.

The stringer length is the diagonal of the total rise and total run: L = √(rise² + run²). Deck stairs with a 40 in rise and 55 in run need √(40² + 55²) = 68.01 in, or 5 ft 8 in. Add about 12 in for the top and bottom cuts, so an 8 ft 2x12 is enough.

Divide the stair width by the stringer spacing, round up and add one. Simpson Strong-Tie deck guidance says no more than 18 in apart, and 12 in is often recommended under composite treads. A 36 in wide stair needs 3 stringers at 18 in or 4 at 16 in; a 48 in stair needs 4 at 16 in.

Measure from the deck surface down to the pad where the stairs will land; that is the total rise. For a 40 in rise with a 7-1/2 in maximum riser you need 6 risers of 6.67 in and 5 treads. With two 2x6 boards per tread (11 in), the run is 55 in. Cut the first riser on the stringer 1-1/2 in short so the bottom step matches the rest.

Two risers plus one tread should add up to 24 to 25 in for a natural stride. A 7.2 in riser with a 10 in tread gives 2 × 7.2 + 10 = 24.4 in, which is comfortable. Two related rules of thumb are riser + tread = 17 to 18 in and riser × tread = about 70 to 75. The calculator shows the 2R + T value with each result.

The IRC (US) allows one flight to climb at most 151 in, or 12 ft 7 in, between floor levels or landings (section R311.7.3). A taller stair needs an intermediate landing at least 36 in deep in the direction of travel and as wide as the stairs (R311.7.6). The calculator warns you when the total rise is over 151 in.

Under the IRC (US) a handrail is required on at least one side of any flight with four or more risers, mounted 34 to 38 in above the tread nosings (section R311.7.8). Three steps with three risers do not trigger that rule, but many builders add a rail anyway and some local codes are stricter, so check with your building department.

The stair angle is arctan(riser ÷ tread). The steepest the IRC (US) allows, a 7-3/4 in riser on a 10 in tread, is about 37.8°. Comfortable home stairs usually fall between about 30° and 37°: a 6.67 in riser on an 11 in tread is 31.2° and a 7.2 in riser on a 10 in tread is 35.8°.

Every tread adds its own thickness to the step below it, but the bottom step has no tread under it. So the first rise on the stringer is cut short by the tread thickness, also called dropping the stringer. With 6.67 in risers and 1-1/2 in thick treads, the first cut is 6.67 − 1.5 = 5.17 in. If the floor finishes differ, adjust by that difference too.

The IRC (US) requires at least 6 ft 8 in of headroom, measured plumb from the sloped line of the tread nosings, and a clear width of at least 36 in above the handrail (sections R311.7.2 and R311.7.1). Plan the stair opening in the floor above so the ceiling edge stays above that headroom line.

Explore More Calculators

Get fast, precise, and beautifully designed solutions for all your personal, financial, and health calculations.

About the authors

CalcNova Editorial Team

CalcNova was created and is maintained collaboratively by two friends who want to make everyday calculations simpler and more accessible. We build practical online calculators and clear explanations to help people understand results and the methods behind them.

Our focus is on clear formulas, useful examples, and regularly maintaining our tools. Calculator results are intended for guidance; for important financial decisions, confirm figures with the relevant provider or a qualified professional.

Scroll to Top