Audited ·Last updated 27 Jul 2026·5 citations·Tier 1·0 uses

Stair Calculator

Plan risers, treads, total run, stair angle, and code checks from total rise, target riser height, and tread depth.

Stair Calculator

Stair standard / code check
Number of risers
14
Actual riser height
7.7143
Number of treads
13
Total run
136.5
Total run
11.375
Stair pitch angle
36.3045
Comfort value (2R + T)
25.9286

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.

  1. Measure total rise from finished lower surface to finished upper surface.
  2. Choose the applicable standard or enter the maximum riser height allowed for the project.
  3. Enter a desired tread depth or the minimum tread depth required by the standard.
  4. Let the calculator round riser count up and compute actual riser height.
  5. Review tread count, total run, and pitch angle to see whether the stair fits the available space.
  6. Check pass/fail flags for riser height and tread depth.
  7. Confirm final plans with local code and structural requirements before cutting stringers.

The formula.

R = ⌈ H ⁄ Rmax ⌉

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.

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.

target Riser In7.5
max Riser In7.75
total Rise In108
tread Depth In10.5

Frequently asked questions.

Why does the calculator round the number of risers up?
Rounding up protects the maximum riser limit. If total rise divided by maximum riser height is 13.94, a 13 riser stair would have risers taller than the allowed maximum. A 14 riser stair lowers each riser and can pass. Rounding to the nearest whole number may produce an over-tall riser when the fraction is below the next integer. For code-sensitive layout, ceiling is the safer first step, followed by checking the actual riser. The calculator should display the governing assumption beside the answer so users can audit the number instead of treating the output as an unexplained recommendation.
Why are there usually fewer treads than risers?
In a stair between two floors, the upper floor or landing functions as the final tread surface. Each riser is a vertical move, but the user does not need a separate tread after the last riser if they step onto the upper floor. That is why a 14 riser stair commonly has 13 treads. There are exceptions, such as freestanding platforms or landscape steps, so a robust calculator can include a top-landing option for unusual layouts. The calculator should display the governing assumption beside the answer so users can audit the number instead of treating the output as an unexplained recommendation.
What is stair pitch?
Stair pitch is the angle of the stair relative to horizontal. It is computed from the arctangent of riser height divided by tread depth. A larger riser or smaller tread makes the stair steeper and increases the angle. OSHA standard stairs generally occupy a defined range of angles for workplace use. Residential stairs are often discussed through riser and tread dimensions rather than angle alone. The angle output is useful for comparing alternatives and checking whether a stair begins to feel ladder-like. The calculator should display the governing assumption beside the answer so users can audit the number instead of treating the output as an unexplained recommendation.
Does this calculator guarantee code compliance?
No. It checks a limited set of numerical thresholds, such as riser height, tread depth, and angle, against selected standards. Full compliance also depends on headroom, landing size, handrail height, guard openings, nosing profile, illumination, structural capacity, slip resistance, and local amendments. The calculator should be used for preliminary layout and arithmetic verification. Final construction should follow the adopted code in the jurisdiction and, where required, approved plans. The calculator should display the governing assumption beside the answer so users can audit the number instead of treating the output as an unexplained recommendation.
Should I use finished floor measurements?
Yes. Total rise should be measured from finished walking surface to finished walking surface. If flooring, decking, tile, or concrete topping will be added later, those thicknesses change the final rise. Using rough framing dimensions can produce a stair that is uniform on paper but wrong after finishes are installed. For remodels, measure after accounting for the final surface build-up at both the top and bottom. The calculator should display the governing assumption beside the answer so users can audit the number instead of treating the output as an unexplained recommendation.
What is the comfort rule 2R + T?
The expression 2R + T combines two riser heights and one tread depth as a rough proxy for human stride. Values in the mid-20 inch range often feel natural, but the rule is not universal and is not a standalone code requirement. A stair can pass code and still feel awkward if the proportions are unusual. The calculator reports this value as an ergonomic cue, while hard pass/fail checks should remain tied to the chosen code thresholds. The calculator should display the governing assumption beside the answer so users can audit the number instead of treating the output as an unexplained recommendation.
Can I use this for deck stair stringers?
Yes, for preliminary rise and run layout. Deck stairs still require structural checks: stringer size, number of stringers, attachment to the deck, landing support, guard and handrail requirements, frost depth, and material durability. The calculator tells you how many risers and treads the geometry requires. It does not tell you how to cut structural members or whether the stair connection meets local deck code. The calculator should display the governing assumption beside the answer so users can audit the number instead of treating the output as an unexplained recommendation.
Why should actual riser height be uniform?
Human gait adapts quickly to a repeated stair rhythm. A single riser that differs noticeably from the others increases trip risk because the foot arrives where the body expects the next tread to be. Codes therefore limit variation among risers in a flight. The calculator computes one actual riser height from total rise divided by riser count, but construction layout must transfer that uniform height accurately to every step. The calculator should display the governing assumption beside the answer so users can audit the number instead of treating the output as an unexplained recommendation.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon