CalcCards

Stair Calculator: Calculate Rise, Run, and Code-Compliant Step Dimensions

Updated Apr 10, 2026

Stair Calculator

inches
inches
inches

Results

Number of Steps14
Actual Riser Height (in)7.71
Total Run (in)130.0
Stair Angle (degrees)37.6
Stringer Length (in)169.0
View saved โ†’

Embed

Add this to your site

<iframe
  src="https://calc.cards/embed/construction/stair-calculator"
  width="600"
  height="700"
  frameborder="0"
  loading="lazy"
  title="Calc.Cards calculator"
  style="border:1px solid #e0e0e0;border-radius:8px;max-width:100%;"
></iframe>

Free with attribution. The Stair Calculator runs entirely inside the iframe.

Branded

Customize & brand for your site

Get the Stair Calculator as a self-contained widget styled with your colors and logo. No iframe, no Calc.Cards branding.

  • Brand color palette (auto-extract from your URL)
  • Your logo, your typography
  • Clean HTML/CSS/JS you can drop on any page
  • Lifetime updates if the formula changes
Brand this calculator โ€” $199

Need something different? Build a fully custom calc

You're building a deck or interior staircase and you need to know: what's the right rise and run to meet code, and how many steps does your height require?

Stairs must follow strict building codes: riser height (vertical) and tread depth (horizontal) must be within specific ranges, and the sum of one riser plus one tread must equal 17โ€“18 inches for comfort and safety. Calculate wrong and your stairs feel awkward or unsafe-or worse, fail inspection. Our stair calculator finds the perfect rise, run, and step count for your specific height.

What This Calculator Does

This tool determines the ideal stair dimensions based on your total rise (the vertical distance from bottom to top). You input the height you need to climb in inches, and the calculator divides it by the ideal riser height, determines how many steps are required, adjusts slightly for equal spacing, and calculates the tread depth to meet code. It shows rise, run, number of steps, and validates against building code (riser 7"โ€“7.75", tread 10"โ€“11", sum 17"โ€“18").

How to Use This Calculator

Step 1: Measure your total rise accurately. This is the vertical distance from the finished floor at the bottom to the finished floor at the top. Include any landing height or finished floor thickness. Measure in inches.

Step 2: Specify whether you're building interior or exterior stairs. Interior stairs follow standard code (riser 7"โ€“7.75", tread 10"โ€“11"). Exterior stairs (decks) can vary slightly but follow the same general rules. Code is stricter for interior stairs in most jurisdictions.

Step 3: Input your total rise. The calculator divides it by a target riser height (7.5" is ideal) to find the number of steps needed.

Step 4: Confirm the recommended rise and run. The calculator shows exactly how tall each step should be and how deep (front to back) to meet code and comfort standards.

Step 5: Use these dimensions to build your stringers (the angled supports), cut treads (the steps you step on), and build risers (the vertical parts, if enclosed).

The Formula Behind the Math

Stair calculation follows this logic:

Number of Risers = Total Rise (inches) รท Target Riser Height (inches)

Adjusted Riser = Total Rise รท Number of Risers

Tread Depth = 17.5" โˆ’ Adjusted Riser (to maintain comfortable sum)

Let's walk through a real example: a deck needing 32 inches of vertical rise.

Total rise: 32 inches
Target riser height: 7.5 inches
Estimated steps: 32 รท 7.5 = 4.27 โ‰ˆ 4 steps
Adjusted riser: 32 รท 4 = 8 inches (this is high-let's try 5 steps)
With 5 steps: 32 รท 5 = 6.4 inches (too shallow-under 7")
Best fit: 4 steps at 8" riser (acceptable if under 8.25" code limit)
Tread depth: 17.5 โˆ’ 8 = 9.5 inches (acceptable, within 10"โ€“11" range)

Building code requires: riser 7"โ€“7.75" (interior), tread 10"โ€“11", sum of one riser + one tread = 17"โ€“18". Our calculator finds a balance.

Interior Staircase (Ground to Second Floor)

A typical interior staircase spanning a two-story height. Total rise: 120 inches (floor to second floor, typical 10-foot ceiling per floor minus floor thickness).

Target riser: 7.5 inches
Steps needed: 120 รท 7.5 = 16 steps
Adjusted riser: 120 รท 16 = 7.5 inches (perfect)
Tread depth: 17.5 โˆ’ 7.5 = 10 inches (ideal)
Result: 16 steps, each 7.5" rise ร— 10" run

This is a standard interior staircase. Most two-story homes follow this pattern. The angle of the stringer is about 35โ€“37 degrees.

Basement Stairs (Half-Story Rise, Steeper)

Basement stairs from main floor to basement (partial height). Total rise: 96 inches.

Target riser: 7.5 inches
Steps needed: 96 รท 7.5 = 12.8 โ‰ˆ 13 steps
Adjusted riser: 96 รท 13 = 7.38 inches (code compliant)
Tread depth: 17.5 โˆ’ 7.38 = 10.12 inches (ideal)
Result: 13 steps, each 7.38" rise ร— 10.12" run

Basement stairs are steeper than full-height stairs due to shorter distance, but still code compliant.

Exterior Deck Stairs (3-Step Platform Ascent)

A deck requiring 3 steps from ground to deck surface. Total rise: 21 inches (typical).

Target riser: 7 inches
Steps needed: 21 รท 7 = 3 steps (exact)
Adjusted riser: 21 รท 3 = 7 inches (perfect)
Tread depth: 17.5 โˆ’ 7 = 10.5 inches (comfortable)
Result: 3 steps, each 7" rise ร— 10.5" run

Deck stairs with minimal rise are very comfortable and safe. This is common for deck access.

Tips and Things to Watch Out For

Total rise measurement must include finished floor thickness at both top and bottom. A common mistake: measuring from unfinished concrete to finished floor, missing that the finished floor adds 1โ€“2 inches. Remeasure after floors are finished, or account for it upfront. An error of 1 inch throws off the whole staircase.

Building code is strict about riser consistency. All risers must be within 3/8 inch of each other. If step 1 is 7.25" and step 5 is 7.5", that's a violation. Use a calculator to find dimensions where all steps are identical (or nearly so). The last riser (the bottom step) is often shorter by design; check your local code.

Tread depth (run) is measured from the front of one tread to the front of the next. The nosing (the edge that extends past the riser) adds a bit to total depth but isn't counted in the "run" measurement. Nosing is typically 1โ€“1.5 inches and improves foot placement safety.

Always order 10โ€“15% more material than your calculation to account for waste, cuts, breakage, and measurement errors. Stringer material is cut at precise angles-mistakes happen. Tread boards may split or chip. Budget extra lumber and have backup material on hand.

Handrails and guardrails have separate code requirements. Interior stairs require a handrail on at least one side (two sides for wide stairs). The rail must be graspable (1.25"โ€“2" diameter) and at a consistent height (34"โ€“38"). Exterior deck stairs need guardrails 36" tall. Plan and budget for this separately.

Test the stair feel before you commit to riser/run dimensions. If you're unsure about dimensions, build a test section or mock up one or two steps to feel the rise and run. Some people find 7.5" rise uncomfortable while others prefer 7" or 8". Personal preference matters, within code limits.

Frequently Asked Questions

What's the maximum riser height allowed by code?

Interior stairs: typically 7.75 inches (some jurisdictions allow 8.25" for deck stairs). Exterior/deck stairs: often 8 inches is acceptable, sometimes up to 8.25 inches. Check your local building code-there's no single national standard. If your stairs exceed this, they fail inspection.

What's the minimum tread depth?

Interior stairs: 10 inches minimum (measured from riser to riser, not including nosing). Deck stairs: often 10 inches as well. Some codes allow 9 inches for spiral stairs. Shallow treads (under 10") feel unsafe and are code violations for residential stairs.

Can I make my stairs steeper to save space?

Only if you increase riser height (making each step taller, reducing the number of steps). Reducing tread depth below 10 inches is a code violation. If you need shorter spans, the only option is steeper risers, which makes stairs harder to climb-there's a reason code limits riser height.

How do I calculate winder stairs (pie-shaped steps)?

Winder stairs are complex and best designed by a professional. Building code measures the "walking line" (roughly 18 inches from the narrow end of the wedge) and requires consistent run along this line. DIY winder design often violates code. For a DIY project, stick to standard straight or L-shaped stairs.

Do I count landings as steps?

No, a landing is a flat platform. The riser heights are measured from landing to landing, or from floor to landing. Landing depth doesn't count toward riser/run calculations. A large landing (3ร—3 feet) between flights is common in grand staircases.

What angle should my staircase be?

Most residential stairs are 30โ€“37 degrees from horizontal. A 7.5" riser and 10" run creates roughly a 36-degree angle-very standard and comfortable. Steeper stairs (higher riser, smaller run) create steeper angles (40โ€“45 degrees)-harder to climb but space-efficient. Gentler stairs (lower riser, larger run) are around 30 degrees-easier to climb but require more space.

How do I build stringers for my staircase?

Stringers are angled beams (usually 2ร—12 lumber) cut with notches to hold treads and risers. Mark the rise and run dimensions on the edge of the stringer, use a framing square as a guide, and cut notches with a circular saw. Most DIYers use stringer templates or hire professionals for this precise work. Mistakes here mean unsafe stairs.

Can I build deck stairs without stringers?

No, you need structural support. Stringers, cleats, or a solid base structure is required. Floating stairs (no visible support) require engineering. Standard deck stairs use 2โ€“3 stringers depending on stair width. Wider stairs (36"+ wide) need a center stringer.

Related Calculators

Use the square footage calculator to measure deck or stair landing areas. The deck calculator estimates total lumber if building stairs as part of a deck project. The material cost estimator budgets the full staircase project including wood, fasteners, and handrails.

Related Calculators