A stair calculator finds the number of risers, treads, total run, stair angle and stringer length from your floor-to-floor height. Enter the total rise, a target riser height and tread depth and the tool checks each dimension against IRC 2021 residential code limits. This is an educational estimate; verify with your local building department.
Risers and treads
Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.
Saved results (0)
How to Use the Stair Calculator
- Measure the total rise: the vertical distance from the surface of the lower finished floor to the surface of the upper finished floor, in inches.
- Enter a target riser height. The default 7.5 inches is a comfortable choice that stays under the IRC 7.75-inch maximum.
- Set the tread depth. The IRC minimum is 10 inches; 10.5 to 11 inches is typical for comfort.
- Enter the stair width. Residential code requires at least 36 inches.
- Read the results: number of risers and treads, actual riser height, total run, stair angle, stringer length and IRC code checks.
| Result | What it means |
|---|---|
| Risers and treads | How many vertical rises and horizontal steps the staircase has. There is always one fewer tread than riser. |
| Actual riser height | The exact riser height after dividing total rise evenly. Must be 7.75 inches or less per IRC. |
| Total run | The horizontal distance from the face of the first riser to the face of the last, equal to treads times tread depth. |
| Stair angle | The angle of the stringer from horizontal. Comfortable residential stairs fall between 30 and 37 degrees. |
| Stringer length | The diagonal length of the stringer board, calculated from total rise and total run. |
| Stringers needed | 2 stringers for stairs up to 36 inches wide; add 1 for every 16 inches of additional width. |
| IRC code checks | Pass or fail against IRC 2021 residential limits: max riser 7.75 in, min tread 10 in, plus comfort rules. |
What Is a Stair Calculator?
A stair calculator is a tool that turns a single measurement, the floor-to-floor height, into a complete set of stair dimensions. It figures out how many risers to use, what each riser height will be, how far the staircase extends horizontally and how long the stringer boards need to be.
Stair layout is one of the first things a builder or remodeler works out, because the total run determines how much floor space the staircase needs. Getting the riser height and tread depth right is also a safety and code requirement.
This calculator checks results against general IRC 2021 residential code limits. Local codes may add stricter requirements, so always verify with your building department. See the construction calculators hub for more building tools.
How Does the Stair Calculator Work?
The calculator uses basic stair geometry: divide the total rise by the target riser height, round up to get the number of risers, then derive everything else.
risers = ceil(total_rise / target_riser)actual_riser = total_rise / riserstreads = risers - 1total_run = treads x tread_depthstair_angle = atan(total_rise / total_run) in degreesstringer_length = sqrt(total_rise squared + total_run squared)stringers = 2 for width <= 36 in; add 1 per 16 in over 36 in- Divide the total rise by the target riser height and round up to get the number of risers.
- Divide the total rise by the number of risers to get the actual riser height.
- Subtract one from the number of risers to get the number of treads.
- Multiply treads by tread depth for the total run.
- Use the arctangent of rise over run for the stair angle.
- Use the Pythagorean theorem for the stringer length.
Why One Fewer Tread than Riser
The top riser ends at the upper floor level, which acts as the final landing surface. So a staircase with 15 risers has 14 treads.
Stair Calculation Example
Consider a typical 9-foot (108-inch) floor-to-floor height with a 7.5-inch target riser and 10.5-inch tread depth.
Risers: 108 / 7.5 = 14.4, rounded up to 15 risers.
Actual riser height: 108 / 15 = 7.2 inches. This is under the 7.75-inch IRC maximum.
Treads: 15 - 1 = 14 treads.
Total run: 14 x 10.5 = 147 inches (12.25 feet).
Stair angle: atan(108 / 147) = 36.3 degrees. This is within the 30-37 degree comfort range.
Stringer length: sqrt(108 squared + 147 squared) = sqrt(11,664 + 21,609) = sqrt(33,273) = 182.4 inches (15.2 feet). You would need a 2x12 board at least 16 feet long.
Comfort check: riser + tread = 7.2 + 10.5 = 17.7 inches, within the 17-18 inch comfort rule.
IRC 2021 Stair Code Requirements
The International Residential Code (IRC) 2021, Section R311.7, sets minimum and maximum dimensions for residential stairs. Local jurisdictions may adopt the IRC with amendments, so these are general limits.
| Requirement | IRC 2021 limit | Notes |
|---|---|---|
| Maximum riser height | 7.75 in (196.85 mm) | Measured vertically from tread to tread |
| Minimum tread depth | 10 in (254 mm) | Measured horizontally, nose to nose |
| Maximum riser variation | 3/8 in (9.5 mm) | Between tallest and shortest riser in one flight |
| Minimum headroom | 6 ft 8 in (80 in) | Measured vertically from the nosing line |
| Minimum width | 36 in (914 mm) | Clear width at and below the handrail |
| Handrail height | 34 to 38 in | Measured vertically from the nosing |
Beyond the code minimums, the comfort rules (riser + tread = 17 to 18 inches, and 2 x riser + tread = 24 to 25 inches) are widely used guidelines for a natural stride.
Understanding Stair Stringers
A stringer is the diagonal board that supports the treads and risers. It runs from the bottom landing to the top floor and is notched in a sawtooth pattern so each step sits flat.
Stringer Length
The stringer length is the hypotenuse of a right triangle formed by the total rise (vertical) and total run (horizontal): sqrt(rise squared + run squared). In the 108-inch rise example, that is sqrt(11,664 + 21,609) = 182.4 inches, so a 16-foot 2x12 is the minimum board length.
How Many Stringers
Standard practice is 2 stringers (one on each side) for stairs up to 36 inches wide. For wider stairs, add a center stringer at roughly every 16 inches of additional width to prevent tread bounce.
Material
Stringers are almost always cut from 2x12 lumber because the notch depth for a 7-inch riser and 10-inch tread leaves enough uncut wood for strength. The IRC requires at least 3.5 inches of uncut stringer depth at the thinnest point.
Factors That Affect Stair Layout
Several factors beyond basic geometry influence how you plan a staircase.
Floor-to-floor Height
Taller floors mean more risers and a longer total run, which requires more horizontal space. A 10-foot ceiling adds two or three extra steps compared with an 8-foot ceiling.
Available Floor Space
The total run sets the minimum footprint. If space is tight, increasing the riser height (within code limits) reduces the run but makes the stair steeper.
Floor Finish Thickness
If the upper or lower floor finish has not been installed yet, its thickness must be added to or subtracted from the total rise. Tile, hardwood or carpet can shift the final measurement by half an inch or more.
Landing Requirements
Stairs longer than 12 feet of vertical rise often require an intermediate landing. The landing adds to the total horizontal footprint.
Local Code Amendments
Many local jurisdictions adopt the IRC with amendments. Maximum riser height, minimum tread depth and handrail rules may differ from the general IRC values shown here.
When to Use a Stair Calculator
New Construction
Laying out stairs is one of the first framing tasks. The total run determines how much floor space to reserve in the floor plan.
Remodeling
When converting an attic, basement or split-level, the existing floor-to-floor height is fixed. A stair calculator shows whether the available space can fit a code-compliant staircase.
Deck and Porch Steps
Outdoor stairs from a deck or porch to grade use the same geometry. Enter the deck height as the total rise to find the number of steps and the run.
Permit Applications
Building inspectors check riser height, tread depth, headroom and handrail height. Running the calculator before you apply helps you confirm the design meets code.
Stringer Material Ordering
The stringer length tells you what board length to buy. A 2x12 must be at least as long as the calculated stringer to allow for the sawtooth notch cuts.
Stair Cost and Material Budget
The stair calculator does not price materials, but its outputs feed directly into a material list.
| Material | Driven by | Typical range |
|---|---|---|
| Stringer boards (2x12) | Stringer length and count | $8 to $20 per board foot |
| Treads | Number of treads and width | $3 to $15 each (pine to oak) |
| Risers | Number of risers and width | $2 to $10 each |
| Handrail and balusters | Stringer length (one or both sides) | $5 to $20 per linear foot |
| Fasteners and adhesive | Number of steps | $20 to $50 per flight |
For a basic 15-riser pine staircase with two stringers, expect roughly $200 to $500 in lumber, plus labor. Hardwood treads, finished handrails or wider stairs with a center stringer raise the cost. Prices are rough 2024 U.S. averages and vary by region.
Common Stair Design Mistakes
1. Measuring to the Wrong Floor
Total rise must be measured from the surface of the lower finished floor to the surface of the upper finished floor, including any flooring material not yet installed.
2. Ignoring the Last Riser
The top riser is the vertical gap between the last tread and the upper floor level. Forgetting it leads to one step that is taller or shorter than the rest.
3. Not Accounting for Floor Thickness
If the upper floor finish (tile, hardwood) has not been installed yet, add its thickness to the total rise measurement.
4. Uneven Risers
The IRC allows no more than 3/8-inch variation between the tallest and shortest riser. Uneven risers are the leading cause of stair trips.
5. Skipping the Code Check
A staircase that looks right can still fail inspection. Always check riser height, tread depth, headroom and handrail height against your local code.
Stair Angle and Comfort
The stair angle is the slope measured from horizontal. It depends on the ratio of total rise to total run.
| Angle range | Typical use |
|---|---|
| Under 20 degrees | Ramp or very gentle slope |
| 20 to 30 degrees | Accessible ramp or wide-tread utility stair |
| 30 to 37 degrees | Standard residential stair (comfortable, code-compliant) |
| 37 to 45 degrees | Steep stair, may need special code approval |
| Over 45 degrees | Ship ladder, alternating-tread stair or fixed ladder |
If your calculated angle falls outside 30 to 37 degrees, adjust the tread depth or target riser height until it falls in the comfort range.
Accuracy and Limitations
The math is exact geometry (Pythagorean theorem and trigonometry). The code limits are from the general IRC 2021; your local jurisdiction may enforce different values.
What it calculates accurately
- Number of risers and treads from total rise and target riser height
- Exact actual riser height after dividing the rise evenly
- Total run, stair angle and stringer length from basic geometry
- Stringer count based on stair width
- Pass/fail checks against general IRC code limits
What it does not account for
- Local code amendments that may change limits
- Nosing projection (typically 3/4 to 1-1/4 inches, extends tread)
- Headroom clearance (depends on ceiling and floor framing above)
- Winder, spiral or curved stair layouts
- Structural load calculations for stringer sizing
How We Calculate Your Stair Dimensions
Frequently Asked Questions About Stair Calculations
How do I calculate stairs for a 9-foot ceiling?
A 9-foot ceiling is 108 inches floor to floor (assuming the upper floor adds no extra height). With a 7.5-inch target riser, you get 15 risers at 7.2 inches each, 14 treads and a total run of 147 inches (12.25 feet).
How many risers do I need?
Divide the total rise in inches by your target riser height and round up. For example, 108 inches divided by 7.5 gives 14.4, rounded up to 15 risers.
What is the ideal riser height?
Most builders aim for 7 to 7.5 inches. The IRC sets a maximum of 7.75 inches for residential stairs. Lower risers feel more comfortable but increase the total run.
What is the minimum tread depth?
The IRC 2021 requires a minimum tread depth of 10 inches, measured from nosing to nosing. Most comfortable stairs use 10.5 to 11 inches.
Why is there one fewer tread than riser?
The top riser lands on the upper floor level, which serves as the final step surface. So a staircase with 15 risers has 14 separate treads.
How do I calculate stringer length?
Stringer length is the hypotenuse of the right triangle formed by total rise and total run: sqrt(rise squared + run squared). For 108-inch rise and 147-inch run, that is about 182.4 inches.
How many stringers do I need?
Use 2 stringers for stairs up to 36 inches wide. Add 1 stringer for each additional 16 inches of width to prevent tread bounce.
What stair angle is comfortable?
Residential stairs are most comfortable between 30 and 37 degrees. Steeper stairs feel unsafe; shallower stairs take up more floor space.
What does the riser plus tread rule mean?
The sum of one riser height plus one tread depth should be 17 to 18 inches for a natural walking stride. The alternate rule, 2 times riser plus tread, should equal 24 to 25 inches.
Do I need a building permit for stairs?
In most jurisdictions, new stairs or major stair modifications require a building permit. The stairs will be inspected for code compliance including riser height, tread depth, headroom and handrail height.
Sources
- IRC 2021 Section R311.7 - Stairways (International Residential Code 2021, Section R311.7; residential stairway requirements including riser, tread, headroom and handrail dimensions).
- ICC Digital Codes - IRC 2021 (International Code Council; full text of the 2021 International Residential Code).
- OSHA Stairway Standards (for reference) (Occupational Safety and Health Administration; commercial stairway standards for comparison).
Related Calculators
Planning more of your build?
Deck CalculatorPlan boards, joists, posts and footingsExplore all construction calculatorsEducational estimate based on general IRC residential code. Local building codes may differ. Always obtain a permit and verify requirements with your local building department before construction. Spotted an error? Let us know.
Author
Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.




