Pennsylvania Pool Fence Law: Barrier Rules for Pools and Spas
Pennsylvania’s pool fence rules come from the Uniform Construction Code, which adopts the 2021 International Swimming Pool and Spa Code (ISPSC). A pool that needs a permit needs a barrier at least 48 inches high with no opening a 4-inch ball can pass through, and gates that open away from the pool and close and latch on their own. Your town’s zoning ordinance then decides where the pool and fence can go.
Quick answer
- Permit trigger: pools 24 in. deep or more (prefabricated pools under 24 in. are exempt)
- Barrier height: at least 48 in., measured on the outside
- Gap at the bottom: 2 in. max over grass or soil, 4 in. over a solid surface
- Openings: a 4 in. sphere can’t pass through
- Gates: open outward, self-closing, self-latching; outside release at least 54 in. up
- Hot tubs: a lockable ASTM F1346 safety cover can take the place of a barrier
Where do Pennsylvania’s pool fence rules come from?
We found no separate Pennsylvania statute on pool fences. The rules arrive through the UCC: since January 1, 2026, Pennsylvania enforces the 2021 ISPSC. The UCC Review and Advisory Council recommended adopting it with changes only to the Chapter 1 fee provisions (IRRC #3455), so the barrier rules in Section 305 read the way the model code does. The details below come from that section as laid out in Palmer Township’s 2026 pool barrier details and Derry Township’s pool guide.
Zoning is separate. Setbacks for the pool, the fence and the equipment come from your municipality’s zoning ordinance, and Derry Township, for one, requires a zoning permit as well as a building permit for pools 24 in. deep or more. For neighbor and property-line fence questions, see Pennsylvania fence law.
Does a pool need a permit in Pennsylvania?
34 Pa. Code § 403.62(c) exempts prefabricated swimming pools less than 24 in. deep from UCC permits. Deeper pools need one. Derry Township requires a building and zoning permit for all pools 24 in. deep or more, and treats pools with inflatable fabric or non-metallic polymeric walls as storable pools regardless of height. Hot tubs and spas need permits in the municipalities whose guides we checked, including Dallas Borough and Frazer Township.
Plan the barrier before the hole. The 2021 code requires construction fencing at least 4 ft high around an in-ground pool site from the start of excavation until the permanent barrier is complete (ISPSC 305.1.1), and Palmer Township won’t let a pool be filled until the permanent barrier is installed.
How high does a pool fence have to be in Pennsylvania?
| Rule | Requirement | ISPSC section |
|---|---|---|
| Height | Top at least 48 in. above grade, measured on the outside, held for 3 ft out from the barrier | 305.2 |
| Bottom gap | 2 in. max over soil or grass; 4 in. max over a solid surface | 305.2 |
| Openings | A 4 in. sphere can’t pass through | 305.2.2 |
| Horizontal rails less than 45 in. apart | Rails on the pool side; vertical gaps no more than 1 3/4 in. | 305.2.5 |
| Horizontal rails 45 in. or more apart | Vertical gaps no more than 4 in. | 305.2.6 |
| Chain link | Mesh openings no more than 1 3/4 in., including slats fastened top and bottom | 305.2.7 |
| Diagonal lattice | Openings no more than 1 3/4 in. | 305.2.8 |
| Clear zone | 36 in. between the outside of the barrier and permanent structures or equipment | 305.2.9 |
| Distance to water | Barrier at least 20 in. from the water’s edge | 305.2.10 |
Watch the 36 in. clear zone. A pool pump, a retaining wall, a planter or a stack of firewood against the outside of the fence can work as a step for a child. Keep anything permanent 3 ft away from the outside face, or move it inside the barrier.
Pool gate and latch requirements
- Pedestrian gates open outward, away from the pool, and are self-closing and self-latching, with a way to lock them.
- A latch released from the outside without a key or code has to be at least 54 in. above grade. Self-locking key, electronic or combination releases can be 54 in. or lower.
- Where the only release is on the pool side, it has to be at least 3 in. below the top of the gate, and openings within 18 in. of that latch can’t exceed 1/2 in.
- Utility and service gates stay locked when not in use.
- On double gates, one leaf is secured and the other has a self-latching device.
Self-closing hinges lose tension over time, and a gate that sags drags instead of latching. Test it from a few inches open and from wide open; it should swing shut and latch every time.
Can the house be part of the pool barrier?
Yes. But if doors or windows in that wall open directly to the pool area, ISPSC 305.4 requires one of these:
- An alarm listed to UL 2017 on the doors and gates, and on operable windows with a sill less than 48 in. above the indoor floor. Derry Township’s guide adds that the deactivation switch must be at least 54 in. above the threshold.
- A safety cover meeting ASTM F1346.
- Other approved protection that’s just as effective, such as self-closing doors with self-latching devices.
Above-ground pool and hot tub barrier rules
An above-ground (on-ground) pool can use its own wall as the barrier if the wall is at least 48 in. above grade all the way around and the manufacturer allows it. Derry Township wants the manufacturer’s approval submitted with the permit application. You can also mount a barrier on top of the pool wall; Palmer’s details limit the gap between the pool structure and the bottom of that barrier to 4 in., and don’t allow mesh fencing on top of on-ground residential pools.
The ladder or steps are the weak spot. They have to be securable, lockable or removable, or enclosed by a compliant barrier, and any opening they leave can’t pass a 4 in. sphere.
Hot tubs and spas get a simpler option: a lockable safety cover that meets ASTM F1346 can take the place of the barrier. For swimming pools, the cover exception applies only to a powered safety cover meeting the same standard.
Before the final pool inspection
- Permanent barrier finished and every gate tested before the pool is filled
- 36 in. clear outside the fence: no equipment, walls or planters to climb
- Above-ground ladder removable or lockable, and the manufacturer’s letter on file if the pool wall is the barrier
- Door alarms or self-closing doors in place where the house wall is part of the barrier
- Electrical bonding and GFCI protection inspected under the IRC’s pool wiring chapter; Derry’s guide walks through it item by item
This is a plain-English summary, not legal advice.
Sources
- 34 Pa. Code § 403.62 (UCC permit exemptions)
- IRRC #3455, L&I final-form regulation 12-125 (2021 ISPSC adoption)
- PA Department of Labor & Industry, Uniform Construction Code
- Palmer Township, 2026 swimming pool barrier details (ISPSC 2021 Section 305)
- Derry Township, swimming pool checklist and permitting guide
- Lower Merion Township, 2021 code changes (construction fencing)
- Dallas Borough, UCC building permit guidelines and Frazer Township, homeowner UCC guide
- Last checked November 14, 2026.
Common questions
How high does a pool fence have to be in Pennsylvania?
At least 48 inches, measured on the outside, with no more than a 2-inch gap at the bottom over grass or soil (4 inches over a solid surface) and no opening a 4-inch sphere can pass through. These rules come from the 2021 International Swimming Pool and Spa Code, adopted through the UCC.
Does an above-ground pool need a fence in Pennsylvania?
Not a separate fence if the pool wall is at least 48 inches high all the way around and the manufacturer allows it to serve as the barrier. The ladder or steps must be securable, lockable or removable.
Does a hot tub need a fence in Pennsylvania?
Not if it has a lockable safety cover that meets ASTM F1346, which takes the place of the barrier. Hot tubs still need a permit in many towns.
What pool depth needs a permit in Pennsylvania?
Prefabricated pools less than 24 inches deep are exempt from the UCC permit requirement. Pools 24 inches deep or more need a permit and a compliant barrier, and some towns treat inflatable pools as storable pools regardless of height.
See every Pennsylvania building, digging and contractor rule on our Pennsylvania guide. Related: Pennsylvania fence law, Pennsylvania building code and PA building permit lookup.
Muthler Landscaping & Construction · Lock Haven, PA
Planning a project in central Pennsylvania?
We build retaining walls, patios, drainage and site work across Clinton, Centre, Lycoming and Union counties, and we pull the permits. PA HIC #PA212584.
Using this guide? Link to it or cite it. It’s free to use with a link back, and we keep it updated against official sources.
Cite as: Muthler Landscaping & Construction, “Pennsylvania Pool Fence Law: Barrier Rules for Pools and Spas,” https://muthlerlandscaping.com/state-guides/pennsylvania/pool-fence-law/ (last checked November 14, 2026).
Get an email when your state’s rules change
We re-check every entry against official sources. Tell us your state and we’ll email you when something changes.