🪜 Stair Calculator

Find the number of steps, actual riser height, tread depth, total run, and stringer length for any staircase.

🪜 Stair Details
📊 Results
Number of Steps
Actual Riser Height
Number of Treads
Total Run
Stringer Length
🪜

Enter your total rise and step measurements, then click Calculate

Guide

About the Stair Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This free stair calculator turns your staircase's total rise into a precise, buildable step layout — the number of steps, the actual riser height (rounded so every step is identical), the tread depth, total run, and the stringer (diagonal support) length — plus a basic check against common residential code guidelines for riser height and tread depth.

How It Works

Enter the total rise (the full vertical height the staircase needs to cover) and your desired riser height. The calculator divides total rise by desired riser height and rounds to the nearest whole number of steps, since a staircase must have a whole number of identical risers. It then recalculates the actual riser height as total rise ÷ number of steps — this is the number you'll actually build to. Using your entered tread depth, it multiplies by the number of treads (one fewer than the number of risers) to find the total run, then applies the Pythagorean theorem to the total rise and total run to find the stringer length.

Who Should Use This Calculator

DIYers building deck stairs, porch steps, or a basement staircase; contractors laying out a stringer before cutting; and homeowners checking whether an existing or planned staircase meets common comfort and code guidelines. It's a planning and layout tool — always verify final measurements and code requirements with your local building department before construction.

Real-World Applications

  • Laying out a deck or porch staircase before cutting stringers
  • Planning a basement or attic staircase renovation
  • Checking whether an existing staircase's riser height is within comfortable, code-typical range
  • Estimating stringer board length before buying lumber
  • Pairing with NeftCal's Square Footage Calculator for surrounding landing or platform area

Tips for Accurate Results

  • Measure total rise from the exact finished floor level below to the exact finished floor level above, including flooring thickness.
  • Aim for a riser height close to 7 inches and a tread depth close to 10-11 inches for a comfortable, natural stride.
  • Every riser in a staircase must be the same height — that's why the calculator recalculates and rounds for you rather than using your raw desired value.
  • Always confirm final dimensions against your local building code before cutting stringers.
Formula

How Stair Measurements Are Calculated

The exact formulas this calculator uses

Number of Steps
Number of Steps = ROUND( Total Rise ÷ Desired Riser Height )

Actual Riser Height
Actual Riser Height = Total Rise ÷ Number of Steps

Treads & Total Run
Number of Treads = Number of Steps − 1
Total Run = Number of Treads × Tread Depth

Stringer Length (Pythagorean Theorem)
Stringer Length = √(Total Rise² + Total Run²)
📏

Why Steps Must Be Whole Numbers

Every riser in a staircase must be the same height, so the raw division result is rounded to the nearest whole step, and the riser height is then recalculated to fit evenly.

🔻

One Fewer Tread Than Riser

The top step of a staircase is the upper floor itself, so a staircase with N risers only has N−1 physical treads.

📐

Stringer as a Hypotenuse

The stringer forms the diagonal (hypotenuse) of a right triangle whose two legs are the total rise and total run, so the Pythagorean theorem gives its exact length.

⚙️ Why This Approach Works

Rounding to a whole number of steps first, then recalculating the exact riser height, guarantees every step is identical — a hard requirement of virtually every building code, since inconsistent riser heights are a major tripping hazard. The Pythagorean theorem then gives an exact stringer length from the two known legs of the triangle it forms.

🎯 When to Use It

  • Laying out a new staircase before cutting stringers
  • Checking an existing staircase against common comfort/code guidelines
  • Estimating lumber length for stringer boards

📋 Assumptions

  • A straight, single-flight staircase (not an L-shaped or winder staircase)
  • Uniform riser height and tread depth throughout
  • Total rise measured accurately between finished floor levels

⚠️ Limitations

  • Doesn't calculate landings, winders, or multi-flight staircases
  • Code compliance check uses common U.S. residential guidelines, not your specific local code
  • Doesn't account for stringer board thickness or nosing overhang in the raw stringer length
Walkthrough

Step-by-Step: How to Use the Stair Calculator

From measuring total rise to reading your stringer length

Enter total rise

Measure the total vertical height from the lower floor to the upper floor, in inches.

Enter your desired riser height

Enter your target riser height — 7 inches is a common comfortable default.

Enter your tread depth

Enter your planned tread (step) depth — 10 inches is a common minimum.

Click "Calculate"

See the number of steps, actual riser height, total run, and stringer length, plus a basic code compliance check.

Example

Worked Example

A standard interior staircase and a shorter deck staircase

Scenario 1 — 108-Inch Total Rise (9 Ft Floor to Floor)

Total Rise108 in
Desired Riser7 in
Tread Depth10 in
Step 1 — Number of steps: 108 ÷ 7 ≈ 15.43, rounded to 15 steps.
Step 2 — Actual riser height: 108 ÷ 15 = 7.2 in.
Step 3 — Treads & total run: 15 − 1 = 14 treads × 10 in = 140 in total run.
Step 4 — Stringer length: √(108² + 140²) = √(11,664 + 19,600) = √31,264 ≈ 176.82 in (14.74 ft).
Steps
15
Actual Riser
7.2 in
Stringer
176.82 in

Scenario 2 — 96-Inch Deck Staircase

Total Rise96 in
Desired Riser7.5 in
Tread Depth11 in
Step 1 — Number of steps: 96 ÷ 7.5 = 12.8, rounded to 13 steps.
Step 2 — Actual riser height: 96 ÷ 13 ≈ 7.38 in.
Step 3 — Treads & total run: 13 − 1 = 12 treads × 11 in = 132 in total run.
Step 4 — Stringer length: √(96² + 132²) = √(9,216 + 17,424) = √26,640 ≈ 163.22 in (13.60 ft).
Steps
13
Actual Riser
7.38 in
Stringer
163.22 in
Reference

Common Residential Stair Guidelines

Widely referenced U.S. model-code figures — always confirm exact requirements with your local building department

MeasurementCommon Guideline
Maximum riser height7.75 in
Minimum tread depth10 in
Riser height variance (largest vs. smallest in one flight)3/8 in or less
Minimum stairway width36 in
Minimum headroom clearance6 ft 8 in
Comfortable riser height (design target)~7 in
Comfortable tread depth (design target)~10-11 in

These figures reflect commonly used residential guidelines similar to the International Residential Code (IRC), but exact requirements vary by jurisdiction, occupancy type, and whether the stairs are interior, exterior, or part of an accessibility path. Always confirm final dimensions with your local building department before construction.

ℹ️

This calculator provides layout math and a basic guideline check only. It is not a substitute for a licensed contractor, structural engineer, or your local building department's official code requirements.

Use Cases

Practical Use Cases for the Stair Calculator

Where accurate stair layout math matters

🪵

Deck & porch stairs

Lay out a new deck or porch staircase before cutting stringer boards.

🏠

Basement staircases

Plan a basement finishing project's staircase to a comfortable, code-typical layout.

🛠️

Stringer cutting

Get the exact stringer length before buying and cutting lumber for the job.

🔍

Existing stair checks

Verify whether an existing staircase's riser height falls within common comfort or code ranges.

🏗️

Contractor quoting

Quickly rough out a staircase layout for a client estimate before detailed design work.

🎓

Trade school & DIY learning

Practice stair layout math and understand the rise/run/stringer relationship.

Pros & Cons

Advantages and Limitations

What this stair calculator does well, and where it can't replace professional design

✅ Advantages

  • Free, instant, and requires no signup
  • Runs entirely in your browser — no data is sent to a server
  • Automatically rounds to a whole number of equal-height steps
  • Calculates stringer length using the Pythagorean theorem
  • Flags results against common residential riser/tread guidelines
  • Fast enough to try several riser/tread combinations quickly

⚠️ Limitations

  • Doesn't calculate landings, winders, or multi-flight staircases
  • Guideline check uses common U.S. residential figures, not your exact local code
  • Doesn't account for stringer board thickness, nosing, or finish flooring thickness
  • Not a substitute for a licensed contractor or structural engineer
Reference

Common Mistakes and Expert Tips

Avoid the most common stair-layout errors

❌ Common Mistakes

  • Using the raw desired riser height instead of the recalculated actual riser height, resulting in uneven steps
  • Forgetting that finished flooring thickness changes the true total rise measurement
  • Not double-checking riser and tread dimensions against local code before cutting stringers
  • Assuming exterior stairs follow the same code requirements as interior stairs
  • Ignoring headroom clearance when planning a staircase under an upper floor or ceiling

💡 Expert Tips & Best Practices

  • Measure total rise between finished floor surfaces, not subfloor to subfloor
  • Aim for 2 × riser height + tread depth to land between 24 and 25 inches for a comfortable stride
  • Keep riser height variance across the whole flight to 3/8 inch or less, as most codes require
  • Cut one test stringer first and check the fit before cutting the rest
  • Always confirm final dimensions with your local building department before construction
📝

Summary: This stair calculator turns your total rise into a buildable step layout — number of steps, actual riser height, tread depth, total run, and stringer length — with a basic guideline check, free and instant. Pair it with the Square Footage Calculator for surrounding landing area.

FAQ

Frequently Asked Questions

Common questions about stair layout and stringer calculations

How do I calculate the number of stairs I need?
Divide your total rise (the full vertical height in inches) by your desired riser height, then round to the nearest whole number. For example, a 108-inch total rise with a 7-inch target riser gives 108 ÷ 7 ≈ 15.4, which rounds to 15 steps.
What is the difference between rise and run?
Rise is the vertical height of a single step (or the total vertical height of the whole staircase). Run is the horizontal depth of a single step (or the total horizontal distance the staircase covers). Both matter for comfort and code compliance.
What is a comfortable riser height and tread depth?
Most residential building codes cap riser height at 7.75 inches and require a minimum tread depth of 10 inches, though many people find risers around 7 inches and treads around 11 inches more comfortable to walk. A common design guideline is that 2× riser height + tread depth should fall between 24 and 25 inches for a natural stride.
How is stringer length calculated?
The stringer is the diagonal support board the steps attach to, and its length is found using the Pythagorean theorem: stringer length = √(total rise² + total run²), since the stringer forms the hypotenuse of a right triangle with the rise and run as its two legs.
Why does my actual riser height differ from what I entered?
Because the number of steps must be a whole number, the calculator rounds your total rise ÷ desired riser height to the nearest whole step, then recalculates the actual riser height as total rise ÷ number of steps. This ensures every riser in the staircase is exactly the same height, which building codes require.
Does this calculator check building code compliance?
It checks your results against commonly used U.S. residential guidelines — a maximum riser height of about 7.75 inches and a minimum tread depth of 10 inches, based on model codes like the IRC. Always verify exact requirements with your local building department, since codes vary by jurisdiction and stair type.
Can I use this calculator for deck stairs or exterior stairs?
Yes. The same rise, run, and stringer math applies to deck stairs, porch steps, and other exterior staircases. Exterior stairs sometimes follow slightly different local code requirements than interior stairs, so double-check your jurisdiction's rules for outdoor stair construction.
How many treads are there compared to risers?
A staircase always has one fewer tread than risers, because the top landing itself acts as the final "step" — you step onto the upper floor instead of onto an additional tread. This calculator accounts for that when computing total run.
Learn More

Authoritative Resources on Stair Construction

Official code and safety references — not a substitute for a licensed contractor

Related Calculators

Other home & project tools