Stair Calculator

Stair Calculator

Enter the total rise from finished floor to finished floor. The calculator finds the number of risers, the riser height and tread depth, the total run, stringer length and angle, the stairwell opening needed for headroom, and checks the result against the building code you choose — with a scale drawing of the stair.

Units
From the finished lower floor to the finished upper floor.
7 to 7½ in is comfortable for most people.
Only if the stair must fit a fixed length. Empty = treads from the step rule.
Joists plus subfloor and ceiling — for the stairwell opening.
Number of risers15
Riser height (in)7.2
Tread depth (in)10.4
Treads14
Riser height7.2 in (7 3/16″)
Tread depth10.4 in (10 3/8″)
Total run145.64 in (145 5/8″)
Stringer length (along the pitch line)181.32 in (181 5/16″)
Step rule 2R + T24.8 in (24 13/16″)
Riser checkOK — max 7.75 in (7 3/4″)
Tread checkOK — min 10 in
Stairwell opening for headroom130.04 in (130 1/16″)
Headroom required80 in
Stair angle (degrees)34.69

108 in ÷ 15 risers = 7.2 in (7 3/16″). Tread from the step rule: 24.8 in − 2 × riser, kept within the code limits = 10.4 in (10 3/8″). The last riser lands on the upper floor, so there is one tread fewer than risers. Building codes vary by country and region — confirm with your local building department.Total run 145.64 in (145 5/8″)Total rise108 in15 × 7.2 in (7 3/16″) risers14 × 10.4 in (10 3/8″) treads34.69° pitch line

Other numbers of risers
RisersRiser (in)Tread (in)AngleMeets the limits
138.311039.72°no
147.711037.65°yes
157.210.434.69°yes
166.7511.330.84°yes
176.3512.127.71°yes

Calculated on your device · formulas checked against known results · How we test

How to use the stair calculator

  1. Measure the total rise — the height from the finished lower floor to the finished upper floor, including flooring that is not yet installed. This is the one measurement everything depends on.
  2. Set a preferred riser height. The calculator divides the rise into equal steps as close to it as possible, then adds a step if the riser would be higher than the code allows.
  3. Leave the total run empty to size the treads with the step rule, or enter it when the stair has to fit a fixed length.
  4. Pick the code to check against and, for the headroom, the thickness of the upper floor.

The stair formulas

Worked example: a 9-foot floor-to-floor height

The total rise is 108 in. With a preferred riser of 7¼ in: 108 ÷ 7.25 = 14.9, so 15 risers of 7.2 in (7 3/16″). The step rule gives a tread of 24.8 − 2 × 7.2 = 10.4 in, and 14 treads make a total run of 145.6 in (12 ft 1⅝ in). The stringer along the pitch line is √(108² + 145.6²) = 181.3 in and the angle is 34.7°. With 14 risers instead, each would be 7.71 in — still under the IRC's 7¾ in, but steeper.

Code limits used by the check

CodeMax riserMin treadOther
US — IRC R311.7 (one- and two-family homes)7¾ in (196 mm)10 in (254 mm)Headroom 6 ft 8 in (2,032 mm)
UK — Approved Document K, private stair220 mm220 mmPitch max 42°; 2R + G 550–700 mm; headroom 2.0 m
Germany — DIN 18065, homes with up to two dwellings14–20 cm23–37 cm2R + T 59–65 cm; headroom 2.0 m
Comfort rule only——2R + T 60–65 cm

The IRC measures the tread from nosing to nosing and allows up to 3/8 in of variation between risers; nosings of ¾ to 1¼ in are required when the tread is less than 11 in. Local amendments, commercial buildings and spiral or winder stairs have different rules — this calculator covers straight flights.

Headroom and the stairwell opening

Headroom is measured vertically from the sloping line through the tread nosings to the ceiling or the edge of the floor above. The pitch line drops one riser for every tread, so the opening in the upper floor must be at least (headroom + floor thickness) × tread ÷ riser long, measured back from the top nosing. For the example above with a 10-in floor: (80 + 10) × 10.4 ÷ 7.2 = 130 in.

Tips before you cut a stringer

Measure the rise in several places — floors are rarely level. Remember that the finished floor covering changes the top and bottom risers. The stringer board must be longer than the pitch-line length to allow for the top and bottom cuts; a 2×12 is the usual choice for wooden stringers. For a ramp or any other incline, the slope calculator converts rise and run to grade and angle, and the roof pitch calculator works the same geometry for rafters.

Frequently asked questions

How many steps do I need for a 9-foot ceiling?

A 9-ft ceiling usually means about 108 in floor to floor with the floor structure. That is 15 risers of 7.2 in or 14 risers of 7.71 in — both under the IRC maximum of 7¾ in. Measure your own floor-to-floor height, since joist depth and flooring change it.

What is the maximum riser height for stairs?

In US homes, 7¾ in under the IRC (R311.7.5.1). The UK allows 220 mm for a private stair, Germany 20 cm under DIN 18065, and the Netherlands 188 mm. Commercial buildings have lower limits, typically 7 in (178 mm).

What is the 2R + T rule?

Two risers plus one tread should equal the length of a normal stride, about 63 cm or 24¾ in (Blondel’s rule). A stair with 17 cm risers then gets 29 cm treads. Stairs that follow it feel natural to climb.

How do I calculate stringer length?

Multiply the tread depth by the number of treads to get the total run, then take √(rise² + run²). For 108 in of rise and 145.6 in of run, the pitch line is 181.3 in long; buy a board at least a foot longer for the end cuts.

What is a good stair angle?

Between about 30° and 37° is comfortable for a home stair. The IRC limits (7¾ in risers, 10 in treads) allow up to about 37.8°; the UK caps private stairs at 42°.

Embed this calculator on your website

Free for any website or blog. Paste this code where you want the calculator to appear:

All free calculator widgets

Last updated: November 14, 2026

Menu

Categories

Finance Calculators34 calculatorsBusiness & Shopping Calculators10 calculatorsHealth & Fitness Calculators16 calculatorsMath & School Calculators38 calculatorsDate & Time Calculators25 calculatorsHoliday Countdowns17 calculatorsEveryday Tools64 calculatorsMic, Camera & Sound Tools13 calculatorsDeveloper Tools14 calculatorsImage & PDF Tools32 calculatorsEngineering Calculators43 calculators

CalcWorthy

AboutContactPrivacy PolicyTerms of Use

Language

Language
EnglishEnglishالعربيةArabicবাংলাBanglaDeutschGermanEspañolSpanishفارسیPersianFrançaisFrenchעבריתHebrewहिन्दीHindiBahasa IndonesiaIndonesianItalianoItalian日本語Japanese한국어KoreanBahasa MelayuMalayNederlandsDutchPolskiPolishPortuguêsPortugueseРусскийRussianไทยThaiTürkçeTurkishУкраїнськаUkrainianاردوUrduTiếng ViệtVietnamese简体中文Simplified Chinese