Stair Calculator

Our Stair Calculator helps builders, contractors, and DIYers design safe and comfortable staircases. Using IRC building code standards, it calculates optimal riser height, tread depth, stringer length, and angle. Whether you're building deck stairs, interior staircases, or basement steps, this tool ensures your stairs meet safety requirements and feel comfortable to use.

star 4.9
auto_awesome AI
New

Stair Calculator calculator

stairs Stair Dimensions

in
= 9 ft 0 in
in
IRC code: 4" min - 7.75" max
in
IRC minimum: 10"
in
Residential minimum: 36"
Stair Profile
Rise Run 14 risers 37°

analytics Results

Number of Steps
14 risers
13 treads (steps)
Actual Riser Height
7.71"
Within code
Tread Depth
10"
Within code
Total Run
130"
10.83 ft
Stringer Length
169"
14.08 ft
Stair Angle
39.7°
Stringers Needed
2
2×12 lumber
accessibility_new
Comfort Formula (2R + T)
25.43" - Ideal comfort
Target: 24-25" for comfortable stairs
verified
Code Compliance
Compliant - Meets IRC residential code

stairs IRC Code Limits

Riser Height 4" - 7.75"
Tread Depth 10" min
Stair Width 36" min
Headroom 80" min
Handrail 34-38"

straighten Common Dimensions

Ideal Riser 7" - 7.5"
Ideal Tread 10" - 11"
Nosing 0.75" - 1.25"
Angle 30° - 37°

calculate Comfort Formula

2 × Riser + Tread = 24" - 25"

7" + 7" + 10" = 24" ✓
7.5" + 7.5" + 10" = 25" ✓

lightbulb Quick Tips

  • 1 All risers must be within 3/8" of each other
  • 2 Use 2×12 lumber for stringers (min 3.5" remaining)
  • 3 Add 3rd stringer for stairs wider than 36"

How to Use the Stair Calculator

1

Measure Total Rise

Measure vertical distance from lower floor to upper floor surface

2

Choose Riser Height

Select target riser height (7-7.5" recommended for comfort)

3

Set Tread Depth

Enter tread depth (10-11" for comfortable stairs)

4

Review Results

Check number of steps, stringer length, and code compliance

5

Verify Comfort

Ensure 2R+T equals 24-25" for comfortable climbing

The Formula

The number of risers equals total rise divided by desired riser height. Total run equals number of treads times tread depth. Stringer length is calculated using the Pythagorean theorem. Comfortable stairs follow the 2R + T = 24-25 inch rule.

Risers = Total Rise ÷ Riser Height, Stringer = √(Rise² + Run²)

lightbulb Variables Explained

  • Total Rise Vertical distance from floor to floor (inches)
  • Riser Height Height of each step (typically 7-7.75 inches)
  • Tread Depth Horizontal depth of each step (minimum 10 inches)
  • Stringer Length Length of the diagonal support board
  • Angle Stair slope in degrees (typically 30-37°)

tips_and_updates Pro Tips

1

IRC code requires risers between 4-7.75 inches and treads minimum 10 inches deep

2

The comfort formula 2R + T should equal 24-25 inches for easy climbing

3

All risers must be uniform - maximum 3/8 inch variation allowed by code

4

Minimum stair width is 36 inches for residential, 44 inches for egress

5

Headroom must be at least 6'8" (80 inches) measured vertically

6

Handrails required on at least one side when 4+ risers

7

For deck stairs, use pressure-treated lumber for stringers

Building safe, comfortable stairs requires adherence to precise dimensional standards that have been refined over centuries of architectural practice. The International Residential Code (IRC) specifies a maximum riser height of 7.75 inches (196 mm) and a minimum tread depth of 10 inches (254 mm) for residential stairs, while commercial buildings under the International Building Code (IBC) require risers no taller than 7 inches and treads at least 11 inches deep. The classic carpenter's rule of thumb — that twice the riser height plus the tread depth should equal 24 to 25 inches — produces the most ergonomically comfortable stairs. Total staircase rise (floor-to-floor height) divided by the chosen riser height determines the number of steps, which in turn determines the total horizontal run and the space the staircase will occupy. Code also requires uniform riser height throughout the flight, with no more than 3/8-inch variation between the tallest and shortest riser. Stair width must be at least 36 inches in residential construction, headroom must clear 6 feet 8 inches, and handrails are required when there are four or more risers. Getting these dimensions right is critical for both safety and building inspection approval.

Understanding Stair Calculations

Proper stair design balances safety, comfort, and building codes.

The key measurements are:

  • total rise (floor-to-floor height)
  • riser height (step height)
  • tread depth (step depth)
  • total run (horizontal distance)

All risers must be equal height within 3/8 inch.

Building Code Requirements

IRC code specifies:

  • Riser height 4-7.75 inches
  • tread depth minimum 10 inches
  • stair width minimum 36 inches
  • headroom minimum 80 inches

Handrails required when 4 or more risers. All measurements must be consistent throughout the stairway.

Stringer Design

Stringers are the diagonal boards supporting the stairs. Cut from 2×12 lumber with at least 3.5 inches remaining below tread cuts.

Use 3 stringers for stairs wider than 36 inches. For outdoor stairs, use pressure-treated lumber.

How to Calculate Stair Rise, Run, and Number of Steps

To calculate stairs, first divide the total rise (floor-to-floor height) by your target riser height to find the number of risers: Risers = Total Rise ÷ Riser Height, rounded to a whole number.

The number of treads is one less than the number of risers, and the total run equals treads × tread depth. Then recompute the actual riser height as Total Rise ÷ Number of Risers so every step is equal.

For example, a 108-inch rise ÷ 7.5 inches gives 14.4, rounded to 14 risers, so each actual riser is 108 ÷ 14 = 7.71 inches. Georgia State University's HyperPhysics and Khan Academy both cover the underlying right-triangle geometry.

How to Calculate Stair Stringer Length with the Pythagorean Theorem

Stringer length is the diagonal support board length, found with the Pythagorean theorem: Stringer = √(Total Rise² + Total Run²).

For a 36-inch total rise and a 40-inch total run, the calculation is √(36² + 40²) = √(1296 + 1600) = √2896 ≈ 53.8 inches.

This is the theoretical length along the incline before you account for the top and bottom mounting cuts, so add roughly 12 inches of extra stock when buying lumber. The same triangle relationship is described in Encyclopaedia Britannica's entry on the Pythagorean theorem and in Khan Academy geometry lessons, and it is the identical math used for roof rafters.

How to Find the Stair Angle and Slope in Degrees

The stair angle is the pitch of the flight measured from horizontal, calculated as Angle = arctan(Total Rise ÷ Total Run), or equivalently arctan(Riser Height ÷ Tread Depth).

For a 36-inch rise over a 40-inch run, Angle = arctan(36 ÷ 40) = arctan(0.9) ≈ 42°. Comfortable residential stairs typically fall between 30° and 37°, while space-saving stairs may reach up to 42° to 45° before becoming uncomfortably steep.

A lower angle needs more floor space but climbs more easily. HyperPhysics (Georgia State University) and Khan Academy explain the inverse-tangent trigonometry that converts the rise-over-run ratio into a slope angle.

What Units Are Used for Stair Dimensions (Inches, mm, and SI)

In the United States, stair dimensions are conventionally given in inches for rise, run, tread, and riser measurements, and in feet-and-inches for total heights.

Most of the world uses the SI base unit of length, the metre (m), and its submultiple the millimetre (mm), where 1 inch equals exactly 25.4 mm by the international definition maintained by NIST and BIPM. So a 7.75-inch maximum riser equals 196.85 mm, and a 10-inch minimum tread equals 254 mm.

Angles are expressed in degrees. Because building codes specify limits in a fixed unit system, always convert consistently before comparing your design to IRC (inches) or Eurocode (mm) requirements.

Applying Stair Calculations to Decks, Basements, and Interior Stairs

Stair calculations apply anywhere you connect two levels.

For deck stairs, measure the total rise from the ground (or landing pad) to the top of the deck surface, then size risers around 7 to 7.5 inches and cut stringers from pressure-treated 2×12 lumber.

Interior staircases favor the 7 to 7.5-inch riser and 10 to 11-inch tread combination for daily comfort, while basement stairs sometimes run steeper to save space within code limits.

Commercial and egress stairs follow the stricter International Building Code, capping risers at 7 inches with 11-inch treads. The same rise/run geometry also drives ramps, ladders, and roof pitch, as documented by the International Code Council.

The 2R + T Comfort Rule and Why It Works

The carpenter's comfort rule states that twice the riser height plus the tread depth should equal 24 to 25 inches: 2R + T = 24–25. It approximates a natural walking stride so climbers do not overstep or stub their toes.

A 7-inch riser with an 11-inch tread gives 2(7) + 11 = 25 inches — ideal. A 7.5-inch riser with a 10-inch tread gives 2(7.5) + 10 = 25 inches, also comfortable.

Related historic rules include Riser + Tread = 17 to 18 inches and Riser × Tread ≈ 74 to 75 square inches. These ergonomic guidelines complement, but never override, the mandatory dimensional limits set by the IRC and IBC.

Common Mistakes When Calculating and Building Stairs

The most frequent and dangerous error is unequal riser heights: IRC allows no more than 3/8-inch variation between the tallest and shortest riser in a flight, and inconsistent steps cause trips.

A second common mistake is forgetting that the number of treads is one less than the number of risers, which throws off the total run.

Others include:

  • ignoring tread nosing overhang (0.75–1.25 inches typical)
  • skipping the required handrail once there are four or more risers
  • failing to keep at least 3.5 inches of stringer material below the tread cuts

Always verify headroom of at least 80 inches and re-measure the actual riser height after rounding.

How to Convert Total Rise Between Feet, Inches, and Millimetres

Total rise is often measured in mixed feet-and-inches but must be converted to a single unit before calculating.

To convert to inches, multiply whole feet by 12 and add the remaining inches: a 9-foot ceiling is 9 × 12 = 108 inches. To reach metric, multiply inches by 25.4 to get millimetres or by 0.0254 to get metres — the exact conversion factor defined by NIST and BIPM. So 108 inches = 2743.2 mm = 2.7432 m.

Dividing that 108-inch rise by a 7.5-inch target riser yields 14.4, rounded to 14 risers of 7.71 inches each. Consistent units prevent the rounding errors that produce uneven or non-compliant steps.

Frequently Asked Questions

sell

Tags