mystaircalculator.com logo mystaircalculator.com
  1. Home
  2. Calculators
  3. Core Geometry & Layout
  4. Number of Steps Calculator
Core Geometry & Layout

Number of Steps Calculator

Just need the step count? Enter your total rise and get the exact number of steps, the real riser height that comes out of rounding it, and whether that riser still fits code — instantly.

Free to use No sign-up required Formulas verified against IRC 2021 Imperial & metric supported
Step count & actual riser calculated Round-nearest vs round-up compared Code-compliance chips built in Last verified July 2026
Checked line-by-line by our in-house stair-planning team before publishing — figures re-verified July 2026.
in

Measure straight down from the top finished floor to the bottom finished floor. This one number decides your step count.

Advanced: rounding rule & occupancy

Nearest can round the step count down, which raises the actual riser — occasionally past the code max. Round up guarantees a code-safe riser, at the cost of one extra step. See the compliance chips below.

Advanced: tread depth & available run
in

Only needed if you want to confirm the resulting run fits a fixed floor opening.

Side profile diagram showing the calculated step count

Results

Step Count
steps
Actual Riser Height
in
Tread Depth
in
Total Run
in
Treads
pcs
Landings Needed
Fits Available Run?
How to measure

Getting a step count you can trust

Step count comes from exactly one input — total rise. Get that one number right and the rest of this page takes care of itself.

1

Find your total rise

Hold a tape measure or a straight board plumb from the finished floor you're leaving to the finished floor you're arriving at. On an existing opening, drop a plumb bob from the top nosing line to the finished floor below.

2

Leave the riser target on Auto, or set your own

Auto targets a comfortable 7.5" riser before rounding to a whole step count. If your jurisdiction or project has a fixed riser requirement, switch to Custom and enter it — the step count math still runs the same way from there.

3

Pick a rounding rule

Nearest is the standard default, but it can round your step count down and push the actual riser height over the code max. Switch to "Always round up" if you want a guaranteed code-safe riser instead — see the worked example below for exactly when this matters.

4

Read the compliance chips

Green means the resulting riser and tread sit inside code limits for the occupancy you selected. Red means the step count you're looking at needs a different rounding rule, a different riser target, or a landing.

The math

The four formulas behind your step count

Nothing on this page is a black box. Here's exactly what runs when you change a number.

Step Count (Nearest)

n = round( Total Rise ÷ Target Riser )

Total rise divided by your target riser height, rounded to the nearest whole step. This is the standard default — but it can round down.

Step Count (Always Round Up)

n = ceil( Total Rise ÷ Target Riser )

Rounds up regardless of the remainder. One extra step and more total run, but the actual riser can never exceed the target.

Actual Riser Height

R = Total Rise ÷ n

Whichever rounding rule set the step count, re-divide total rise by it. This — not the original target — is the number every riser gets cut to.

Tread Depth (2R+T rule)

T = 25 − 2R  (min. code tread)

A standard comfort formula: twice the riser plus the tread should land near 24–25 inches. Floored at the code minimum tread for your occupancy.

Worked example

Walking through a real 101" rise — and a rounding trap

Same formulas, filled in step by step, for a stair climbing 8'-5" (101") floor to floor — the default this calculator loads with, chosen specifically because it shows how rounding direction changes the answer.

1

Step count, rounded to nearest

101" total rise, targeting a 7.5" riser: 101 ÷ 7.5 = 13.47, which rounds to 13 steps under the standard "nearest" rule, since 0.47 rounds down.

2

Actual riser height — and a problem

Re-divide: 101 ÷ 13 = 7.77" per riser. That's a hair over the 7.75" IRC residential maximum. Rounding the step count down to 13 quietly pushed the real riser past code, even though the 7.5" target was well inside the limit.

3

Switching to "Always round up"

The same 101" rise, rounded up instead: ceil(101 ÷ 7.5) = 14 steps. Re-dividing: 101 ÷ 14 = 7.21" per riser — comfortably under the 7.75" max, at the cost of one extra step and roughly 10" more total run.

4

Tread depth and total run, at 14 steps

Using the 2R+T rule: 25 − (2 × 7.21) = 10.58" tread, above the 10" IRC minimum so no flooring needed. 13 treads (one fewer than steps) at 10.58" gives a total run of roughly 137.5".

This is exactly the failure mode the rounding-rule chip below is built to catch: a target riser that looks safely under the code max can still produce an over-max actual riser once the step count rounds down. Whenever the riser chip fails on Nearest, try Always Round Up before you change anything else.

Quick reference

Step count by common total rise

A quick lookup for common floor-to-floor heights, using the 7.5" Auto target and nearest-rounding — the same math the calculator runs above. Use it to sanity-check the number the calculator gives you.

Total RiseStep CountActual RiserNotes
8'-0" (96")13 steps7.38"Typical shallow basement.
8'-6" (102")14 steps7.29"
9'-0" (108")14 steps7.71"Common basement rise — riser sits close to the 7.75" max.
9'-6" (114")15 steps7.60"
10'-0" (120")16 steps7.50"Divides evenly — riser lands exactly on target.
10'-6" (126")17 steps7.41"
11'-0" (132")18 steps7.33"
12'-0" (144")19 steps7.58"Full single-story rise, still under the 147" landing threshold.

These are all clean nearest-rounding cases. For a rise that lands close to a rounding boundary — like the 101" example above — check the actual riser here directly against the code table below rather than trusting the table lookup alone.

Code reference

Max riser & min tread, by occupancy

This is exactly what the Occupancy toggle switches between. Full code also covers headroom, width and handrails — see the linked calculators for those.

ElementResidential (IRC)Commercial (IBC)
Max riser height7.75"7"
Min tread depth10"11"
Riser variance across a flight3/8"3/8"
Min headroom6'8"6'8"–7'6" (varies)
Min clear width36"44"+ (varies)

Reference only — always confirm against your local jurisdiction's adopted code before building.

Beyond the headline number

Rounding, landings & odd/even step counts

The step count itself is simple arithmetic. These four things are what actually trip people up once they have that number.

Why rounding direction matters

Down → taller riser  ·  Up → shorter riser

Rounding the step count down always makes the actual riser taller than the target; rounding up always makes it shorter. Since code sets a hard riser maximum but no minimum, rounding down is the direction that can fail — see the 101" worked example above for a real case.

When you need a landing

Flights = ceil( Total Rise ÷ 147" )

IRC caps a single flight at 147" (12'-3") of vertical rise regardless of step count. This calculator's Landings Needed result flags it automatically — a 101" stair never triggers it, but a full two-story rise often does. Each landing must be at least as deep as the stair is wide.

Odd vs. even step count

Habit, not code

Some builders prefer an odd step count on exterior entry stairs so a person steps off the top on the same foot they started climbing with. It's a walking-rhythm convention, not a code requirement — nothing on this page treats it as a pass/fail check, but it's worth knowing before you lock in a riser target that happens to land on an even count.

Retrofit vs. new construction

Fixed rise → riser is the only lever

On a retrofit into an existing opening, total rise is usually fixed. The only thing you can change is the riser target and rounding rule — you can't add floor space to fix a failed chip. On new construction, you can also adjust available run or accept a taller opening to get a cleaner step count.

Avoid these

Common mistakes when counting steps

Most "how many steps do I need" miscounts trace back to one of these five errors, not to bad math.

🔁

Trusting nearest-rounding blindly

Nearest rounding can silently push the actual riser over the code max, as in the 101" example above. Always check the riser compliance chip after rounding — don't assume the target riser you entered is the one you'll actually build.

🪜

Forgetting the bottom landing counts as a step

The finished floor at the bottom of the flight is the last "riser" in the sequence. Forgetting it is the most common reason a site-built stair ends up one step short of the plan.

🔢

Confusing steps with treads

Step count equals the number of risers, which is always one more than the number of treads. A "14-step" stair has 14 risers and 13 treads — mixing these up throws off material counts.

📏

Reusing the rounded-off target riser

Once the step count is rounded, re-divide total rise by that whole number to get the actual riser. Building to the original 7.5" target instead produces an inconsistent, non-uniform final step.

🏛️

Ignoring the landing threshold on tall flights

A large step count from a tall total rise can mean you're planning one continuous flight when code actually requires an intermediate landing. Check the Landings Needed result before assuming it's a single run.

Who uses this

When you just need the step count

Sometimes you don't need a full stair plan — you need one number, fast.

📞

Quick Material Estimate

Getting a step count before calling a lumber yard or stair-parts supplier for a rough quote.

🏠

Fixed-Opening Retrofit

Confirming how many steps fit a total rise you can't change, like an existing basement stairwell.

🚪

Exterior Entry Stairs

Checking step count for a porch or entry stair, including the odd/even step convention.

📋

Permit Sketch Prep

Filling in a plan-check form that only asks for step count, not a full stringer layout.

🌳

DIY Deck or Porch Steps

A fast reference number before sketching a simple outdoor step run.

⚖️

Comparing Riser Options

Weighing fewer, steeper steps against more, shallower ones for the same total rise.

FAQ

Common questions

How do you calculate the number of steps in a staircase?
Divide total rise by a target riser height — commonly 7.5" — and round to a whole number. That whole number is your step count. Dividing total rise by that count gives the exact, uniform riser height to cut every step to.
Should stairs have an odd or even number of steps?
There's no code requirement either way. Some builders prefer an odd count on exterior entry stairs so a person steps off on the same foot they started with — a walking-rhythm convention, not a structural or code rule.
Do you count the top floor as a step?
The step count equals the number of risers you climb, and the finished floor at the top is the last riser in that sequence — it does get counted. What's easy to forget is the bottom finished floor, which also counts as a riser and is the most common source of an off-by-one step count.
What's the difference between steps, risers, and treads?
Step count and riser count are the same number — each step you climb is one riser. Tread count is always one less, since the top and bottom finished floors act as the first and last "tread" without needing a physical tread board.
Why does my step count change when I round differently?
Total rise rarely divides evenly by a target riser height, so the raw result is a decimal like 13.47. Rounding that to the nearest whole number can go up or down depending on the remainder; always rounding up instead guarantees a shorter, code-safe riser at the cost of one extra step.
What if my calculated riser exceeds the maximum height allowed?
This happens when nearest-rounding rounds your step count down. Switch the Rounding advanced option to "Always round up" — it adds one step but brings the actual riser back under the code maximum for your occupancy.
Is there a standard number of steps for a staircase?
No — step count depends entirely on total rise, which varies by project. A typical 8-9 foot basement rise lands around 13-14 steps at a standard 7.5" target riser; a full two-story rise can run well over 20.
How many steps for a typical 8 or 9-foot basement?
At the standard 7.5" target riser, an 8-foot (96") rise lands on 13 steps and a 9-foot (108") rise lands on 14 steps, both with nearest-rounding. See the reference table above for more common heights.
Can I just add a step to make the risers shorter?
Yes — for a fixed total rise, adding one step always makes every riser shorter, since the same rise gets divided among more steps. That's exactly what "Always round up" does automatically.
Does commercial vs. residential change my step count?
Not directly, but it changes the code maximum riser your result gets checked against — 7.75" for IRC residential versus 7" for IBC commercial. A step count that passes for a house can fail the commercial riser check on the same total rise.
When does a staircase need an intermediate landing?
IRC residential code caps a single flight at 147" (12'-3") of vertical rise, regardless of step count. Once total rise exceeds that, the flight must be broken into two or more runs joined by a landing. This calculator flags it automatically in the Landings Needed result.
Does total rise include the finished floor thickness?
Yes. Total rise is measured from the finished floor surface you're leaving to the finished floor surface you're arriving at, not the sub-floor. Tile, hardwood, or carpet with pad on either end can shift the number enough to change the step count.