Last updated: March 2026
What is a Stair Calculator?
A stair calculator determines the exact number of risers, treads, and stringer dimensions needed to build a staircase between two floor levels. Enter your total rise (floor-to-floor height) and the calculator computes riser height, tread count, total run, stringer length, and stair angle — all in real time.
The average residential staircase has 13 to 15 steps, depending on ceiling height. A standard 9-foot ceiling produces 14 risers at roughly 7.7 inches each. Getting these dimensions right is critical: the IRC building code sets strict limits on riser height (max 7.75") and tread depth (min 10") because falls on stairs cause over 1 million injuries per year in the United States.
This calculator goes beyond basic math. It checks every dimension against IRC residential building code, shows a live side-view diagram that updates as you change inputs, and generates a materials list with stringer count, tread boards, and riser boards so you can head to the lumber yard with a complete shopping list.
Building Code Requirements for Stairs
The International Residential Code (IRC) governs stair construction in most US jurisdictions. Key requirements include a maximum riser height of 7-3/4 inches and a minimum tread depth of 10 inches. The stairway must be at least 36 inches wide and provide a minimum of 80 inches of headroom measured vertically from the tread nosing.
Uniformity is equally important. The tallest riser and shortest riser in any flight of stairs cannot differ by more than 3/8 inch. This prevents the stumble that happens when your foot expects one height and gets another. The same 3/8-inch tolerance applies to tread depths.
Nosing is required on stairs with solid risers. The nosing must project between 3/4 inch and 1-1/4 inches beyond the riser face. Open-riser stairs (where you can see through the steps) are allowed if the opening does not permit passage of a 4-inch sphere, which is a child safety requirement.
Handrails are required on at least one side of every stairway with four or more risers. The handrail must be between 34 and 38 inches high, measured vertically from the stair nosing. Guards (balusters) are required on the open side of stairs more than 30 inches above the floor below.
How to Calculate Stair Dimensions
Step 1: Measure total rise. This is the vertical distance from the finished floor at the bottom to the finished floor at the top. Accuracy matters — even a half-inch error gets divided across all risers and can push you out of code compliance.
Step 2: Calculate number of risers. Divide the total rise by your target riser height (7.5 inches is a comfortable default). Round to the nearest whole number. A 108-inch total rise divided by 7.5 gives 14.4, which rounds to 14 risers.
Step 3: Find actual riser height. Divide total rise by the number of risers. With 108 inches and 14 risers, each riser is exactly 7.714 inches — just under the 7.75-inch code maximum.
Step 4: Determine total run. The number of treads is always one less than the number of risers (the top floor acts as the final tread). Multiply treads by tread depth: 13 treads at 10 inches each gives a 130-inch total run (10 feet, 10 inches).
Step 5: Calculate stringer length. Use the Pythagorean theorem: stringer = square root of (total rise squared + total run squared). This is the length of lumber you need for each stringer.
Stringer Layout Guide
Stringers are the diagonal structural members that support the treads and risers. They are typically cut from 2×12 lumber using a framing square. Clamp stair gauges to your framing square at the riser height on one leg and the tread depth on the other for repeatable, accurate cuts.
The critical detail most beginners miss is the first-step drop. After cutting the stringer notches and adding a tread board (typically 1 inch or 1-1/8 inches thick), the first step would be taller than the rest. To fix this, trim the bottom of each stringer by the thickness of one tread board. This makes the first step height identical to all others.
Space stringers no more than 16 inches apart to prevent tread bounce. A 36-inch stairway needs three stringers: one on each side and one centered. After notching, the remaining wood at the thinnest point of the stringer should be at least 3.5 inches to maintain structural integrity.
Frequently Asked Questions
How many stairs do I need for a 9-foot ceiling?
A 9-foot (108-inch) ceiling typically requires 14-15 risers. At the code-maximum riser height of 7.75 inches, you need 14 risers (108 / 7.75 = 13.9, rounded to 14). With a more comfortable 7.2-inch riser, you'd have 15 risers. The number of treads is always one less than the number of risers, so 13-14 treads.
What is the maximum riser height allowed by code?
The International Residential Code (IRC) sets the maximum riser height at 7-3/4 inches (7.75"). Local codes may be stricter — some jurisdictions limit risers to 7.5" or even 7". Always check your local building code before construction. All risers in a staircase must be uniform within 3/8" of each other.
What is the minimum tread depth for residential stairs?
The IRC requires a minimum tread depth of 10 inches, measured from the front edge of the nosing to the front edge of the next nosing. The nosing itself must project between 3/4" and 1-1/4" beyond the riser face. A 10-inch tread with a 1-inch nosing gives 11 inches of actual walking surface.
How do I calculate stringer length?
Stringer length is calculated using the Pythagorean theorem: stringer length = square root of (total rise squared + total run squared). For a 108-inch total rise and 130-inch total run, the stringer length is about 169 inches (14 feet, 1 inch). Always buy lumber slightly longer than calculated to allow for cutting.
How many stringers do I need?
For a standard 36-inch wide staircase, you need 3 stringers: one on each side and one in the center. The general rule is one stringer for every 16 inches of width, plus one. A 48-inch wide stair needs 4 stringers. Stringers are typically cut from 2x12 lumber.
What is the ideal stair angle?
The most comfortable stair angle is between 30 and 37 degrees. This range corresponds roughly to a 7-inch riser with a 10-11 inch tread. Angles below 30 degrees make stairs feel too shallow and waste floor space, while angles above 37 degrees feel steep and unsafe. Building codes enforce this range through maximum riser and minimum tread requirements.