How to Space Balusters, Wall Slats & Fence Pickets Evenly Without Layout Creep
Every carpenter who has ever cut a wooden spacer block to install 20 deck balusters knows the painful surprise waiting at the far post: a 1/16″ variation in rough cedar spindle width or saw kerf adds up across 20 bays into a 1-1/4″ lopsided final gap visible from across the yard!
Our even spacing calculator solves two problems at once:
- Exact End-Boundary Math: Choose whether your run starts and ends with an equal clear gap against newel posts (
N + 1gaps), starts and ends flush with a slat (N − 1gaps), uses modular half-gaps at each end (Nbays so adjacent panels repeat seamlessly), or runs slat-to-gap across multiple fence post sections. - Cumulative Tape-Measure Marks From Zero: Instead of stepping a spacer block, clamp or hook your tape measure once at
0against the inside face of the left post and strike pencil ticks at every Near Edge, Center, or Far Edge reading straight down the rail. Because every mark references the exact same zero origin, intermediate rounding never accumulates!
Four End-Boundary Layouts Compared
| End Boundary Mode | Gap Count (for N Items) |
Exact Clear Gap Formula (L = Span, w = Width) |
Best Workshop & Jobsite Applications |
|---|---|---|---|
| Gap Against Both Posts | N + 1 equal gaps |
Gap = (L − N × w) ÷ (N + 1) |
Deck & stair railings between 4×4 / 6×6 newel posts |
| Slat Flush at Both Ends | N − 1 equal gaps |
Gap = (L − N × w) ÷ (N − 1) |
Feature oak slat walls, radiator covers, crate lids |
| Half-Gap at Both Ends | N total gap widths |
Gap = (L − N × w) ÷ N (1/2 gap at ends) |
Acoustic wall panels laid side-by-side across wide rooms |
| Start Slat / End Gap | N equal gaps |
Gap = (L − N × w) ÷ N |
Continuous multi-bay picket fences wrapping post-to-post |
Passing the 4-Inch IRC Guard-Rail & Stair Sphere Code
Under IRC R312.1.3, guards on elevated decks, porches, balconies, and open stairs cannot have openings large enough for a 4-inch (101.6 mm) diameter sphere to pass through—and triangular openings formed by a stair riser, tread, and bottom rail cannot pass a 6-inch (152 mm) sphere.
Never set your target gap to 4.00″! Wood shrinks 2% to 5% across the grain outdoors during dry summer or winter spells, and flexible wood or aluminum spindles deflect slightly when pushed. Professional deck builders enter 3-3/4″ (95 mm) or 3-7/8″ (98.4 mm) into Do Not Exceed Max Clear Gap mode so every bay passes the inspector's 4″ ball gauge comfortably year-round.
How Sloped Stair Railings Change Your Tape-Measure Marks
When laying out plumb vertical balusters along an angled stair handrail or shoe rail (30° to 38° typical pitch, calculated in our Stair Stringer Calculator), do not lay out your horizontal gap directly along the sloped rail!
By basic right-triangle trigonometry (cos θ), both the mitered footprint of the spindle and the clear distance along the angled rail stretch by 1 ÷ cos(Angle):
- Suppose your horizontal plumb clear gap is
3-5/8″(92.1 mm) with1-1/2″(38.1 mm) square balusters (5-1/8″horizontal on-center pitch). - On a
34°sloped stair rail (cos 34° = 0.829), the distance measured along the sloped bottom rail stretches to4-3/8″(111.1 mm) clear gap, a1-13/16″(46.0 mm) mitered spindle footprint, and a6-3/16″(157.1 mm) sloped on-center pitch! - Slide the Stair Rail Rake Angle bar inside the calculator to your exact stair pitch, then read the rightmost Sloped Rail Tape Mark column with your tape laid flat along the angled rail.
Pair Even Spacing With Linear Lumber & Sheet Ripping
Building a modern white-oak acoustic slat wall or cedar privacy screen? Rip uniform veneers from 4×8 panels using our 2D Sheet Cut List Calculator, pack 8 ft or 12 ft solid 1×2 battens with minimal offcuts in the Linear Cut Calculator, and price rough 4/4 oak or cedar in the Board Foot Calculator.
Shop Notes & Woodworker Questions