THE FIELD GUIDE

The 4-inch sphere rule for baluster spacing

Read the actual opening rule

The residential guard provision discussed here is IRC R312.1.3. Its opening limitation includes the words “allow passage of a sphere 4 inches (102 mm) in diameter.” This short excerpt describes a physical opening test, not a rule that says to put baluster centers four inches apart. See the 2021 IRC Chapter 3 source and verify the edition and amendments adopted by your local authority. A model code published online does not itself identify the rule that applies to your address.

This guide concerns a straight, level residential guard layout between Posts. It does not cover stair exceptions, required guard height, structural loading, attachment strength or every other requirement that may apply to a guard. Treat those as separate checks with the relevant product documentation and local authority. A spacing calculator can show where rectangular balusters fit, but it cannot inspect the completed assembly or determine whether every opening in that assembly meets the applicable rule.

Clear Gap is different from center spacing

Imagine two balusters that are each 1.5 inches wide. If their centers are four inches apart, the opening between their faces is only 2.5 inches. If the clear opening is four inches, their centers are 5.5 inches apart. Those two inputs are easy to confuse because both are sometimes called spacing. The EvenGap form labels the empty space as Gap and the material width as Member width. Enter the dimensions separately and confirm that you are measuring the surfaces represented by each field.

Measure the installed face across several balusters. A nominal product name is not an actual width measurement. Also inspect the profile: a turned, tapered or decorative piece may leave its widest opening somewhere other than the rectangular section you measured. The calculator assumes one uniform Member width along the illustrated elevation. If your infill changes shape, a successful rectangular calculation does not establish the widest real opening. That requires checking the actual geometry in the completed guard.

Walk through the 72-inch example

Open the 72-inch railing example. The measured Clear Length is 72 inches, the baluster width is 1.5 inches, and the maximum Gap input is four inches. With 13 balusters, the material occupies 19.5 inches. There are 12 openings between balusters and two beside the Posts, so 52.5 inches of remaining space divide into 14 equal gaps. Each solved opening is 3.75 inches.

The first baluster’s left edge is 3.75 inches from the left Post’s inside face, and its center is 4.5 inches from that origin. The final baluster ends at 68.25 inches, leaving 3.75 inches beside the right Post. Check both ends when transferring the pattern. Counting only the spaces between balusters would omit two openings and could produce a different, unintended end treatment. The result table lists the End Gaps explicitly so you can compare them with the interior Gap.

A maximum input does not provide a tolerance

The tool treats Max Gap as an arithmetic upper bound. It does not estimate uncertainty in your measurements, stock widths, saw cuts or installation. A calculated opening of exactly four inches leaves no margin for those effects and should not be read as an inspection promise. Choose dimensions and a target that account for the requirements of your actual project, then verify the physical openings after assembly. The tool cannot decide that allowance for you from one width and one length.

A smaller Target Gap can be used while retaining the same maximum constraint. Equal mode selects the closest feasible whole count, increasing the count when necessary to satisfy the maximum. If no supported layout fits the supplied dimensions and limits, the result is a visible error rather than a green count. Do not keep an earlier printout after changing an input that makes the current layout invalid. Regenerate the plan only after the dimensions are corrected and the error is resolved.

Fixed gaps require an end check too

Switch the 72-inch example to Fixed mode with a four-inch target. The 13 balusters and 12 interior gaps occupy 67.5 inches. The remaining 4.5 inches become two 2.25-inch End Gaps. Equal mode instead uses 3.75 inches everywhere. Neither pattern should be evaluated only at the middle of the Rail. Both ends remain real openings in the physical assembly, and any changing profile or nearby structure can create another opening that the simple diagram does not represent.

The calculator tests its modeled interior and End Gaps against your maximum. If a fixed arrangement exceeds that input, it reports the reason and suggests considering Equal mode. It does not silently lower the target while still calling the result fixed. This makes the comparison useful: you can see whether keeping a standard spacer produces acceptable end dimensions in the model, then decide how to implement the layout under the actual installation requirements.

Measure every Bay independently

For a railing with a 72-inch opening and an 80-inch opening, enter two Bays. The first uses 13 balusters at 3.75-inch gaps. The second uses 14 at about 3.933 inches, displayed as 3 15/16 inches. Do not combine the two openings and ignore the middle Post. A Post occupies physical space and creates boundaries for the pattern on both sides. The Bay list preserves those boundaries and gives each opening its own count and running measurements.

Measure near each Rail to check whether the Posts are parallel. If the upper opening differs from the lower opening, one rectangular elevation does not describe the assembly completely. Correct or explicitly account for that condition before treating one set of marks as sufficient. The software assumes straight, parallel boundaries and cannot infer taper from a single Clear Length. Recording both measurements beside the saved URL is a useful way to retain the actual site observation with the arithmetic result.

Check printed marks and the finished openings

Every running measurement starts at the Bay’s left inside face. Transfer either left-edge marks or centers consistently, and keep the tape at that origin for each reading. Repeatedly adding a displayed rounded pitch can drift away from the unrounded layout. The true-scale strips preserve the original positions, but the print process can introduce its own scaling. Select the correct paper and 100% scale, then measure the six-inch calibration line on the physical sheet before using the strip.

After positioning the actual balusters, inspect the openings that the applicable rule addresses rather than relying only on the count. Check the End Gaps, any decorative profile and any geometry outside the rectangular model. Confirm the local interpretation with the authority responsible for the project when it is uncertain. The formula reference explains what the software does calculate; product instructions and the adopted code establish requirements beyond those formulas. Keep those sources with your plan so a numerical result never becomes a substitute for a missing construction check.

Frequently asked questions

What units can I enter?

Bare numbers are inches. You can also enter feet and inches such as 8 ft 3.5 in, mixed fractions such as 8' 3 1/2", or metric dimensions such as 2540mm. Units stay visible beside each input.

Where do running measurements start?

Member marks start at the left inside face of the Bay. Run Post measurements start at the outside face of that Run’s first Post. Plan Post distances follow the centerline from the first outside face.

Why does the solved gap differ from my target?

Whole Members must fit the measured Clear Length. Equal mode selects the nearest feasible count and divides the remaining space equally. Fixed mode keeps interior gaps at the target and places the remainder symmetrically at both ends.

How do I save or share my plan?

Use Copy plan link. All input dimensions are in the address, so the same URL restores the plan on another device. There is no account or server-side storage.

Will the printed strip be the right size?

Choose Letter or A4, print at 100% scale, disable fit-to-page and browser headers, then measure the six-inch calibration line with a physical ruler. Stop if that line is not exactly six inches.

Does this replace local code or product instructions?

No. This is a layout and quantity tool. Verify local requirements, product dimensions, installation gaps, structural design and footing specifications separately before purchasing or building.

By the EvenGap editorial team

We build and test layout calculators. We do not claim engineering licensure or building-inspector qualifications. Formulas and assumptions are published for you to check. Updated September 15, 2026.