How to Calculate Stair Stringers & Equal Stud or Baluster Spacing Cleanly
Step-by-step formulas for stair riser height, total run, stringer length, and cumulative equal baluster or stud spacing—without stacking 1/16 inch errors.
Two layout calculations intimidate more DIY builders and apprentice carpenters than any others: cutting a clean set of deck stair stringers and laying out evenly spaced balusters or wall studs across an odd-length span. Both rely on straightforward arithmetic, yet rounding mistakes or stepping a short spacer block across ten openings turns clean lumber into crooked, uneven work fast.
Important Building-Code Note: Every municipality enforces specific residential building codes for maximum stair riser height, minimum tread depth, riser-to-riser variance limits, and maximum guardrail baluster gaps (commonly under 4 inches). Treat all formulas below as layout estimation guides and always confirm current local building codes and structural lumber specs before cutting or building.
Part 1: Step-by-Step Stair Stringer Math
To lay out a straight flight of deck or porch stairs, measure the Total Vertical Rise cleanly from the top surface of the upper deck down to the finished lower landing pad (use a straight level board extending out over the landing if the ground slopes).
- Find the Number of Risers: Divide Total Rise (in inches) by a comfortable target riser height (commonly 7" to 7 1/2") and round to the nearest whole integer. Example: Total Rise = 44" / 7.25" = 6.07 -> choose 6 risers.
- Calculate Exact Individual Riser Height: Divide Total Rise by your chosen whole number of risers. Example: 44" / 6 = 7.333" (7 5/16" per riser). Every single riser must stay uniform so feet never trip.
- Calculate Total Horizontal Run: Multiply the number of treads (usually Risers minus 1 when the top tread sits one riser down from the deck ledger, or equal to Risers if flush-mounted) by your individual Unit Run (commonly 10" to 10 1/2" tread run). Example: 5 treads × 10" = 50" total horizontal run.
- Check Stringer Length & Bottom Drop: Use the Pythagorean theorem (sqrt(Total Rise^2 + Total Run^2)) to verify minimum 2×12 board length (sqrt(44^2 + 50^2) is about 66.6", so an 8-foot 2×12 works cleanly). Drop the bottom riser by the exact thickness of your tread material (such as 1" or 1 1/2") so the bottom step matches every other step once decking boards are fastened.
Part 2: Equal Baluster & Stud Spacing Without Cumulative Drift
Never cut a wooden spacer block and slide it down a deck rail bay by bay. Even a 1/32" tilt or pencil thickness repeated 14 times shifts your final gap by nearly half an inch. Instead, calculate cumulative pull-from-one-end tape marks:
- Determine Clear Span (S): Measure cleanly between the inside faces of your two posts (for example, 70 1/2").
- Find Baluster Count (N): For a maximum allowed clear gap (G_max, e.g., 3 7/8" to stay under a 4" sphere test) and baluster width (W, e.g., 1 1/2"), compute Bays = ceil((S + W) / (G_max + W)) and Balusters = Bays - 1.
- Calculate Exact On-Center Step (OC): Divide (S + W) by Bays to obtain the exact on-center step.
- Pull Cumulative Marks From Zero: Hook your tape on the inside edge of Post 1 and mark centerlines at 1×OC, 2×OC, 3×OC all the way across—keeping every bay dead-identical. Worked Example: 70 1/2" clear span, 1 1/2" balusters, 3 7/8" max gap gives 14 equal bays (13 balusters) with 5.143" on-center spacing (clean 3 5/8" clear gaps). Subtract half a baluster width (3/4") from every cumulative mark to lay out leading edges.
Part 3: Standard Stud Counts & Checking Square Before You Fasten
For standard wall framing at 16" on center (16" OC) or 24" on center (24" OC), convert wall length to inches, divide by your spacing, round up to a whole number, and add 1 starter stud (plus extra lumber for corners, king/jack door framing, and double top plates). Before nailing sheathing or stair landings, verify corners are dead-square by comparing both diagonal measurements (sqrt(Length^2 + Width^2))—when both diagonals match within 1/16", your frame is square.
Frequently Asked Questions
Why do you cut the bottom of a stair stringer shorter than the rest of the risers?
Every upper step gains the thickness of the tread board sitting on top of it, while the very bottom step rises from the finished landing. Trimming one tread thickness off the bottom of the stringer keeps every finished step height identical.
How do I avoid uneven gaps when spacing deck balusters?
Calculate the exact on-center spacing ((Clear Span + Baluster Width) divided by Number of Bays) and pull cumulative marks from one post edge (1×, 2×, 3×...) instead of moving a spacer block repeatedly.
What size lumber is typically used for cut stair stringers?
Builders typically cut stair stringers from 2×12 structural lumber so enough solid wood throat depth remains behind the triangular notches. Always verify span limits and local residential building codes.
Does TapeRule certify building-code compliance?
No. TapeRule is an offline arithmetic and layout estimation helper; always verify final riser heights, tread depths, and guardrail spacing against local building codes.