Stair Calculator

Building a staircase means juggling a handful of measurements that all have to work together. Get one number wrong and you end up with steps that feel awkward to climb, or worse, a stringer that doesn't fit the space. That's where a stair calculator comes in. This page walks you through every key calculation: rise and run, stringer length, angle, step count, and more. Whether you're framing a deck staircase, a basement set of stairs, or an interior flight, you'll find the formulas and guidance you need right here.

Enter Details

Total rise is the floor-to-floor height. All dimensions in inches.

Result

Enter total rise and steps to size the stairs.

A comfortable riser is roughly 7–7.75 in. Always check your local building code.

How to Use the Stair Calculator

Before you punch in any numbers, gather two measurements from your actual space: the total rise and the total run. Total rise is the vertical distance from the lower floor to the upper floor (or landing). Total run is the horizontal distance the staircase will cover from start to finish.

Once you have those, here's the basic workflow:

  1. Enter your total rise in inches.
  2. Enter your desired riser height (typically 7 to 7¾ inches for residential stairs).
  3. The calculator divides total rise by riser height to get the number of steps, then rounds to the nearest whole number.
  4. It recalculates the exact riser height based on that whole number so every step is identical.
  5. Enter your desired tread depth (usually 10 to 11 inches) to find the total run.

A quick note: always double-check the auto-calculated riser against code before you cut anything. A fraction of an inch spread unevenly across a flight can create a tripping hazard.

Stair Rise and Run Calculator

Rise and run are the two dimensions that define how a stair feels underfoot. Rise is the vertical height of a single step. Run is the horizontal depth of a single tread. Together they control the pitch of the staircase and how comfortable it is to use.

The classic comfort rule for residential stairs is:

Rise + Run = 17 to 18 inches

So if your riser is 7 inches, your tread should be about 10 to 11 inches. Another common check is the twice the rise plus the run formula: 2R + T = 24 to 25 inches. Both rules help you land in a zone that feels natural to walk up without being too steep or too shallow.

Riser HeightRecommended Tread DepthStair Feel
6 inches12 inchesGradual, easy climb
7 inches11 inchesComfortable standard
7¾ inches10 inchesSteeper but code-compliant
8 inches9 inchesSteep; may not meet code

Plug your numbers into the comfort formula before committing to a design. Adjusting rise by even half an inch can make a surprising difference in how the finished staircase climbs.

Stringer Length Formula

The stringer is the diagonal board that carries the treads and risers. Getting its length right is critical so you buy enough lumber and cut it accurately.

The formula comes straight from the Pythagorean theorem:

Stringer Length = √(Total Rise² + Total Run²)

For example, if your total rise is 105 inches and your total run is 120 inches:

  • 105² = 11,025
  • 120² = 14,400
  • 11,025 + 14,400 = 25,425
  • √25,425 ≈ 159.5 inches (about 13 feet 3½ inches)

Add a few inches for the top and bottom bearing cuts, and that's your minimum board length. For a typical 2x12 stringer, you also want to verify that after notching for the treads, you still have at least 3½ inches of remaining board depth at the narrowest point. Less than that and the stringer can split under load.

Calculate Stair Angle and Pitch

Stair angle tells you how steeply the staircase rises relative to the horizontal. It's useful for planning headroom clearance, choosing handrail hardware, and making sure the design fits comfortably in the available space.

The formula is straightforward:

Angle = arctan(Total Rise ÷ Total Run)

If your total rise is 105 inches and total run is 120 inches, the angle is arctan(105 ÷ 120) = arctan(0.875) ≈ 41.2°. Most comfortable residential stairs land between 30° and 45°. Steeper than 45° starts to feel more like a ladder. Shallower than 30° tends to eat up a lot of floor space.

Pitch is a related concept often expressed as a ratio of rise to run, like 7:11. Contractors and architects sometimes use pitch when specifying handrail slope or when ordering pre-cut components. Converting between angle and pitch is simple: pitch ratio rise ÷ run equals the tangent of the angle.

If you're working with a framing square, the angle is essentially baked into the layout marks you make on the stringer, so the math and the physical tool reinforce each other.

Determine the Number of Steps

This is usually the first real calculation in any stair project, and it's simpler than it looks.

Number of Risers = Total Rise ÷ Desired Riser Height

Round the result to the nearest whole number, then recalculate the actual riser height by dividing total rise by that whole number. Every riser in the flight must be the same height. Uneven risers are one of the most common causes of trips on stairs.

Keep in mind that the number of treads is always one less than the number of risers. The top landing counts as the final step, so you don't need a tread there.

  • Total rise: 91 inches
  • Desired riser: 7 inches
  • 91 ÷ 7 = 13 risers (rounded)
  • Actual riser: 91 ÷ 13 = 7 inches exactly
  • Number of treads: 12

If the recalculated riser height pushes outside your target comfort range, try rounding up or down to a different whole number and see which produces a riser closest to 7 inches.

Stair Building Code Guidelines

The IRC (International Residential Code) sets the baseline for most residential stair construction in the U.S., though your local jurisdiction may have stricter rules. Always check with your local building department before you start.

Here are the key minimums and maximums under the IRC:

  • Maximum riser height: 7¾ inches
  • Minimum tread depth: 10 inches (measured horizontally from nosing to nosing)
  • Minimum headroom: 6 feet 8 inches, measured vertically from the nosing line
  • Minimum stair width: 36 inches clear
  • Handrail height: 34 to 38 inches above the nosing
  • Maximum riser variation: No single riser in a flight may differ from the others by more than 3/8 inch
  • Nosing projection: ¾ inch to 1¼ inches if risers are enclosed; not required if risers are open

The 3/8-inch variation rule is strict for a reason: even small inconsistencies in riser height mess with muscle memory and cause stumbles. Get all your risers consistent before you call the inspector.

Commercial stairs and stairs in multifamily buildings fall under different codes (IBC rather than IRC), so double-check which applies to your project.

Common Stair Design Examples

Not all staircases are created equal. The right design depends on the available floor space, the style of the building, and how much traffic the stairs will see.

Straight stairs are the most common and easiest to build. One continuous flight from bottom to top, no turns. They require the most horizontal run, so they work best when you have a long, uninterrupted floor plan.

L-shaped stairs include a landing that turns the staircase 90 degrees. They fit better in tighter spaces and break up a long climb. The landing also gives you a natural rest point, which is helpful for kids, elderly users, or anyone moving furniture.

U-shaped stairs (also called switchback stairs) fold back on themselves with a 180-degree turn at a landing. They're compact and work well in stairwells where the width is generous but the depth is limited.

Winder stairs use pie-shaped treads to make a turn without a full landing. They save space but are trickier to build and harder to navigate safely, especially in low-light conditions. Codes have specific requirements for the minimum tread depth at the narrow end of winders.

Spiral stairs are the most compact option of all. Great for secondary access (like a loft or rooftop deck) but generally not permitted as the primary means of egress in a residence under the IRC.

Stair Terminology Explained

If you're new to stair building, the vocabulary can trip you up before the math does. Here's a quick rundown of the terms you'll run into most often.

  • Rise: The vertical height of a single step.
  • Run: The horizontal depth of a single tread, measured from nosing to nosing.
  • Riser: The vertical board (or open space) between two treads.
  • Tread: The horizontal board you actually step on.
  • Nosing: The front edge of the tread that projects beyond the riser below it.
  • Stringer: The diagonal structural board that supports the treads and risers on each side of the staircase.
  • Total Rise: The full vertical height the staircase must climb, from finished floor to finished floor.
  • Total Run: The full horizontal distance the staircase covers from the first riser to the last.
  • Landing: A flat platform between flights or at the top or bottom of a staircase.
  • Headroom: The vertical clearance above the nosing line, measured straight up to the ceiling or soffit above.
  • Handrail: The graspable rail that runs alongside the staircase at hand height.
  • Baluster: The vertical posts that support the handrail and fill the open space between the rail and the treads or floor.

Getting comfortable with these terms makes it a lot easier to follow building plans, talk to inspectors, and make sure every calculation is measuring the right thing.

Other Other Calculators

Explore all