Skip to content
All Calculators

🪜 Stair Calculator PRO

Professional stair calculator — risers, treads, stringers, handrails, balusters, headroom, and IRC code compliance.

x-cloak
Advertisement
Ad space — activates after AdSense approval
stringer = √(rise² + run²)

Dimension Diagram — updates as you type

Total rise sets the riser count; total run sets the footprint. The stringer is the hypotenuse.

2 × rise + run = 25–27 in

1 Stair Type & Dimensions

2 IRC Code Checks (R403.1)

3 Materials & Configuration

4 Handrails & Balusters

5 Landing Size

IRC R311.7.5: Landings at top and bottom must be at least 36" deep and as wide as the stair. Platform depth = min. 36" or total rise ÷ riser height.

6 Labour & Costing

Labour Cost

7 Project & Client Info

Results

Geometry

Stair Type—
Number of Risers—
Riser Height—
Number of Treads—
Tread Depth (exposed)—
Stringer Length—
Stair Angle—

Headroom—
Landing Area (top)—
Landing Area (bottom)—

Handrail Length—
Posts Needed—
Baluster Count—

—

Material Breakdown

x-cloak
Hardware Kit
Stringer Material

Materials Subtotal
Labour Cost

Grand Total
x-cloak

⚠️ Pre-Export Checklist

  • Total rise verified on-site with laser level
  • Landing dimensions confirmed at top and bottom
  • Headroom clearance meets local code (min 6'8")
  • Riser heights are uniform (max 3/8" variation)
  • Stringer material and thickness specified
  • Handrail height: 34–38 in above tread nosing
  • Balusters spaced max 4 in apart (child-safe)
  • Local code amendments reviewed (some jurisdictions stricter)

Professional Stair Building Guide

Show formulas, code references, and worked examples ▼

IRC Code Requirements (R403.1, R311.7)

  • Max riser height: 7.75 inches (197 mm)
  • Min tread depth: 10 inches (254 mm) — nosing adds 0.75" to 1.25"
  • Rise + Run formula: (2 × Riser) + Tread = 25" to 27"
  • Max variation between risers: 3/8 inch
  • Min headroom: 6'8" (80 inches) clear — IRC R311.7.2
  • Min stair width: 36 inches (residential), 44 inches (commercial)
  • Handrail height: 34"–38" above tread nosing — IRC R311.7.8
  • Baluster spacing: Max 4" openings — IRC R312.1
  • Landing depth: Min 36" at top and bottom — IRC R311.7.5
  • Max step count without intermediate landing: 14 risers

Stair Type Comparison

Type Space Complexity Cost
StraightMostEasyLow
L-shapedMediumMediumMedium
U-shapedCompactMediumMedium-High
WinderCompactHighHigh
SpiralMinimalVery HighHighest

Formulas

Number of Risers

= Total Rise ÷ Desired Rise Height

Round UP (never down — code requires uniform rise)

Actual Riser Height

= Total Rise ÷ Number of Risers

Must be ≤ 7.75 inches

Number of Treads

= Number of Risers − 1

Top riser lands on upper floor

Stringer Length

= √(Rise² + Run²) + Overhang

Pythagorean theorem + top overhang

Stair Angle

= arctan(Total Rise ÷ Total Run) × 180/π

Comfortable range: 30°–37.5°

Headroom

= Ceiling Height − (Tread Depth × sin(angle))

Must be ≥ 80 inches (6'8")

Baluster Count

= (Tread Depth × Num Treads) ÷ Spacing

Max 4" spacing per IRC R312.1

Handrail Length

= Stringer Length + Top/Bottom Extension

Both sides if width > 44"

Worked Example — Straight Stair

Inputs: Total Rise = 108 in (9 ft), Tread Depth = 10 in, Stair Width = 36 in, Ceiling = 120 in

  • Risers needed: 108 ÷ 7.75 = 13.9 → 14 risers
  • Actual riser height: 108 ÷ 14 = 7.71 in (PASS — under 7.75")
  • Treads: 14 − 1 = 13 treads
  • Check: (2 × 7.71) + 10 = 25.42 in (PASS — 25–27")
  • Total run: 13 × 10 = 130 in
  • Stringer: √(108² + 130²) = 168.8 in ≈ 14.1 ft
  • Angle: arctan(108/130) = 39.8° (slightly steep — consider 9" run)
  • Headroom: Using 10" run, 8 treads deep = 80 in vertically → 120 − 80 = 40 in (PASS)
  • Handrail: 168.8 in + 12" top + 12" bottom = 192.8 in ≈ 16.1 ft (one side)
  • Balusters: (10 × 13) ÷ 4 = 32.5 → 33 balusters

Stringer Count Guide

  • 2 stringers: Standard for stairs ≤ 36" wide with solid treads
  • 3 stringers: Recommended for stairs 36"–48" wide, or with composite/stone treads
  • 4 stringers: Required for stairs > 48" wide, heavy traffic, or concrete treads

Common Mistakes to Avoid

  • Measuring only the visible rise — include the top landing thickness
  • Using different riser heights on the same flight (code violation — max 3/8" variation)
  • Ignoring nosing projection in tread calculations
  • Forgetting headroom clearance under intermediate landings
  • Placing balusters more than 4" apart (child safety hazard — IRC R312.1)
  • Setting handrails below 34" or above 38" — both are code violations
  • Skip the landing at floor transitions — 36" minimum required
  • Assuming spiral stairs meet residential code — check local amendments

Material Selection Guide

  • Hardwood treads: Oak, maple — premium look, $15–30/lf, needs finishing
  • Composite treads: Trex, Veranda — low maintenance, $20–40/lf, weather-resistant
  • Concrete treads: Indoor/outdoor, $8–15/lf, heavy — needs 4 stringers
  • Stone treads: Marble, granite, slate — luxury, $30–80/lf, very heavy
  • Open risers: Modern look, improves light flow, must have ≤ 4" gaps
  • Closed risers: Traditional, code-compliant everywhere, can be painted/stained

Tips

  • Use a string line from finished floor to finished floor for accurate rise measurement
  • Pre-cut stringers save time — mark riser and tread locations carefully with a framing square
  • Treat stringers with preservative if they contact concrete or are in damp locations
  • Always verify local code amendments — some jurisdictions are stricter than IRC baseline
  • For winder stairs, the narrowest point of the tread at the walking line must be ≥ 10"
  • Spiral stairs: headroom must be measured at the outer edge of the treads
  • L-shaped and U-shaped stairs need an intermediate landing — minimum 36" × stair width
  • Factor in finishing time: stain, paint, or seal each tread and riser before installation
🏗️

Drag to rotate — Scroll to zoom

Rise: — Run:
Risers:— Treads:— Width:
Legend
Wood Treads
Steel Stringers
Risers
Handrails
Dimensions
x-cloak

Client & Quote (prints on PDF & Excel)

Adjustments (applies to exports)

Contingency is added as a separate line on the exported cost summary. Waste % is printed as an advisory reminder.

Project notes (prints on PDF & Excel)

Result compare (A/B)

x-cloak
Item Pinned Current Change

Saved rates auto-apply from your Price Library. Advanced details stay in your browser — nothing is uploaded except inside your own PDF/Excel exports.

Advertisement
Ad space — activates after AdSense approval

Building a staircase that meets code and feels right underfoot takes more than guesswork. Every fraction of an inch in riser height and every degree of pitch affects safety, comfort, and whether you pass inspection. Our staircase calculator handles the math so you can focus on the build - input your total rise and preferred tread depth, and get back exact riser heights, stringer length, total run, and stair angle in seconds.

Whether you are framing a new set of basement stairs, replacing a weathered deck staircase, or designing a commercial stairway that must comply with IBC requirements, accurate measurements are the foundation of a code-compliant flight. A typical residential project with a 10-foot ceiling and 8-foot floor-to-floor height needs roughly 13 risers at about 7.25 inches each, translating to 12 treads at 10 inches deep and producing a comfortable 37-degree pitch. Change the tread depth to 11 inches and the pitch drops to about 33 degrees - a more gradual slope that works well for aging-in-place renovations or ADA-accessible routes.

The calculator also determines stringer length using the Pythagorean theorem applied to total rise and total run. For the example above, the total run equals 120 inches (12 treads times 10 inches), and the stringer length comes out to approximately 156 inches - about 13 feet of 2x12 lumber for each stringer, before accounting for the top and bottom plunge cuts. Nosing - the portion of each tread that overhangs the riser - adds both safety and visual appeal, typically 0.75 to 1.25 inches. The calculator folds nosing into the effective tread depth so your stringer layout accounts for it correctly.

Understanding these numbers before you cut a single piece of lumber saves time, money, and lumberyard runs. Use the results to lay out your stringer with a framing square set to the calculated rise and run, verify headroom clearance above the stairwell, and order the right number of treads and risers. Our companion calculators for lumber costs and decking materials can help you estimate the full project budget once you have the dimensions locked in.

📖 How to Use the Staircase Calculator

1

Measure Total Rise

Measure the vertical distance from the lower finished floor to the upper finished floor. Use a laser level or plumb bob for accuracy. Record the measurement in inches - this is the single most important number for your stair calculation. For existing homes, measure from the finished surface of the lower floor to the finished surface of the upper floor, accounting for any carpet, hardwood, or tile thickness.

2

Select Desired Tread Depth

Choose your preferred tread depth based on available space and local code. Standard residential treads run 10 to 11 inches; the IRC requires a minimum of 9.25 inches. Deeper treads mean fewer risers and a shallower angle, which is ideal for elderly homeowners or public spaces where comfort is prioritized over floor space.

3

Enter Nosing Overhang

Input the nosing overhang - typically 0.75 to 1.25 inches. Nosing provides additional foot contact on each step and improves aesthetics. The calculator adjusts the effective tread depth automatically. Without proper nosing, each step feels smaller than it actually is, creating a trip hazard at the top of the flight.

4

Review Calculated Riser Height

Check that the riser height falls within code limits - 7.75 inches maximum for residential (IRC) and 7 inches maximum for commercial (IBC). If the riser exceeds limits, increase tread depth or adjust total rise to include landing platforms. All risers in a flight must be equal within 0.375 inches per IRC R311.7.5.1.

5

Verify Stringer Length and Angle

Review the stringer length output in both inches and feet. Confirm you can source lumber long enough for each stringer, or plan for splice joints on longer flights. The angle tells you the overall steepness of the stair - comfortable stairs fall between 30 and 38 degrees. Anything steeper than 38 degrees feels awkward and may not pass code.

6

Plan Your Layout and Cuts

Use the rise and run values to mark your stringer with a framing square and stair gauges. Mark the top cut (parallel to the upper floor) and the bottom cut (accounting for tread thickness resting on the floor). Dry-fit the first stringer before cutting the rest - small adjustments are easy at this stage but impossible after you have cut all stringers.

📐 Staircase Formulas & Worked Examples

The core stair formulas are simple, but getting them wrong creates problems that compound down the entire flight. Here are the key relationships every builder needs to know:

Number of Risers: Divide the total rise by the maximum allowable riser height and round up to the nearest whole number. Number of Risers = Total Rise / Max Riser Height (rounded up). For a total rise of 87 inches with a 7.75-inch maximum, the calculation is 87 / 7.75 = 11.23, which rounds up to 12 risers.

Actual Riser Height: Divide total rise by the number of risers to get the exact height. Actual Riser Height = Total Rise / Number of Risers. For our example: 87 / 12 = 7.25 inches per riser. All risers in a flight must be equal within 0.375 inches per IRC R311.7.5.1. Inconsistent riser heights create a trip hazard and will fail inspection.

Number of Treads: One fewer than the number of risers, because the top riser terminates at the upper floor level. Number of Treads = Number of Risers - 1. Twelve risers yields 11 treads. This is the most common mistake in stair calculation - forgetting that the top tread sits flush with the upper floor.

Total Run: Multiply the number of treads by the tread depth. Total Run = Number of Treads x Tread Depth. Eleven treads at 11 inches gives a total run of 121 inches - just over 10 feet of horizontal space. This is the distance your stair consumes along the floor, and it determines whether the stair fits within your available floor plan.

Stringer Length: Apply the Pythagorean theorem. Stringer Length = sqrt(Total Rise^2 + Total Run^2). For our example: sqrt(87^2 + 121^2) = sqrt(7569 + 14641) = sqrt(22210) = approximately 149 inches, or about 12.4 feet. Order at least 14-foot 2x12 stock for each stringer to allow for the top and bottom cuts.

Stair Angle: Use the arctangent function. Angle = arctan(Total Rise / Total Run). arctan(87 / 121) = approximately 35.7 degrees. Comfortable residential stairs typically fall between 30 and 38 degrees. Historic homes sometimes feature very steep 45-degree staircases, but these do not meet modern code requirements.

Worked Example - Deck Staircase: A deck surface sitting 54 inches above grade with 10.5-inch treads: Risers = 54 / 7.75 = 6.97, rounded up to 7 risers. Actual riser = 54 / 7 = 7.71 inches. Treads = 6. Total run = 6 x 10.5 = 63 inches. Stringer = sqrt(54^2 + 63^2) = sqrt(2916 + 3969) = sqrt(6885) = approximately 83 inches (6.9 feet). Angle = arctan(54 / 63) = approximately 40.6 degrees - slightly steep but acceptable for exterior deck stairs.

⚠️ Common Staircase Calculation Mistakes

✕

Forgetting that treads always equal risers minus one

✓ The top tread sits flush with the upper floor, so you always have one fewer tread than risers. Neglecting this produces a stringer that is one tread too long, wasting lumber and creating an incorrect total run that throws off your entire layout.

✕

Ignoring nosing in the total run calculation

✓ Nosing extends the tread face beyond the riser. If you calculate total run as number of treads times tread depth without subtracting the nosing dimension from the last tread, your stringer ends up too long. Always subtract nosing from the overall tread dimension for accurate stringer layout.

✕

Using nominal lumber dimensions instead of actual

✓ A 2x12 is actually 1.5 x 11.25 inches, not 2 x 12. When cutting stringers from 2x12 stock, the maximum tread depth you can achieve after the notch is about 10.5 inches. Always work from the actual dimensions printed on the lumber tag, not the nominal name at the store.

✕

Inconsistent riser height rounding

✓ When you round up the number of risers, recalculate the actual riser height. All risers must be equal within 0.375 inches per IRC R311.7.5.1. Mixing riser heights creates a trip hazard, looks sloppy, and will fail framing inspection. One exception: the bottom riser can differ by up to 0.75 inches to accommodate finish flooring differences.

✕

Not accounting for finish floor thickness at the top and bottom

✓ Total rise must be measured from finished floor to finished floor. If you measure from subfloor to subfloor, add the thickness of both finish floor materials (hardwood, tile, carpet pad) to get the correct rise. A 0.75-inch difference thrown into one riser can push you out of code compliance.

💡 Pro Tips for Staircase Construction

✓

Always buy stringer stock at least 12 inches longer than calculated to allow for layout errors, end checking, and trimming. A 13-foot stringer is cheaper than a second trip to the lumberyard.

✓

Set stair gauges on your framing square to the exact rise and run for fast, repeatable stringer marking. Mark the layout in pencil on the stringer face and snap a chalk line for straight cuts.

✓

Test-fit your first stringer before cutting the rest. Place it in position, walk the layout, and verify comfort. Small adjustments to rise or run are easy at this stage but impossible after you have cut all stringers.

✓

For open-riser stairs, verify that the gap between consecutive treads does not exceed 4 inches - this is a child-safety requirement under most building codes and will be checked during inspection.

✓

Apply wood preservative or borate treatment to stringer ends that contact concrete or masonry. Capillary moisture wicking causes hidden rot that weakens the connection over years.

✓

On staircases with more than 12 feet of total rise, add a landing platform every 12 feet. This breaks up the flight, provides a resting point, and is required by code for commercial stairs.

✓

Label each stringer with its position (left, center, right) and orientation (top, bottom) during layout. This prevents mix-ups during installation, especially on curved or angled landings.

❓ Staircase Calculator - Frequently Asked Questions

The International Residential Code (IRC) limits riser height to 7.75 inches maximum with a 4-inch minimum. Commercial buildings under the IBC typically require a 7-inch maximum riser height. Some local jurisdictions adopt stricter standards, so always verify with your building department before framing. The key rule is consistency - all risers in a flight must be equal within 0.375 inches to prevent trip hazards and pass inspection.

Residential treads should be at least 10 inches deep, with 10.5 to 11 inches being more comfortable for everyday use. The IRC allows a minimum of 9.25 inches, but deeper treads feel safer and work better for elderly users or universal design. Commercial codes under the IBC require an 11-inch minimum tread depth measured horizontally from the nosing edge to the face of the riser below.

This calculator is designed for straight-run stairs. Winder stairs, L-shaped stairs with landings, and U-shaped configurations require additional calculations for the landing layout, the turning geometry, and the variable tread widths on winders. For winders, the narrow end of each tread must be at least 6 inches wide, and the walk line is measured 12 inches from the narrow end. Consult a stair specialist or structural engineer for complex configurations.

For staircases up to 36 inches wide, two stringers - one on each side - are sufficient. Between 36 and 48 inches wide, add a center stringer for mid-span support. For stairs wider than 48 inches, space stringers at no more than 16 inches on center. Some jurisdictions require additional stringers for heavily loaded commercial stairs. Always check local code requirements for the specific loading conditions of your project.

Comfortable residential stairs typically fall between 30 and 38 degrees. Stairs steeper than 38 degrees feel awkward and may violate code. Shallower angles below 28 degrees waste floor space and can feel like walking uphill on a ramp. The calculator displays the angle so you can adjust tread depth to hit the sweet spot for your project. Historic homes sometimes feature very steep 45-degree staircases, but these do not meet modern code.

Yes. Most building codes require a minimum of 6 feet 8 inches (80 inches) of headroom measured vertically from the stair nosing line to the underside of the floor or ceiling above. The nosing line is an imaginary diagonal connecting the nosing edges from the bottom tread to the top tread. On stairs passing under a beam, floor joist, or mezzanine, verify that the total run and overhead structure provide adequate clearance before you start framing.

🏗️ Real-World Staircase Projects & Applications

Finishing a Basement: A typical 8-foot basement ceiling produces a floor-to-floor rise of about 105 inches when you account for finish flooring on both levels. Using the calculator with a 7.5-inch target riser height gives 14 risers and 13 treads at 10.5 inches each. The total run comes to 136.5 inches - over 11 feet of horizontal space. That footprint consumes significant floor area in an already tight basement, so many builders opt for a U-shaped staircase with a mid-height landing. The landing must be at least 36 inches deep by the stair width and provides a natural place to tuck a storage closet underneath. This configuration reduces the horizontal run to about 7 feet per flight while maintaining comfortable angles.

Deck Staircase: A typical deck surface sits 48 to 56 inches above grade depending on rim joist height and footing depth. For a 54-inch rise with 10.5-inch treads, the calculator yields 7 risers at 7.71 inches and 6 treads. Total run is 63 inches - about 5.25 feet. Add a concrete landing pad at the bottom that extends at least 36 inches beyond the last tread, and verify that your deck ledger attachment and stringer-to-rim-board connections meet the DCA 6 prescriptive guidelines for your region. Use joist hangers rated for the span, and never toenail stringers to the rim board.

Commercial Office Stair: A 12-foot floor-to-floor height in a commercial building using IBC rules typically calls for 7-inch risers and 11-inch treads - 20 risers and 19 treads. The total run approaches 209 inches, requiring a mid-flight landing at least 44 inches deep and as wide as the stair. These constraints heavily influence floor plan layouts and shaft dimensions, so architects coordinate with stair calculators early in the design phase. Fire-rated stair enclosures require specific material choices and construction methods that affect both cost and schedule.

Our staircase calculator helps you determine the exact rise, run, stringer length, angle, and nosing details for any residential or commercial stair project. Whether you are building basement stairs, deck steps, or code-compliant commercial stairways, input your total rise and preferred tread depth to receive precise measurements. The tool accounts for nosing overhang, ensures consistent riser heights, and calculates the Pythagorean stringer length so you can order lumber with confidence. Pair it with our lumber calculator and decking calculator to estimate total material costs for your complete stair construction project.

✅Method, Sources & Review

Maintained by theBuildingCalc methods desk· Last reviewedSeptember 23, 2026. This calculator implements the standards and references below; every figure can be rechecked against the formulas and worked example on this page.

IRC R311.7 (stairways) IRC R312 (guards)

Results are estimates, not engineering advice. Verify against local codes and licensed professionals for structural, electrical, and gas work. See ourTerms. Spotted an error? Report it— corrections ship with the next review.