Stair Stringer Calculator Formula

Understand the math behind the stair stringer calculator. Each variable explained with a worked example.

Formulas Used

Number of Risers

number_of_risers = num_risers

Actual Riser Height

actual_riser_height = actual_riser

Number of Treads

number_of_treads = num_treads

Total Run (Horizontal)

total_run = num_treads * tread_depth

Stringer Length

stringer_length = sqrt(pow(total_rise, 2) + pow(num_treads * tread_depth, 2))

Stringers Needed

num_stringers = stair_width <= 36 ? 3 : (floor(stair_width / 16) + 1)

Variables

VariableDescriptionDefault
total_riseTotal Rise (Floor to Floor)(inches)108
desired_riserDesired Riser Height(inches)7.5
tread_depthTread Depth(inches)10
stair_widthStair Width(inches)36
num_risersDerived value= round(total_rise / desired_riser)calculated
actual_riserDerived value= total_rise / round(total_rise / desired_riser)calculated
num_treadsDerived value= round(total_rise / desired_riser) - 1calculated

How It Works

How to Calculate Stair Stringers

Formula

Number of Risers = round(Total Rise / Desired Riser Height)

Actual Riser = Total Rise / Number of Risers

Number of Treads = Number of Risers - 1

Total Run = Number of Treads × Tread Depth

Stringer Length = sqrt(Total Rise² + Total Run²)

Building code typically requires: Max riser height 7-3/4 inches, min tread depth 10 inches, and the riser + tread combination should fall between 17 and 18 inches.

Worked Example

A staircase with 108 inches (9 feet) of total rise, 7.5" desired risers, 10" treads, 36" wide.

total_rise = 108desired_riser = 7.5tread_depth = 10stair_width = 36
  1. 01Number of risers = round(108 / 7.5) = 14 risers
  2. 02Actual riser height = 108 / 14 = 7.714 inches
  3. 03Number of treads = 14 - 1 = 13 treads
  4. 04Total run = 13 × 10 = 130 inches (10.83 ft)
  5. 05Stringer length = sqrt(108² + 130²) = sqrt(28,564) = 169 inches (14.1 ft)
  6. 06Stringers needed = 3 (for 36" width)

Frequently Asked Questions

What is the maximum riser height allowed by code?

The IRC (International Residential Code) limits risers to 7-3/4 inches maximum. Local codes may vary. All risers in a flight must be uniform (within 3/8 inch).

What is the minimum tread depth?

The IRC requires a minimum tread depth of 10 inches (not including the nosing). The nosing should project 3/4 to 1-1/4 inches beyond the riser.

How many stringers do I need?

Use 3 stringers for stairs up to 36 inches wide. Add an additional stringer for every 16 inches of width beyond 36 inches.

Learn More

Guide

How to Calculate Stair Dimensions: Rise, Run, and Stringer Layout

Learn how to calculate stair dimensions including riser height, tread depth, stringer length, and total run. Covers building code requirements and layout techniques.

Ready to run the numbers?

Open Stair Stringer Calculator