Skip to main content
🪜

Stair Calculator

Calculate stair dimensions and materials including riser height, tread depth, stringers, and IBC/IRC code compliance.

Calculator Mode
📏

Total Rise (Floor to Floor)

9' 0.0" total height
in
in

Number of Steps

15 steps

Riser Height7.20"
Tread Depth10.5"
📐Calculated Dimensions
15
Steps/Risers
7.20"
Riser Height
10.5"
Tread Depth
12.3'
Total Run
147.0"
15.2'
Stringer Length
182.4"
9.0'
Total Rise
Building Code Compliance
IRC (Residential)
Compliant
IBC (Commercial)
Non-Compliant
  • Meets residential building code (IRC) requirements
🪵Materials List
3
Stringers
2×12 × 16'
14
Treads
1×12 boards
15
Risers
1×8 boards
28
Balusters
For railing

Building Code Reference

IRC (Residential)
  • Max riser: 7-3/4"
  • Min tread: 10"
  • Min width: 36"
  • Min headroom: 6'8"
IBC (Commercial)
  • Max riser: 7"
  • Min tread: 11"
  • Min width: 44"
  • Min headroom: 6'8"
Pro Tips
  • 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

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.

How to Use the Stair Calculator

  1. 1Measure the total rise carefully—floor-to-floor height including all finish flooring materials.
  2. 2Enter the total rise in inches or convert from feet (e.g., 9' = 108").
  3. 3Specify the desired tread depth (10-11" typical) or let the calculator optimize using the 2R+T formula.
  4. 4Enter the stair width (36" minimum residential, 44" minimum commercial).
  5. 5Select stair type: straight run, L-shaped with landing, or U-shaped with landing.
  6. 6Toggle open or closed risers based on your design preference and code requirements.
  7. 7Review calculated dimensions and verify code compliance status.
  8. 8Check the stringer cutting diagram for layout and framing square settings.
  9. 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:

DimensionRequirementNotes
Maximum riser height7-3/4" (7.75")Measured vertically
Minimum tread depth10"Horizontal run
Minimum stair width36"Clear width
Maximum riser variance3/8"Between any two risers
Minimum headroom6'-8" (80")Measured vertically
Handrail height34" to 38"Above stair nosing
Nosing projection3/4" to 1-1/4"Beyond riser face
Landing sizeWidth × 36" minAt top and bottom

IBC (Commercial) Requirements - 2021:

DimensionRequirementNotes
Maximum riser height7"Stricter than residential
Minimum tread depth11"Larger than residential
Minimum stair width44"For occupancy <50
Maximum riser variance3/8"Same as residential
Minimum headroom6'-8" (80")Same as residential
HandrailBoth sides requiredCode 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 + TCode CompliantComfort Level
7.00"11.00"25.00YesExcellent
7.25"10.50"25.00YesExcellent
7.50"10.00"25.00YesGood
7.75"10.00"25.50Yes (barely)Acceptable
6.50"12.00"25.00YesExcellent
6.75"11.50"25.00YesExcellent

What Happens Outside the Range:

2R + T ValueEffectExample
Under 23Awkward gait, trip hazard6" riser + 10" tread
23-24Slightly shallow6.5" riser + 10" tread
24-25Ideal comfort zone7" riser + 11" tread
25-26Slightly steep7.5" riser + 10" tread
Over 26Tiring, dangerous8" 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 RiseRisersRiser HeightTreadsTotal Run
96" (8')13-146.9"-7.4"12-1310'-11'
108" (9')15-166.75"-7.2"14-1512'-13'
120" (10')16-177.1"-7.5"15-1613'-14'

Stringer Design and Cutting

Stringers are the structural backbone of stairs—proper layout and cutting is critical:

Stringer Sizing Requirements:

Stair WidthNumber of StringersStringer Spacing
Up to 30"2 (minimum)N/A
30" to 36"315"-18"
36" to 48"3-412"-16"
48" to 60"412"-15"
Each +24"+1 additionalMax 16"

Minimum Remaining Stringer Depth:

Stock SizeMinimum RemainingNotes
2×103.5" (effective 5")Marginal for most stairs
2×125" (effective 5")Standard, most common
2×145"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:

  1. Set stair gauges at riser height (e.g., 7.2") and tread depth (e.g., 10.6")
  2. Position square on stringer stock
  3. Mark each rise and run, progressing along the board
  4. Mark bottom cut (drop by one tread thickness)
  5. Mark top cut (attach to header or landing)

Stringer Cutting Checklist:

StepActionVerification
1Mark all rises and runsCount equals calculated
2Mark bottom dropEquals tread thickness
3Mark top attachmentPer connection method
4Cut with circular sawStop 1" short of corners
5Finish cornersHandsaw or reciprocating
6Test fitCheck level, rise heights

2026 Stringer Lumber Costs:

SizeLengthPrice 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):

MaterialCost per StepDurabilityBest For
Pine/SPF (1" thick)$8-1510-15 yearsInterior, carpet
Oak (1" thick)$25-4525-40 yearsInterior, stain-grade
Poplar (1" thick)$15-2515-25 yearsInterior, paint-grade
Pressure-treated (5/4×12)$12-2015-25 yearsExterior
Composite decking$35-6025-50 yearsExterior, low maintenance
Prefinished oak$40-7025-40 yearsInterior, no finish needed
LVL/engineered$30-5025+ yearsHeavy traffic

Riser Material Options:

MaterialCost per StepNotes
Pine (3/4" thick)$5-10Standard interior
MDF (3/4" thick)$4-8Paint-grade only
Oak (3/4" thick)$15-30Match stain-grade treads
No riser (open)$0Modern look, code restrictions

Tread Sizing:

Tread DepthStandard LumberActual 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 customPer 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):

MaterialQuantityUnit CostTotal
2×12×16' stringers3$38$114
Oak treads 1×12×4'15$35$525
Oak risers 3/4×8×4'15$18$270
Construction adhesive2 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:

CodeMinimumMeasured
IRC (Residential)6'-8" (80")Vertical from nosing
IBC (Commercial)6'-8" (80")Vertical from nosing
Basement stairs6'-8" (80")Same as above

Calculating Ceiling Opening:

Opening Length = (Number of treads beyond wall × Tread Depth) + Stringer Thickness

Headroom Calculation Method:

  1. Draw stairs to scale on graph paper
  2. Mark 80" vertical line from each nosing
  3. Connect tops of lines to find headroom line
  4. 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:

ProblemSolution
Existing floor joist in wayEnlarge opening, add header
Ductwork interferenceReroute or relocate
Ceiling too lowLanding, change stair direction
Insufficient openingExtend opening into room

Landing Requirements:

Landing TypeMinimum SizeWhen Required
Top landingWidth × 36" depthAt doors, direction changes
Bottom landingWidth × 36" depthCode requirement
IntermediateWidth × WidthDirection 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):

RequirementSpecification
Height34" to 38" above nosing
Graspability1-1/4" to 2" diameter round/oval
ReturnsMust return to wall or post
ContinuityFull length of stairs
Required when4+ risers

Guard (Baluster) Requirements:

RequirementSpecification
Height36" minimum (42" at landings over 30" drop)
Baluster spacing4" maximum gap (4" sphere cannot pass)
Bottom gap4" maximum to tread
ClimbabilityNo horizontal rails climbable by children

Handrail Graspability:

ShapeAcceptableDimension
RoundYes1-1/4" to 2" diameter
OvalYes1-3/4" to 2-1/4" across
Type IYesPer code figure
Flat boardNoNot graspable

Material Costs (2026):

ComponentLinear Foot Cost12' 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 RequirementSpecification
Minimum tread at narrow end6"
Tread measurement point12" from narrow end
Minimum at measurement10" (IRC)
Consecutive windersMaximum 4 without landing

Spiral Stairs (IRC R311.7.10.1):

RequirementSpecification
Minimum width26"
Tread depth at 12" from narrow7-1/2"
All treads identicalRequired
Headroom6'-6" (78")
Rise9-1/2" maximum

Space Requirements Comparison:

ConfigurationFloor Space (9' rise)Advantages
Straight12' × 3' = 36 SFSimplest
L-shaped8' × 6' = 48 SFDirection change
U-shaped6' × 8' = 48 SFCompact footprint
Spiral5' diameter = 20 SFMinimum 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:

MethodSkill LevelCostAppearance
Cut stringerModerateLowGood
CleatsEasyMediumGood
Routed housingAdvancedHighExcellent
Prefab steelEasyMediumIndustrial

Attachment Methods:

LocationMethodHardware
Top to headerHanger or ledgerSimpson LSC
Bottom to floorAnchor or blockingConcrete anchor
Stringer to wallLag screws3/8" × 4"
Tread to stringerScrews + adhesive#10 × 3"

2026 Hardware Costs:

ItemPricePer Stair
Simpson LSC (top)$6-10 each3
Tread brackets$3-6 each30-45
Construction adhesive$8/tube2 tubes
Screws (box)$251 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).

Nina Bao
Written byNina BaoContent Writer
Updated January 5, 2026

More Calculators You Might Like