Every Single CalculatorOne place for every calculator

Stair calculator

Enter the height your stairs have to climb to find the number of steps, the exact height of each one and the length of the stringers.

Example: You are building deck stairs to a landing 4 feet 6 inches up and need every riser the same height and inside code.

Your numbers

Total rise is measured straight up from the finished lower floor to the finished upper floor or deck surface.

in
9 feet is 108 inches.
in
7¾ inches is the usual limit for houses.
in
10 inches is the usual minimum.
  • Number of risers0
  • Height of each riser0
  • Number of treads0
  • Total run0
  • Stringer length0
  • Stair angle0

Stair calculator. Estimate from everysinglecalculator.com

Materials list
ItemBuyHow it was worked out

Total run Total rise Riser Tread Stringer Upper floor
There is always one fewer tread than risers, because the upper floor is the last step.

How the stairs are worked out

Divide the total rise by the tallest riser you are allowed and round up. That is the number of risers. Divide the total rise by that number to get the exact height of each one, so every step is the same.

Risers = total rise ÷ tallest riser, rounded up

Stringer length = √(total rise² + total run²)

There is one fewer tread than risers, because the upper floor acts as the last step.

A worked example

A 108 inch rise divided by 7¾ inches is 13.9, so you need 14 risers. Each one is 108 ÷ 14, which is 7 11/16 inches. That leaves 13 treads. At 10 inches each the stairs run 130 inches, or 10 feet 10 inches, across the floor. The stringer is 14 feet 1 inch long and the stairs climb at just under 40 degrees.

Good to know

  • The common residential limits are a riser no taller than 7¾ inches and a tread at least 10 inches deep. Your local code may differ, and commercial stairs are stricter.
  • All risers in a flight should match to within three eighths of an inch. Uneven steps are a trip hazard.
  • Buy stringer stock longer than the figure here. You need extra at both ends for the cuts, and 2x12 is the usual size.
  • Leave at least 6 feet 8 inches of headroom above the line of the stair nosings.

Common questions

What if I do not have room for the total run?

You can add a landing and turn the stairs. You cannot make the treads shallower than the code minimum.

Does the stringer length include the top and bottom cuts?

No. It is the straight line from the bottom of the first riser to the top of the last. Add a foot or so when you buy the lumber.

How we know this calculator is right

Before this calculator went on the site, 15 answers were worked out separately from its code, by hand or straight from the formula above. Each time this page loads, your own browser runs the calculator on those same numbers and compares. Turn on JavaScript to see the comparison.

See every check
Numbers usedResultWorked out separatelyThis calculator

What this proves: the calculator does the arithmetic of the formula shown, correctly. What it cannot prove: your measurements, or figures such as coverage per bag, waste and spacing, which are typical starting values you can change. Go by the product label and your local code.

Used by: framers and carpenters, finish carpenters, flooring installers, deck and fence builders.