Nest Quantum

Stair Calculator

Calculate the number of risers, tread depth, stringer length, and total material quantities for your staircase. Get an instant cost estimate for stringers, treads, and risers — plus a code-compliance check against IRC requirements.

This stair calculator provides estimates for planning purposes only. Actual riser and tread dimensions must comply with your local building code (IRC or local amendments). Stringer sizing and attachment must meet structural requirements. Consult a licensed contractor or structural engineer for any structural or code-required stair installation. Always obtain required building permits.

How to Calculate Stair Risers, Treads, and Stringer Length

Building stairs is one of the most arithmetically precise tasks in home construction. Unlike framing walls or installing flooring — where small errors disappear into drywall or under baseboards — every riser on a staircase must be exactly the same height. A variation of more than 3/8 inch between any two risers on the same flight is a building code violation and, more importantly, a genuine tripping hazard. The human brain learns the rhythm of a staircase after the first few steps and adjusts its stride automatically. An anomalous riser height breaks that rhythm and causes falls.

Getting the math right before you cut a single board protects you legally and physically. The calculation has three steps: divide the total rise into equal riser heights, determine how many treads that creates (always one fewer than the risers), and use the Pythagorean theorem to find the stringer length. This calculator handles all three steps, adds a 10% cut allowance to the stringer, computes total material linear footage for treads and risers, generates a cost estimate, and checks your dimensions against the International Residential Code (IRC) requirements.

Whether you are building a simple pressure-treated exterior deck stair or planning a full interior hardwood staircase, the math is the same. Enter your total rise — the vertical distance from the finished floor at the bottom to the finished floor at the top — and this calculator does the rest.

Stair Calculator

Enter total rise and stair dimensions, then click Calculate

Free

Floor-to-floor vertical height in inches

IRC max: 8.25 in. Comfortable: 7–7.75 in.

IRC min: 9 in. Comfortable: 10–11 in.

IRC min: 36 in for habitable spaces

Typically 3 for a 36-in stair; add 1 per additional 18 in of width

Uncheck for open-riser (no vertical face board) design

Typical 2×12 PT: $3.50–$6.00/lf

Set to 0 to exclude labor from total

Formulas Used

Number of Risers

Risers = round(Total Rise ÷ Preferred Riser Height)

Where:

  • Total Rise= Total vertical height in inches
  • Preferred Riser Height= Desired riser height in inches (4–8.25 in)

Example:

Total rise 102 in ÷ 7.5 in = 13.6 → round = 14 risers

Actual Riser Height

Actual Riser = Total Rise ÷ Number of Risers

Where:

  • Total Rise= Total vertical height in inches
  • Number of Risers= Rounded riser count from above

Example:

102 in ÷ 14 = 7.29 in per riser

Stringer Length

Stringer (ft) = √(Rise² + Run²) ÷ 12 × 1.10

Where:

  • Rise= Total rise in inches
  • Run= Total run in inches (treads × tread depth)
  • 1.10= 10% added for end cuts

Example:

√(102² + 130²) ÷ 12 × 1.10 = 165.6 ÷ 12 × 1.10 = 15.18 ft

Total Tread Linear Feet

Tread Lin Ft = numberOfTreads × (stairWidth ÷ 12)

Where:

  • numberOfTreads= Number of horizontal treads
  • stairWidth= Width of the staircase in inches

Example:

13 treads × (36 in ÷ 12) = 13 × 3 ft = 39 linear ft

Riser Height, Tread Depth, and IRC Code Requirements

Every staircase is defined by two dimensions: rise and run. The rise is the vertical height of a single step — measured from the top surface of one tread to the top surface of the next. The run (or tread depth) is the horizontal depth of a step, measured from the face of the riser to the face of the next riser (or from nosing to nosing if the treads have an overhang).

International Residential Code (IRC R311.7) Requirements

The IRC sets the minimum safety standards for residential stairs. Most jurisdictions in the United States adopt the IRC, sometimes with local amendments that are stricter. Key requirements:

  • Maximum riser height: 8.25 inches. Any riser taller than 8.25 inches is not code-compliant for residential use.
  • Minimum tread depth: 9 inches, measured horizontally from nosing to nosing. Many builders target 10–11 inches for comfort.
  • Maximum riser variation within a flight: 3/8 inch. All risers must be within 3/8 inch of each other in height.
  • Minimum clear width: 36 inches at and above the handrail for habitable buildings.
  • Minimum headroom: 6 feet 8 inches, measured vertically from the nosing line of the treads to the ceiling or any overhead obstruction.
  • Handrail required when: There are 4 or more risers. Handrail height must be 34–38 inches above the nosing.

Some jurisdictions are stricter. California, for example, requires a minimum tread depth of 10 inches. Always verify requirements with your local building department before designing your stairs.

The Comfort Formula

Beyond the minimum code requirements, stair designers use a comfort formula that has been in use for centuries: 2R + T = 24–25 inches, where R is the riser height and T is the tread depth. A 7.5-inch riser with a 10-inch tread gives 2(7.5) + 10 = 25 — one of the most common and comfortable stair proportions. Steeper stairs feel rushed and tiring; very shallow stairs feel awkward, like walking up a ramp.

The comfort range typically falls between 6.5–7.75 inch risers with 10–12 inch treads. Interior stairs in homes are usually at the shallower end of the range for comfort. Exterior utility stairs (basement access, deck stairs to grade) are often steeper because they are used less frequently.

Stringer Length: The Pythagorean Theorem Applied to Stairs

The stringer is the diagonal structural member — cut from a 2×12 board — that supports the treads and risers. Choosing the right stringer length before you go to the lumber yard prevents buying boards that are too short for your project.

The stringer forms the hypotenuse of a right triangle where the total rise is the vertical leg and the total run is the horizontal leg. The Pythagorean theorem gives the exact diagonal length:

Stringer length = √(total rise² + total run²) ÷ 12

Dividing by 12 converts from inches to feet. Always add at least 10% to account for the angled plumb cut at the top (where the stringer bears against the framing) and the angled seat cut at the bottom (where it rests on the floor). This calculator adds 10% automatically.

Example: 102-inch rise, 130-inch run

  • Hypotenuse: √(102² + 130²) = √(10,404 + 16,900) = √27,304 = 165.24 inches
  • In feet: 165.24 ÷ 12 = 13.77 feet
  • With 10% for cuts: 13.77 × 1.10 = 15.15 feet
  • Purchase: 16-foot 2×12 boards (the next standard length)

Why You Must Use 2×12 Lumber for Cut Stringers

When you notch a stringer for each tread and riser, you remove material from the board. The IRC requires that a minimum "effective depth" of 3.5 inches remain below the deepest notch in the stringer. With a 2×12 (actual depth 11.25 inches), a standard 7.5-inch riser notch leaves 11.25 − 7.5 = 3.75 inches of remaining material — just above the minimum. A 2×10 (actual depth 9.25 inches) leaves only 9.25 − 7.5 = 1.75 inches after notching — far below the structural requirement. Never use 2×10 lumber for cut stringers.

For spans longer than 16 feet or for commercial applications, laminated veneer lumber (LVL) stringers may be required. Consult a structural engineer for any stringer longer than 16 feet.

Stair Materials: Stringers, Treads, and Risers

The three structural components of a staircase — stringers, treads, and risers — each have distinct material requirements. Choosing the right material for each component affects durability, appearance, maintenance, and cost.

Stringers

Stringers are almost always cut from pressure-treated 2×12 lumber for exterior stairs. The preservative treatment protects against rot and insects in exposed outdoor conditions. For interior stairs, dimensional Douglas fir or Southern yellow pine 2×12 is standard. Stringer material typically costs $3.50–$6.00 per linear foot for standard pressure-treated 2×12; prices fluctuate with lumber market conditions.

Never use green (freshly treated, still wet) lumber for stringers if you can avoid it. Wet PT lumber will shrink and warp as it dries. If you must use green lumber, allow it to dry before painting or sealing, and check for warping after installation — a warped stringer produces uneven treads.

Treads

The tread is the horizontal surface you step on. It takes more impact and wear than any other part of the staircase. Material choices range from practical to premium:

  • Pressure-treated pine ($3–$5/lf): Standard for exterior deck stairs. Resistant to rot and insects. Requires sealing every 1–2 years. Tends to check (crack lengthwise) as it dries. The rougher surface provides good grip when wet — an important safety consideration for outdoor stairs.
  • Composite ($6–$10/lf): Manufactured from wood fiber and plastic. Available in many colors and wood-grain textures. Does not rot, splinter, or require annual sealing. Heavier and more expensive than PT pine. Follow manufacturer gap specifications — composite expands with heat and requires end gaps to prevent buckling.
  • Hardwood ($10–$15/lf): Oak, maple, and other hardwoods are used for interior finished stairs. Beautiful, durable, and long-lasting. Requires pre-drilling near ends, careful moisture control, and periodic refinishing. Slip-resistant nosing profiles are available and recommended for safety.
  • Concrete (pour in place): Used for monolithic concrete stairs or concrete-filled metal pan treads. Permanent, zero-maintenance, and highly durable. Requires forming and finishing expertise. Concrete treads are typically poured as part of the structure, not purchased as individual boards.

Risers

Risers are the vertical face boards between treads. They are not required in all applications — open-riser stairs have no vertical boards. Where risers are used, the material typically matches or complements the treads. Riser material options include pressure-treated pine ($2–$4/lf), composite ($5–$8/lf), and hardwood ($8–$12/lf). Pre-painted MDF risers are also common for interior stairs where the risers will be painted.

Open-riser stairs are permitted by the IRC for residential use provided the gap between treads does not allow a 4-inch diameter sphere to pass through. This prevents children from getting feet or heads caught in the opening. An open-riser design saves on material cost, reduces overall weight, and allows light and air to pass through — advantages for deck and exterior stairs.

Step-by-Step Stair Building Process

The process of building a code-compliant wood staircase involves careful layout, precise cutting, and proper attachment. Rushing any step creates problems that are expensive to fix after installation.

Step 1: Measure the Total Rise Accurately

Measure from the finished floor surface at the bottom landing to the finished floor surface at the top landing. Include the thickness of any finish flooring that has not yet been installed. If you are adding 3/4-inch hardwood to the top landing after the stairs are built, your effective total rise increases by 3/4 inch — which changes your riser count and actual riser height. Measure multiple times and double-check.

Step 2: Calculate and Verify Dimensions

Use this calculator to determine riser count, actual riser height, tread depth, total run, and stringer length. Verify that all dimensions are code-compliant. Calculate the total run to confirm you have adequate floor space at the bottom landing and that the stair does not encroach on required clearances.

Step 3: Lay Out and Cut Stringers

Use a framing square with stair gauges clamped at your riser height (horizontal) and tread depth (vertical) to draw each notch line on the stringer. Lay out all notches before cutting any. Check that the remaining material below the deepest notch is at least 3.5 inches. Cut each notch carefully with a circular saw, stopping just at the corner — never overcut the corner, as this significantly weakens the stringer. Complete the corner cut with a handsaw or jigsaw. Cut all stringers identically so treads sit perfectly level.

Step 4: Install Stringers

Attach the top of the stringers to the upper framing using structural joist hangers, metal stringer connectors, or by notching the stringer over a ledger. At the bottom, the stringers should rest on a solid surface — a concrete footing, pressure-treated nailer on concrete, or a PT pad. Never set the end-grain of a stringer directly on soil; even PT lumber will eventually wick moisture and rot. Space the bottom ends of the stringers precisely to match the tread width.

Step 5: Install Treads and Risers

If building with risers, install the bottom riser first, then the first tread, then the second riser, continuing up the staircase. This sequence locks each tread between the riser below and the riser above. Fasten treads with two 3-inch stainless or hot-dipped galvanized screws per stringer crossing. Pre-drill near tread ends to prevent splitting. Leave a 1/16-inch gap between adjacent boards if using PT lumber — the boards will dry and shrink slightly; this small gap prevents them from cupping or buckling if they cannot expand.

Step 6: Install Handrail and Guards

A graspable handrail is required by the IRC when a staircase has 4 or more risers. The handrail must be continuous from the top nosing to the bottom nosing. Height measured from the nosing must be 34–38 inches. The handrail must return to a wall or newel post at each end, or terminate in a horizontal return at least 12 inches beyond the top or bottom riser — to prevent a user's arm from catching on an open end. If the stair is open on one or both sides, a guardrail with balusters or a solid infill is required. Baluster spacing must not exceed 4 inches — enough to prevent a 4-inch sphere from passing through.

Common Stair Calculation Mistakes and How to Avoid Them

  • Using preferred riser height as actual riser height: After rounding the number of risers, the actual riser height is the total rise divided by the rounded count — not the preferred height you started with. These two numbers are almost never identical. Always recalculate actual riser height after rounding.
  • Counting treads as equal to risers: A staircase always has one more riser than treads. A 14-riser stair has 13 treads. Confusing this produces a bill-of-materials error for treads and affects total run calculations.
  • Measuring from subfloor instead of finished floor: If you measure the rough framing height and then add finish flooring later, your total rise changes — and with it, your riser count and actual riser height. Always measure from finished floor to finished floor or account for flooring thickness explicitly.
  • Forgetting the stringer cut allowance: The raw Pythagorean length is not the board you need — you need 10% more for the plumb cut at the top and seat cut at the bottom. Buying a board that is exactly the calculated hypotenuse length leaves you with insufficient material for the end cuts.
  • Using 2×10 lumber for cut stringers: After notching for risers and treads, a 2×10 does not leave adequate structural material below the deepest notch. Always use 2×12 for cut stringers.
  • Not checking headroom: The total run of the staircase, combined with the upper floor edge, determines how much headroom exists at the bottom of the staircase. In spaces with low ceilings or when the stairs run under the floor above, verify that minimum 6 ft 8 in headroom is maintained at every point along the stair.

Stair Safety and Permits

Building permits: Interior stairs and exterior stairs attached to a structure typically require a building permit in most jurisdictions. Permits exist to ensure an inspection verifies code compliance. Unpermitted stairs can become a costly problem when selling a home and may need to be rebuilt.

Handrails and guards are not optional: The IRC requires a graspable handrail whenever there are 4 or more risers. Falls on stairs are one of the leading causes of home injury. Install handrails and guardrails before the staircase is put into use.

Riser uniformity is a safety requirement: All risers within a flight must be within 3/8 inch of each other. Measure each riser after installation and before finishing. Correct any out-of-tolerance risers by shimming the tread or adjusting the stringer notch before proceeding.

Structural attachment: Stringers must be properly attached at top and bottom with appropriate hardware. Improperly attached stringers can fail under load. Use Simpson Strong-Tie or equivalent connectors rated for the lumber size and load.

Frequently Asked Questions

Related Calculators

Authoritative Resources

This stair calculator provides estimates for planning purposes only. Actual riser and tread dimensions must comply with your local building code (IRC or local amendments). Stringer sizing and attachment must meet structural requirements. Consult a licensed contractor or structural engineer for any structural or code-required stair installation. Always obtain required building permits.

Calculator Assumptions

  • Riser count = round(total rise ÷ preferred riser height)
  • Actual riser height = total rise ÷ riser count (may differ slightly from preferred)
  • Number of treads = number of risers − 1
  • Stringer length includes 10% extra for end cuts
  • IRC code: riser height 4–8.25 in; minimum tread depth 9 in
  • Tread linear feet = numberOfTreads × stairWidth (ft)
  • Riser linear feet = numberOfRisers × stairWidth (ft)
  • Material rates are approximate national averages; local prices vary

Pro Tips

  • Target a riser height of 7–7.75 inches for the most comfortable everyday stair
  • Use the formula 2R + T = 24–25 inches to check comfort (R = riser, T = tread depth)
  • Buy one extra stringer board per run as insurance against a bad notch cut
  • For exterior stairs, slope treads 1/8 inch per foot outward for drainage
  • Seal the cut ends of pressure-treated stringers immediately after cutting with copper naphthenate
  • Use a speed square and a stair gauge to mark consistent notch lines on all stringers before cutting