Pool barrier planning

Pool Fence Requirements: Height, Gaps & Gates

A picket gap alone does not make a pool fence safe. CPSC recommends a barrier at least 48 inches high and openings that cannot pass a 4-inch-diameter sphere. Climbable rails can require smaller gaps. CPSC guidance is not law; model codes apply through local adoption. Check with your building department before building.

US federal guidance: CPSC recommendations

The CPSC Safety Barrier Guidelines for Residential Pools, Pub. 362, are voluntary guidelines, not a mandatory federal fence standard. Barriers do not replace adult supervision.

Pool barrier: close rails Rails on the pool side 48 inmin < 45 in 1¾ in max gap Bottom gap: 2 in max over grass / pebbles; 4 in max over solid surface
CPSC guidance shown here: height is measured outside the enclosure; rail tops less than 45 in apart require pool-side rails and picket gaps no greater than 1¾ in. Openings must also stop a 4 in sphere. Check the locally adopted rules. Diagrams are not to scale.
CPSC: low latch release View from pool side < 54 in 3 inmin Release < 54 in from gate bottom 18 in radius Within 18 in of release: ½ in maximum opening
CPSC's below-54-in latch-release detail uses the gate bottom as its height datum. Put that release on the pool side, at least 3 in below the top, with no opening larger than ½ in within 18 in. ISPSC latch types and measurement datums differ; see the model-code section. Diagrams are not to scale.

Model codes: ISPSC and IRC Appendix G

These are model provisions for jurisdictions to adopt or amend. Use the edition your building department enforces.

International Swimming Pool and Spa Code (ISPSC)

The linked ICC text is the 2024 ISPSC. Its barrier rules include:

§305.3.3 distinguishes residential latch types: an outside release without a self-locking lock is at least 54 inches above finished ground or floor; key, electronic or combination self-locking controls/releases are at most 54 inches. An inside-only private-pool release is at least 3 inches below the gate top. Under §305.3.4, inside releases require openings no larger than ½ inch within 18 inches.

International Residential Code (IRC), Appendix G

The older 2012 IRC Appendix G applies only when specifically referenced in the adopting ordinance. §AG105.2, items 1–2, specifies 48-inch minimum height, 2-inch maximum ground clearance and the 4-inch sphere test. Items 4–5 distinguish closely and widely spaced rails; item 8 covers gates and protected latch releases. Do not substitute this older appendix for your locally adopted code.

Local rules govern

Ask your building department which code edition and amendments apply, what permits are needed and how the barrier will be inspected. States, counties and cities can change model requirements. Check HOA restrictions separately; HOA approval does not replace code approval. If the house forms part of the enclosure, ask about protection for doors and windows leading to the pool.

Check an existing or planned picket fence

Measure clear gaps edge to edge, including end gaps beside posts, gate hinges and latches. Inspect the largest opening under each bay, especially on slopes. Measure rail spacing vertically from top to top before choosing a picket gap: the 45-inch rail threshold in ISPSC §§305.2.6–305.2.7 can change the permitted opening.

Use the picket spacing calculator to plan equal gaps with your actual board width and the limit your building department confirms. Check finished openings and gate operation on site. The calculator does not approve a pool barrier. For budgeting, use the fence installation cost guide.

Is a 4-inch gap safe for a pool, child or small dog?

For a pool, follow the whole barrier rule. An opening that passes a 4-inch sphere fails CPSC's opening recommendation; climbable rails can call for tighter spacing. Do not treat a nominal gap measurement as proof of compliance.

For small children, CPSC bases that 4-inch test on a young child's head breadth and chest depth. It is intended to restrict passage, not make a fence childproof.

For dogs, there is no dog-containment gap rule in these pool-barrier provisions. Do not use the child-barrier test as a pet guarantee. Check your actual dog's ability to squeeze through, dig under or climb over the complete fence, including gates.