Pennsylvania Pool Fence Requirements at a Glance

Fence Required?
RequiredSources verified September 2026
Minimum Height
48 inches (4 feet)
Maximum Opening Size
4 inches; 2 inches under the bottom
Gate Requirements
Self-closing, self-latching, opens outward. A latch under 54" goes on the pool side.
Permit Required?
Usually; prefabricated pools under 24" deep are exempt
Applies To
Pools, hot tubs and spas at one- and two-family homes

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).

We corrected this page

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.

Always Verify With Your Local Authority

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.

Ready to get your fence installed?

Use our free tool to estimate costs and get quotes from local pros.

Calculate My Cost

Municipal Variations in Pennsylvania

The barrier rule is the same statewide. What varies is who administers the UCC where you live.

WhereWhat to expect
PhiladelphiaThe 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.
PittsburghThe 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 municipalitiesYour municipality's code office, or a third-party agency it uses, permits and inspects under the UCC.
Municipalities that opted outThe 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.

MaterialInstalled, per linear footFull breakdown
Removable mesh$15 to $35Mesh fence cost
Aluminum$30 to $60Aluminum fence cost
Vinyl / PVC$20 to $45Vinyl fence cost
Tempered glass$90 to $500Glass 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.

Not sure what your state requires?

Look up your exact requirements in our state-by-state database.

View State Requirements

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.