LayoutMath

Stair Calculator: Rise, Run and Stair Stringer Layout

This stair calculator takes your total rise and turns it into equal risers, tread depth, the total run, and the stair stringer layout you actually cut. It is a stair calculator with diagram — side view and footprint — so you can see the finished stairs before you buy lumber. Use it as a stair stringer calculator, a deck stair calculator or a stair rise and run calculator; the math is the same as the rafter length calculator and the roof pitch calculator, just for steps. The IRC riser-height check is built in.

Stair & stringer inputs and result

Start here. One number gets you going: the total rise, finished floor to finished floor.

Try an example

Rise and run

914.4 mm
in
190.5 mm
in
254 mm
in
914.4 mm
in
Top of the stair

Landing

More optionsTread thickness, headroom, stringer spacing and stringer board
25.4 mm
in
0 mm
in

Result

You need 5 equal risers of 7 3/16 inch (7.2 inches) and 4 treads of 10 inches, covering 3 feet 4 inches along the floor. Meets the IRC limits.

Stringer length
4 feet 5 13/16 inch

Pitch line. Buy a 6-foot board, 4 stringers.

Risers
5 @ 7 3/16 inch (7.2 inches)

Target was 7 1/2 inch. Every riser is equal, so variation is 0.

Treads and total run
3 feet 4 inches

4 treads at 10 inches.

Angle
35.75°

First plumb cut 6 3/16 inch (6.2 inches) after dropping the tread thickness.

  • Passes: IRC riser ≤ 7¾″ (7 3/16 inch)
  • Passes: IRC tread ≥ 10 inches (10 inches)
  • Not checked: IRC riser variation ≤ ⅜″: cut every riser the same and it is 0
  • Not checked: Headroom not entered (needs ≥ 6 feet 8 inches)
  • Passes: Rise between landings ≤ 12 feet 7 inches
  • Passes: First cut stays positive after the tread thickness
  • Passes: UK private stair: rise ≤ 220 mm
  • Passes: UK private stair: going ≥ 220 mm
  • Passes: UK 2R + G is 620 mm (550–700)
  • Passes: UK pitch 35.75° (max 42°)
ProfileTrue proportion
RiseRun

Measure the total rise, floor to floor, and type it in. This online stair calculator, also a stair stringer calculator for the cut list, hands back the number of risers, the riser height, the tread count and the stringer length — with an IRC check — so the calculations for stairs are done before you cut a single 2×12.

  • Free
  • No signup
  • Reviewed 20 October 2026
  • Estimates only

Quick answer A 36 inches (914 mm) rise works out to 5 equal risers of 7 3/16″ (7.2″) with 4 treads of 11 inches (279 mm). The stringer line is 4′ 8 7/8″, so buy a 6 feet 2×12 and cut 4 stringers. The IRC (R311.7.5) wants risers no taller than 7¾ inches and treads at least 10 inches deep.

RiserTreadStringerTotal riseTotal run

How the stair & stringer math works

Equal risers come from one division

How to calculate stairs comes down to one division. Take the total rise, finished floor to finished floor, and divide it by the riser height you like (7½ inches is a comfortable target). Round to a whole number of risers. If that leaves any riser taller than 7¾ inches, add one and divide again. Every riser comes out identical, which is what keeps you inside the IRC's ⅜ inch variation limit. Uneven risers are the classic trip hazard, and the one a building inspector measures first.

Treads, run and the stringer line

The upper floor counts as the last step, so a stair has one fewer tread than risers. Total run is treads times tread depth. The stringer line is the straight distance from the bottom plumb cut to the top plumb cut: the hypotenuse of total rise and total run. The board you buy has to be longer than that line, because the cuts at each end eat wood, so the calculator adds one board depth and rounds up to the next stock length. The rest of the calculations for stairs are plain geometry. Cut the first stringer, test-fit it, then trace it for the rest. A bad cut copied four times is four ruined 2×12s.

A landing splits the stair

Rise over 12 feet 7 inches, or a stair that has to turn? Switch Landing on. The calculator splits the stair at the whole riser nearest the middle (or at the landing height you enter) and gives each flight its own risers, run and stringer. It then checks the landing: at least 36 inches deep on a straight stair, and at least as deep as the stair is wide on a 90° turn, which is how an L-shaped staircase works. The plan diagram shows how much floor the whole stair takes, so you can find out it does not fit before the lumber arrives.

The angle follows from the riser and the tread

The stair angle is arctan(riser ÷ tread). A 7½ inches riser with a 10 inches tread comes to about 37°. Taller risers or shorter treads steepen it, which is why the code caps both.

Both ends of the stair

Every stair has two ends. The deck calculator sizes the platform at the top, and the baluster calculator spaces the guard along the open side. The same rise-over-run idea sets a roof slope in the roof pitch calculator.

Formula

The formula

L=H2+(t×d)2

L = stringer pitch line, H = total rise, t = number of treads, d = tread depth.

The same sums, step by step

risers        = round(total rise / target riser)    then add 1 while riser > 7.75 inches
riser height  = total rise / risers
treads        = risers − 1    upper floor is the top step (standard)
              = risers        top tread is a separate step
total run     = treads × tread depth
stringer line = √(total rise² + total run²)
angle         = arctan(riser height / tread depth)
first cut     = riser height − tread thickness
board to buy  = next stock length ≥ stringer line + one board depth
stringers     = ceil(width / max spacing) + 1
landing at    = riser nearest risers / 2, or landing height / riser height
flight 1      = (landing at) risers, one tread fewer than risers
flight 2      = risers − (landing at) risers, one tread fewer than risers (floor on top)
footprint     = straight: run 1 + landing depth + run 2  by  width
              = 90° turn: (run 1 + landing depth)  by  (width + run 2)

Worked examples

A 3-foot deck stair

Show the working

Total rise 36 inches (914 mm), target 7½ inches. round(36 ÷ 7.5) = 5 risers of 7.2 inches. 4 treads of 10 inches (254 mm) make a 40 inches (1.02 m) run. The stringer line is √(36² + 40²) = √2896 ≈ 53.8 inches. With a 2×12 that needs a 6-foot board. A 36 inches wide stair with 5/4 decking treads takes 4 stringers. First cut is 7.2 − 1 = 6.2 inches.

9 feet floor to floor

Show the working

Total rise 9′ (2.74 m), target 7¼ inches. That rounds to 15 risers of 7.2 inches and 14 treads, so the run is 11′ 8″ (3.56 m). The pitch line is √(108² + 140²) ≈ 176.8 inches (14′ 8 13/16″). Adding a 2×12 depth for the end cuts needs about 15.7 feet, so buy 16 feet stock. The 7 feet headroom entered clears the 6 feet 8 inches minimum.

10 feet rise, with a landing

Show the working

Total rise 10′ (3.05 m), straight landing. That is 16 risers of 7.5 inches, split 8 and 8 with the landing 60 inches (1.52 m) above the floor. Each flight has 7 treads, a 70 inches (1.78 m) run and a 7′ 8 3/16″ stringer, so buy 10-foot boards. A 36 inches landing makes the stair 14′ 8″ long and 3 feet wide. As a 90° turn it takes 8′ 10″ by 8′ 10″ instead.

16 feet rise: landing required

Show the working

Total rise 13′ 4″ (4.06 m). One flight of 21 risers would rise 13′ 4″, over the 151 inches (12 feet 7 inches) limit, so the flight check fails. With a landing the stair is 21 risers in two flights of 11 and 10, rising 6′ 11 13/16″ and 6′ 4 3/16″. Both are under the limit and the check passes.

UK house stair, 2.6 m

Show the working

Total rise 2600 mm, 225 mm going. 15 risers of 173.3 mm, so 2R + G = 572 mm (limit 550–700 mm). The pitch is 37.61° against the 42° limit. Every England private-stair check passes. The 225 mm going is under the IRC 10 inches minimum tread, so the same stair would not meet the US code.

Stair rise and run chart

Find your rise in the first table and you have a ballpark before you even open the calculator. Every row assumes a 7½ inches target riser, 10 inches treads, the upper floor as the top step and an 11¼ inches stringer board. Your floors will not be exactly these heights, so run your real number above. The second table settles how many stringers a stair needs, and the third shows a stair with a landing, split at the middle riser.

Stair rise and run by total rise

Stair rise and run by total rise
Total riseRisersRiser heightTreadsTotal runStringer length
2′46 inches32′ 6″3′ 2 7/16″
2′ 6″47.5 inches32′ 6″3′ 6 7/16″
3′57.2 inches43′ 4″4′ 5 13/16″
3′ 6″67 inches54′ 2″5′ 5 5/16″
4′76.857 inches65′6′ 4 13/16″
4′ 6″77.714 inches65′6′ 8 3/4″
5′87.5 inches75′ 10″7′ 8 3/16″
6′107.2 inches97′ 6″9′ 7 1/4″
7′117.636 inches108′ 4″10′ 10 5/8″
8′137.385 inches1210′12′ 9 11/16″

Stringers by stair width

Stringers by stair width
Stair widthAt 16 inches spacingAt 24 inches spacing
32 inches33
36 inches43
42 inches43
48 inches43
60 inches54

Stair calculator with landing: flights and footprint by total rise (36 inches wide, 36 inches landing)

Stair calculator with landing: flights and footprint by total rise (36 inches wide, 36 inches landing)
Total riseRisersRisers per flightLongest stringerStraight footprint90° turn footprint
8′137 + 66′ 7 3/16″12′ 2″ × 3′8′ × 7′ 2″
10′168 + 87′ 8 3/16″14′ 8″ × 3′8′ 10″ × 8′ 10″
12′1910 + 99′ 9 11/16″17′ 2″ × 3′10′ 6″ × 9′ 8″
13′ 4″2111 + 1010′ 10 1/2″18′ 10″ × 3′11′ 4″ × 10′ 6″
16′2613 + 1312′ 9 11/16″23′ × 3′13′ × 13′

Stair dimensions: standard stair rise and run

A standard stair has a riser of about 7 to 7¾ inches and a tread of 10 to 11 inches. The first table shows the angle each pair makes (arctan of riser over tread, same as the calculator), so you can see how much a taller riser or a shorter tread steepens things. The second lists the code limits the calculator checks against. A dash means that code sets no such number.

Stair angle by riser height and tread depth

Stair angle by riser height and tread depth
Riser height10 inches tread10½ inches tread11 inches tread
6 1/2″33.02°31.76°30.58°
7″34.99°33.69°32.47°
7 1/4″35.94°34.62°33.39°
7 1/2″36.87°35.54°34.29°
7 3/4″37.78°36.43°35.17°

Code limits: IRC and England private stairs

Code limits: IRC and England private stairs
DimensionIRC (US)England, Approved Document K
Maximum riser height7¾ inches (197 mm)220 mm
Minimum tread or going10 inches (254 mm)220 mm
Twice the rise plus the going—550 to 700 mm
Maximum pitch of the stair—42°
Largest riser against the smallest in a flight⅜ inch (10 mm)—
Rise of one flight before a landing151 inches (12 feet 7 inches)—

How to cut stair stringers

A stair stringer calculator does the arithmetic. This section is the layout on the board, using its default stair: 36 inches (914 mm) of rise, 5 risers of 7 3/16″ and 4 treads of 10 inches (254 mm). Type your own rise above and swap in your own numbers.

  1. Pick the board. Choose a straight 2×12 with no splits, and keep large knots away from the notch corners, where the board is thinnest. The stringer line above (4′ 5 13/16″) plus one board depth tells you how long a board to buy.
  2. Set the square. Clamp stair gauges to a framing square, the riser number on the short arm and the tread number on the long arm: 7 3/16″ and 10″ for the default stair. Use the exact calculator numbers, not a rounded 7½ and 10, or the error repeats on every step.
  3. Step off the layout. With both gauges against the top edge of the board, trace along the arms. Slide the square until the riser mark meets the end of the last tread line, then trace again. Keep going until you have drawn 4 treads and 5 risers. The last riser lands on the upper floor.
  4. Drop the bottom riser. The bottom riser line is the riser height minus the tread thickness: 7 3/16″ − 1 inch = 6 3/16″. Once the tread board is screwed on, the first step then matches the rest. Skip this and the bottom step comes out one tread thickness too tall.
  5. Check the top. The stringer bears on, or hangs from, the rim joist or ledger, and the deck surface is the top step. Measure the top against the real framing before you cut it.
  6. Cut to the line, not past it. Cut each notch with a circular saw, stopping at the inside corner, and finish the corner with a handsaw or a jigsaw. An overcut weakens the stringer, because the uncut wood behind the notch carries the load.
  7. Test-fit one, then copy it. Hold the first stringer in place and check that the treads are level and the risers match. Then trace it onto the other 3 for this width. Copying one tested stringer keeps every riser identical, and the IRC allows only ⅜ inch between the tallest and shortest riser in a flight (R311.7.5.1).

Stair layout mistakes

A stair is unforgiving, because one wrong riser is the one people trip on. These are the mistakes that cause it.

Measuring to the wrong floor

Total rise is measured from finished floor to finished floor. If the flooring is not down yet, allow for its thickness, or the top and bottom steps will differ from the rest.

Letting the risers differ

The IRC allows the tallest and shortest riser in a flight to differ by ⅜ inch at most. Divide the rise into equal steps instead of fitting the last one.

Counting treads as risers

The upper floor is the last step, so a stair has one fewer tread than risers. Counting them equal makes the run too long.

Forgetting the first riser is cut shorter

The bottom riser is cut by the thickness of the tread, so that the first step ends up the same height as the others.

Treating L-shaped stairs as one straight flight

L-shaped stairs are two flights and a landing. Each flight has its own risers, run and stringer, and the landing has a minimum depth.

Cutting every stringer before testing one

Cut the first stringer, test-fit it, then trace it for the rest. A bad cut copied four times is four ruined 2×12s.

Stair checklist before you cut

Run through this once the stair calculator has given you the risers and the stringer length.

Measure

  • Measure the total rise, finished floor to finished floor.
  • Measure the stair width and the space the run has to fit in.
  • Check the headroom above the steps.

Choose

  • Pick the tread depth and the tread thickness.
  • Pick the stringer spacing for the tread material: thin 5/4 or composite treads need them closer.
  • Switch the landing on if the rise is over 12 feet 7 inches or the stair has to turn.

Check against code

  • Compare the riser, tread, headroom and landing with the edition your jurisdiction has adopted.
  • Lay the cuts out on the real board before you buy the last length.
  • Size the guard and the handrail separately.

Stair terms

The words used in any stairs calculator and on a stair plan.

Total rise
The vertical height from the lower finished floor to the upper finished floor.
Riser
One step's vertical height, from the top of one tread to the top of the next.
Tread depth
How deep one step is, from the front edge of one tread to the front edge of the next. Also called the going.
Total run
The horizontal distance the stair covers, which is the number of treads times the tread depth.
Stringer
The notched board under the treads that carries the steps from one floor to the other.
Landing
A flat platform part-way up a stair, or at its top or bottom, where the stair can turn.
Headroom
The clear height above the steps, measured straight up from the front edge of the treads.

Code notes

The US limits

US limits shown are from IRC R311.7: maximum riser 7¾ inches, minimum tread 10 inches, riser variation ⅜ inch, headroom 6 feet 8 inches, and 12 feet 7 inches (151 inches) of rise between floors or landings. Open-riser stairs and stair width have their own rules in the same section. Read the text in IRC 2021 Chapter 3, Building Planning.

England's private stair limits

England's Approved Document K for a private stair allows a rise up to 220 mm, a going of at least 220 mm, twice the rise plus the going between 550 and 700 mm, and a pitch of no more than 42°. The official text is Approved Document K on GOV.UK. Scotland, Wales, Northern Ireland and local amendments differ. This page flags the England private-stair numbers; it does not certify compliance.

Landings

IRC R311.7.6 asks for a landing at the top and bottom of every stair, as wide as the stair, and at least 36 inches deep where the stair runs straight. The landing option here checks an intermediate landing against those numbers and shows its footprint. It does not size the landing framing, posts or guards.

The stringer allowance

The stringer board allowance is a rule of thumb (one board depth). Lay the cuts out on the real board before you buy the last length.

Section numbers refer to IRC 2021 section numbers; England Approved Document K. Local amendments are common, so confirm with your building authority.

FAQ

Hover a question to read the answer. Click to keep it open.Tap a question to open it.

Stringers

How do you calculate stringer length?

Square the total rise, square the total run, add them and take the square root. Total run is the number of treads times the tread depth. That gives the line between the plumb cuts. The board you buy has to be longer, because the top and bottom cuts need extra wood, so add one board depth and round up to the next stock length. It works as a stair stringer layout calculator: enter the rise and the tread, and you get the stringer line plus the plumb and seat cuts.

How many stringers do I need for a 36 inch stair?

Four with 5/4 decking or composite treads, which want stringers no more than about 16 inches (400 mm) apart. Three with 2× lumber treads, which can span about 24 inches (600 mm). Composite makers often ask for 12 inches, so read the tread box before you commit. Pick the spacing in the calculator and the count updates.

How do I use this as a stair tread calculator?

Enter the tread depth, also called the going, and the tread thickness. The calculator gives the number of treads, the total run, and how much shorter the bottom riser is cut so the first step matches the rest.

Landings and turns

How do I calculate an L-shaped staircase?

An L-shaped staircase is two straight flights joined by a landing at a 90° turn. Set Landing to 90° turn and enter the total rise. The calculator splits the risers into two flights, sizes each stringer and draws the footprint. A U-shaped stair turns 180° over a wider landing, which is not drawn here. Enter each flight's rise on its own and check the landing against the 36 inches minimum depth. Run it as a stair layout calculator for a straight or L-shaped stair by toggling the landing, and the plan redraws to match.

What are the stair landing dimensions, and when do I need one?

IRC R311.7.6 wants a landing as wide as the stair and at least 36 inches (914 mm) deep in the direction of travel. You also need one when the rise passes 151 inches (12 feet 7 inches), because R311.7.3 limits a single flight. For a 90° turn, a landing as deep as the stair is wide is the practical minimum. Switch Landing on and the calculator checks both and draws the plan.

How does the stairs with landing calculator split the stair?

It splits at the whole riser nearest the middle, or at the landing height you enter, and gives each flight its own risers, run and stringer. A straight landing keeps both flights in line, and a 90° turn makes an L-shaped stair. The landing is then checked against the minimum depth.

Rise, run and angle

What is standard stair rise and run, and what angle is it?

Standard stair rise and run is a riser of about 7 to 7¾ inches and a tread of 10 to 11 inches. A 7½ inch riser with a 10 inch tread is a stair angle of 36.87°, arctan(7.5 ÷ 10). The stair dimensions table on this page has the angle for other riser and tread pairs. Run this page as a standard stair rise and run calculator by typing the total rise and a 10-inch tread, and you get the riser count and angle in one go.

What stair riser height does the IRC allow?

7¾ inches at most (IRC R311.7.5.1), with treads at least 10 inches deep (R311.7.5.2). The tallest and shortest riser in a flight can differ by ⅜ inch at most. Headroom is 6 feet 8 inches minimum, and one flight can rise 151 inches (12 feet 7 inches) before it needs a landing.

How do UK private stairs differ?

In England, Approved Document K allows a rise up to 220 mm and wants a going of at least 220 mm, with twice the rise plus the going between 550 and 700 mm and a pitch of 42° or less. Any stair under the IRC 7¾ inches riser limit is also under 220 mm. The calculator shows both sets of checks side by side.

How do I use this as a stair rise and run calculator?

Type the total rise from finished floor to finished floor and the tread depth you want. The calculator picks a whole number of equal risers, gives the riser height, the number of treads and the total run, and checks them against the IRC limits. Think of it as a stair calculator rise and run summary: the two numbers go in, the riser count, tread and angle come out.

How many steps do I need for my stairs?

Take the total rise in inches and divide by 7 (a comfortable riser), then round up to the next whole number — that is your step count. For a 108-inch total rise, 108 ÷ 7 = 15.4, so you need 16 risers and 15 treads. The calculator does this for you, then trims the riser height so every step is equal. It works as a rise run stair calculator and a stair height calculator in one read: type the total rise and the page picks the riser count and trims the height.

What is the best angle for a staircase?

Between 30° and 37° is comfortable for a main stair. A 7½-inch riser with a 10-inch tread is 36.87° (arctan of 7.5 ÷ 10). Steeper than 37° starts to feel like a ladder; shallower than 30° eats floor space. The stair angle calculator side of the result shows the angle for your riser and tread.

What is a comfortable stair riser height?

About 7 to 7½ inches. The IRC cap is 7¾ inches, but anything over 7½ starts to feel steep for kids and older adults. Aim for twice the riser plus the tread to land between 24 and 25 inches — that is the comfort formula. 6¾ to 7 inches is the sweet spot if you have the run for it. Use the page as a stair riser calculator by typing the total rise and your target riser, and it picks the count that keeps every step equal.

Is there a stair calculator with diagram?

Yes. A side diagram of the stair is drawn under the result, with the riser and tread dimensions, and switching a landing on adds a plan of the footprint. You can see how much floor the stair takes before you buy lumber.

Deck stairs

How do I calculate stairs for a deck?

Measure from the ground to the top of the deck surface and type that in as the total rise. As a deck stair calculator it picks the riser count, riser height and tread depth, then gives the stringer length. Choose the stringer spacing for your tread material. The stair width sets how many stringers you need. It doubles as a stair building calculator for decks, porches and interior stairs — type the total rise and the page does the rest.

How do I use this as a deck stair stringer calculator?

Measure from the ground to the top of the deck surface and type that in as the total rise. Pick the stringer spacing for your tread material — 16 inches on center for 5/4 or composite, 24 inches for 2× lumber — and the calculator gives the stringer count, the length to buy and the layout to mark. The board foot calculator then tells you what the stringer stock costs.