What Are Pennsylvania's Pool Fence Requirements?

Pennsylvania's pool fence requirements come from the 2021 International Swimming Pool and Spa Code (ISPSC), which the state adopts through its Uniform Construction Code (UCC). Section 305 of that code calls for a barrier at least 48 inches tall, measured on the side away from the pool, with openings too small to pass a 4-inch sphere and a gap at the bottom of no more than 2 inches over grass or gravel, or 4 inches over concrete. Pedestrian gates must open outward away from the pool, close by themselves and latch by themselves.
The 2021 edition has applied since January 1, 2026. The official text of 34 Pa. Code 403.21, amended November 7, 2025 and effective January 1, 2026, adopts the 2021 ISPSC in paragraph (a)(14); copies that still show the 2018 edition, such as the up.codes page titled "Pennsylvania Swimming Pool and Spa Code 2018," predate that change. The 2021 text also requires construction fencing at least 4 feet high around an in-ground pool site from the first excavation until the permanent barrier is finished, and pool equipment such as pumps and filters outside the barrier must sit at least 36 inches from it. Below are the permit rules, barrier dimensions, gates, house walls, and three Allegheny County municipal rules.

Which Pool Code Does Pennsylvania Use in 2026?
As of October 2026, Pennsylvania uses the 2021 ISPSC through the UCC. The exceptions in 34 Pa. Code 403.21(a)(14) cover administrative sections on permit fees, valuations and work started before a permit. The barrier rules in Section 305 are not among them.
In the 2021 ISPSC, a barrier is "A permanent fence, wall, building wall, or combination thereof that completely surrounds the pool or spa and obstructs access to the pool or spa." Permanent, in the code's words, means it cannot be "removed, lifted, or relocated without the use of a tool." Your municipality can add rules on top, and its code office confirms what applies to your lot.
Do You Need a Permit for a Pool or a Pool Fence in Pennsylvania?
Plan on a permit for an in-ground pool. The UCC's list of work that needs no permit, 34 Pa. Code 403.62(c), names one kind of pool: "Prefabricated swimming pools that are less than 24 inches deep." An in-ground pool is not on it. The same list includes "Fences that are no more than 6 feet high," and each exemption holds only "if the work does not violate a law or ordinance." The fence exemption covers the permit, not the barrier requirement in Section 305.
For sloped yards, the list also exempts "Retaining walls that are not over 4 feet in height measured from the lowest level of grade to the top of the wall unless the wall supports a surcharge." A taller wall, or one that supports a surcharge, is not exempt, and your code office can confirm whether your wall qualifies. The post on whether you need a permit to build a retaining wall looks at wall permits on their own, and the post on whether a concrete patio needs a permit in Pennsylvania covers patios.
How Tall Does a Pool Fence Have to Be, and How Big Can the Gaps Be?
At least 48 inches, measured on the outside. Section 305.2.1 measures height above grade on the side of the barrier that faces away from the pool, and that height has to hold around the whole perimeter and for 3 feet measured horizontally out from the barrier.
Barrier item | 2021 ISPSC requirement | Section |
Height | At least 48 in, measured on the side away from the pool | 305.2.1 |
Gap at bottom, grass or gravel | 2 in maximum | 305.2.1 |
Gap at bottom, concrete | 4 in maximum | 305.2.1 |
Openings | Must not pass a 4 in sphere | 305.2.2 |
Horizontal members less than 45 in apart | Members on the pool side; vertical spacing 1 3/4 in maximum | 305.2.5 |
Horizontal members 45 in or more apart | Vertical spacing 4 in maximum | 305.2.6 |
Chain link | Openings 1 3/4 in maximum | 305.2.7 |
Pool equipment outside the barrier | At least 36 in from the barrier | 305.2.9 |
Solid barriers such as masonry walls "shall not contain indentations or protrusions that form handholds and footholds, except for normal construction tolerances and tooled masonry joints." Mesh fences have their own limits, including a bottom edge within 1 inch of the surface and an inside face at least 20 inches from the nearest edge of the water.
If fence posts land on a concrete pool deck, the 4-inch limit over a solid surface applies. The post on planning a pool deck around an inground pool covers deck layout and sizing.
What Are the Rules for Pool Gates and Latches?
Section 305.3 reads: "Pedestrian access doors and gates shall open outward away from the pool or spa, shall be self-closing and shall have a self-latching device." Gates also have to accommodate a locking device, and utility gates stay locked when not in use.
Latch height depends on the kind of latch. For residential pools, Section 305.3.3 sets these limits:
A release on the outside that does not lock itself: at least 54 inches above the finished floor or ground.
A self-locking release (key, electronic or combination): no higher than 54 inches.
At a private pool where the only release is on the pool side: at least 3 inches below the top of the gate.
Section 305.3.4 adds that openings within 18 inches of an inside latch can be no larger than 1/2 inch.
Can a House Wall or an Above-Ground Pool Wall Count as the Barrier?
Yes, with conditions. Where a house wall forms part of the barrier and has doors or windows with direct access to the pool, Section 305.4 requires one of several protections. The options include:
Alarms on doors and on operable windows with a sill under 48 inches, "listed and labeled as a water hazard entrance alarm in accordance with UL 2017"
"A safety cover that is listed and labeled in accordance with ASTM F1346 is installed"
"An approved means of protection, such as self-closing doors with self-latching devices"
For an onground pool, Section 305.5 lets the pool wall serve as the barrier when its top is at least 48 inches above grade all the way around, the pool manufacturer allows it, and ladders or steps can be secured, locked or removed.
Covers can stand in for the fence in two cases. Under Section 305.1, a spa or hot tub with a lockable safety cover complying with ASTM F1346, and a pool with a powered safety cover complying with ASTM F1346, do not have to meet Sections 305.2 through 305.7.
What Do Allegheny County Municipalities Add?
Local rules sit on top of the state code, and they differ from one municipality to the next. Three examples, as of October 2026:
Baldwin Borough. Its pool permit application (undated) says pools must be at least 15 feet from any property line and enclosed by a fence, wall or other substantial barrier at least 4 feet high with a self-closing, self-latching gate. The form also asks for a survey showing cuts, fills and slope.
Bethel Park. The municipality's Fence Guide (undated) lists a swimming pool fence among fences that need no fence permit, provided it is "not less than four feet nor more than six feet in height" and has no "openings, walls or gaps larger than two inches in any dimension, except for doors and gates." That 2-inch limit is tighter than the code's 4-inch sphere.
City of Pittsburgh. The Permits, Licenses and Inspections page on work not requiring a permit exempts prefabricated pools installed entirely above grade at a one- or two-family home that are less than 24 inches deep and hold no more than 5,000 gallons. Fences 6 feet or less get zoning review only, through the Building and Development Application.
Your municipal code office is the place to confirm setbacks, fence permits and inspections for your lot.
Why Do Pool Barrier Rules Matter?
A Consumer Product Safety Commission (CPSC) news release dated June 24, 2026 reported an average of 376 fatal pool or spa drownings a year among children under 15 from 2021 to 2023. "Nearly 80 percent of those victims were under the age of five," the release says, and "over 70 percent of fatal drownings occurred in residential settings."
CPSC's Safety Barrier Guidelines for Residential Pools (Publication 362) advise: "The swimming pool barrier guidelines are not a CPSC standard; nor are they mandatory requirements."
The deck counts too. Section 306.2 of the 2021 ISPSC says, "Decks, ramps, coping, and similar step surfaces shall be slip resistant and cleanable." The post on non-slip pool deck surfaces lists finish options used around pools.
FAQ
How high does a pool fence have to be in Pennsylvania?
At least 48 inches under the 2021 ISPSC, in effect since January 1, 2026, measured on the side facing away from the pool.
How far from the property line does a pool have to be?
Check your municipality's rules. Baldwin Borough's pool permit application, for one, requires at least 15 feet from any property line.
Do you need a permit for a pool fence in PA?
Fences no more than 6 feet high are on the UCC permit exemption list in 34 Pa. Code 403.62(c), but an in-ground pool is not. Local rules still apply, so ask your code office before the fence goes up.
Does a hot tub need a fence?
Not under Section 305.1 of the 2021 ISPSC, if it has a lockable ASTM F1346 safety cover. Local rules can add more, so check with your municipal code office.
Can a pool fence be chain link?
Yes, if the openings are no more than 1 3/4 inches, under Section 305.2.7. CPSC's Publication 362 is tighter: mesh openings "should not exceed 1¼ inches square."
Is a fence required while the pool is being built?
Yes, for in-ground pools and spas. Section 305.1.1 says those construction sites "shall be provided with construction fencing to surround the site from the time that any excavation occurs up to the time that the permanent barrier is completed," at least 4 feet high.
Planning a Fiberglass Pool With BRK Custom Concrete
BRK Custom Concrete, founded in 2015 by Robert Kaczorowski, handles fiberglass pool installation in the Pittsburgh area and pours concrete pool decks. Before an install date is set, confirm the barrier plan and the permits with your municipal code office, since the 2021 ISPSC calls for construction fencing from the first excavation until the permanent barrier is finished.
Visit BRK Custom Concrete or call (412) 419-8123 today. Contact us for more information.





Comments