Stair Calculator

Calculate stair dimensions for construction — rise, run, number of steps, stringer length, angle, and IRC building code compliance.

15
Steps
Code
✓ Compliant

Stair dimensions

Enter your floor-to-floor height and desired tread depth.

Floor-to-floor height (9' 0.0")
Min 10" per IRC code
Min 36" per IRC code
Code: ¾"–1¼"

Common floor heights

Relevant tools

Browse all →

More construction calculators.

How to Calculate Stairs for Construction

Building stairs is one of the most mathematically precise tasks in residential construction. Every set of stairs must satisfy building codes, structural requirements, and human ergonomics simultaneously. The two most critical measurements are the rise (vertical height of each step) and the run (horizontal depth of each tread). Getting these wrong by even half an inch can create a tripping hazard or fail a building inspection.

The International Residential Code (IRC) Section R311.7 sets the standard that most US jurisdictions follow. The key requirements: maximum riser height of 7¾ inches, minimum tread depth of 10 inches, minimum stairway width of 36 inches, and minimum headroom of 6 feet 8 inches measured vertically from the tread nosing.

This calculator handles all the math automatically — you enter the total floor-to-floor height and desired tread depth, and it calculates the optimal number of steps, individual rise and run, stringer length, stair angle, and checks everything against IRC code requirements.

The Math Behind Stair Building

Step 1: Calculate Number of Risers

Divide the total rise (floor-to-floor height) by the target riser height (7–7.5 inches). Round to the nearest whole number. Example: 108" ÷ 7.25 = 14.9 → 15 risers.

Step 2: Calculate Individual Rise

Divide the total rise by the number of risers for the exact riser height: 108" ÷ 15 = 7.2" per riser. This must be ≤ 7¾" to pass code. The greatest riser height within a flight cannot exceed the smallest by more than ⅜".

Step 3: Calculate Total Run & Stringer

Number of treads = risers − 1 (the floor is the last "tread"). Total run = treads × tread depth: 14 × 10.5" = 147". Stringer length = √(108² + 147²) = 182.4" (15.2 feet).

Step 4: Check Comfort & Code

Apply the 2R + T rule: 2(7.2) + 10.5 = 24.9" — excellent comfort. Verify the angle is between 30° and 37° for ideal comfort (up to 42° is code-compliant). Check all dimensions against IRC R311.7.

IRC Building Code Requirements for Stairs

RequirementIRC CodeSection
Maximum riser height7¾" (197 mm)R311.7.5.1
Minimum tread depth10" (254 mm)R311.7.5.2
Minimum stairway width36" (914 mm)R311.7.1
Minimum headroom6'8" (2032 mm)R311.7.2
Nosing projection¾"–1¼"R311.7.5.3
Handrail height34"–38"R311.7.8.1
Max riser variation⅜" within flightR311.7.5.1
Landing requiredAt top and bottomR311.7.6

Source: 2021 International Residential Code (IRC). Local codes may differ — always check with your building department.

Stair Construction Tips from the Pros

  • Measure total rise precisely: Measure the floor-to-floor height at multiple points and use the most accurate reading. Even ¼" error gets multiplied across every riser. Place your tape measure on the finished floor surface, not the subfloor.
  • Account for finish materials: If you're adding hardwood, tile, or carpet to either floor, subtract the finish thickness from your total rise measurement before calculating. Carpet + pad typically adds ½"–¾" per floor.
  • Use a stair gauge: Clamp stair gauges onto a framing square at your rise and run measurements. This ensures every cut is identical. A framing square with stair gauges is the most essential stair-building tool.
  • Drop the first stringer: The bottom of the first stringer needs to be "dropped" (shortened) by the thickness of one tread. If your treads are 1" thick, cut 1" off the bottom of each stringer so the first step height matches the rest.
  • Never notch more than ⅓ of a stringer: Cutting too deeply weakens the stringer structurally. For a 2×12 (actual width 11¼"), never notch deeper than 3¾". If your rise or run requires deeper cuts, use a wider board or add a center stringer.
  • Add a center stringer for wide stairs: Any stairway wider than 36" should have a center stringer for structural support. This prevents treads from bouncing or sagging under load.

Common Stair Types Explained

  • Straight stairs: The simplest and most common type. One continuous flight from bottom to top. Requires the most horizontal floor space (typically 10–14 feet of run for a standard floor height) but is the easiest to build and the safest design.
  • L-shaped (quarter turn): Two flights connected by a landing at a 90° angle. Saves floor space compared to straight stairs and provides a resting spot. The landing must be at least as wide as the stairway (36" minimum).
  • U-shaped (half turn): Two parallel flights connected by a 180° landing. Very space-efficient and common in multi-story homes. Requires careful headroom planning where the upper flight passes over the lower.
  • Spiral stairs: Compact circular design that wraps around a central pole. Code requires a minimum clear width of 26" and a 7½" tread depth measured 12" from the narrow end. Not typically allowed as primary access stairs in many jurisdictions — check local codes.

Frequently Asked Questions

What is the ideal rise and run for stairs?

The ideal residential stair has a rise of 7–7.5 inches and a run (tread depth) of 10–11 inches. The comfort formula '2R + T' (twice the rise plus the tread) should equal 24–25 inches. The IRC building code sets a maximum rise of 7¾ inches and minimum run of 10 inches for residential stairs.

How do I calculate the number of stairs I need?

Divide the total rise (floor-to-floor height) by your desired riser height (typically 7–7.5 inches). Round to the nearest whole number. For example, a 9-foot (108-inch) total rise divided by 7.25 gives approximately 15 risers with 14 treads. The number of treads is always one less than the number of risers.

What is the building code for stairs?

The International Residential Code (IRC) Section R311.7 requires: maximum riser height of 7¾ inches, minimum tread depth of 10 inches, minimum width of 36 inches, minimum headroom of 6 feet 8 inches, and handrails between 34–38 inches high. The greatest riser height within a flight cannot exceed the smallest by more than ⅜ inch.

How long should stair stringers be?

Stringer length is calculated using the Pythagorean theorem: √(total rise² + total run²). For a typical 9-foot rise with 14 treads at 10.5-inch run, the total horizontal run is 147 inches (12.25 feet), giving a stringer length of about 15.2 feet. Always buy stringers slightly longer than calculated and cut to fit.

What is the 2R + T rule for stairs?

The '2R + T' rule is a comfort formula where R is the riser height and T is the tread depth. The sum should be between 24 and 25 inches for comfortable stairs. For example, a 7.25-inch rise with a 10.5-inch run gives 2(7.25) + 10.5 = 25 inches — ideal comfort. This rule has been used by architects since at least the 17th century.

Privacy and Methodology

All stair calculations run entirely in your browser — no measurements or project data are stored or transmitted. The calculator uses the Pythagorean theorem for stringer length, standard trigonometry for angle calculation, and validates against 2021 IRC Section R311.7 requirements. Always verify calculations with a local building inspector before construction, as local amendments to the IRC may apply.

Tool Vault — Stair Calculator 2026. Fast, private, and mobile-friendly.