WebCalculus

Stair Calculator

Calculate step count, rise, run, stringer length and angle for interior stairs, deck stairs and basement stairs β€” with automatic IRC code check.

Side-view illustration of a wooden residential staircase with a blue rise dimension arrow

Updated Verified against IRC R311.7 Methodology Rise & run guide

Quick presets β€” click to load typical floor-to-floor values:

Number of Steps
β€”
Actual Rise per Step (in)
β€”
Run per Step (in)
β€”
Stringer Length (in)
β€”
Angle (degrees)
β€”

For estimating only β€” verify rise, run, headroom and handrail against IRC R311 and your local building code before construction.

Live diagram

Updates as you change inputs. Geometry drawn to true angle.

Top mount:

Blue = your dimensions Β· Green = comfort/code pass Β· Red = IRC R311 violation Β· Sky-blue dashed = 6β€²8β€³ headroom envelope

πŸ“ Fraction β†’ decimal helper (tape measure conversions)
1/16 = 0.0625
1/8 = 0.125
3/16 = 0.1875
1/4 = 0.25
5/16 = 0.3125
3/8 = 0.375
7/16 = 0.4375
1/2 = 0.5
9/16 = 0.5625
5/8 = 0.625
11/16 = 0.6875
3/4 = 0.75
13/16 = 0.8125
7/8 = 0.875
15/16 = 0.9375
1 = 1.0

Type the decimal value into any input above. Example: 7-3/4β€³ riser = 7.75 ; 10-1/2β€³ tread = 10.5.

Anatomy of a Staircase

Every part has a specific name on construction drawings and in IRC R311. Each callout below uses the exact term you'll see in code and on architect's drawings.

Tread (run) step you walk on Riser vertical face Nosing tread overhang (¾–1ΒΌβ€³) Stringer notched 2Γ—12 supports steps Handrail 34–38β€³ above nosings Baluster ≀4β€³ sphere rule Newel post anchors handrail Landing upper finished floor Total rise floor-to-floor Total run
Every callout uses the exact term used in IRC R311 and on architect's drawings.

IRC R311 Code Limits β€” Visualized

The red zones below show where your design cannot go without failing inspection. The green zones are the comfort sweet spot the calculator targets by default.

Riser height (R311.7.5.1) 0β€³ 4β€³ 7β€³ 7.75β€³ 8.25β€³ MAX 10β€³ Green = comfort target (7–7.75β€³) Β· Amber = legal but tiring Β· Red = above IRC max Tread depth (R311.7.5.2) 0β€³ 9β€³ MIN 10β€³ 11β€³ 18β€³ Red = illegal (under 9β€³) Β· Green = comfort target (10–11β€³) Clear width (R311.7.1) 36β€³ minimum (above handrail) Walls must give 36β€³ of clear width measured 34–38β€³ above tread nosings. Headroom (R311.7.2) β‰₯ 6β€²8β€³ (80β€³) measured plumb above each tread nosing If a basement stair has 78β€³ headroom under a duct, it fails inspection. Handrail required (R311.7.8) Required when a flight has 4 or more risers. Mount 34–38β€³ above each tread nosing, graspable cross-section. Rise consistency (R311.7.5.1) Risers in a single flight may not vary more than 3/8β€³ from largest to smallest. The calculator's "actual rise" output enforces this automatically.
All limits per IRC 2024 Section R311.7. Commercial stairs (IBC) are stricter β€” 7β€³ riser max, 11β€³ tread min.

Stair Configurations β€” Pick the Right Layout

Five common residential layouts compared. Choose by available footprint and traffic flow, not aesthetics alone.

Straight
Straight. Cheapest, easiest to frame. Needs ~14 ft of clear run. Best for new construction.
L-shape (quarter-turn)
L-shape. 90Β° turn with mid-landing. Fits smaller footprint. Landing breaks long falls β€” safer for kids/elderly.
U-shape (half-turn)
U-shape. 180Β° turn around a landing. Most compact footprint. Common in multi-story homes and apartments.
Winder (no landing)
Winder. Pie-slice steps replace the landing. Saves space but pinches tread depth at the inside corner β€” harder to climb safely.
Spiral
Spiral. Footprint ~5 ft diameter. IRC allows as a secondary stair only β€” moving furniture is nearly impossible.

Mounting & Anchoring β€” Top and Bottom Details

The stringer can't just sit on the floor. Here's how it actually connects at each end. Switch the "Top mount" toggle above the live diagram to see each style applied to your dimensions.

Header / rim joist Upper floor Joist hanger Notched stringer TOP β€” flush mount with joist hanger
Flush mount (top). Stringer notches lock the top step level with the upper floor. A joist hanger transfers the load into the rim joist. Used in 95% of residential stairs.
Header / rim joist 2Γ— ledger Lag bolts β‰₯ Β½β€³ TOP β€” ledger + lag bolts (deck stairs)
Ledger mount (top). Deck/exterior stairs hang from a pressure-treated 2Γ— ledger lagged into the rim joist. Use min Β½β€³ lag screws every 16β€³.
Concrete landing pad 2Γ—4 cleat or angle bracket BOTTOM β€” concrete pad + anchor
Bottom anchoring. Stringer rests on a concrete pad (β‰₯3β€³ thick), held in place by a 2Γ—4 cleat or steel angle bolted into the slab with a wedge anchor. Without it, the stair can kick out under load.

How the Stair Calculator Works

This stair calculator uses your total rise β€” the vertical distance measured from finished floor to finished floor β€” and your preferred rise per step to compute the exact number of steps. It divides the total rise by the desired rise, rounds up to the nearest whole number of steps, then back-calculates the actual rise per step so every step is perfectly uniform (uneven steps are a leading cause of stair-related falls). The stringer length is calculated using the Pythagorean theorem: √(riseΒ² + runΒ²) per step, multiplied by the number of steps. The stair angle is the arctangent of rise over run, converted to degrees. An angle of 30°–35Β° is the comfortable "sweet spot" for interior residential stairs; deck stairs are typically steeper at 35°–40Β°.

How to Measure Total Rise Accurately

Total rise is the vertical distance from the top surface of the lower floor to the top surface of the upper floor (or landing). Measure with a level and tape measure β€” do not guess or use ceiling height alone. If you are building deck stairs, measure from the deck surface down to the ground at the base of the stairs (accounting for any planned landing pad thickness).

IRC Code Requirements β€” Residential Stairs

Measurement IRC Minimum/Maximum Recommended Range
Rise (riser height)Max 8.25 in7.0–7.75 in
Run (tread depth)Min 9.0 in (nosing excl.)10–11 in
Tread nosing projection0.75–1.25 in1.0 in
Stair width (clear)Min 36 in36–48 in
Headroom (vertical clearance)Min 6 ft 8 in7 ft+
Handrail height34–38 in above nosing36 in
Rise variation (flight)Max 3/8 in between steps< 1/8 in

Common Stair Configurations by Application

Application Typical Rise (in) Typical Run (in) Angle
Interior residential7.0–7.7510–1132°–37Β°
Deck / exterior7.0–7.7510–1133°–38Β°
Basement utility7.5–8.259–1037°–42Β°
Commercial / public4.0–7.011–1416°–32Β°
Loft / ship ladder9.5–125–850°–68Β°

Pro tip: Use the "comfort rule" to check your rise and run: rise + run should equal 17–18 inches for comfortable walking. A 7.5-inch rise with a 10-inch run sums to 17.5 β€” right in the zone. The "safety rule" states 2Γ— rise + run should equal 24–25 inches; 2(7.5) + 10 = 25 βœ“.

Frequently Asked Questions

What is the standard stair rise height?
The IRC (International Residential Code) specifies a maximum rise of 8.25 inches and recommends 7.0–7.75 inches as the comfortable range for residential interior stairs. Commercial stairs (IBC) have stricter limits: a maximum of 7 inches rise and minimum 11-inch tread depth.
What is the minimum tread depth for stairs?
IRC requires a minimum tread depth of 9 inches (measured horizontally, excluding nosing). Most residential stairs use 10–11 inch treads for comfort. Adding a 1-inch nosing (overhang) to a 9-inch tread gives a 10-inch walking surface.
How many stairs do I need for a 9-foot ceiling?
A 9-foot (108-inch) floor-to-floor height with 7.5-inch risers requires 108 Γ· 7.5 = 14.4, rounded up to 15 steps. The actual rise per step becomes 108 Γ· 15 = 7.2 inches β€” perfectly within code. With 10-inch treads, the total horizontal run will be 14 Γ— 10 = 140 inches (11 ft 8 in).
How do I calculate stair stringer length?
Stringer length = √(riseΒ² + runΒ²) Γ— number of steps. For example, with 15 steps at 7.2-inch rise and 10-inch run: √(7.2Β² + 10Β²) = √(51.84 + 100) = √151.84 β‰ˆ 12.32 inches per step. Multiply by 15 steps = 184.8 inches β‰ˆ 15 ft 5 in. Add 3–6 inches for the top ledger attachment.
What is the difference between stair rise and run?
Rise is the vertical height of a single step (riser). Run is the horizontal depth of a single tread (the part you step on). Total rise is the full floor-to-floor height. Total run is the total horizontal distance the staircase occupies at the base.
How wide should residential stairs be?
IRC requires a minimum clear width of 36 inches for residential stairs. For comfortable two-way traffic or moving furniture, 42–48 inches is recommended. Commercial stairs require a minimum 44 inches under IBC.
What lumber should I use for stair stringers?
Use #1 or #2 grade Douglas Fir, Southern Yellow Pine or Hem-Fir. Common sizes are 2Γ—12 for cut (notched) stringers or LVL (laminated veneer lumber) for engineered stringers. Exterior stairs require pressure-treated lumber rated UC4B or better. Avoid knotted lumber near the cut-out areas β€” knots create weak points.
Do deck stairs need to meet building code?
Yes. Deck stairs are subject to the same IRC Section R311 requirements as interior stairs β€” maximum 8.25-inch rise, minimum 9-inch tread, minimum 36-inch width and a graspable handrail on at least one side if there are 4 or more risers. Most jurisdictions require a permit for deck construction including stairs.
How do I account for flooring thickness in stair calculations?
Always measure total rise from finished floor to finished floor β€” not from subfloor to subfloor. If flooring hasn't been installed yet, subtract the planned flooring thickness from the top riser height. For example, if adding 3/4-inch hardwood upstairs, reduce the top riser by 3/4 inch so all steps remain equal after flooring is laid.
What stair angle is most comfortable?
A stair angle of 30°–36Β° is considered the most comfortable range for residential use. Below 20Β° feels like a ramp; above 45Β° feels like a ladder. The "sweet spot" for interior stairs is around 34Β°, achieved with a 7.5-inch rise and 10.5-inch run.