Fence required? State: 48-inch barrier under the Uniform Construction Code (34 Pa. Code 403.26(a)). City of Pittsburgh: the same 48-inch rule for existing pools, hot tubs and spas holding more than 24 inches of water (IPMC 303.2, Pittsburgh Code Ch. 1004). Boroughs and townships: ask your code office
The barrier rule is statewide: Pennsylvania's Uniform Construction Code (UCC) sends pools at one- and two-family homes to the International Swimming Pool and Spa Code (ISPSC), a 48-inch barrier with self-closing, self-latching gates (34 Pa. Code 403.26(a)). Who applies it depends on your address, and "Pittsburgh" is often a mailing address rather than a jurisdiction. Allegheny County contains 130 municipalities and no unincorporated land: every square foot belongs to a city, borough or township, and the county itself does not issue building permits. Places like Mt. Lebanon, Bethel Park, Ross, Penn Hills, Moon and Upper St. Clair each have their own code office.
So the first question is not what the barrier rules are. It is who your code official is. Get that wrong and everything downstream (the application, the fee schedule, the inspection sequence, sometimes the requirements themselves) is wrong with it. This guide covers the City of Pittsburgh's requirements in detail, because they are documented and specific, then explains how to run the same process in a borough.
Three Agencies, One Pool
A single residential pool in Allegheny County is typically reviewed by three different bodies operating on separate tracks.
| What | Who | Notes |
|---|---|---|
| Building & zoning | Your municipality | In the city, that is the Department of Permits, Licenses and Inspections (PLI), filed through its OneStopPGH portal. In a borough or township, it is the local code office: many of which contract the work out to certified third-party agencies. Barrier compliance is reviewed here, as part of the pool application. |
| Plumbing | Allegheny County Health Department | The Health Department's Plumbing Program permits and inspects residential plumbing across the whole county under Article XV, independent of which municipality you are in. Plan approval comes before work starts. |
| Electrical | Municipality or third-party agency | PLI's residential pool form is unambiguous that every pool and spa requires an electrical permit for grounding and bonding. This is not optional and not folded into the building permit. |
Except for plumbing, the county has no role in a residential pool permit. There is also no unincorporated territory in Allegheny County, so "I'm not in any municipality" is never the answer.
The City of Pittsburgh Barrier Spec Sheet
PLI publishes a residential pool form that spells out the barrier requirements line by line. Every figure below comes from that form (revised August 2, 2019).
Height
Openings
Base clearance
Clear space outside
Clear space inside
Horizontal members
Gates
Ladders & steps
Drawings
Site plan
A Second Rule for Existing Pools
The city also adopts the 2021 International Property Maintenance Code (Pittsburgh Code Chapter 1004, effective December 18, 2024), and its local changes leave the pool section, Section 303.2, as written. That section applies to pools, hot tubs and spas holding more than 24 inches of water, whenever they were built:
- A fence or barrier at least 48 inches high, measured on the side away from the pool, completely surrounding it
- Self-closing, self-latching gates and doors in the barrier, with the release on the pool side if it sits less than 54 inches above the bottom of the gate
- Gates kept in a condition that closes and latches them when released 6 inches from the post
- No removing or changing an existing enclosure in a way that makes it less effective
A spa or hot tub with an ASTM F1346 safety cover is exempt. Philadelphia adopts the same model section as PM-303.2. Boroughs and townships that adopt a property maintenance code may carry it too, so ask your code office.
Which Code Edition Applies
Pennsylvania moved to the 2021 codes on January 1, 2026, and the transition window has now closed.
Pennsylvania had expected to move to the 2021 ICC code series on that date, but the Department of Labor and Industry had not completed the required regulatory review, and the date was withdrawn.
The Independent Regulatory Review Commission approved the update in October 2025 and it was published in the Pennsylvania Bulletin the following month, adopting nearly all of the 2021 International Codes, including the 2021 International Swimming Pool and Spa Code, with Pennsylvania amendments. This applies across the commonwealth, not just in Pittsburgh.
Where a design or construction contract was signed before January 1, 2026, a permit may still be issued under the 2018 code if the application was made within six months of the effective date, or a shorter period set by municipal ordinance (Construction Code Act, section 304(c)(4)). Applications filed from July 1, 2026 fall under the 2021 code.
PLI's residential pool form carries a 2019 revision date, which places it before the 2021 code adoption. Its figures match the ISPSC barrier section, but a form is not the code. Confirm current requirements with PLI before ordering materials or finalizing a design.
How Slope Affects the Measurements
On a sloped yard, three of the form's measurements need checking at more than one point.
What slope does to a compliant fence
- Height is measured at every point, not on average. A fence that reads 48 inches at the high end can fall short at the low end of the same run. Stepped panels or taller stock in the low sections are the usual remedy.
- The 2-inch base clearance is measured at the worst spot. Follow the grade too loosely and the gap under a panel opens past 2 inches in the dips. Retaining boards or a graded trench close it.
- The 3-foot exterior zone follows the terrain. The barrier must hold 48 inches for all areas within 3 feet outside it. On an uphill exterior, the ground rises toward the fence and the effective height drops: the fence may need to be taller than 48 inches to comply.
Choosing a Barrier Type
PLI's form asks applicants to declare a barrier type, and each carries its own conditions.
| Type | Conditions attached |
|---|---|
| Fence | The general spec sheet applies in full: height, openings, base clearance, horizontal member placement, gate hardware. |
| Chain link | Maximum opening tightens to 1¾ inches. The same limit applies to any barrier with diagonal members. |
| Solid barrier | A wall or solid fence, subject to the height and clearance rules. Watch the 36-inch clear zone against existing structures. |
| Structure wall | Using the house as a barrier side triggers alarm requirements: doors and operable windows with sills below 48 inches need an alarm listed to UL 2017 that sounds on opening. Alternatively, a safety cover listed to ASTM F1346. |
| Mesh (removable) | Bottom no more than 1 inch above grade: tighter than the 2 inches allowed for rigid fencing. Attachments between sections must sit at least 45 inches above grade and function like a gate lock. Not permitted for above-ground pools. |
| Above-ground pool | The pool, or the pool plus a barrier mounted on it, must reach 48 inches above grade. Ladders and steps must be securable, lockable or removable unless separately enclosed, and openings must comply when secured. |
| Spa or hot tub | A lockable safety cover listed to ASTM F1346 satisfies the requirement in place of a barrier. |
Removable mesh is allowed around an in-ground pool here. It cannot serve as the barrier for an above-ground pool: for those, the answer is the pool wall itself plus secured access, or a separate rigid fence.
Pool Fence Cost in Pittsburgh: National Ranges
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.
If You're Outside the City Limits
The state code floor is the same everywhere in the commonwealth, so the barrier specifications above are a sound working baseline, but the process around them is local. Four questions to ask:
Who reviews my application?
Ask whether the municipality runs its own code office or contracts a third-party agency. It changes who you call and where you file.
Which code edition are you on?
New applications fall under the 2021 codes since July 1, 2026. Ask whether any local ordinance or amendment applies on top.
Zoning first, or together?
Some municipalities require zoning approval before the building application; others review both at once.
Any local amendments?
Setbacks from lot lines, equipment placement and fence height limits are zoning matters set locally, and they vary across the county. The construction barrier and alarm rules come from the statewide code; a local property maintenance code can add a rule for existing pools.
One thing that does not vary: the plumbing permit goes through the Allegheny County Health Department wherever you are in the county, and the pool needs an electrical permit for bonding and grounding no matter which municipality issues the building permit.
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 (statewide UCC barrier rule for pools at one- and two-family homes)
- Pennsylvania Department of Labor and Industry, Uniform Construction Code (2021 codes effective January 1, 2026)
- City of Pittsburgh PLI, Residential Pool Form (revised August 2, 2019) (the barrier spec sheet, barrier types, drawings and electrical permit)
- Pittsburgh Code, Chapter 1004, International Property Maintenance Code Adoption (eCode360, through August 5, 2026) (2021 International Property Maintenance Code adopted; Section 303.2 not amended; Article XV plumbing code named)
- International Property Maintenance Code 2021, Section 303.2 (ICC) (pool enclosure rule for existing pools)
Frequently Asked Questions
The Order of Operations
A sequence that keeps the permits in order:
- Confirm your municipality by address, not by mailing address or ZIP code. The two often differ in Allegheny County.
- Call that code office and ask whether zoning comes first and whether any local amendments apply.
- On a sloped yard, measure grade along the barrier line before choosing a barrier type.
- File the building or zoning application with a site plan showing barrier location and type against the pool and property lines.
- File the electrical permit, and the county plumbing permit through the Health Department, in parallel, not after.
- Walk the finished barrier at the low points before calling for inspection. Height and base clearance are measured at the worst spot, not the best.
Figures in this guide come from the City of Pittsburgh's published residential pool form, the city's property maintenance code and the statewide UCC. Outside the city, the same statewide barrier rule applies (34 Pa. Code 403.26(a)); the code office, permit process and zoning rules vary across Allegheny County's other 129 municipalities, so confirm with your local code official before ordering materials.
Statewide context: Pennsylvania Pool Fence Requirements, the statewide Uniform Construction Code rule and how municipalities enforce it. See also Philadelphia, which carries the same property-maintenance pool rule.