Skip to main content
construction

Stair Calculator

Calculate the rise, run, and number of steps needed for a staircase based on total height, available floor space, and building code requirements.

Reviewed by Christopher FloiedPublished Updated

This free online stair calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

Minimum: 1

Minimum: 1

Minimum: 1

Results

Number of Steps

15

Actual Rise per Step (inches)

7.2 in

Total Horizontal Run (inches)

154 in

Minimum Stringer Length (inches)

188.1 in

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Stair Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Stair Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Stair Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Stair Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
  • Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
  • Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
  • Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.

About This Calculator

The Stair Calculator is a free, browser-based calculation tool for engineers, students, and technical professionals. Calculate the rise, run, and number of steps needed for a staircase based on total height, available floor space, and building code requirements. It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.

About Stair Calculator

The Stair Calculator is essential for any DIY carpenter, contractor, or homeowner planning to build or replace stairs. Stairs must follow specific dimensions for safety and comfort — get them wrong and you'll have a tripping hazard or a code violation. This calculator determines the optimal number of steps, exact rise per step, total horizontal run, and stringer length based on your total height. It accounts for the IRC building code requirements (max 7.75" rise, min 10" run, with all steps within 3/8" of each other) and the time-tested 'sum of two risers + one run = 24-25 inches' rule for comfortable stair geometry. Whether you're building a deck, basement stairs, attic access, or full-height residential staircase, this calculator ensures your stairs are safe, code-compliant, and comfortable to use.

The Math Behind It

Stair construction follows precise mathematical and ergonomic principles. Get the dimensions wrong and stairs become uncomfortable, dangerous, or fail code inspection. **The Formulas**: 1. **Number of steps**: Round(Total Rise / Preferred Rise per Step) 2. **Actual Rise**: Total Rise / Number of Steps 3. **Total Run**: (Number of Steps - 1) × Run per Step 4. **Stringer length**: √(Total Rise² + Total Run²) **Building Code Requirements (IRC 2021)**: - **Maximum rise**: 7-3/4 inches (7.75") - **Minimum run**: 10 inches (excluding nosing) - **Maximum variation**: 3/8" between any two steps - **Minimum tread depth**: 11" with 1.25" nosing - **Minimum head clearance**: 6'-8" - **Minimum width**: 36" (without handrails) - **Handrail height**: 34-38" above tread nosings - **Maximum vertical rise**: 12 feet between landings **Comfort Formulas**: Multiple time-tested formulas predict comfortable stair geometry: 1. **Blondel's formula** (1675): 2 × Rise + Run = 24-25 inches 2. **Sum rule**: Rise + Run = 17-18 inches 3. **Product rule**: Rise × Run = 70-75 square inches For 7" rise: ideal run = 24-14 = 10", or 18-7 = 11" For 6.5" rise: ideal run = 24-13 = 11", or 18-6.5 = 11.5" **Common Stair Dimensions**: - **Standard residential**: 7" rise × 11" run - **Deck stairs**: 7.5" rise × 10" run - **Basement stairs**: 7.75" rise × 10" run (max code) - **Spiral stairs**: 9.5" rise × 7.5" run (smaller footprint) - **Public/commercial**: 7" rise × 11" run **Components of a Stair**: 1. **Tread**: The horizontal step you walk on 2. **Riser**: The vertical board between treads 3. **Stringer**: The diagonal support that holds treads/risers 4. **Nosing**: The lip extending past the riser (1-1.25") 5. **Newel post**: Vertical post anchoring handrails 6. **Handrail**: Required at 34-38" height 7. **Balusters**: Vertical bars between newel posts **Calculating for Real Projects**: **Example: Deck stair 36" off the ground** 1. Total rise = 36" 2. Preferred rise = 7" 3. Number of steps = round(36/7) = 5 4. Actual rise = 36/5 = 7.2" 5. Run per step = 10" (deck standard) 6. Total run = (5-1) × 10 = 40" 7. Stringer = √(36² + 40²) = √2896 = 53.8" **Critical Considerations**: 1. **Always include the floor as the top step** — don't add an extra step 2. **First step from bottom is short** — must subtract tread thickness from first riser 3. **Stringer cuts** — usually 2x12 lumber, requires careful layout 4. **Headroom** — 6'8" clearance from any tread nosing to ceiling above 5. **Permits** — most jurisdictions require permits for stairs **Common Mistakes**: 1. **Not measuring from finished floor to finished floor** 2. **Forgetting tread thickness on first step** 3. **Inconsistent risers** (varies more than 3/8") 4. **Insufficient headroom** 5. **Wrong stringer angle** 6. **Skipping handrails**

Formula Reference

Number of Steps

Steps = round(Total Rise / Preferred Rise)

Variables: Always round to whole number

Actual Rise

Rise = Total Rise / Number of Steps

Variables: Equal heights for all steps

Stringer Length

Length = √(Rise² + Run²)

Variables: Pythagorean theorem

Worked Examples

Example 1: Deck Stairs

Building a deck 36 inches above ground. Standard 7" preferred rise, 11" run.

Step 1:Number of steps: round(36/7) = round(5.14) = 5 steps
Step 2:Actual rise per step: 36/5 = 7.2 inches
Step 3:Total horizontal run: (5-1) × 11 = 44 inches
Step 4:Stringer length: √(36² + 44²) = √(1296 + 1936) = √3232 = 56.85 inches
Step 5:Check: 2(7.2) + 11 = 25.4 — within ideal 24-25 range

Need 5 steps, each 7.2" rise, 11" run, total run of 44". Order 60" 2×12 stringers (allowing extra for cuts).

Example 2: Basement Stairs

Building basement stairs from main floor. Floor-to-floor height is 108 inches (9 feet).

Step 1:Number of steps: round(108/7) = round(15.43) = 15 steps
Step 2:Actual rise: 108/15 = 7.2 inches
Step 3:Total run: (15-1) × 10 = 140 inches (11 feet 8 inches)
Step 4:Stringer length: √(108² + 140²) = √(11664 + 19600) = √31264 = 176.8 inches

Need 15 steps, 7.2" rise, 10" run, requires 11'8" of horizontal floor space and 14'9" stringers. Verify head clearance of 6'8" min along entire stair.

Common Mistakes & Tips

  • !Not measuring from finished floor to finished floor — leads to first step being wrong height.
  • !Forgetting that the floor IS the top step. Don't add an extra step.
  • !Inconsistent riser heights. Code requires within 3/8" of each other.
  • !Inadequate headroom. Always check 6'8" minimum from any tread nosing to ceiling above.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

What's the most comfortable stair angle?

Stairs feel most comfortable with a slope between 30 and 35 degrees. This corresponds to about 7" rise and 11" run (Blondel formula gives 25). Steeper than 35 degrees feels like climbing; shallower than 25 feels awkward. Code allows up to 7.75" rise / 10" run (about 38°) — at the steep end of comfort.

Can I have stairs with different rise heights?

Code allows up to 3/8 inch variation between any two steps. Practically, all steps should be the same. Even small inconsistencies cause tripping because people develop muscle memory after 2-3 steps. If you must have a different first or last step, consider it carefully and consult your local code.

What if my total rise doesn't divide evenly?

That's normal — adjust the rise per step. If your total is 108" and you want 7" rise: 108/7 = 15.43, so use 15 steps with 7.2" rise (or 16 steps with 6.75" rise). Choose the option closest to ideal proportions while staying under 7.75" max.

Do I need a permit to build stairs?

Almost always, yes. Most jurisdictions require permits for any structural work, including stairs. Inspectors check rise consistency, headroom, handrails, and structural attachment. Building without permits can affect resale value, insurance, and create legal liability if someone is injured. Always check local requirements.