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.
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).
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.
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).
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.