Building stairs starts with one critical measurement: the total vertical rise from finished lower floor to finished upper floor. This free stair calculator computes your riser height, step count, total run, stringer length, and framing square settings—complete with a live 2D cut diagram and automatic IRC building code checks.
Enter your total rise above to get jobsite-ready measurements in fractions of an inch.
How to Use This Stair Calculator
- Measure total rise: Place a level across the upper floor or deck extending over the landing. Measure vertically down to the finished lower landing surface. Enter this in Total rise.
- Review your layout: The calculator determines your riser count, tread run, stringer length, and angle. Open Adjust to change tread depth, lumber dimensions, or top-step flush connections.
- Print cut sheet: Check the diagram for uncut throat depth and framing marks, verify code badges, and select Print cut sheet to take exact dimensions to your saw.
How Stair Rise and Run Is Calculated
Stair geometry must be consistent across every step. Variations over 1/4 inch cause trips and fail inspection. Here are the core formulas used by carpenters:
1. Number of Risers
The International Residential Code (IRC) limits residential riser height to 7 3/4 inches (7.75”). Divide total rise by 7.75 and round up:
Risers = Total Rise ÷ 7.75, rounded up
Always round up. Rounding to the nearest integer can produce risers taller than the legal 7 3/4” limit.
2. Unit Rise
Divide total rise evenly across the risers:
Unit Rise = Total Rise ÷ Risers
3. Number of Treads and Total Run
When the top step sits one riser below the upper floor:
Treads = Risers - 1
Total Run = Treads × Tread Depth
4. Stringer Length
Stringer diagonal length uses the Pythagorean theorem, accounting for bearing cuts:
Stringer Length = √(Total Rise² + (Total Run + Tread Depth)²)
5. Stringer Throat Depth
Notching a 2x12 (11 1/4” actual width) leaves solid timber beneath the cutout called the throat:
Altitude = (Unit Rise × Unit Run) ÷ (√(Unit Rise² + Unit Run²))
Throat = Board Width - Altitude
Building standards require at least 5 inches of uncut throat to carry structural loads safely.
6. Bottom Riser Drop Cut
Installing a tread raises the first step. Trim the bottom of the stringer by the tread thickness so all step heights match:
Bottom Riser Cut = Unit Rise - Tread Thickness
Worked Example: 68 1/2” Total Rise
A residential stair with 68 1/2 inches total rise, 10 1/2-inch tread depth, and 1-inch tread thickness:
- Total Rise: 68 1/2” (68.5”)
- Risers: 68.5 ÷ 7.75 = 8.84 → 9 risers
- Unit Riser Height: 68.5 ÷ 9 = 7.6111” → 7 5/8”
- Treads: 9 - 1 = 8 treads
- Tread Depth (Unit Run): 10 1/2”
- Total Run: 8 × 10.5” = 84” → 7’ 0”
- Incline Angle: 35.94°
- Unit Step Diagonal: √(7.6111² + 10.5²) = 12.9684” → 12 15/16”
- Stringer Length: √(68.5² + (84 + 10.5)²) = 116.7155” → 116 11/16” (9’ 8 11/16”)
- Lumber Stock: 10-foot 2x12
- Uncut Throat: 11.25” - (7.6111 × 10.5 ÷ 12.9684) = 5.0876” → 5 1/16” (Passes code, > 5”)
- Bottom Cut Adjustment: 7.6111” - 1.0” = 6.6111” → 6 5/8”
- Framing Square: Tongue at 7 5/8”, Blade at 10 1/2”
All IRC checks pass.
Residential Stair Code Requirements (IRC)
Residential stairs in the US are governed by the International Residential Code (IRC 2021 R311.7 / 2024 R318.7):
| Code Dimension | IRC Requirement | Construction Note |
|---|---|---|
| Maximum Riser Height | 7 3/4 inches (197 mm) | Vertical distance between adjacent treads |
| Minimum Tread Depth | 10 inches (254 mm) | Measured nosing-to-nosing |
| Tread Nosing | 3/4” to 1 1/4” | Required on treads under 11” with solid risers |
| Maximum Variation | 3/8 inch (9.5 mm) | Greatest vs smallest riser or tread in a flight |
| Minimum Headroom | 6 feet 8 inches (80”) | Measured vertically from nosing plane |
| Minimum Clear Width | 36 inches (914 mm) | Clear width across stairway |
| Handrail Requirement | Required at 4+ risers | 34” to 38” height above nosings |
| Maximum Flight Rise | 151 inches (12’ 7”) | Single flight limit before requiring a landing |
| Landing Dimensions | 36” in travel direction | Must match or exceed stairway width |
Based on the IRC (2021 R311.7 / 2024 R318.7). Local codes vary — confirm with your building department before building.
Frequently Asked Questions
What is the standard rise and run for residential stairs?
Under the IRC, the maximum riser height is 7 3/4 inches and minimum run is 10 inches. Builders commonly use a 7 1/2” rise with a 10 1/2” run, creating an angle near 36 degrees.
Why do you cut the bottom of a stair stringer?
Trimming the thickness of one tread off the bottom of the stringer ensures the first finished step matches all others. Skipping this makes the first step too tall and top step too short.
What size lumber should I use for stair stringers?
Always use 2x12 lumber (actual width 11 1/4”). A 2x12 preserves at least 5 inches of uncut throat wood under notches, ensuring structural strength under heavy foot traffic.
How do I calculate total run?
Multiply treads by tread depth. When the top tread sits one riser below the floor, tread count is risers minus one ((Risers - 1) × Tread Depth).
When is a landing required on a staircase?
The IRC requires an intermediate landing if total vertical rise exceeds 151 inches (12 feet 7 inches). Landings must provide at least 36 inches of clearance in travel direction.
How do I set up a framing square to mark stringers?
Clamp stair gauges onto your square: align unit rise on the tongue and unit run on the blade. Slide along the 2x12 edge to mark each notch.