Stair Calculator
Plan risers, treads, total run, stair angle, and code checks from total rise, target riser height, and tread depth.
Stair Calculator
Background.
The Stair Calculator converts a total vertical rise into a buildable stair layout: number of risers, actual riser height, number of treads, total run, pitch angle, and basic code checks. The canonical use case is a deck, porch, basement, or interior stair where the finished floor heights are known but the stair geometry is not. A stair is a repeating right triangle. Each step has a vertical riser and a horizontal tread, and the sum of those small triangles must exactly connect the lower and upper levels.
Search intent is practical and safety-sensitive. Users searching for a stair calculator are often trying to cut stringers, estimate floor space, or understand why a proposed stair feels too steep. Small arithmetic errors matter. If a 108 inch total rise is divided into 13 risers, each riser is 8.31 inches, which exceeds common residential limits. If it is divided into 14 risers, each riser is 7.714 inches and can pass a 7.75 inch maximum. The difference is one riser, but it changes comfort, code compliance, stringer layout, and total run.
Stairs are also regulated. The International Residential Code sets limits on riser height, tread depth, nosing, headroom, landings, and uniformity for residential stairs. OSHA rules govern stairs in workplaces and specify standard stair angles and dimensional criteria. A calculator should not replace a local building official, but it can warn users when a proposed layout fails common thresholds. It should also report the assumptions, because residential stairs and workplace industrial stairs do not use identical rules.
The engineering model is straightforward but must handle integer constraints. You cannot build 13.935 risers. The solver therefore chooses a whole number of risers, then recomputes the actual riser height. A code-driven method starts with the maximum allowed riser height and rounds the required riser count up. That guarantees the actual riser is not taller than the selected maximum. The tread count is usually one fewer than riser count because the upper floor forms the last walking surface. Multiplying treads by tread depth gives total horizontal run, the floor space required before landings.
The pitch angle and comfort rule add interpretation. Angle is arctangent of riser over tread, expressed in degrees. OSHA standard stairs generally fall between 30 and 50 degrees. Residential comfort is often discussed through a rule of thumb: two risers plus one tread should land near the mid-20 inch range. This is not a universal code rule, but it helps users see why a stair can technically fit but feel awkward. The calculator should show both hard pass/fail checks and softer comfort values.
The calculator is therefore both a geometry tool and a risk-control tool. A stair layout affects falls, headroom, door swings, landings, and the amount of floor area consumed by circulation. The math can be done with a pocket calculator, but the sequence of rounding, checking, and interpreting is where mistakes enter. Reporting each intermediate value lets a user see whether adding one riser, changing tread depth, or adding a landing would produce a safer and more buildable stair.
What is stair calculator?
A stair calculator is a geometry and code-checking tool for repeated steps. The key terms are total rise, riser, tread, run, pitch, nosing, and landing. Total rise is the vertical distance between finished walking surfaces. A riser is the vertical height of one step. A tread is the horizontal walking depth of one step. Total run is the horizontal distance occupied by the stair treads. Pitch is the slope angle of the stair.
Unlike many area calculators, a stair calculator must solve an integer problem. The total rise can be any measurement, but the stair must have a whole number of risers. Once that count is chosen, every riser should be uniform. Building codes typically limit both maximum riser height and minimum tread depth because inconsistent or steep stairs increase trip and fall risk. The calculator therefore computes dimensions and evaluates them against selected thresholds.
The tool is valid for straight stairs with uniform treads and risers. It does not design winders, spiral stairs, alternating tread devices, ramps, ladders, or stairs with intermediate landings. It also does not check headroom, guard height, handrail graspability, structural stringer capacity, or local amendments. Those remain design and code review tasks.
All inputs should be finished dimensions, not rough framing guesses, because small finish changes can make the first or last riser non-uniform.
How to use this calculator.
- Measure total rise from finished lower surface to finished upper surface.
- Choose the applicable standard or enter the maximum riser height allowed for the project.
- Enter a desired tread depth or the minimum tread depth required by the standard.
- Let the calculator round riser count up and compute actual riser height.
- Review tread count, total run, and pitch angle to see whether the stair fits the available space.
- Check pass/fail flags for riser height and tread depth.
- Confirm final plans with local code and structural requirements before cutting stringers.
The formula.
The core stair problem is division with an integer constraint. Total rise divided by ideal riser height gives a first guess, but the result is rarely a whole number. If the calculator used that fraction directly, it would produce a stair that cannot be built. A code-driven solver instead divides total rise by the maximum allowed riser height and rounds up. Rounding up increases the number of risers, which decreases actual riser height. This protects the user from over-tall risers.
After riser count is chosen, actual riser height is totalRiseIn / risers. This value should be displayed with enough precision for layout, but construction often marks to the nearest 1/16 inch or millimetre depending on market. The calculator should keep full precision internally and round only for display. Rounding each riser independently can accumulate error across the whole stair.
Tread count is usually risers minus one for a stair connecting two finished floors. Imagine climbing: each riser lifts the user, but the upper floor itself is the last landing surface. A 14 riser stair normally has 13 treads between floors. For freestanding stairs or stairs ending on a platform, implementations may expose a setting for whether the top landing counts as a tread. Total run is treads times tread depth.
Pitch angle comes from right-triangle trigonometry. Each step has opposite side equal to riser height and adjacent side equal to tread depth. The tangent of the angle is rise divided by run, so angle = atan(riser / tread). The result should be converted from radians to degrees for users. Dimensional analysis is simple: inches divided by inches is dimensionless, and trigonometric functions require dimensionless ratios.
The comfort check 2R + T is a heuristic linked to human stride. It is not a substitute for building code, but it gives useful feedback. A stair with very low risers and deep treads can feel like a broken walking rhythm, while a steep stair can feel ladder-like. By reporting risers, treads, total run, angle, and comfort together, the calculator supports both compliance and usability.
A worked example.
A deck stair must connect a lower surface to an upper finished deck height of 108 inches. The selected residential maximum riser height is 7.75 inches. The calculator divides 108 by 7.75 and gets 13.935484, then rounds up to 14 risers. Actual riser height is therefore 108 divided by 14, or 7.714286 inches. Because the upper deck is the final walking surface, the stair has 13 treads. With a tread depth of 10.5 inches, total run is 13 times 10.5, or 136.5 inches. Dividing by 12 gives 11.375 feet of horizontal space. The pitch angle is arctangent of 7.714286 divided by 10.5, which equals 36.30 degrees. The comfort value is two risers plus one tread: 2 times 7.714286 plus 10.5 equals 25.93 inches. The layout passes the selected 7.75 inch riser maximum and 10 inch tread minimum.
Frequently asked questions.
Why does the calculator round the number of risers up?
Why are there usually fewer treads than risers?
What is stair pitch?
Does this calculator guarantee code compliance?
Should I use finished floor measurements?
What is the comfort rule 2R + T?
Can I use this for deck stair stringers?
Why should actual riser height be uniform?
References& sources.
- [1]Occupational Safety and Health Administration (2024). "29 CFR 1910.25: Stairways." U.S. Department of Labor.
- [2]International Code Council (2021). "2021 International Residential Code, Section R311.7 Stairways." ICC.
- [3]National Institute of Standards and Technology (2026). "NIST Handbook 133, Appendix E: General Tables of Units of Measurement." U.S. Department of Commerce.
- [4]National Institute of Standards and Technology (2008). "Guide for the Use of the International System of Units (SI), NIST Special Publication 811." U.S. Department of Commerce.
- [5]Bureau International des Poids et Mesures (2019). "The International System of Units (SI Brochure), 9th edition." BIPM.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled