Stair Calculator
Calculate stair dimensions and materials including riser height, tread depth, stringers, and IBC/IRC code compliance.
Total Rise (Floor to Floor)
Number of Steps
15 steps
- Meets residential building code (IRC) requirements
Building Code Reference
- Max riser: 7-3/4"
- Min tread: 10"
- Min width: 36"
- Min headroom: 6'8"
- Max riser: 7"
- Min tread: 11"
- Min width: 44"
- Min headroom: 6'8"
- Comfort formula: 2R + T = 24-25 (riser + tread relationship)
- All risers must be within 3/8" of each other
- Use a stair gauge on your framing square for consistent cuts
- Drop the first stringer by tread thickness for finish floor
- Always check local codes - they may be stricter than IRC/IBC
Related Calculators
About This Calculator
Building code-compliant stairs requires precise calculations for safety, comfort, and legal approval. Our comprehensive Stair Calculator determines the optimal riser height, tread depth, number of steps, stringer dimensions, and complete materials list for any floor-to-floor height. The calculator verifies IRC (residential) and IBC (commercial) code compliance, checks the 3/8" variance rule, and applies the 2R+T comfort formula to ensure stairs that are both safe and comfortable to use.
Whether you're building interior stairs, deck stairs, basement access, or exterior entry steps, this calculator provides all dimensions needed for framing, cutting stringers, and ordering materials. In 2026, stair construction using standard 2×12 stringers, oak or pine treads, and basic materials costs $75-200 per linear foot of stair run for DIY projects, or $150-400 per linear foot professionally installed. Enter your total rise (floor-to-floor height) and desired width to generate a complete stair design with code compliance verification and lumber cutting dimensions.
Trusted Sources
How to Use the Stair Calculator
- 1Measure the total rise carefully—floor-to-floor height including all finish flooring materials.
- 2Enter the total rise in inches or convert from feet (e.g., 9' = 108").
- 3Specify the desired tread depth (10-11" typical) or let the calculator optimize using the 2R+T formula.
- 4Enter the stair width (36" minimum residential, 44" minimum commercial).
- 5Select stair type: straight run, L-shaped with landing, or U-shaped with landing.
- 6Toggle open or closed risers based on your design preference and code requirements.
- 7Review calculated dimensions and verify code compliance status.
- 8Check the stringer cutting diagram for layout and framing square settings.
- 9Use Advanced mode for materials pricing and complete lumber takeoff.
Formula
Number of Risers = Total Rise ÷ Target Riser Height (7" ideal)The formula divides total rise by the ideal 7" riser height to determine the number of steps. The actual riser height is then calculated by dividing total rise by the number of risers, ensuring uniform step heights. Tread depth uses the comfort formula: 2R + T = 24-25, where R is riser height and T is tread depth.
Building Code Requirements (IRC & IBC)
Stairs must meet strict dimensional requirements for safety. Failure to comply can result in failed inspections, insurance issues, and serious injuries:
IRC (Residential) Requirements - 2021:
| Dimension | Requirement | Notes |
|---|---|---|
| Maximum riser height | 7-3/4" (7.75") | Measured vertically |
| Minimum tread depth | 10" | Horizontal run |
| Minimum stair width | 36" | Clear width |
| Maximum riser variance | 3/8" | Between any two risers |
| Minimum headroom | 6'-8" (80") | Measured vertically |
| Handrail height | 34" to 38" | Above stair nosing |
| Nosing projection | 3/4" to 1-1/4" | Beyond riser face |
| Landing size | Width × 36" min | At top and bottom |
IBC (Commercial) Requirements - 2021:
| Dimension | Requirement | Notes |
|---|---|---|
| Maximum riser height | 7" | Stricter than residential |
| Minimum tread depth | 11" | Larger than residential |
| Minimum stair width | 44" | For occupancy <50 |
| Maximum riser variance | 3/8" | Same as residential |
| Minimum headroom | 6'-8" (80") | Same as residential |
| Handrail | Both sides required | Code requirement |
Critical Code Points:
- All risers must be within 3/8" of each other in height
- All treads must be within 3/8" of each other in depth
- Open risers may have maximum 4" gap (child safety)
- Winding treads have specific measurement requirements
- Guard rails required when drop exceeds 30"
The Stair Comfort Formula (2R + T)
The 2R + T formula ensures stairs match natural human gait for comfortable, safe ascent and descent:
The Rule of 24-25:
2R + T = 24 to 25
Where:
R = Riser height in inches
T = Tread depth in inches
Why 24-25? This range matches the average adult stride when climbing stairs. Too steep (high 2R+T) creates tiring, dangerous stairs. Too shallow (low 2R+T) results in awkward gait and trip hazards.
Optimal Combinations Meeting Code:
| Riser (R) | Tread (T) | 2R + T | Code Compliant | Comfort Level |
|---|---|---|---|---|
| 7.00" | 11.00" | 25.00 | Yes | Excellent |
| 7.25" | 10.50" | 25.00 | Yes | Excellent |
| 7.50" | 10.00" | 25.00 | Yes | Good |
| 7.75" | 10.00" | 25.50 | Yes (barely) | Acceptable |
| 6.50" | 12.00" | 25.00 | Yes | Excellent |
| 6.75" | 11.50" | 25.00 | Yes | Excellent |
What Happens Outside the Range:
| 2R + T Value | Effect | Example |
|---|---|---|
| Under 23 | Awkward gait, trip hazard | 6" riser + 10" tread |
| 23-24 | Slightly shallow | 6.5" riser + 10" tread |
| 24-25 | Ideal comfort zone | 7" riser + 11" tread |
| 25-26 | Slightly steep | 7.5" riser + 10" tread |
| Over 26 | Tiring, dangerous | 8" riser + 10" tread |
Rule of 17-18 (Alternative): Some builders use R + T = 17 to 18
- Same principle, different expression
- 7" + 11" = 18 (ideal)
- 7.5" + 10" = 17.5 (acceptable)
Calculating Risers and Treads
Accurate calculations ensure code compliance and consistent, safe stairs:
Step 1: Measure Total Rise Measure floor-to-floor including ALL finish materials:
Total Rise = Subfloor to Subfloor + Upper Finish Floor + Lower Finish Floor Gap
Example: 97" + 0.75" (hardwood) + 0.25" (vinyl) = 98"
Step 2: Calculate Number of Risers
Target Risers = Total Rise ÷ 7" (ideal height)
Example: 108" ÷ 7" = 15.43
Round to: 15 or 16 risers
Step 3: Calculate Actual Riser Height
Riser Height = Total Rise ÷ Number of Risers
With 15 risers: 108" ÷ 15 = 7.2" ✓ (within code)
With 16 risers: 108" ÷ 16 = 6.75" ✓ (within code)
Step 4: Calculate Tread Depth (using 2R+T = 25)
Tread Depth = 25 - (2 × Riser Height)
With 7.2" riser: 25 - 14.4 = 10.6" tread
With 6.75" riser: 25 - 13.5 = 11.5" tread
Step 5: Calculate Total Run
Number of Treads = Number of Risers - 1
Total Run = Number of Treads × Tread Depth
Example: (15 - 1) × 10.6" = 148.4" = 12.4 feet
Step 6: Verify Code Compliance
- Riser: 7.2" < 7.75" ✓
- Tread: 10.6" ≥ 10" ✓
- Variance: All risers equal (calculated) ✓
Quick Reference Table:
| Total Rise | Risers | Riser Height | Treads | Total Run |
|---|---|---|---|---|
| 96" (8') | 13-14 | 6.9"-7.4" | 12-13 | 10'-11' |
| 108" (9') | 15-16 | 6.75"-7.2" | 14-15 | 12'-13' |
| 120" (10') | 16-17 | 7.1"-7.5" | 15-16 | 13'-14' |
Stringer Design and Cutting
Stringers are the structural backbone of stairs—proper layout and cutting is critical:
Stringer Sizing Requirements:
| Stair Width | Number of Stringers | Stringer Spacing |
|---|---|---|
| Up to 30" | 2 (minimum) | N/A |
| 30" to 36" | 3 | 15"-18" |
| 36" to 48" | 3-4 | 12"-16" |
| 48" to 60" | 4 | 12"-15" |
| Each +24" | +1 additional | Max 16" |
Minimum Remaining Stringer Depth:
| Stock Size | Minimum Remaining | Notes |
|---|---|---|
| 2×10 | 3.5" (effective 5") | Marginal for most stairs |
| 2×12 | 5" (effective 5") | Standard, most common |
| 2×14 | 5" | Heavy-duty applications |
Stringer Length Calculation:
Stringer Length = √(Total Rise² + Total Run²)
Example for 108" rise, 148" run:
Length = √(108² + 148²) = √(11,664 + 21,904) = √33,568 = 183.2"
Add 12" for bottom cut = 195" (order 16' or 18' lumber)
Framing Square Layout:
- Set stair gauges at riser height (e.g., 7.2") and tread depth (e.g., 10.6")
- Position square on stringer stock
- Mark each rise and run, progressing along the board
- Mark bottom cut (drop by one tread thickness)
- Mark top cut (attach to header or landing)
Stringer Cutting Checklist:
| Step | Action | Verification |
|---|---|---|
| 1 | Mark all rises and runs | Count equals calculated |
| 2 | Mark bottom drop | Equals tread thickness |
| 3 | Mark top attachment | Per connection method |
| 4 | Cut with circular saw | Stop 1" short of corners |
| 5 | Finish corners | Handsaw or reciprocating |
| 6 | Test fit | Check level, rise heights |
2026 Stringer Lumber Costs:
| Size | Length | Price Range |
|---|---|---|
| 2×12×10' | 10 LF | $20-28 |
| 2×12×12' | 12 LF | $24-34 |
| 2×12×14' | 14 LF | $28-40 |
| 2×12×16' | 16 LF | $32-46 |
Tread and Riser Materials
Tread and riser materials affect both appearance and durability—choose based on location and use:
Tread Material Comparison (2026):
| Material | Cost per Step | Durability | Best For |
|---|---|---|---|
| Pine/SPF (1" thick) | $8-15 | 10-15 years | Interior, carpet |
| Oak (1" thick) | $25-45 | 25-40 years | Interior, stain-grade |
| Poplar (1" thick) | $15-25 | 15-25 years | Interior, paint-grade |
| Pressure-treated (5/4×12) | $12-20 | 15-25 years | Exterior |
| Composite decking | $35-60 | 25-50 years | Exterior, low maintenance |
| Prefinished oak | $40-70 | 25-40 years | Interior, no finish needed |
| LVL/engineered | $30-50 | 25+ years | Heavy traffic |
Riser Material Options:
| Material | Cost per Step | Notes |
|---|---|---|
| Pine (3/4" thick) | $5-10 | Standard interior |
| MDF (3/4" thick) | $4-8 | Paint-grade only |
| Oak (3/4" thick) | $15-30 | Match stain-grade treads |
| No riser (open) | $0 | Modern look, code restrictions |
Tread Sizing:
| Tread Depth | Standard Lumber | Actual Overhang |
|---|---|---|
| 10" | 1×12 (11.25") | 1-1/4" |
| 10.5" | 1×12 (11.25") | 3/4" |
| 11" | 1×12 (11.25") | 1/4" |
| 11"+ | Glue-up or custom | Per design |
Nosing Requirements:
- Projection: 3/4" to 1-1/4" (IRC)
- Radius: 9/16" maximum
- Uniform: All treads must have same nosing
- Open risers: Still require nosing
Materials List Example (15-Step Stair, 36" wide):
| Material | Quantity | Unit Cost | Total |
|---|---|---|---|
| 2×12×16' stringers | 3 | $38 | $114 |
| Oak treads 1×12×4' | 15 | $35 | $525 |
| Oak risers 3/4×8×4' | 15 | $18 | $270 |
| Construction adhesive | 2 tubes | $8 | $16 |
| #8×3" screws (box) | 1 | $25 | $25 |
| Total Materials | $950 |
Headroom and Clearance Requirements
Headroom violations are a common cause of failed inspections—plan ceiling openings carefully:
Minimum Headroom:
| Code | Minimum | Measured |
|---|---|---|
| IRC (Residential) | 6'-8" (80") | Vertical from nosing |
| IBC (Commercial) | 6'-8" (80") | Vertical from nosing |
| Basement stairs | 6'-8" (80") | Same as above |
Calculating Ceiling Opening:
Opening Length = (Number of treads beyond wall × Tread Depth) + Stringer Thickness
Headroom Calculation Method:
- Draw stairs to scale on graph paper
- Mark 80" vertical line from each nosing
- Connect tops of lines to find headroom line
- Ceiling must be above this line throughout
Opening Sizing Example: For 108" rise, 10.6" treads, with 80" headroom requirement:
- Determine how many treads fit below existing ceiling
- Calculate remaining treads requiring opening
- Add 2" clearance for framing
Common Headroom Issues:
| Problem | Solution |
|---|---|
| Existing floor joist in way | Enlarge opening, add header |
| Ductwork interference | Reroute or relocate |
| Ceiling too low | Landing, change stair direction |
| Insufficient opening | Extend opening into room |
Landing Requirements:
| Landing Type | Minimum Size | When Required |
|---|---|---|
| Top landing | Width × 36" depth | At doors, direction changes |
| Bottom landing | Width × 36" depth | Code requirement |
| Intermediate | Width × Width | Direction changes |
Door Swing at Landing:
- Doors cannot swing over stairs
- Landing must accommodate full door swing
- Exception: Screen doors, storm doors
Handrail and Guard Requirements
Handrails and guards are critical safety features with specific code requirements:
Handrail Requirements (IRC R311.7.8):
| Requirement | Specification |
|---|---|
| Height | 34" to 38" above nosing |
| Graspability | 1-1/4" to 2" diameter round/oval |
| Returns | Must return to wall or post |
| Continuity | Full length of stairs |
| Required when | 4+ risers |
Guard (Baluster) Requirements:
| Requirement | Specification |
|---|---|
| Height | 36" minimum (42" at landings over 30" drop) |
| Baluster spacing | 4" maximum gap (4" sphere cannot pass) |
| Bottom gap | 4" maximum to tread |
| Climbability | No horizontal rails climbable by children |
Handrail Graspability:
| Shape | Acceptable | Dimension |
|---|---|---|
| Round | Yes | 1-1/4" to 2" diameter |
| Oval | Yes | 1-3/4" to 2-1/4" across |
| Type I | Yes | Per code figure |
| Flat board | No | Not graspable |
Material Costs (2026):
| Component | Linear Foot Cost | 12' Run Cost |
|---|---|---|
| Oak handrail | $8-15 | $96-180 |
| Pine handrail | $4-8 | $48-96 |
| Metal handrail | $12-25 | $144-300 |
| Oak balusters (each) | $8-15 | - |
| Newel posts (each) | $50-200 | - |
| Metal balusters (each) | $3-8 | - |
Baluster Quantity Calculation:
Balusters per Tread = (Tread Depth - 1") ÷ 4" (spacing)
Example: (11" - 1") ÷ 4 = 2.5, round up to 3 balusters per tread
Total Balusters = Treads × Balusters per Tread
Special Stair Configurations
Different configurations solve space constraints while maintaining code compliance:
Straight Run Stairs:
- Simplest design, easiest to build
- Requires most floor space (12-15' run typical)
- Best for basements, exterior applications
- Lowest cost per step
L-Shaped Stairs with Landing:
- 90° turn at landing
- Reduces required straight run
- Landing must be minimum 36" × 36"
- Add one tread equivalent for landing
U-Shaped Stairs with Landing:
- 180° turn at landing
- Most compact footprint
- Landing typically equals stair width × 2
- Common in two-story residential
Winding Stairs (Winders):
| Code Requirement | Specification |
|---|---|
| Minimum tread at narrow end | 6" |
| Tread measurement point | 12" from narrow end |
| Minimum at measurement | 10" (IRC) |
| Consecutive winders | Maximum 4 without landing |
Spiral Stairs (IRC R311.7.10.1):
| Requirement | Specification |
|---|---|
| Minimum width | 26" |
| Tread depth at 12" from narrow | 7-1/2" |
| All treads identical | Required |
| Headroom | 6'-6" (78") |
| Rise | 9-1/2" maximum |
Space Requirements Comparison:
| Configuration | Floor Space (9' rise) | Advantages |
|---|---|---|
| Straight | 12' × 3' = 36 SF | Simplest |
| L-shaped | 8' × 6' = 48 SF | Direction change |
| U-shaped | 6' × 8' = 48 SF | Compact footprint |
| Spiral | 5' diameter = 20 SF | Minimum space |
Common Stair Framing Methods
Different framing methods suit different applications and skill levels:
Cut Stringer (Traditional):
- Stringers cut with rise/run notches
- Treads rest on notches
- Most common residential method
- Requires 2×12 minimum stock
Closed Stringer with Cleats:
- Stringers not notched
- Metal cleats support treads
- Cleaner appearance
- Stronger stringer section
Closed Stringer with Routed Housing:
- Stringers routed with tread/riser pockets
- Treads wedged from behind
- Highest quality appearance
- Most labor-intensive
Prefab Steel Stringer:
- Pre-manufactured adjustable stringers
- Bolt together assembly
- Fastest installation
- Limited to standard rises
Framing Method Comparison:
| Method | Skill Level | Cost | Appearance |
|---|---|---|---|
| Cut stringer | Moderate | Low | Good |
| Cleats | Easy | Medium | Good |
| Routed housing | Advanced | High | Excellent |
| Prefab steel | Easy | Medium | Industrial |
Attachment Methods:
| Location | Method | Hardware |
|---|---|---|
| Top to header | Hanger or ledger | Simpson LSC |
| Bottom to floor | Anchor or blocking | Concrete anchor |
| Stringer to wall | Lag screws | 3/8" × 4" |
| Tread to stringer | Screws + adhesive | #10 × 3" |
2026 Hardware Costs:
| Item | Price | Per Stair |
|---|---|---|
| Simpson LSC (top) | $6-10 each | 3 |
| Tread brackets | $3-6 each | 30-45 |
| Construction adhesive | $8/tube | 2 tubes |
| Screws (box) | $25 | 1 box |
Pro Tips
- 💡Measure total rise at least twice at different locations—floors aren't always level, and errors here affect every step.
- 💡Use a story pole (straight board marked with each riser height) to verify consistent rises during installation.
- 💡Cut one stringer first and test-fit before cutting the rest—patterns prevent costly mistakes.
- 💡Drop the bottom of all stringers by exactly one tread thickness for consistent first and last risers.
- 💡Install temporary cleats on stringers during installation to hold treads while you work—much easier than helpers.
- 💡Apply construction adhesive to all tread/stringer joints to eliminate squeaks—screws alone will loosen over time.
- 💡Predrill all screw holes in treads near the ends to prevent splitting, especially in oak and hardwoods.
- 💡Install treads from bottom to top so you can stand on completed steps as you work your way up.
- 💡Check for level and plumb at every step during stringer installation—small errors compound quickly.
- 💡Leave 1/8" gap at wall ends of treads to allow for wood movement—caulk the gap after finishing.
- 💡Use a framing square with stair gauges for consistent, accurate stringer layout—don't trust freehand marking.
- 💡Finish all treads and risers before installation for professional results—on-site finishing is difficult.
Frequently Asked Questions
A 9-foot (108") floor-to-floor rise typically requires 14-15 risers with 7.2"-7.7" rise each. With 15 risers at 7.2" each, you'll have 14 treads at 10.6" depth, creating about 12.4 feet of horizontal run. This meets IRC residential code (max 7.75" riser, min 10" tread).

