1. Stair Calculator: Riser, Tread, Run, Stringer & Headroom
A staircase looks simple, but its layout depends on several dimensions that must work together. The total vertical rise determines how many risers are needed, the tread depth determines how much horizontal space the staircase consumes, and those two dimensions establish the staircase angle and stringer length.
This Stair Calculator is designed to connect those quantities instead of treating them as isolated measurements. Enter the total rise and a target riser height to determine a practical riser count and exact riser height, or use a fixed number of steps when the design requires a specific step count. You can then calculate tread count, total horizontal run, stair angle, stringer length, and related carpentry dimensions.
The calculator also includes a headroom and stair-opening calculation, material and lumber cost estimation, fraction-friendly dimension input, visual stair diagrams, saved calculations, and downloadable reports.
For construction work, the calculator should be treated as a planning and estimating tool rather than a substitute for a site measurement, structural design, permit review, or the building code adopted by the local authority having jurisdiction.
2. The Basic Anatomy of a Staircase
Several terms are used repeatedly in stair layout:
| Term | Meaning |
|---|---|
| Total rise | The complete vertical distance from the lower finished floor or landing to the upper floor or landing. |
| Riser | The vertical height of one step. |
| Tread | The horizontal walking surface of one step. |
| Run | The horizontal depth associated with one tread. |
| Total run | The horizontal distance occupied by the staircase flight. |
| Stringer | The inclined structural member that supports the treads and risers. |
| Nosing | The front projection of a tread beyond the riser below. |
| Headroom | The vertical clearance available above the stair walking line. |
| Incline angle | The angle of the stair flight relative to the horizontal. |
The distinction between riser count and tread count matters. In the common straight-flight arrangement where the upper floor acts as the final landing, there is typically one fewer tread than risers. The calculator therefore treats tread count according to the selected mounting/drop configuration rather than assuming every riser automatically creates another separate tread.
3. How to Calculate Stair Riser Height
The first major decision is the number of risers.
When the user provides a target maximum or target design riser height, the safe mathematical approach is to calculate:
where:
- H = total vertical rise
- R_target = target riser height
- N_risers = calculated integer number of risers
The ceiling operation is important. Suppose the total rise is 108 inches and the target riser is 7.5 inches:
A staircase cannot use 14.4 risers, so the count must be rounded up to:
The exact riser then becomes:
This is fundamentally different from rounding 14.4 down to 14, which would produce:
That increases the actual riser above the 7.5-inch target. The calculator therefore separates the target riser from the final exact riser. The target helps determine the count; the exact riser is calculated from the actual total rise and final integer count.
4. How to Calculate Treads and Total Stair Run
Once the riser count is known, tread count depends on how the stair terminates at the top.
For the common standard-drop configuration:
If there are 15 risers:
With a 10-inch tread/run:
This is one of the most useful results for planning a stair opening because a staircase needs both vertical space and horizontal space. Increasing tread depth makes the staircase more comfortable in many situations, but it also increases the total run. Conversely, reducing tread depth decreases the footprint but can make the stair steeper and may conflict with applicable code requirements.
The calculator's Use One Run and Use Total Run modes allow the same geometry to be approached from different design inputs.
5. Stair Angle, Stringer Length and the Pythagorean Relationship
Once total rise and total run are known, the staircase angle can be calculated using:
For the 108-inch rise and 140-inch run example:
The geometric length of the inclined stair line is found with the Pythagorean theorem:
Therefore:
This relationship is useful because it provides an independent geometric check. If the calculated stringer length does not agree with the rise/run triangle, something is wrong with the underlying dimensions or unit conversion. The calculator therefore treats the staircase as a geometric system rather than simply producing a step count.
6. Stair Stringer Layout and Carpentry Dimensions
A stringer is cut to follow the repeating rise-and-run geometry of the staircase. For a conventional straight stair, each repeated step is defined by:
- a vertical rise cut
- a horizontal run cut
- a consistent relationship between adjacent steps
The calculator also distinguishes between tread/nosing configurations and mounting approaches so that the resulting cut information is not treated as generic text.
For example, changing the tread thickness affects the bottom cut or other carpentry compensation depending on the selected construction method. Without trimming the bottom stringer foot by the tread thickness (e.g., 1.0 in), adding a 1.0 in tread would make the bottom step 1.0 in too tall, while the top step would be 1.0 in too short. Likewise, a standard-drop top condition and a flush-top mounting approach do not use identical tread-count assumptions.
The result is best thought of as a layout aid. Actual stringer fabrication still requires the builder to account for finished floor thickness, finish materials, framing, tread construction, landing geometry, and how the stringer is fastened. Never fabricate a structural stair stringer solely from a calculator without confirming the actual site dimensions and construction details.
7. Fractions Matter in Real Stair Construction
Construction dimensions are often written as fractions rather than decimals:
- 7.5 inches = 7 1/2 inches
- 10.25 inches = 10 1/4 inches
- 0.75 inches = 3/4 inch
- 7.1875 inches = 7 3/16 inches
The calculator supports decimal, fraction, and mixed-number dimension entry so a carpenter can work with familiar tape-measure notation without first converting every value manually:
The result retains full floating-point precision internally while providing practical fractional representations rounded to the nearest 1/16 inch for field layout. This is especially useful when a computed exact riser is something such as 7.3846 inches: the decimal result can be used for mathematical verification, while a practical fractional representation helps with framing.
8. How Headroom and Stair Openings Work
Headroom is not determined simply by ceiling height. A stair passes beneath a floor opening, and the available clearance depends on:
- total rise
- total run
- stair angle
- tread/nosing position
- floor or joist thickness
- stairwell opening length
- the point at which the stair intersects the overhead ceiling header
The headroom calculation therefore evaluates the actual geometric intersection between the sloping stair plane and the opening rather than assuming a single fixed distance.
For a reference residential-code calculation, the 2021 IRC states a minimum stair headroom of 6 feet 8 inches (80 inches / 2032 mm), measured vertically from the sloped line adjoining the tread nosing or from the landing surface in the applicable portion of the stairway. The 2024 IBC likewise specifies 80 inches of stair headroom in its applicable stair provisions.
Because these rules are code- and occupancy-specific, the calculator's result should be interpreted as a reference check, not automatic legal approval.
9. Stair Riser and Tread Code References
One reason stair calculators need careful labeling is that different code families establish different dimensional requirements:
- 2021 International Residential Code (IRC): Specifies a maximum riser height of 7¾ inches (197 mm), a minimum rectangular tread depth of 10 inches (254 mm), and a maximum variation of 3/8 inch (9.5 mm) between the greatest and smallest riser within a flight.
- 2024 International Building Code (IBC): Section 1011.5.2 specifies risers between 4 inches minimum and 7 inches maximum (178 mm), and rectangular tread depth of at least 11 inches (279 mm) for applicable commercial stairs.
- OSHA 29 CFR 1910.25: Standard workplace stairs must have an angle between 30° and 50° from horizontal, a maximum riser of 9.5 inches, and a minimum tread depth of 9.5 inches.
This is why the calculator uses the wording: Model Code Reference Check — verify with your local adopted code. A state, province, municipality, occupancy type, existing-building condition, or local amendment may change the governing requirements.
10. Stair Angle: What the Number Actually Tells You
The staircase angle summarizes the relationship between rise and run:
- Steeper stair: more vertical rise per unit of horizontal travel, shorter floor footprint, larger incline angle.
- Shallower stair: more horizontal travel, smaller incline angle, larger floor footprint.
For example, a 7.5-inch rise with a 10-inch run gives:
The angle should not be used by itself to decide whether a stair is acceptable. Riser height, tread depth, headroom, stairway width, landings, handrails, guards, and governing code provisions all matter.
11. Blondel's Formula and Stair Comfort
A commonly discussed ergonomic relationship published in 1675 by French architect François Blondel connects riser height (R) and tread depth (T):
For a 7.5-inch riser and a 10-inch tread:
This relationship is useful as a stair-design heuristic because it connects the vertical and horizontal dimensions of a step with human stride length. However, it should not be confused with a universal statutory building-code rule. The practical objective is consistency: a flight with uniform risers and treads generally provides a more predictable walking rhythm than one with noticeable variation.
12. A Complete Worked Stair Example
Consider a staircase with:
- Total rise = 108 inches (9 ft)
- Target riser = 7.5 inches
- Unit run = 10 inches
N = ceil(108 / 7.5) = ceil(14.4) = 15 risers
R = 108 / 15 = 7.20 in ≈ 7 3/16 in (meets IRC max 7.75 in)
T_count = 15 - 1 = 14 treads
Total Run = 14 × 10 = 140 in = 11 ft 8 in
θ = arctan(108 / 140) = arctan(0.7714) ≈ 37.62°
L = √(108² + 140²) = √(11,664 + 19,600) = √31,264 ≈ 176.82 in (14.74 ft)
| Measurement | Result |
|---|---|
| Total rise | 108 in |
| Number of risers | 15 |
| Exact riser | 7.20 in |
| Number of treads | 14 |
| Tread/run | 10.00 in |
| Total run | 140 in |
| Stair angle | 37.62° |
| Geometric stringer length | 176.82 in (14.74 ft) |
This illustrates why the staircase should be solved as one connected geometry problem. A change in riser count changes the exact riser height, tread count, total run, angle, and stringer length together.
13. How the Stair Calculator Helps With Material Planning
After the staircase geometry is established, the material estimator translates the design into approximate quantities and costs. Depending on the selected configuration, the estimator accounts for stringer boards, tread boards, riser boards, brackets and fasteners, handrails or extras, material pricing, and sales tax.
For example, a reference estimate might contain:
15 treads × $24 = $360
16 risers × $14 = $224
Hardware & fasteners = $45
Materials subtotal = $734
Sales tax (7%) = $51.38
Total estimated project cost = $785.38
These are estimating values, not contractor quotations. Lumber species, board dimensions, grade, regional pricing, waste, fasteners, finish materials, labor, delivery, and structural requirements can change the actual project cost.
When estimating the surrounding floor or landing area, you can also use our Square Footage Calculator. For concrete stairs, pads, or related site work, the Concrete Calculator can help estimate concrete volume.
14. Stair Headroom, Openings and Existing Floors
For an existing building, the stair calculation becomes more complicated because the finished floor and structure may already be fixed. An opening that looks adequate in plan view may still produce insufficient headroom once the stair slope is considered.
The headroom workflow should therefore be used to test combinations of stair rise, stair run, opening length, floor thickness, and target clearance. The recommended workflow is iterative:
- Establish the floor-to-floor rise.
- Select a reasonable target riser.
- Calculate the number of risers.
- Determine the exact riser.
- Select a workable tread/run.
- Calculate total run and angle.
- Test the opening.
- Check headroom.
- Recheck all dimensional constraints after any change.
This is much safer than choosing a stair angle first and attempting to force the remaining dimensions into the available opening.
15. Stairs vs. Ramps: Do Not Mix the Two
The calculator includes a 1:12 ramp reference preset, but ramps and stairs are not interchangeable design categories.
The U.S. Access Board's ADA Standards specify that ramp runs on accessible routes generally have a running slope no steeper than 1:12, with a 1:48 maximum cross slope and a maximum rise of 30 inches per run under the cited provisions. A 1:12 slope means 1 unit of vertical rise for every 12 units of horizontal run:
That does not make a 1:12 slope a stair requirement. It is a ramp/accessibility reference. The calculator therefore labels the preset as a ramp reference, not a stair-code recommendation.
16. Why Uniformity Matters
A staircase can satisfy a nominal average dimension while still being uncomfortable or unsafe if individual steps vary. For this reason, stair rules control variation between risers and treads in addition to setting minimums or maximums.
For example, the 2021 IRC limits the difference between the greatest and smallest riser height within a flight to 3/8 inch. This highlights an important construction principle: do not lay out every step independently from rounded measurements. Instead:
- Calculate the exact total rise.
- Determine the final integer riser count.
- Calculate the exact riser from that count.
- Transfer the same layout dimension consistently through the flight.
17. When to Recalculate a Staircase
Recalculate the entire flight whenever one of the major dimensions changes. You should not change only one displayed result manually. For example, increasing the target riser can change riser count, exact riser, tread count, total run, angle, stringer length, headroom intersection, and material quantities.
Likewise, changing the unit run can alter total run, incline angle, stringer length, available headroom, and opening requirements. This is why the calculator continuously links the geometry rather than presenting isolated formulas.
18. Practical Workflow for Designing a Straight Stair
- Start with the actual floor-to-floor rise: Measure the complete vertical distance rather than estimating from nominal floor heights.
- Select a target riser: Choose a target that makes sense for the intended building type and verify it against the applicable code.
- Calculate the riser count: Use
N = ceil(H / R_target). - Calculate the exact riser: Use
R = H / N. - Select the tread/run: Evaluate total run and available floor space.
- Check angle and stringer: Use
θ = arctan(H / Run)andL = √(H² + Run²). - Check headroom: Verify the actual stair opening geometry.
- Check code references: Determine which code applies to the project rather than assuming one generic rule.
- Calculate materials and cost: Only after the geometry is settled should you estimate lumber, hardware, labor, and other project costs.
19. Important Construction Disclaimer
This Stair Calculator provides mathematical geometry, planning calculations, reference checks, and estimating assistance. It does not replace an architect, structural engineer, licensed contractor, building official, accessibility professional, or the requirements of the authority having jurisdiction.
Code requirements vary by jurisdiction, adopted code edition, occupancy, residential vs. commercial use, new construction vs. existing work, local amendments, special stair configurations, and accessibility requirements. Use the calculator's code output as a model-code reference check, then verify the final design with the locally adopted requirements before construction.