Spindle Spacing Calculator

Calculate even spindle spacing for railings, fences, and balusters based on your total length and spindle size.

How spacing is calculated

With end gaps: gapCount = number of spindles + 1

Without end gaps: gapCount = number of spindles - 1

Gap size = (Total Length - Total Spindle Width) ÷ gapCount

Always verify local building code requirements before installation.

What This Calculator Does

This spindle spacing calculator determines the exact distance between each spindle (baluster) for railings, stair balustrades, deck fences, and porch railings. It accounts for your total railing length and spindle width to produce equal spacing that meets both visual and code requirements.

The calculator outputs the number of spindles needed, the gap between each spindle, and the total span covered. This eliminates guesswork and prevents uneven spacing that can make a railing look unprofessional or fail inspection.

How Spindle Spacing Works

Spindle spacing follows a straightforward formula. The total railing length is divided into equal segments, with spindles placed at the boundaries of each segment. The gap between spindles is the open space, not the center-to-center distance.

The calculation accounts for:

The formula used is: Gap = (Total Length - (Number of Spindles × Spindle Width)) / (Number of Spindles + 1)

This ensures the first and last gaps match all interior gaps, creating a symmetrical appearance.

How to Use the Calculator

  1. Enter the total railing length in your preferred unit (inches, feet, centimeters, or meters).
  2. Enter the spindle width — measure the actual baluster thickness, not the nominal size.
  3. Enter the desired number of spindles or the maximum allowed gap (depending on your local building code).
  4. Click calculate to see the exact spacing, total spindles required, and the resulting gap.

Adjust the number of spindles up or down to fine-tune the gap. Most residential codes require gaps no larger than 4 inches (100 mm) to prevent children from passing through.

Example Calculation

Suppose you have a 96-inch railing section and 1.5-inch wide spindles. You want a gap close to 4 inches.

In this case, 17 spindles with a 3.92-inch gap is the best option that stays within code while minimizing material use.

Understanding Your Results

The calculator provides three key outputs:

If the total span does not match your input length, double-check your measurements. Small rounding differences are normal, but a mismatch larger than 0.1 inches usually indicates an input error.

Common Mistakes to Avoid

Limitations and Constraints

This calculator assumes straight, horizontal railing sections. For stair railings, the spacing calculation follows the same principle, but the measurement is taken along the slope of the stairs, not the horizontal run. Some building codes also require different gap limits for stair balusters.

The calculator does not account for post widths or corner posts. If your railing section runs between posts, measure the clear span between the posts, not the overall deck or porch length.

For curved or angled railings, manual layout or specialized software may be required to achieve even spacing.

Practical Use Cases

FAQ

What is the standard spindle spacing for railings?

Most building codes require a maximum gap of 4 inches (100 mm) between spindles. This prevents a 4-inch sphere from passing through, which is the standard safety requirement for childproofing. Some local codes may specify 3.5 inches or 4.5 inches, so always verify with your local building authority.

How do I measure spindle width correctly?

Use a caliper or tape measure to measure the actual thickness of the baluster at its widest point. For turned spindles, measure the narrowest section if the spindle has decorative profiles, as the gap is measured at the narrowest point between spindles.

Does the calculator work for stair railings?

Yes, but you must measure the railing length along the slope of the stairs, not the horizontal run. The spacing calculation itself is identical. Some codes require smaller gaps for stair balusters due to the increased fall risk, so check local regulations.

What if my railing has multiple sections?

Calculate each section separately. Even if sections are the same length, slight measurement differences can occur. Treat each span between posts as an independent calculation for the most accurate results.

Can I use this calculator for metal or glass balusters?

Yes, the calculator works for any type of baluster as long as you know the width. For glass panels, treat the panel thickness as the spindle width. Note that glass railing systems often have different spacing requirements and may use continuous panels instead of individual spindles.