What IRC 2024 § AG105 requires
Under IRC 2024 Section AG105, every outdoor swimming pool, spa, and hot tub must be enclosed by a barrier at least 48 inches high measured on the outside of the barrier. No opening in the barrier may allow a 4-inch-diameter sphere to pass through. Gates must be self-closing and self-latching, swing outward away from the pool, and if the latch is on the pool side, it must be located at least 54 inches above grade.
Under IRC 2024, these requirements apply to both new pool installations and existing pools where a permit is pulled for substantial work. The barrier must completely surround the pool and prevent unsupervised access by young children, who are at extreme risk of drowning.
IRC 2024 Section AG105.2 sets the minimum barrier height at 48 inches measured on the outside face of the barrier. The code establishes that the barrier must be placed to completely enclose the pool area. Where the exterior wall of the house forms part of the barrier, that wall must meet the same opening-size restrictions, and any door in that wall must be equipped with an alarm that meets the requirements of Section AG105.3.
Section AG105.3.1 governs openings. No opening in the barrier may allow passage of a 4-inch sphere at a point between 45 inches above grade and the bottom of the barrier. Below 45 inches, the maximum opening size for chain-link fencing is 1.75 inches measured diagonally. Solid-panel barriers, horizontal-rail fences, and ornamental iron must comply with the 4-inch sphere rule throughout. The intent is to prevent a toddler’s body from fitting through an opening in the fence.
Gates must comply with Section AG105.3.2. Every gate must be self-closing, meaning a spring or hinge mechanism returns it to the closed position without human assistance. Every gate must also be self-latching, meaning it automatically engages the latch upon closing. The latch must be located on the pool side of the gate so that a child cannot reach through or over the gate from the outside to release it. If the latch is located on the outside of the gate, it must be no lower than 54 inches above the bottom of the gate. All gates must be designed to swing outward, away from the pool, so that pressure from a child pushing against a gate does not create a gap that allows entry.
Section AG105.2 also addresses barriers that use the house as one side of the enclosure. In this configuration, any door from the house into the pool area must have an audible alarm that sounds when the door is opened and continues for at least 30 seconds. The alarm must be listed to UL 2017 and must not be capable of being easily deactivated by a child. A temporary deactivation switch is permitted for adult entry, but the switch must automatically re-arm the alarm within 15 seconds.
Why This Rule Exists
Drowning is the leading cause of accidental death for children between the ages of 1 and 4 in the United States, and residential swimming pools are responsible for a disproportionate share of those deaths. The Centers for Disease Control and Prevention reports that approximately 800 children under age 14 drown in the United States each year, and more than half of those drownings occur in residential pools. The majority of child drownings happen when a child gains unsupervised access to a pool in their own yard or a neighbor’s yard.
Research conducted by the Consumer Product Safety Commission consistently shows that four-sided pool barriers—barriers that completely surround the pool rather than relying on the house or a property fence as one side—are significantly more effective at preventing drownings than three-sided barriers. A four-sided barrier with proper gate hardware reduces the rate of pool drownings by approximately 83 percent in children under age 5. The 48-inch height requirement is derived from studies on the climbing ability of young children, and the 4-inch sphere rule is based on the diameter of a toddler’s head at the point where their body becomes the limiting factor for passage through an opening.
What the Inspector Checks at Rough and Final
Barrier inspections typically occur at the final inspection stage, after the pool is filled or substantially complete. Inspectors carry a 4-inch sphere gauge or use a 4-inch PVC coupling as a field-expedient tool to check openings. They will probe every section of the fence at the critical zone between the bottom of the barrier and 45 inches above grade, paying special attention to corners, post connections, and areas where the grade drops away from the fence base.
The inspector will measure barrier height at multiple points around the perimeter, always measuring on the outside face and always to the lowest point of the top rail or barrier material. If grade conditions cause the barrier height to vary, the inspector measures to the lowest accessible point. A barrier that measures 50 inches on flat ground but drops to 46 inches at a low-grade area near a planted bed will fail.
Gates receive particular scrutiny. The inspector will open each gate and verify that it self-closes from any position, including fully open. They will verify the latch engages automatically upon closing. They will push the gate from the pool side to confirm it does not open inward. If the latch is accessible from outside, the inspector will measure from the ground to the latch height to confirm the 54-inch minimum. Where a door-alarm is used on a house wall, the inspector will trigger the alarm to confirm audible operation and test the auto-rearm function.
What Contractors Need to Know
Fence contractors installing pool barriers must understand that the barrier height is measured on the outside of the fence, not the inside. On sloped lots, this distinction is critical. A fence that is 48 inches above the inside grade may be only 42 inches above the outside grade if the lot slopes away from the pool, failing the code requirement. Always measure from the highest accessible exterior grade point under any section of the fence.
Horizontal rails on the exterior face of a fence create a climbability problem that IRC 2024 addresses directly. Section AG105.3.1 prohibits fences with horizontal members spaced between 45 inches and ground level that could serve as footholds if they project more than 1.75 inches from the fence face. Specify fences with horizontal rails on the inside face or use designs where horizontal members are flush with the vertical pickets to avoid this violation.
Gate hardware is a common failure point at inspection. Spring-loaded hinges must be rated for outdoor use and must maintain sufficient spring tension to close the gate fully when loaded with typical wind pressure. Verify that the latch mechanism has no child-accessible thumb turn or lever on the outside of the gate at a height below 54 inches. Order latches specifically listed for pool gate applications, as generic gate latches often do not meet the self-latching definition in the code.
What Homeowners Get Wrong
The most common homeowner mistake is believing that the existing property fence satisfies the pool barrier requirement. A perimeter fence around the yard is not a compliant pool barrier unless it meets every requirement of IRC 2024 Section AG105, including height, opening size, and gate hardware. In most cases, property fences are shorter than 48 inches, have larger openings, and have gates that do not self-latch. A separate barrier specifically enclosing the pool is almost always required.
Homeowners also frequently assume that a pool cover serves as an approved barrier. IRC 2024 does not permit a pool cover to substitute for a barrier except in the case of spas and hot tubs, which have specific provisions discussed in Section AG107. For swimming pools, a four-sided barrier with compliant gates is required regardless of whether a safety cover is installed.
Another error is installing a gate that swings inward, toward the pool. Homeowners often prefer an inward-swinging gate because it feels more natural when entering the pool area, but the code requires outward swing to prevent a child from pushing the gate open by leaning against it. An inward-swinging gate that lacks the required outward swing will fail inspection and must be rehung before a certificate of occupancy is issued.
State and Local Amendments
Pool barrier requirements are one of the most heavily amended sections of the IRC at the state and local level. California, Florida, Arizona, and Texas all have state-level pool barrier laws that may differ significantly from IRC 2024. California Health and Safety Code Section 115922 requires pool barriers and also mandates at least one additional layer of protection from a list that includes door alarms, window alarms, pool surface alarms, or power safety covers. Florida Statute 515.27 requires a 4-foot barrier and adds specific requirements for power safety covers as a barrier alternative.
Many jurisdictions that have adopted IRC 2024 have also adopted local amendments that increase the minimum barrier height to 60 inches, tighten the maximum opening size, or add requirements for barrier-top deterrents such as outward-slanting tops on chain-link fences. Always verify the specific requirements with your local building department before designing a barrier system. Requirements differ not just by state but sometimes by county or municipality within the same state.
When to Hire a Professional
Pool barrier installation appears straightforward but involves engineering considerations that are easy to get wrong. A fence contractor who has experience specifically with pool barriers will understand the climbability restrictions, grade-measurement protocols, and gate hardware requirements that trip up contractors who primarily install property or decorative fencing. Ask potential contractors whether they have installed IRC-compliant pool barriers previously and whether they have a relationship with the local building department.
For lots with significant grade changes, retaining walls near the pool, or unusual site conditions, consult a landscape architect or structural engineer who can design a barrier system that meets code on every face without relying on assumptions about how the inspector will interpret sloped-grade measurements. Getting the barrier right the first time avoids costly tear-out and rebuild of fencing that fails inspection.
Common Violations Found at Inspection
- Barrier height measured at 47 inches or less on the exterior face at low-grade areas along the fence run.
- Openings in chain-link fencing larger than 1.75 inches diagonally in the lower 45-inch zone, allowing a 4-inch sphere to pass.
- Gate hinges lack spring tension and do not self-close from a 90-degree open position.
- Gate latch does not automatically engage upon gate closure, requiring manual lifting or pressing to latch.
- Gate swings inward toward the pool rather than outward away from the pool as required by AG105.3.2.
- Latch located on the outside of the gate at a height below 54 inches above grade, accessible to a child reaching over.
- Horizontal fence rails on the exterior face between ground level and 45 inches above grade that project more than 1.75 inches and serve as climbing footholds.
- House wall forming part of the barrier has a door without a UL 2017-listed audible alarm or the alarm auto-rearm function does not engage within 15 seconds.
Key takeaways
The points to remember from this section
- 01 IRC 2024 Section AG105 requires pool barriers to be at least 48 inches high measured on the outside face, with no openings that allow a 4-inch sphere to pass through.
- 02 All pool gates must be self-closing, self-latching, and must swing outward away from the pool; latches accessible from outside must be at least 54 inches above grade.
- 03 A standard property perimeter fence does not satisfy the pool barrier requirement unless it meets every dimension, opening, and hardware requirement in AG105.
- 04 Where the house wall forms part of the pool enclosure, any door in that wall must have a UL 2017-listed audible alarm that auto-rearms within 15 seconds.
- 05 State and local amendments frequently exceed IRC 2024 minimums; always verify with your local building department before designing the barrier.
Field Q&A
Common questions about AG105
01 Can my yard fence count as the pool barrier? ▸
02 Does a pool cover replace the required barrier? ▸
03 My gate has a latch on the outside. Is that allowed? ▸
04 How is barrier height measured on a sloped lot? ▸
05 What type of gate hardware is required for pool gates? ▸
06 Are there additional barrier requirements beyond the IRC? ▸
Educational reference only. Code text is paraphrased from the ICC model; adopted code may differ due to state or local amendments. Always verify with your Authority Having Jurisdiction before relying on this content for construction.