Free Stair Calculator — Rise, Run, Stringer & Landing (2026)

🪜

Stair Calculator

Calculate stair rise and run, stringer length and board size, or plan a staircase with a mid-landing — all checked against standard IRC residential code limits.

Steps = round(Total Rise ÷ 7″) | Riser = Total Rise ÷ Steps | Tread ≈ 25″ − (2 × Riser)
Standard residential code (IRC) limits: max riser height 7.75″, min tread depth 10″. This calculator targets a comfortable 7″ riser by default and checks your result against these limits. Always verify against your local building code.
📏 Total Height
Floor-to-floor or finished floor heights
Leave blank to auto-target 7″

Key Takeaways

  • Standard residential code (IRC) limits riser height to a maximum of 7.75 inches and requires a tread depth of at least 10 inches.
  • The comfort rule for stair proportions is 2 × Riser + Tread = 24–25 inches — this keeps stairs neither too steep nor too shallow.
  • The stringer length formula is: Stringer Length = √(Total Rise² + Total Run²), using the Pythagorean theorem.
  • All risers in a single flight must be within 3/8 inch of each other — uneven steps are a leading cause of stair-related falls.
  • A landing is typically required when a single flight of stairs exceeds about 12 feet of vertical rise — splitting into two flights with a landing in between.

What is a Stair Calculator?

A stair calculator determines the exact number of steps, riser height, and tread depth needed to span a given vertical height, while checking the result against standard building code limits. It removes the trial-and-error from stair design, where even small proportion errors can create an uncomfortable or unsafe staircase.

Our calculator covers three scenarios: a rise and run calculator for the core step dimensions with a built-in code compliance check, a stair stringer calculator for the diagonal support board length and recommended lumber size, and a staircase with landing planner for splitting a tall flight into two shorter sections.

How to Calculate Stairs

Calculating stairs starts with one number: the total rise — the exact vertical distance from the lower finished floor to the upper finished floor. Every other dimension flows from this measurement.

Number of Steps = Round(Total Rise ÷ Target Riser Height)

Actual Riser Height = Total Rise ÷ Number of Steps

Most stair designers target a riser height around 7 inches as a comfortable starting point, then divide the total rise by that target and round to the nearest whole number of steps. The total rise is then divided evenly by that number of steps to get the actual riser height — which will be close to, but not always exactly, the 7-inch target.

Example: A floor-to-floor height of 9 feet (108 inches). 108 ÷ 7 = 15.4, rounds to 15 steps. Actual riser = 108 ÷ 15 = 7.2 inches per step — well within the comfortable range and under the 7.75″ code maximum.

💡 Pro Tip: Always measure total rise from finished floor to finished floor — including the thickness of any flooring material you plan to install (tile, hardwood, carpet pad) — not from subfloor to subfloor. Measuring before flooring is installed is one of the most common stair-building mistakes.

Stair Rise and Run Calculator

Once you know the number of steps and riser height, the tread depth (run) is calculated using a long-standing carpentry guideline called the 2R+T rule (also called the “rule of 25”).

2 × Riser Height + Tread Depth = 24 to 25 inches

This formula balances stride length and comfort — a person’s natural stride covers roughly 24–25 inches on level ground, and good stair proportions preserve that rhythm on an incline. A steeper stair (taller riser) needs a shallower tread to keep the sum near 25; a shallower riser allows for a deeper, more comfortable tread.

Example: With a 7.2″ riser, tread depth = 25 − (2 × 7.2) = 25 − 14.4 = 10.6 inches, which clears the 10″ code minimum comfortably.

Stair Stringer Calculator

The stringer is the diagonal structural board that the treads and risers attach to — most residential stairs use two or three stringers depending on width. Calculating stringer length correctly is essential for ordering the right lumber and avoiding a wasted cut.

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

Example: A staircase with a 105″ total rise and 116″ total run. Stringer length = √(105² + 116²) = √(11,025 + 13,456) = √24,481 ≈ 156.5 inches, or about 13 feet 1 inch.

Choosing Stringer Board Size

Standard residential stringers are cut from 2×12 lumber — this gives enough material remaining above the deepest step cut to maintain structural strength (codes typically require at least 5 inches of uncut material remaining at the narrowest point of the stringer). For most standard rise/tread combinations (7″ rise, 10–11″ tread), a 2×12 provides adequate margin. According to the International Code Council, stringer notch depth and remaining material requirements are specified in IRC Section R311.7.5.1 and should always be verified against your local adopted code.

Number of Stringers Needed

Most codes and engineering guidance call for stringers spaced no more than 16 inches on center for residential stairs without a mid-span support, plus one at each outer edge. A standard 36″ wide staircase typically uses 3 stringers (one on each side, one in the middle); wider stairs need additional stringers.

Staircase Calculator with Landing

A landing is a flat platform that breaks a tall flight of stairs into two (or more) shorter sections. Landings are required by most residential codes when the total rise of a single flight exceeds approximately 12 feet, and are also commonly used to change stair direction (an “L-shaped” or “U-shaped” staircase) or fit a long run of stairs into a shorter horizontal space.

To calculate a two-flight staircase with a landing: split the total rise between the two flights (an even 50/50 split is most common, but uneven splits work for fitting specific spaces), calculate each flight’s steps, riser, and tread independently using the same rise/run formulas, then add the landing depth to the combined horizontal run.

Total Horizontal Run = Flight 1 Run + Landing Depth + Flight 2 Run

Code typically requires a landing to be at least as deep as the stairway is wide, with a 36-inch minimum in most jurisdictions. Use our Stairs with Landing tab to split any total rise into two flights and adjust the split ratio to fit your specific space constraints.

Stair Calculator for Deck Stairs

Deck stairs follow the same rise, run, and stringer formulas as interior stairs, but with a few important differences specific to exterior construction:

  • Ground-level variance: Unlike interior floor-to-floor measurements, deck stair total rise depends on the actual ground elevation at the base, which can vary across the width of the stairs on sloped or uneven yards. Always measure at the lowest point where the stringer will land.
  • Footing requirements: Most codes require a concrete footing or paver landing pad at the base of deck stairs, sized appropriately for frost depth in your region.
  • Pressure-treated lumber: Stringers and treads for deck stairs must be rated for ground contact or above-ground exterior use, depending on clearance from soil.
  • Guardrails: Most codes require a guardrail when the stair drops more than 30 inches, with a handrail required for any stair with 4 or more risers.
⚠️ Note: Deck stair rise is often not a round number since it depends on existing deck height and final ground grade. Use the Rise & Run tab with your actual measured total rise — the calculator will find the best even step distribution automatically.

IRC Stair Code Requirements

The International Residential Code (IRC) sets the most widely adopted baseline for stair dimensions in the United States. Always verify with your local building department, since some jurisdictions adopt amendments to these standards.

Requirement Standard IRC Limit
Maximum riser height 7.75 inches
Minimum tread depth 10 inches
Maximum riser height variance (within a flight) 3/8 inch
Minimum stair width 36 inches
Minimum headroom 6 ft 8 in
Handrail required 4 or more risers
Guardrail required Drop > 30 inches
Minimum landing depth 36 inches (or stair width)

Tips & Common Mistakes

Common Mistake What to Do Instead
Measuring total rise before flooring is installed Always measure (or account for) the final finished floor height on both levels, including planned flooring thickness, before calculating riser height.
Inconsistent riser heights within a single flight All risers in one flight must be within 3/8″ of each other. Calculate steps first to find the exact even riser height before cutting any stringers.
Forgetting the top step is a tread, not a riser A staircase with N risers only has N-1 treads — the top step is the upper floor itself. Many DIY calculations mistakenly count N treads, overestimating total run.
Cutting stringers without checking remaining board strength Ensure at least 5 inches of uncut material remains at the narrowest point of the stringer after notching for risers and treads, per IRC structural requirements.
Skipping the landing on tall single-flight stairs Most codes require a landing when total rise exceeds about 12 feet. Check your local code before designing a single uninterrupted flight beyond this height.

Frequently Asked Questions

How do I calculate the number of steps for stairs?

Divide your total rise (vertical height) by a target riser height of about 7 inches, then round to the nearest whole number — that’s your number of steps. Divide the total rise by that number of steps to get your actual (final) riser height. Example: 108″ total rise ÷ 7″ target = 15.4, rounds to 15 steps. Actual riser = 108 ÷ 15 = 7.2″. Use our Rise & Run tab above to do this instantly with a code compliance check.

How do I calculate stair stringer length?

Use the Pythagorean theorem: Stringer Length = √(Total Rise² + Total Run²). For a staircase with 105″ total rise and 116″ total run: √(105²+116²) = √24,481 ≈ 156.5″, or about 13 feet 1 inch. Use our Stringer tab to calculate this for any rise, tread, and step count, plus get a recommended board size and number of stringers needed.

What is the maximum riser height allowed by code?

Standard IRC residential code limits riser height to a maximum of 7.75 inches, with tread depth required to be at least 10 inches. All risers within a single flight must also be within 3/8 inch of each other to avoid trip hazards. Always verify against your specific local building code, as some jurisdictions adopt amendments to these standard limits.

When is a landing required on a staircase?

A landing is typically required when the total rise of a single flight exceeds approximately 12 feet, per standard residential code. Landings are also commonly used to change stair direction or to fit a long stair run into a shorter horizontal footprint. Landings must generally be at least as deep as the stairway is wide, with a 36-inch minimum in most codes. Use our Stairs with Landing tab to plan a two-flight staircase with a custom landing depth.

What size lumber should I use for stair stringers?

Most residential stair stringers are cut from 2×12 lumber, which provides enough remaining material above the deepest notch cut to maintain structural strength for standard rise/tread combinations. Codes typically require at least 5 inches of uncut material remaining at the narrowest point after notching for risers and treads. For deck stairs, use pressure-treated lumber rated for the appropriate exposure (ground contact or above-ground).

How many stringers do I need for a staircase?

Most codes and engineering guidance recommend stringers spaced no more than 16 inches on center. A standard 36-inch wide staircase typically needs 3 stringers (one at each outer edge, one in the middle). Wider staircases need additional stringers to maintain the 16-inch on-center spacing. Use our Stringer tab — enter your stair width and it will recommend the number of stringers needed.

If this stair calculator helped you plan your project, these tools are useful for related construction calculations:

Whether you are building an interior staircase, deck stairs, or a two-flight design with a landing, getting the rise and run right is the foundation of a safe, comfortable, code-compliant stairway. Use the stair calculator above to find your exact step count, check your design against standard code limits, and calculate the precise stringer length before you make a single cut.