KLM Labs

Stair calculator: risers, treads, stringer and the code check

Type the total rise from floor to floor.

Stair calculator

Finished floor to finished floor.

Read as 8' 10-1/2"

Empty = your tread limit.

From your tread limit

More boxes: step height, board, width, headroom, landing, limits

The step height you want. Empty = your riser limit.

From your riser limit

The thickness of the tread board: 1-1/2" is a 2x12.

Read as 1-1/2"

The clear width of the stair. Empty = no check.

The room above the stair. Empty = no check.

Across the direction of travel. Empty = no check.

In the direction of travel. Empty = no check.

Limits now: 7-3/4" riser, 10" tread.

Your stairs

14 risers of ≈ 7-5/8", 13 treads of 10", 10' 10" of run

Code check: nothing fails the limits you set.

Stair angle
37.3°
Stringer length
≈ 14' 7-7/8"
First riser, cut short
≈ 6-1/8"
The two cuts
plumb 52.7°, seat 37.3°
Board to buy
a 16' 2x12

Your numbers stay in this browser until you start over. Nothing you type is sent to us unless you ask for the email.

Code check

  • Riser ≈ 7-5/8" — inside your 7-3/4" limit (R311.7.5.1).
  • Tread 10" — inside your 10" limit (R311.7.5.2).
  • Risers: all 14 are ≈ 7-5/8", within 3/8" of each other (R311.7.5.1). Cut the first riser 1-1/2" short, or the first step would be 1-1/2" over the 3/8" the code allows.
  • Flight 8' 10-1/2" — inside the 12' 7" one flight may rise (R311.7.3).
  • A 2x12 leaves ≈ 5-3/16" of wood below the cuts — the deck guide wants 5" (AWC DCA 6-2015, Figure 28).
37.3°≈ 6-1/8"plumb cutseat cut≈ 5-3/16" below the cutsBuy a 16' 2x12
The 2x12, to scale: 14 risers of ≈ 7-5/8" and 13 treads of 10", at 37.3°. The top cut is plumb (52.7° off the top edge), the bottom cut is level, and ≈ 5-3/16" of wood is left below the cuts. Buy a 16' 2x12.
How these numbers were worked out
  • 106-1/2" ÷ 7-3/4" = 13.74, rounded up to 14 risers
  • each riser = 106-1/2" ÷ 14 = 7.607"
  • 13 treads × 10" = 10' 10" of run
  • 37.3° = arctan(7.607 ÷ 10")
  • 14 × √(7.607" ² + 10"²) = 175.9"
  • first riser = 7.607" − 1-1/2" (the tread) = 6.107"
  • 175.9" + 12" waste = 187.9", so buy 16' of 2x12

Same exact math as Fraction Feet Inch Calculator

Examples to try

Type any of these in the boxes above.

What you typeRisersRiser heightTreadsRunStringerThe code check
a 106-1/2" rise, a 10" tread14≈ 7-5/8"1310' 10"≈ 14' 7-7/8"passes
a 9' rise, a 10" tread14≈ 7-11/16"1310' 10"≈ 14' 8-13/16"passes
a 56-3/4" rise, a 10" tread8≈ 7-1/8"75' 10"≈ 8' 2-1/16"passes
a 9' 1" rise, a 10" tread15≈ 7-1/4"1411' 8"≈ 15' 5-7/16"passes
a 106-1/2" rise, a 9" step, a 10" tread128-7/8"119' 2"≈ 13' 4-7/16"fails: riser height and the wood below the cuts
a 106-1/2" rise, a 9" tread14≈ 7-5/8"139' 9"≈ 13' 9"fails: tread depth

How do I work out the number of risers?

Measure the rise from the lower finished floor to the upper one, then divide it by the step height you want and round up. A stair with 14 risers is 14 steps up; the top floor is the 14th.

The tool does it the way the app does it: the rise divided by your riser limit, rounded up, and each riser is the rise divided by that number.

What you type The sum What you get
A 106-1/2" rise, a 7-3/4" limit 106.5 ÷ 7.75 = 13.74, rounded up to 14 14 risers of 106.5 ÷ 14 = 7.607", so about 7-5/8"

Type the rise the way your tape reads it: 9', 106-1/2" or 106.5 all work, and the tool says how it read it.

How many treads does a stair have?

One fewer than the risers. A stair with 14 risers has 13 treads, and its run is 13 × the tread depth.

With a 10" tread: 13 × 10 = 130", which is 10' 10" of run.

The run is measured from the face of the first riser to the face of the last one, so it is the treads, not the risers, that make up the length.

Does my stair pass the code?

The tool checks five things against the limits you set, and three more against the numbers you type in. The 2021 IRC says:

What Limit Section
Riser height 7-3/4" at most R311.7.5.1
Tread depth 10" at least R311.7.5.2
Risers in a flight within 3/8" of each other R311.7.5.1
One flight 12' 7" of rise at most R311.7.3
Stair width 36" of clear width at least R311.7.1
Headroom 6' 8" at least R311.7.2
Landing as wide as the stair it serves, 36" deep on a straight run R311.7.6
Stringer size 2x12 at least AWC DCA 6-2015
Wood below the cuts 5" at least, so a 2x12 AWC DCA 6-2015, Figure 28

New York allows 8-1/4" risers and 9" treads (R318.7.5.1 and R318.7.5.2), so the tool has that pair too: open More boxes: step height, board, width, headroom, landing, limits and press New York.

New York keeps the same width, headroom and landing rules under its own sections: R318.7.1, R318.7.2 and R318.7.6.

The stair itself has to be 36" of clear width at every point above the handrail height (R311.7.1). At and below the handrail height the code allows 31-1/2" with a handrail on one side and 27" with handrails on both sides, so measure the clear width between the handrails, not wall to wall.

The headroom is 6' 8" above the nosing line, or above the landing floor, along the whole stair (R311.7.2). Where the nosings pass under the edge of a floor opening, the opening may reach into that headroom by 4-3/4" and no more.

Every stair needs a floor or a landing at the top and at the bottom, at least as wide as the flight it serves, and on a straight run at least 36" deep in the direction of travel (R311.7.6). A flight that rises more than 12' 7" (R311.7.3) needs a landing partway as well.

Open More boxes and type the width you are building and the headroom you have: the tool checks both and says by how much they fall short. Add the landing’s width and depth and it checks the landing against the stair it serves.

The 3/8" rule is the one that bites when you cut the stringer. Cut the first riser full height and the first step stands a whole tread thickness taller than the rest, which is over the 3/8" the code allows between risers. Cut it short by the tread’s thickness and every riser comes out the same.

The 2021 IRC limits, the layouts from 2' to 10' and the 7-11 rule are on the stair rise and run page.

How do I cut the stringer?

The two ends are cut at different angles: the top end plumb, the bottom end level. Measured from the top edge of the board, the top cut is 90° − 37.3° = 52.7° and the bottom cut is 37.3°. The card draws both of them.

  1. Set your framing square to the unit rise (7.607") and the unit run (10"), and step it along the top edge of the board. Each step gives one riser and one tread.
  2. Cut the first riser short by the tread’s thickness: 7.607" − 1-1/2" = 6.107", so the first step comes out the same height as the rest.
  3. Cut one stringer, try it in place, then use it for the others.

The board: the stringer is 175.9" long, so buy a 16' 2x12. On a deck, the guide wants every stringer at least 2x12 and at least 5" of wood left below the cuts. A 2x12 leaves 5-3/16" here: 11.25" of board, less the 6.054" the deepest notch takes (7.607" × cos 37.3°). A 2x10 is under the 2x12 the guide wants, and it would leave only 3-3/16" below the cuts. A cut stringer on a deck spans 6'-0" at most, measured level, so a 10' 10" run needs a 4x4 post or a landing partway.

Figure 28 of the AWC deck guide draws that span: a cut stringer, 6'-0" along the level run, with 5" of wood left below the cuts.

How long is the stringer?

The stringer is the outline of the stair: the risers times the hypotenuse of one riser and one tread.

14 × √(7.607² + 10²) = 175.9", which is about 14' 7-7/8".

Add a foot for the cut and the kerf: 175.9" + 12" = 187.9", so buy a 16' 2x12.

That extra foot is for the seat cut at the bottom, the plumb cut at the top and the saw’s kerf, and the board is then the next even length of lumber (stair stringer layout and stock lengths).

How many steps for a 9 foot ceiling?

9' is 108". 108 ÷ 7-3/4" = 13.94, rounded up to 14 risers, and each riser is 108 ÷ 14 = 7.714", about 7-11/16". That is 13 treads, 10' 10" of run and a stair angle of 37.6°.

What is the stringer cut card?

One page with your numbers on it: the risers, the riser height, the treads, the run, the angle, the stringer’s length, the first riser, both cut angles, the board to buy, the sums that made each number and the code check. The board is drawn to scale, with its notches, its plumb cut, its seat cut and the wood left below the cuts.

It comes by email, like every file on this site. You can also print it from the page.

What does the app do with stairs?

Coming from Construction Master Pro? See which construction calculator apps do its stair layout.

Fraction Feet Inch Calculator has the stairs tool: it works out risers, treads, run and stringer and shares the layout as a PDF, one US Letter page. The layout is a layout, not a drawn cut card, and the app has no Android or web version.

It is on the roof or in the stairwell with no signal, and it keeps the same history as every other tool.

All 25 charts and guides

Summarize this page with ChatGPTSummarize this page with ClaudeSummarize this page with Perplexity

Last updated .

Get the PDF by email

We'll email you the file, so check the address.

We'll also send you new templates and charts now and then. Unsubscribe anytime.

How we use your email