NOTACAL logo

Stair Calculator

Stair Calculator

Give us your feedback! Was this useful?

Introduction

Stairs are fundamental architectural elements that connect different levels of a building while providing safe, comfortable, and code-compliant passage between floors. Designing stairs requires careful attention to the relationship between riser height (the vertical component of each step), tread depth (the horizontal walking surface), and total rise (the overall vertical distance between finished floors). Getting these proportions right is essential for safety — stairs with risers that are too high or treads that are too shallow are a leading cause of falls.

Building codes in most jurisdictions specify acceptable ranges for riser height and tread depth. The International Residential Code (IRC) requires a maximum riser height of 7.75 inches (197 mm) and a minimum tread depth of 10 inches (254 mm). [irc-r3117] The relationship between riser and tread is often guided by the "Blondel formula": two risers plus one tread should equal approximately 24 to 25 inches.

This Stair Calculator helps determine the number of risers, riser height, tread depth, and approximate stringer length for a given total rise and desired run. It provides values consistent with commonly recommended ranges for comfortable and safe stair design.

The design of safe and comfortable stairs involves balancing multiple variables within code-required constraints. The riser height determines how much effort is required to climb each step — higher risers are more fatiguing and potentially dangerous, especially for elderly individuals and children. The tread depth determines how securely the foot is placed — deeper treads provide more stability but require more horizontal space. The relationship between these two dimensions, expressed by the Blondel formula (2R + T = 24-25 inches), has been empirically validated over centuries as producing the most comfortable stair geometry for the average adult human gait.

Building code compliance is not merely a matter of safety — it is a legal requirement for any permitted construction project. The International Residential Code (IRC) and International Building Code (IBC) provide specific dimensional requirements that vary slightly between residential and commercial applications. [ibc-1011] Local jurisdictions may adopt amendments with stricter requirements, particularly in areas with cold climates where snow and ice on exterior stairs require additional considerations. This calculator provides dimensions based on commonly adopted code ranges, but always verify against your local code before ordering materials.

How to Use

  1. Enter the total rise — vertical height from lower to upper finished floor.
  2. Enter the total run — horizontal distance available for the staircase.
  3. Optionally enter a preferred riser height or target tread depth.
  4. Press Calculate to receive: number of risers, riser height, tread depth, stringer length, and stair angle.
  5. Review results for compliance with local building code.

Measuring Total Rise Correctly: The total rise is the vertical distance from the finished floor of the lower level to the finished floor of the upper level. This is not simply the distance from subfloor to subfloor — you must account for the thickness of finished flooring materials on both levels. For example, if the upper level has 3/4 inch hardwood flooring and the lower level has 1/2 inch tile, the total rise changes by the difference in these thicknesses. Always measure after flooring is installed or account for the planned flooring thickness in your measurements.

Formulas and Calculations

Number of Risers

n=round(Rtotalhtarget)n = round(\frac{R_{total}}{h_{target}})

where Rtotal is total rise and htarget is target riser height.

Actual Riser Height

h=Rtotalnh = \frac{R_{total}}{n}

where Rtotal is total rise and n is the number of risers.

Tread Depth

d=Ttotaln1d = \frac{T_{total}}{n - 1}

where Ttotal is total horizontal run and n is the number of risers.

Stringer Length

L=sqrt(Rtotal2+Ttotal2)L = sqrt(R_{total}^2 + T_{total}^2)
RtTtL (stringer)
Figure 1: A staircase flight forms a right triangle — stringer is the hypotenuse, total rise and total run are the legs

using the Pythagorean theorem (See Pythagorean Theorem for detailed calculations).

Blondel Formula

2h+d=24 to 25 inches2h + d = \text{24 to 25 inches}

for comfortable walking, where h is riser height and d is tread depth.

Stair Angle

theta=arctan(Rtotal/Ttotal)theta = arctan(R_{total} / T_{total})

where Rtotal is total rise and Ttotal is total run.

Reference Tables

Standard Stair Dimensions by Building Code

ParameterIRC (Residential)IBC (Commercial)
Max riser height7.75 in (197 mm)7 in (178 mm)
Min tread depth10 in (254 mm)11 in (279 mm)
Min stair width36 in (914 mm)44 in (1118 mm)
Max variation between risers3/8 in (9.5 mm)3/16 in (4.8 mm)
Min headroom80 in (2032 mm)80 in (2032 mm)
Handrail height34-38 in (864-965 mm)34-38 in (864-965 mm)

Stair Design Codes and Safety Requirements

The International Residential Code (IRC) Section R311.7 establishes the minimum safety standards for residential stair construction in the United States. These dimensional requirements are the result of decades of injury data and ergonomic research, and compliance with these minimums is mandatory for any permitted residential construction project.

Key IRC Dimensional Requirements:

  • Maximum riser height: 7-3/4 inches (197 mm). Risers exceeding this height increase fall risk significantly, especially for children and older adults whose stride length and leg strength are reduced.
  • Minimum tread depth: 10 inches (254 mm). Shallow treads do not support the full foot, increasing the likelihood of a forward fall. For commercial applications, the IBC requires a minimum of 11 inches (279 mm).
  • Minimum headroom: 6 feet 8 inches (2032 mm), measured vertically from a line connecting the stair nosings to any overhead obstruction such as a ceiling beam, ductwork, or door frame.
  • Handrail height: 34 to 38 inches (864 to 965 mm), measured from the stair nosing to the top of the gripping surface. Handrails must be continuous, graspable, and extend at least 12 inches beyond the top and bottom risers.
  • Maximum variation between adjacent risers: 3/8 inch (9.5 mm). This is perhaps the most critical safety requirement — see below.

Why Consistent Riser Height Is Critical: The human gait on stairs follows a learned rhythmic pattern. After ascending or descending the first few steps, the central nervous system anticipates a consistent stepping distance. A riser that deviates by even 1/4 inch disrupts this rhythm, causing the foot to land at an unexpected height. The resulting stumble is a primary cause of stair-related falls, particularly during descent when the body's center of mass is moving downward. Studies of stair accidents consistently identify irregular riser heights as a leading contributing factor. Experienced carpenters often hold variation to 1/8 inch or less, well within the code maximum.

OSHA and Commercial Requirements: For industrial and commercial stairs, the Occupational Safety and Health Administration regulates fixed stairs under 29 CFR 1910.25. OSHA allows a maximum riser of 9.5 inches (241 mm) and minimum tread of 9.5 inches (241 mm) for fixed industrial stairs, with handrails required on both sides when four or more risers are present. The International Building Code (IBC) is significantly stricter for commercial buildings: maximum riser of 7 inches (178 mm) and minimum tread of 11 inches (279 mm). Local amendments may further tighten these requirements, so always verify which code applies to your specific project.

The Formula for Comfortable Stairs

The relationship between riser height and tread depth determines how comfortable a stair feels to climb. This relationship is captured by Blondel's formula, named after the 17th-century French architect Nicolas-Francois Blondel [arch-graphic-standards]:

2R + T = 24 to 25 inches

where R is the riser height and T is the tread depth. This formula has been empirically validated over centuries and remains the standard reference for comfortable stair geometry.

Worked Examples:

  • Ideal stair: 7-inch riser with 11-inch tread. 2 x 7 + 11 = 25 inches. This combination provides the most comfortable climbing rhythm and falls within both IRC and IBC recommendations.
  • Good stair: 7.5-inch riser with 10-inch tread. 2 x 7.5 + 10 = 25 inches. Still satisfies the formula and is common where horizontal space is moderately constrained.
  • Minimum comfort: 8-inch riser with 9-inch tread. 2 x 8 + 9 = 25 inches. This meets the 10-inch minimum tread requirement but produces noticeably steeper stairs. Acceptable for secondary access but not recommended for primary living-area stairs.
  • Non-compliant: 8.5-inch riser with 8.5-inch tread. 2 x 8.5 + 8.5 = 25.5 inches. The tread is below the IRC minimum and the riser exceeds the maximum, creating a stair that is both unsafe and illegal.

Why the Formula Works: Blondel's formula reflects the natural walking gait. On level ground, the average human stride is approximately 24 to 25 inches. Climbing a stair requires vertical lift equal to the riser height twice per step (once for each foot) combined with horizontal travel equal to the tread depth. When the sum matches the natural stride length, the stair feels comfortable and the climber does not need to adjust their gait. When it diverges significantly, the stair feels awkward, tiring, or unsafe.

Modern Codes vs. Historical Practice: Older homes built before modern building codes were standardized often have stairs with risers of 8 to 8.5 inches and treads of 8 to 9 inches — dimensions that are well outside current recommendations. While these stairs may have been considered acceptable at the time, they do not meet modern safety standards. When substantial renovations trigger permits, many jurisdictions require existing stairs to be brought up to current code. Blondel's formula helps determine whether a remodeled stair can achieve both comfort and compliance within the available horizontal space.

Stair Construction: Materials and Terms

Understanding stair terminology and material options is essential for accurate layout, cost estimation, and clear communication with suppliers and contractors.

Stringers: The main structural supports that run diagonally between floor levels. Residential stringers are typically cut from 2x12 lumber. Each stringer is notched to receive treads and risers, and the remaining wood below the deepest notch — called the throat — must maintain a minimum thickness of 1 inch (some jurisdictions require 1.5 inches). The throat dimension determines the stringer's structural capacity. Stringers are typically spaced 16 inches on center; wider stairs or heavier loads may require additional stringers to prevent tread deflection.

Treads: The horizontal walking surface of each step. Common materials include oak (hard, durable, moderate cost), maple (harder than oak, light color, slightly more expensive), pine (soft, affordable, prone to wear), and poplar (paint-grade, inexpensive). Composite and PVC treads are popular for exterior applications. Average cost per tread ranges from $15 to $30 for pine, $30 to $60 for oak, and $40 to $80 for maple.

Risers: The vertical face between treads. Usually made from the same material as treads or a less expensive paint-grade material. Open riser stairs — without vertical risers — are popular in modern design but are subject to code restrictions limiting the gap between treads to prevent children from falling through.

Nosing: The projecting edge of a tread that overhangs the riser below. A nosing of 3/4 to 1-1/4 inches provides visual cues for foot placement and increases effective tread depth. The IRC requires a nosing projection of 3/4 to 1-1/4 inches when tread depth is less than 11 inches.

Handrails and Balusters: Handrails must be continuous, graspable, and between 1-1/4 and 2 inches in diameter for comfortable gripping. Balusters — the vertical infill between handrail and tread — must be spaced so that a 4-inch sphere cannot pass between them. This is the standard child safety requirement. Newel posts are the larger vertical posts at the bottom, top, and turns of a stair flight, providing structural anchorage for the handrail assembly.

Typical Material Costs: A straight flight of 13 steps costs approximately $200 to $600 for oak treads and risers, $50 to $150 in pine, and $300 to $800 in maple. Stringer lumber adds $30 to $60 per flight. Handrail, balusters, and newel posts range from $100 for basic installations to $1,000 or more for custom millwork. These material costs are separate from labor, which typically doubles or triples the total project cost for professional installation.

Practical Tips

Check Your Local Code: Building codes vary by jurisdiction. Always verify that your calculated stair dimensions meet local requirements before cutting materials. Local amendments may impose stricter standards than the baseline IRC requirements, particularly for maximum riser height or minimum tread depth.

Account for Finish Flooring: The total rise must be measured from finished floor to finished floor. Account for the thickness of flooring materials on both levels. A difference of 1/2 inch in flooring thickness changes each riser height slightly, which can push borderline dimensions out of compliance.

Order Extra Treads for Wood Grain Matching: When building with natural wood treads, order one or two extra beyond your calculated count. This lets you select the best grain patterns and provides spares in case of damage during installation. Matching grain across a staircase is important for visual consistency, and having extra stock gives you the flexibility to arrange treads in the most aesthetically pleasing order.

Use a Stair Jig for Consistent Layout: A stair jig — also called stair gauges — ensures every stringer is marked identically [fine-homebuilding], producing uniform notches across all stringers. Even small differences in layout cause uneven treads that violate code and create tripping hazards. A framing square with stair gauge stops is an affordable alternative that achieves the same consistency.

Add Stair Lighting: Lighting improves safety and is required by code in some jurisdictions, especially for interior stairs without natural light. Options include recessed step lights, wall sconces at landings, and LED strip lighting under the nosing. Proper lighting reduces fall risk and enhances the staircase as an architectural feature.

Frequently Asked Questions

What is the Blondel formula?
2 x riser + tread = 24-25 inches. It describes the relationship for comfortable walking rhythm.
Can I build stairs with different riser heights?
No. Maximum variation between adjacent risers must not exceed 3/8 inch (residential) or 3/16 inch (commercial).
What is a nosing?
The projecting edge of a tread that extends beyond the riser below it, typically 3/4 to 1-1/4 inches.
What is the minimum landing size?
Landings must be at least as wide as the stairway and at least 36 inches in the direction of travel.
How do I build stairs for an exterior deck?
Treads should be sloped slightly to shed water. Use pressure-treated lumber and allow for drainage gaps.
What is the maximum number of risers before a landing is required?
IRC requires a landing at every 12 feet of vertical rise, which corresponds to approximately 18 risers at the maximum 7.75 inch riser height. IBC requires a landing after every 12 feet of horizontal travel. Intermediate landings provide a resting point and reduce the severity of a fall.
How do I calculate stair stringer length accurately?
The stringer is the structural support that runs diagonally under the steps. Its length is calculated using the Pythagorean theorem: square root of (total rise squared plus total run squared). Account for the thickness of tread material when cutting stringer notches — the actual cut dimension for each step is riser height minus tread thickness, and tread depth minus nosing projection.
What is the minimum stair width required by code?
IRC requires a minimum width of 36 inches (914 mm) for residential stairs measured above the handrail and above the minimum handrail clearance. IBC requires 44 inches (1118 mm) for commercial stairs. Both measurements are taken clear of all obstructions.
How do winding stairs compare to straight stairs?
Winders (tapered treads) save horizontal space but have stricter code requirements. The minimum tread depth must be at least 10 inches measured at the walk line (12 inches from the narrowest side). The narrowest point of the tread must be at least 6 inches. Winders are not recommended as primary egress stairs for elderly occupants.
How do I calculate stairs with a landing?
Treat each flight as a separate stair calculation. Measure the total rise to the landing, calculate risers for the lower flight, then repeat for the upper flight from landing to upper floor. The landing depth must equal the stair width. Account for landing thickness in the total rise of the upper flight.
Are open riser stairs allowed by code?
Yes, but with restrictions. IRC allows open risers provided the opening between treads does not permit passage of a 4-inch sphere. For stairs with occupiable space below, some jurisdictions prohibit open risers entirely due to fall-through risk. Open riser stairs in commercial buildings face additional restrictions.
What is the best material for stair treads — carpet, hardwood, or tile?
Hardwood (oak or maple) is the most popular choice for durability and appearance. Carpet reduces noise and slip risk but wears faster and traps allergens. Tile is durable and easy to clean but can be slippery and cold underfoot. Consider acoustics, maintenance, and slip resistance when choosing. A hardwood stair with a runner carpet is a popular compromise.
How do I fix squeaky stairs?
Squeaks are usually caused by the tread rubbing against the stringer or riser. Common fixes: drive screws through the tread into the stringer at an angle and countersink the heads; apply construction adhesive between tread and riser from underneath; install shims between the tread and stringer. For carpeted stairs, use stair-specific screws with break-away heads that install from the tread surface without removing carpet.

Limitations

  • This tool is a design aid and does not replace local building codes or professional structural calculations.
  • Complex staircases (winders, landings, spiral stairs) require specialized design.
  • Stringer length is calculated for a simple straight flight only.
  • Assumes uniform riser height and tread depth throughout the flight.
  • Handrail, guardrail, and landing requirements are not addressed.
  • Does not account for stair width or multiple flights.
  • Spiral and winding stairs have fundamentally different geometry not supported by this calculator.

Additional Stair Design Considerations

Beyond the basic dimensional calculations that this tool provides, several other factors affect stair safety and comfort. Headroom clearance must be at least 80 inches (2032 mm) measured vertically from a line connecting the stair nosings to any overhead obstruction — insufficient headroom is a common issue in basement stair conversions and attic access staircases. Handrail requirements include a specific gripping profile (type I or type II per IBC), a height of 34-38 inches measured from the stair nosing, and continuous extension beyond the top and bottom risers. Guardrails are required on open sides where the drop exceeds 30 inches.

Landings are required at the top and bottom of every stair flight and at every 12 feet of vertical rise (IRC) or every 12 feet of horizontal travel (IBC). Landings must be at least as wide as the stairway and a minimum of 36 inches in the direction of travel. For curved or spiral staircases, additional code requirements govern minimum tread depth at the walk line (typically 12 inches from the inside handrail) and maximum variation in tread depth. Winders (tapered treads) have specific dimensional constraints that require careful layout and are not supported by this basic calculator.

Last updated: July 10, 2026

UB

UnByte — Independent Software Engineering

Every calculator references authoritative sources — Editorial policy