DeckMath
IRC R311.7 stair angle · R507.11.2 deck drainage · dual-mode

Stair Slope Calculator

Compute stair angle + slope ratio + steepness category + IRC R311.7 compliance from rise + tread + use type. 4 use types (dwelling-unit, spiral, winder, commercial) with each use's own IRC limits applied. Plus a deck-drainage mode that checks IRC R507.11.2 positive-drainage and manufacturer minimum slope (1/8″ per ft for composite + PVC, 1/16″ for wood). Side-by-side comparison of your stair vs 7 reference angles.

4 stair uses7 reference anglesIRC R311.7 + R507.11.2Drainage modeStringer lengthFree forever
4·Stair use types
7.75″·IRC max rise
1/8″/ft·Composite drainage min
R311.7·IRC compliance

Inputs

Stair dimensions

Total rise + target rise per step + tread depth

in

in

in

in

in

5 steps at 33.2 degrees.
Dwelling unit (most decks)
33.2°Standard (25-35°)
5 steps · 7-1/4″ : 11″56.9″ stringer
Stair angle
from horizontal
Step count
7.20″ each
Total run
3.7 ft
Stringer length
Pythagorean cut

Reference angles · this stair vs common types

Stair typeRise × treadAngle
Your stair7.20″ × 11.033.21°
Wheelchair ramp (ADA max)1″ × 124.76°
Wide porch stair6″ × 1226.57°
Standard residential7″ × 1132.47°
Steep residential7.75″ × 1037.75°
Basement stair (tight)8.25″ × 942.51°
Spiral stair9.5″ × 7.551.71°
Stepladder12″ × 3.573.74°

Stair compliance

Stair passes Dwelling unit (most decks) compliance

IRC R311.7.5.1

5 steps · 7.20″ rise × 11.0″ tread · 33.2° angle · Standard (25-35°) category. Stringer length 56.9″.

Code referenceIRC R311.7.5.1 / R311.7.5.2 / R311.7.5.3 / R311.7.2 / R311.7.1 controls dwelling-unit stair geometry. Local AHJ may impose additional limits. Always confirm with permit office before framing.

Need rise + run + stringer cuts?

Use the Stair Rise-Run Calculator for the inverse problem (find ideal rise + run from your total deck height) or the Stair Stringer Calculator for the marking cuts.

Open

Stair compliance per IRC R311.7 (residential) / IBC 1011 (commercial). Drainage slope per IRC R507.11.2 + manufacturer spec sheets (Trex / TimberTech / AZEK / Fiberon). DeckMath is not a substitute for a permit inspector.

How to use

Three steps. Permit-ready output.

  1. 01

    Pick mode

    Stair mode for stair angle + IRC R311.7 compliance. Drainage mode for deck-drainage slope (IRC R507.11.2) — composite + PVC manufacturers require 1/8″ per foot minimum slope for water shedding.

  2. 02

    Stair mode — total rise

    The vertical distance from grade (or lower landing) to the deck surface. Most deck stairs handle 24-48″ of rise. Above 48″ you typically need an intermediate landing per IRC R311.7.3.

  3. 03

    Stair mode — target rise per step

    Comfortable range: 6-7.5″ per step. IRC R311.7.5.1 hard limit: 7-3/4″ max for dwelling-unit stairs. Calculator rounds your total rise to a consistent rise across all steps within ±3/8″ (R311.7.5.1 variance limit).

  4. 04

    Stair mode — tread depth

    Excluding nosing. IRC R311.7.5.2: 10″ minimum. Comfort range: 10-12″. The classic 2×8 + 2×8 (≈11″) tread is the most common deck stair tread.

  5. 05

    Stair mode — stair use

    Dwelling-unit (most decks). Spiral (relaxed: 9-1/2″ max rise). Winder (turn flight). Commercial / public (stricter: 7″ max rise, 11″ min tread, ≤3/16″ variance).

  6. 06

    Drainage mode — deck length + slope/ft

    Length is the dimension water flows across (typically the deck depth from house to outer rim joist). Slope presets: 1/16″ (wood only), 1/8″ (composite + PVC code min), 3/16″, 1/4″. Calculator returns total drop, angle, and manufacturer compliance check.

How we calculate

The math, fully transparent.

The Stair Slope Calculator computes stair angle, slope ratio, and IRC R311.7 compliance for residential deck stairs, plus a deck-drainage slope mode that checks IRC R507.11.2 positive-drainage requirements for ledger-attached decks. Enter total rise + target rise per step → calculator returns step count, actual rise + tread, angle in degrees, slope ratio, stringer length, steepness category (shallow / standard / steep / non-compliant), and a side-by-side comparison against 7 reference angles (ADA ramp, porch stair, standard residential, basement, spiral, stepladder). Drainage mode: enter deck length + slope per ft → total drop, water-shedding category, and manufacturer min-slope check for composite + PVC + wood decking.

IRC references

  • IRC R311.7.5.1 — Stair risers: 7-3/4″ max for dwelling units; ≤3/8″ variance within a flight
  • IRC R311.7.5.2 — Stair treads: 10″ min depth measured between nosing projections
  • IRC R311.7.5.3 — Nosing: 3/4″ to 1-1/4″ projection where solid risers are used
  • IRC R311.7.1 — Stair width: 36″ min where treads serve a dwelling unit
  • IRC R311.7.2 — Headroom: 6'-8″ min above stair walking surface
  • IRC R311.7.10.1 — Spiral stair: 9-1/2″ max rise · 7-1/2″ min tread at walkline · 26″ min width
  • IBC 1011 — Commercial stairs: 7″ max rise · 11″ min tread · 44″ min width · ≤3/16″ variance
  • IRC R507.11.2 — Deck drainage: positive slope away from ledger for water shedding

Stair limits per IRC R311.7 (dwelling-unit residential) + IBC 1011 (commercial). Spiral + winder limits per IRC R311.7.10.1 / R311.7.5.2.1. Drainage slope minimums per IRC R507.11.2 + manufacturer spec sheets (Trex, TimberTech, AZEK, Fiberon, 2026-Q1).

Stair angle from horizontal
angle_deg = atan(rise_per_step / tread_depth) × 180/π

7″ rise × 11″ tread = atan(7/11) × 180/π = 32.47°. The classic IRC-compliant residential angle. Steeper than 38° crosses into 'feels unsafe' territory; over 42° is non-compliant for new construction.

Step count + actual rise
step_count = round(total_rise / target_rise_per_step) · actual_rise = total_rise / step_count

36″ total rise with 7.25″ target = 36/7.25 = 4.97 → round to 5 steps → actual rise = 36/5 = 7.2″ per step. The rounding keeps all risers identical (R311.7.5.1 variance limit ≤3/8″).

Slope ratio
rise : run = actual_rise (in) : tread_depth (in)

7-1/4″ rise : 11″ tread on a code-compliant residential stair. Expressed as 'roughly 7:11' for permit drawings. Some jurisdictions ask for the ratio explicitly; this is the format they want.

Stringer length
stringer_length = √(total_rise² + total_run²)

36″ rise × 44″ run (5 steps × 11″ each tread, minus the top tread which is the deck surface — so total run = (steps-1) × tread = 44″) → √(1296 + 1936) = √3232 = 56.85″ — that's the cut length of each stringer along the diagonal.

Drainage slope angle
angle_deg = atan(slope_per_ft / 12) × 180/π

1/8″ per ft = atan(0.125/12) × 180/π = 0.60°. Imperceptible underfoot but enough to shed water off a composite deck. 1/4″ per ft = 1.19° — sometimes used in pool decks or coastal installs. Above 1/2″ per ft is uncomfortable and starts to feel like a ramp.

Drainage total drop
total_drop = deck_length_ft × slope_per_ft_in

14 ft deck × 1/8″/ft = 1.75″ total drop from house to outer rim. Calculator returns this so you can pre-cut the joists with a tapered cut OR install on a step-tapered ledger to match. Without slope, water pools and accelerates composite + wood deterioration.

Save your plan

Don’t lose this estimate.

Your inputs are preserved in the URL — email it to yourself or copy the link so you can compare with contractor bids later. No account needed.

Frequently asked

Questions, answered.

Embed this calculator

One line. Any site. Free.

Drop the snippet into your contractor site, blog, or marketing page. Theme matches the parent site automatically.

<!-- Drop into any HTML, WordPress, Webflow, or contractor site -->
<script src="https://embed.deckmath.com/v1.js"
        data-deckmath-calc="stair-slope-calculator"
        data-theme="auto"
        async></script>