Available run is not the same as a ramp diagonal. Stairs need enough horizontal tread depth for safe foot placement.
Ready to Solve Layout
Enter your total height and horizontal limits. The smart solver will determine if a straight stair fits, or if a landing turn is required.
What is a stair layout solver?
A stair layout solver is an advanced calculator that evaluates the available horizontal space (run) against the vertical height you need to bridge. While standard calculators simply count steps, this tool checks if those steps will actually fit in your room or deck space without exceeding maximum steepness limits.
If the space is too tight for a comfortable straight staircase, the tool automatically calculates compressed steeper options or suggests 90-degree and 180-degree landing layouts to keep your project safe and functional.
Why a 45° Triangle Does Not Always Fit a Staircase
Many people think that if the vertical height and horizontal floor space are the same, the stair should fit as a simple 45° triangle. That would be true for a ramp, but not for a staircase.
A ramp follows one smooth diagonal line from bottom to top. A staircase is different because it is made from separate risers and treads. Each tread must be deep enough for safe foot placement, and each riser must not be too high for comfortable climbing.
For example, a 3000mm high stair in a 3000mm run area may look like a clean 45° triangle. But to fit a straight stair into that space, each step may need to be close to square, such as 200mm high and 200mm deep. That is usually uncomfortable and unsafe because the tread is too shallow for normal foot placement.
Practical stair layout depends on:
- Total vertical height
- Safe riser height
- Usable tread depth
- Available floor run
- Stair angle
- Landing options
- Site conditions
- Local building rules
That is why this calculator first checks a comfortable straight stair, then a tighter straight stair, and then suggests L-shaped or switchback landing options if the straight stair does not fit.
Ramp vs Stair
A ramp can use the full diagonal. A stair cannot simply follow the diagonal because each step needs a usable tread depth and a safe riser height.
How to measure total stair height
The most critical measurement for any staircase is the total vertical height, also known as the "total rise". This is the exact vertical distance from the finished lower floor to the finished upper floor or deck surface.
Do not measure diagonally. Use a straight edge and a spirit level extending from the upper deck, and drop a tape measure straight down to the ground. If the ground is sloped, you must measure to the exact spot where the bottom of the stairs will land.
How to calculate number of risers
To calculate the number of risers, divide your total vertical height by your target riser height (usually around 178mm or 7 inches). For example, if your total height is 1050mm: 1050 ÷ 178 ≈ 5.9. You round to the nearest whole number to get exactly 6 risers.
Then, divide the total height by that whole number to get the exact actual riser height for every step (1050 ÷ 6 = 175mm). Every riser must be exactly the same height to prevent tripping hazards.
How tread depth affects comfort and run
The tread depth is the horizontal distance of each step. A deeper tread (e.g., 280mm or 11 inches) is generally more comfortable and safer, providing ample room for the foot. However, deeper treads increase the "total run" of the staircase, meaning the stairs will stick out further into the lower room or yard.
If you have limited horizontal space (available run), you may need to slightly reduce the tread depth or increase the riser height to make the stairs steeper and more compact. Our tool does this automatically in the "Compressed Layout" phase if necessary.
Why stair angle matters
The stair angle (or pitch) determines how steep the stairs feel. It is calculated using the ratio of the riser height to the tread depth. A standard, comfortable residential staircase usually has an angle between 30° and 37°.
Stairs steeper than 40° start to feel like ladders and can be dangerous, especially when descending. Stairs shallower than 20° feel like ramps and can disrupt a natural walking stride.
Why stringer and support count matters
Stringers are the structural side boards that support the treads and risers. A common mistake is using only two stringers for a wide staircase. Over time, the center of the treads will sag, bounce, or break under heavy loads.
As a general rule, a standard 914mm (36-inch) wide staircase requires at least 3 stringers. For wider stairs, you should add an additional stringer for every 400mm (16 inches) of width to ensure a rigid, safe structure.
How to mark stair stringers
Marking stringers requires precision. Use a framing square equipped with stair gauges (small brass clamps). Attach one gauge at the exact riser dimension on one arm of the square, and the other gauge at the exact tread dimension on the other arm.
Slide the square along the edge of your stringer board, tracing the zigzag pattern. Crucially, remember to "drop the stringer" by cutting off the thickness of one tread board from the very bottom of the stringer. If you skip this step, your first step will be too high once the tread is attached.
Common stair calculation mistakes
Uneven Riser Heights
Even a 5mm difference between steps creates a severe tripping hazard. All risers must be identical.
Forgetting Tread Thickness
Failing to deduct the tread thickness from the bottom stringer cut makes the first step too tall.
Ignoring the Top Landing
The top floor acts as the final step. You always need one less tread than the number of risers.
Measuring Diagonally
Total height must be measured perfectly plumb (straight down), not along the slope of the stairs.
Worked stair layout example
Let's calculate a deck staircase with a total height of 1050mm and an available run of 1800mm. We want a preferred riser of 178mm and a tread depth of 280mm.
- • Risers: 1050mm ÷ 178mm = 5.9. Round to 6 risers.
- • Actual Riser Height: 1050mm ÷ 6 = 175mm exactly.
- • Treads: 6 risers - 1 = 5 treads.
- • Total Run: 5 treads × 280mm = 1400mm.
Verdict: The calculated run of 1400mm easily fits within the 1800mm available space constraints. The calculator will classify this as a "Comfortable Straight Stair". If the available space was only 1200mm, the calculator would automatically determine that a straight flight fails and present a 90° or 180° landing layout instead.
Frequently Asked Questions
Important Disclaimer
Stair geometry verification and code limits
Formula: riser count is rounded from total height÷target riser and increased when needed to stay below the entered maximum; actual riser = height÷riser count. Treads = risers−1, total run = treads×tread depth, angle = atan(riser/tread), and stringer length follows the Pythagorean theorem.
Verified example: 2,700 mm total height with a 178 mm target gives 15 risers at 180 mm, 14 treads at 280 mm, 3,920 mm total run, 32.74° angle and a 4,760.08 mm stringer line.
Safety: entered limits are not proof of code compliance. The responsible designer or building official must verify jurisdictional riser/tread limits, uniformity, clear width, headroom, landings, guards, handrails, structure and egress. Do not cut stringers or build from this estimate alone.
Authoritative references
Stair rise, going and total dimensions
Use this schematic to identify the calculator inputs and how they relate. It is explanatory and not a fabrication, installation or lift-plan drawing.