Stair Calculator - CalcVenue

Stair Calculator

The Stair Calculator is a tool for calculating the parameters involved in building stairs. Use the Basic Version to see every workable combination of steps for a given rise, or the Comprehensive Version to fix the rise or step count and add tread, headroom, and stringer-mount options. A fraction-to-decimal conversion table for common measurements is provided at the bottom of the page.

Basic Version

Comprehensive Version

Rise
Tread
Headroom
Mount

Stair Calculator: Plan Rise, Run, Steps, and Stringers

The stair calculator works out every key measurement you need to design and build a staircase — the number of steps, the height of each riser, the depth of each tread (run), the length and height of the stringers, and the overall angle of the stairs — from just the total rise and run of the space. It offers two modes. The Basic Version lists every workable combination of steps for your total rise so you can pick the one that feels most comfortable, while the Comprehensive Version lets you fix either the riser height or the number of steps and then fine-tune the design with tread thickness, headroom clearance, and the type of stringer mount. Whether you are building a deck stair, a basement staircase, or a set of porch steps, this tool turns a few measurements into a complete, code-aware cutting plan.

Building stairs looks simple but involves a surprising number of parameters and building-code rules. Getting the rise and run right is essential for both safety and comfort — stairs that are too steep or have inconsistent steps are a serious trip hazard. This calculator handles the geometry precisely so you can focus on building.

How to Use the Stair Calculator

Start by measuring your total rise — the vertical distance from the lower finished floor to the upper finished floor — and the space available for the total run, the horizontal distance the stairs will cover. Then choose a mode:

  • Use One Run vs. Use Total Run. "Use One Run" fixes the depth of a single step and lets the total run grow with the number of steps. "Use Total Run" fixes the total horizontal distance and divides it among the steps.
  • Basic Version. Enter total rise plus either a single run or the total run, and the calculator shows a table of every step count that yields a comfortable riser height (roughly 5 to 10 inches), with the rise, run, stringer length and height, and angle for each.
  • Comprehensive Version. Choose a fixed riser height or a fixed number of steps, optionally add the tread thickness, set a headroom restriction, and pick a standard or flush stringer mount. The calculator returns a single detailed result.

Stair Terminology

Understanding the parts of a staircase makes the results much clearer.

Rise (Riser Height)

The rise is the vertical height of a single step, measured from the top of one tread to the top of the next. Consistent riser heights are critical — even small variations between steps cause people to trip. Most building codes cap the maximum riser height at about 7.75 inches (19.7 cm).

Run (Tread Depth)

The run, or tread depth, is the horizontal depth of a step from the front edge (nosing) to the riser behind it. Deeper treads are more comfortable to walk on. Codes typically require a minimum tread depth of about 10 inches (25.4 cm).

Total Rise and Total Run

The total rise is the overall vertical height the staircase climbs; the total run is the overall horizontal distance it spans. These two numbers, together with your chosen riser height, determine everything else about the staircase.

Stringer

A stringer is the structural board (often a 2×12) that runs along each side of the stairs and supports the treads and risers. The stringer length is the diagonal length of that board, and the stringer height is the vertical distance it spans — both important when buying lumber and laying out cuts.

Nosing

The nosing is the part of the tread that overhangs the riser below it. It adds a little extra foot room without increasing the total run and is required by many codes (typically a projection of about 0.75 to 1.25 inches when treads are less than 11 inches deep).

Tread Thickness

The tread thickness is the thickness of the material used for the steps. It matters when cutting stringers because the first (bottom) step must be cut shorter by the thickness of one tread so that, once the tread is installed, every finished step is the same height.

Headroom

Headroom is the vertical clearance measured plumb from the nosing line of the stairs to the ceiling or the underside of the floor opening above. Building codes generally require a minimum headroom of about 6 feet 8 inches (203 cm) so people can use the stairs without ducking.

Stringer Mount: Standard vs. Flush

With a standard mount, the top of the stringer attaches to the face of the upper framing, and the top step is one riser below the upper floor (the upper floor itself acts as the last "step"). With a flush mount, the top of the stringer is level with the upper floor, adding one more tread to the run. The mount type changes the number of steps and the stringer dimensions, which is why the calculator asks for it.

The Stair Formulas

The calculator uses straightforward geometry. With the total rise H, a chosen number of risers N, and a run per step:

Rise per step = H / N
Number of steps (treads) = N − 1 (standard) or N (flush)
Total run = number of steps × run
Stringer height = H − rise (standard) or H (flush)
Stringer length = √(stringer height² + total run²)
Angle = arctan(rise / run)

When you fix the riser height and the total rise is not an exact multiple of it, the first (bottom) step is adjusted to absorb the remainder so all the other steps stay equal. When a tread thickness is specified, the first step is cut shorter by that thickness on the stringer, and the calculator reports both the structural first-step height and the finished height with the tread in place.

Common Building Codes for Stairs

Building codes exist to make stairs safe and predictable. While requirements vary by jurisdiction, the most widely used residential values (based on the International Residential Code) include:

  • Maximum riser height: about 7.75 inches (19.7 cm).
  • Minimum tread depth: about 10 inches (25.4 cm).
  • Minimum headroom: 6 feet 8 inches (203 cm) measured vertically from the nosing line.
  • Minimum stair width: 36 inches (91.4 cm) above the handrail height.
  • Handrails: required on at least one side for stairs with four or more risers, typically mounted 34 to 38 inches (86 to 97 cm) above the nosing.
  • Riser and tread consistency: the largest and smallest riser (or tread) within a flight should not differ by more than 0.375 inch (about 1 cm).
  • Nosing: a projection of roughly 0.75 to 1.25 inches is required when treads are less than 11 inches deep.

Always confirm the exact requirements with your local building department before construction, as codes differ at the local level and are periodically updated.

What Makes Stairs Comfortable

Beyond meeting code, well-proportioned stairs simply feel right to climb. Carpenters have long used "rules of thumb" that relate rise and run. Two of the most common are the rise-plus-run rule (one rise plus one run should total about 17 to 18 inches) and the 2R + T rule (twice the rise plus the tread should equal about 24 to 25 inches). A riser of around 7 inches paired with an 11-inch tread is often cited as an ideal, comfortable combination. The Basic Version of this calculator helps you find such a balance by showing several step counts at once, so you can choose the option whose rise and run feel most natural for your space.

Tips for Building Stairs

  • Measure the total rise carefully. Measure from finished floor to finished floor, accounting for any flooring not yet installed — a small error here multiplies across every step.
  • Keep every riser equal. Consistency is the single most important safety factor. Use the calculator's first-step adjustment to handle any remainder rather than eyeballing it.
  • Account for tread thickness. Cut the bottom of the stringer shorter by one tread thickness so the finished steps are uniform.
  • Check headroom early. If the stairs pass under a floor opening, verify clearance before cutting anything; a too-small opening may require lengthening the run or moving the opening.
  • Use the right lumber. Stringers are typically cut from 2×12 boards; make sure the calculated stringer length fits the material you have.
  • Confirm local codes. Verify riser, tread, headroom, handrail, and width requirements with your building department before you build.

Types of Stairs

While this calculator focuses on the geometry of a straight flight, it is worth knowing the common staircase configurations, because the same rise-and-run math underlies all of them. A straight staircase is the simplest and most common: a single, uninterrupted flight from one floor to the next. An L-shaped staircase turns 90 degrees, usually with a landing at the turn, which saves floor space and provides a natural resting point. A U-shaped (or half-turn) staircase doubles back on itself with a landing, fitting a tall rise into a compact footprint. Winder stairs replace a landing with wedge-shaped treads that turn the corner, saving even more space but requiring careful layout. Spiral and curved staircases wrap around a center point or sweep along a curve and are prized for their looks, though they are harder to build and less convenient for moving furniture. For any multi-flight design, you calculate the total rise across the whole staircase, then divide the rise and the steps among the individual flights, keeping every riser in the entire staircase the same height for safety. Landings themselves do not count as steps but must be at least as deep as the stair is wide.

Materials and Cost Considerations

The results from this calculator translate directly into a materials list. The stringer length tells you how long each stringer board must be — typically cut from pressure-treated 2×12 lumber for exterior stairs — and most straight flights need at least two stringers, with a third added down the middle for stairs wider than about 36 inches or for heavier loads. The number of steps tells you how many treads and risers to buy; treads are often 2× lumber or manufactured stair treads, while risers are thinner boards or plywood. When budgeting, remember to add fasteners, joist hangers or stringer connectors, any railing and balusters required by code, and finishing materials such as paint, stain, or anti-slip coating. Interior stairs may also involve skirt boards, nosing trim, and carpet or hardwood, which add to both cost and labor. Getting the rise and run right the first time avoids the single most expensive mistake in stair building — miscut stringers — which is exactly what this calculator is designed to prevent.

Fraction to Decimal Conversion Table

Tape measures are marked in fractions of an inch, but calculators work in decimals. Use this table to convert the calculator's decimal results into the nearest fraction when laying out cuts.

FractionDecimalFractionDecimal
1/16"0.06259/16"0.5625
1/8"0.1255/8"0.625
3/16"0.187511/16"0.6875
1/4"0.253/4"0.75
5/16"0.312513/16"0.8125
3/8"0.3757/8"0.875
7/16"0.437515/16"0.9375
1/2"0.51"1.0

Frequently Asked Questions

What is the difference between the Basic and Comprehensive versions?

The Basic Version shows a table of every workable step count for your total rise, letting you compare options. The Comprehensive Version produces one detailed result for a fixed riser height or step count, and adds tread thickness, headroom clearance, and stringer-mount options.

What is a comfortable riser height and tread depth?

A riser of about 7 inches (18 cm) with a tread of about 11 inches (28 cm) is widely considered comfortable. Codes generally allow risers up to 7.75 inches and require treads of at least 10 inches. The rise-plus-run rule (one rise plus one run ≈ 17–18 inches) is a good comfort check.

How do I calculate the number of steps?

Divide the total rise by your desired riser height and round to a whole number of risers. The number of treads (steps you walk on) is usually one less than the number of risers for a standard mount, because the upper floor serves as the top step.

Why is the first step a different height?

When the total rise does not divide evenly by the riser height, the remainder is placed in the bottom step so that all the other steps remain exactly equal. The calculator reports this first-step height for you. When a tread is added, the first step is also cut shorter by the tread thickness.

What is the difference between a standard and flush stringer mount?

A standard mount attaches the stringer to the face of the upper framing, so the upper floor acts as the last step and there is one fewer tread. A flush mount makes the top of the stringer level with the upper floor, adding one more tread and increasing the total run and stringer length.

How is stringer length calculated?

The stringer length is the diagonal of a right triangle whose vertical leg is the stringer height and whose horizontal leg is the total run: stringer length = √(stringer height² + total run²).

Disclaimer

This Stair Calculator is provided for educational and general informational purposes. Results are computed with standard stair geometry and displayed to high precision, but building codes vary by location and are periodically updated. Always verify measurements and confirm all requirements with your local building authority before constructing stairs.