Pennsylvania Pool Fence Requirements at a Glance
Pennsylvania Pool Barrier Law
Pennsylvania has one construction code for the whole state, the Uniform Construction Code (UCC). Under 34 Pa. Code 403.26(a), a swimming pool, hot tub or spa that is accessory to a one- or two-family home must comply with the International Swimming Pool and Spa Code (ISPSC). The current UCC names the 2021 edition (UpCodes, quoting 403.26; 34 Pa. Code 403.21).
In the ISPSC's barrier section (ICC model text, 2021 edition) call for:
- At least 4 feet tall, measured outside the enclosure
- Bottom edge within 2 inches of the ground
- Nothing a 4-inch sphere could slip through
- Pedestrian gates opening outward from the pool that close and latch automatically and can be locked
- A release below 54 inches on the gate belongs on the pool side, no less than 3 inches under the top, with no opening over 1/2 inch within 18 inches of it
- Door alarms, or another approved option, where a house wall forms part of the barrier
Covers meeting ASTM F1346 (powered for pools, lockable for spas and hot tubs) exempt the pool or spa from the barrier rules.
The UCC replaces most local construction standards, though some local ordinances in effect on July 1, 1999 survive (34 Pa. Code Chapter 403, Department of Labor and Industry). A municipality that has opted out of enforcing the UCC is still covered by it; the Department of Labor and Industry (L&I) handles enforcement questions there (Chapter 403, sections 403.102 and 403.141).
An earlier version said Pennsylvania has no statewide pool fence rule and that barriers come from IRC Appendix G (AG105) where towns adopt it. The statewide UCC names the pool code directly.
State and local laws change. This information reflects our best research as of September 2026, but you must confirm current requirements with your local building department before installing or modifying any pool barrier. The UCC replaces most local construction standards; some local ordinances in effect on July 1, 1999 survive.
Last reviewed: September 2026. Report an error →
Official source: 34 Pa. Code 403.26, Swimming pools
Above-Ground Pools in Pennsylvania
The UCC rule covers above-ground pools at homes too. Prefabricated pools less than 24 inches deep do not need a UCC permit (34 Pa. Code Chapter 403). Under the ISPSC model text, a pool wall can serve as the barrier if it meets the height rule, and a ladder or steps must be removable, lockable or surrounded by a compliant barrier. Ask your municipality's code office before you buy.
Municipal Variations in Pennsylvania
The barrier rule is the same statewide. What varies is who administers the UCC where you live.
| Where | What to expect |
|---|---|
| Philadelphia | The city administers the code itself. Its Property Maintenance Code also carries the model pool enclosure rule for existing pools (PM-303.2); see our Philadelphia guide. |
| Pittsburgh | The city's Property Maintenance Code adopts the 2021 International Property Maintenance Code, including its pool enclosure rule for existing pools (Chapter 1004, Section 303.2). See our Pittsburgh guide for the permit process. |
| Most municipalities | Your municipality's code office, or a third-party agency it uses, permits and inspects under the UCC. |
| Municipalities that opted out | The UCC still applies. Ask the Department of Labor and Industry who permits and inspects. |
Pool Fence Cost in Pennsylvania
We found no published source that prices pool fences by state or city, so these are national installed ranges from our pool fence cost guide. Quotes where you live can land above or below them.
| Material | Installed, per linear foot | Full breakdown |
|---|---|---|
| Removable mesh | $15 to $35 | Mesh fence cost |
| Aluminum | $30 to $60 | Aluminum fence cost |
| Vinyl / PVC | $20 to $45 | Vinyl fence cost |
| Tempered glass | $90 to $500 | Glass fence cost |
National typical installed ranges, not quotes. Multiply by your fence perimeter. Some sources include one gate in the figure; extra gates, permits and hard deck surfaces add to the total. Sources: HomeGuide (Feb 3, 2026), Life Saver Pool Fence (Aug 5 and Sep 23, 2026) and Pool Guard USA (May 20, 2025). Full source list and method: pool fence cost guide. Reviewed September 2026.
Permit fees in Pennsylvania vary widely by municipality, so add yours to the budget when you compare quotes.
Pennsylvania Pool Fencing: One State Code, Local Enforcement
Pennsylvania's pool rule is short: the statewide UCC sends pools at one- and two-family homes to the national pool code, with its 48-inch barrier and self-closing, self-latching gates. Your first call is your municipality's code office, to confirm the permit process and any surviving local ordinance.
If you buy a home with a pool, check the barrier against the rule before the first swim season. A homeowners association can add style rules, but it cannot waive the code barrier.
Pennsylvania Pool Fence FAQs
Yes. The statewide Uniform Construction Code requires a pool, hot tub or spa at a one- or two-family home to comply with the International Swimming Pool and Spa Code (34 Pa. Code 403.26), which requires a barrier.
At least 48 inches under the ISPSC model rule, measured on the side away from the pool, with no opening that passes a 4-inch sphere and no more than 2 inches under the bottom.
Under the model rule, gates open outward and close and latch by themselves. A latch release lower than 54 inches above the bottom of the gate goes on the pool side, at least 3 inches below the top.
Usually. The UCC exempts prefabricated pools less than 24 inches deep from permits. Ask your municipality's code office about your pool and fence.
Yes, the same rule covers them. The pool wall can serve as the barrier if it meets the height rule, with ladders or steps removable, lockable or fenced.
The UCC still applies. It is a statewide code, so a local ordinance is not needed; in a municipality that opted out of enforcing the UCC, ask the Department of Labor and Industry who permits and inspects.
If a wall of your home is part of the barrier, the model rule requires an alarm on doors that open to the pool, or another option the code lists.
Sources
Every rule on this page traces to one of these. We link the primary source so you can check it yourself.
- 34 Pa. Code 403.26, Swimming pools (Justia, current through March 29, 2025) (pools at one- and two-family homes must comply with the ISPSC)
- Pennsylvania Department of Labor and Industry, Uniform Construction Code (2021 codes approved October 16, 2025, published November 8, 2025, effective January 1, 2026)
- UpCodes, Pennsylvania Swimming Pool and Spa Code 2021 (quotes 403.26 with the 2021 edition)
- 34 Pa. Code 403.21, Uniform Construction Code (Pennsylvania Code, through June 6, 2026) (codes adopted as the UCC)
- 34 Pa. Code Chapter 403 (Department of Labor and Industry) (preemption of local standards; permit exemptions)
- 34 Pa. Code Chapter 403 contents (Pennsylvania Code) (municipalities not enforcing the UCC; Department enforcement)
- International Code Council (ICC), ISPSC Chapter 3 (model text) (barrier height, openings, gates, latch, house wall, cover exemption)