Fence required? State: 48-inch barrier under the Uniform Construction Code (34 Pa. Code 403.26(a)). Philadelphia: a 48-inch fence or barrier around any pool, hot tub or spa holding more than 24 inches of water, whenever it was built (Property Maintenance Code PM-303.2)
Philadelphia pools answer to two rules. The first 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) barrier rule, a 48-inch barrier with self-closing, self-latching gates (34 Pa. Code 403.26(a)), and the city's Department of Licenses and Inspections (L&I) enforces it. Under Code Bulletin B-2501, applications filed from July 1, 2026 are reviewed under the 2021 codes. The second rule sits in Title 4.2, the Philadelphia Property Maintenance Code, at Section PM-303.2: the same body of law that governs peeling paint and broken handrails. It is the pool section of the International Property Maintenance Code, which Philadelphia adopts (Pittsburgh adopts the same section). Because it is a maintenance rule, it applies to the pool for as long as the pool exists, including a pool that never had a permit.
It also means the rule reaches further down than most people expect. The trigger is not "in-ground pool" or "permitted pool." It is more than 24 inches of water: a threshold that can include inflatable and soft-sided pools once they are filled past it.
What PM-303.2 Actually Requires
Here is the operative language, condensed. The section follows the model code word for word, apart from dropping the word "private".
Pools, hot tubs and spas containing more than 24 inches of water must be completely surrounded by a fence or barrier of at least 48 inches, measured from finished ground level on the side of the barrier facing away from the pool.
- 1The 24-inch trigger. Depth of water, not type of pool. A soft-sided pool filled to 26 inches is regulated; the same pool filled to 20 inches is not. Nothing in the section carves out temporary, seasonal, or inexpensive pools.
- 2Forty-eight inches, measured outward. Height is taken on the exterior face: the side a child would approach from. A retaining wall, planter, or raised patio on the outside of the fence reduces the effective height and can put an otherwise-compliant barrier out of compliance.
- 3Gates and doors must self-close and self-latch. The section names both. If a door from the house opens into the enclosed pool area, that door falls under the same requirement as a garden gate.
- 4The 54-inch latch pivot. Where the release mechanism sits less than 54 inches above the bottom of the gate, it must be relocated to the pool side.
- 5The six-inch close test. A gate has to positively close and latch when released from six inches open. The code states the test itself, so a gate that only latches from a hard swing does not comply.
- 6No downgrading an existing barrier. An existing enclosure cannot be removed, replaced, or altered in a way that reduces its effectiveness. Swapping a compliant fence for a lower decorative one is itself a violation, independent of any permit.
A spa or hot tub with a safety cover meeting ASTM F1346 is exempt from PM-303.2. Note what the exception does not say: it applies to spas and hot tubs, not to swimming pools, and it requires a cover certified to that specific standard, not a vinyl tarp or a winter cover.
The Permit Question Has Three Separate Answers
"Do I need a permit?" is not one question in this city: it is three, they are governed by different subsections of Section A-301, and they do not resolve the same way.
| Permit type | For the barrier itself | Why |
|---|---|---|
| Building permit | Usually not | Non-masonry fences up to six feet are listed among the activities exempt from a building permit. A standard four-foot pool barrier clears that comfortably. Masonry fence walls, however, are only exempt up to two feet, so a brick or block enclosure is a different conversation entirely. |
| Zoning permit | Usually not | Fences at or below the height the Zoning Code allows are exempt, and so, separately, are swimming pools accessory to one- and two-family dwellings. The city's fence permit page adds one exception: a fence more than 50 percent opaque needs a zoning permit. This exemption is about zoning only. |
| Building permit, for the pool | Yes, over 24" | The exemption for prefabricated pools is written narrowly: under 24 inches deep, no more than 5,000 gallons, and installed entirely above ground. Miss any one of those three and a building permit is required. In-ground pools are never exempt. |
| Historical Commission review | If designated | If the property is on the Philadelphia Register of Historic Places or sits in a designated historic district, a building permit is required for fence work regardless of height, and L&I will refuse the application without Historical Commission approval first. Same rule applies within the 100-year floodplain. |
| Electrical permit | Yes | Separate permits are required for the electrical and plumbing work that accompanies a pool. L&I's pool and spa standards say so directly. |
"Swimming pools accessory to one- and two-family dwellings" appears on the list of things that do not need a zoning permit. It reads like a green light. It is not one: the building permit requirement for pools deeper than 24 inches lives in an entirely different subsection and is unaffected by it. Two exemptions in the same code section, pointing opposite directions.
Rear-Yard Setbacks on a Narrow Lot
On a narrow lot, space for the pool is often the first limit.
L&I's EZ permit standards for pools and spas (dated February 2007) let you permit a pool accessory to an existing one-family dwelling without submitting plans if it meets these conditions:
Conditions in L&I's pool and spa standards
| Pool, structure and equipment must be out of the front and side yard | Rear yard only |
| Minimum clearance from any property line or structure on the lot | 2 feet |
| In-ground pools: setback from each property line | = depth of pool |
| Above-ground access platform included in the permit | up to 50 sq ft |
| Guardrail around that platform | 36" min, 4" max opening |
| Pools on decks or roofs | Not permitted |
Run the arithmetic on a hypothetical 16-foot-wide lot. A six-foot-deep in-ground pool needs six feet of clearance from each side property line, which leaves four feet of pool, before accounting for the two-foot minimum from any structure, or for the 48-inch barrier that then has to go somewhere between the water and the fence line. On a lot that narrow, an in-ground pool does not fit under the simplified path, and anything that deviates from the standards requires full plan submission to L&I.
Three Barrier Configurations L&I Recognizes
The department's pool and spa standards illustrate three acceptable arrangements. Any pool, spa or hot tub needs to match one of them.
Fence encloses the pool alone
A 48-inch barrier rings the pool within the rear yard, with a self-closing, self-latching gate swinging away from the water. The house sits outside the enclosure entirely.
The pool wall is the barrier
Above-ground only. The pool structure itself stands 48 inches, and the barrier obligation shifts to the stair or ladder, which must be secured against unsupervised access.
Yard enclosed, house as one side
A 48-inch barrier closes the rear yard with the dwelling forming part of the enclosure. Any door from the house into that area needs approved hardware or an alarm.
Where a rear yard is already walled or fenced on its other sides to 48 inches, with compliant openings, the remaining work may be the back door hardware and the yard gate.
Historic Properties Need Commission Approval
Properties on the Philadelphia Register of Historic Places, individually or inside a historic district, follow a different permit path for fences.
The consequence for fence work is procedural, and it is strict. Where a property is designated, the ordinary "non-masonry fence under six feet" exemption stops applying: a building permit becomes mandatory, and L&I will refuse the permit application outright without stamped Historical Commission approval attached. Approval is sought through eCLIPSE, with the Commission reviewing electronically and reporting its determination to L&I directly.
Practically, that adds a design review to a project that would otherwise need no fence permit. Build the Commission's review into the schedule.
Designation status is searchable on the city's Atlas property tool by address. It takes under a minute and it is worth doing before a contractor orders panels, not after.
Pool Fence Cost in Philadelphia: 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.
Who Enforces It
The Department of Licenses and Inspections. Because the requirement is a maintenance-code obligation rather than a one-time construction gate, it applies to an existing pool, not only at installation, and a new or old pool without a compliant barrier is a violation.
Sources
Every rule on this page traces to one of these. We link the primary source so you can check it yourself.
- Philadelphia Code, Title 4.2, Section PM-303 (American Legal Publishing, current) (PM-303.2 enclosure rule for pools, hot tubs and spas over 24 inches)
- International Property Maintenance Code 2021, Section 303.2 (ICC) (the model text PM-303.2 follows)
- 34 Pa. Code 403.26, Swimming pools (statewide UCC barrier rule for pools at one- and two-family homes)
- L&I Code Bulletin B-2501, Implementation of 2021 International Codes (October 20, 2025) (2021 codes for applications from July 1, 2026)
- Philadelphia Code, Section A-301, Application for Permit (American Legal Publishing) (building and zoning permit exemptions, including prefabricated pools and fences)
- City of Philadelphia, Get a Fence Permit (historic register and floodplain rule, Historical Commission approval, opaque fences)
- L&I, EZ Permit Standards: Pools and Spas, PB_010_F (dated February 2007) (rear-yard location, setbacks, platform and barrier options)
- Pennsylvania Department of Labor and Industry, Uniform Construction Code (2,562 municipalities; 2021 codes effective January 1, 2026)
Frequently Asked Questions
Before You Fill the Pool
A short sequence before you fill the pool:
- Look up the address on the city's Atlas tool and confirm whether the property is historically designated or in the floodplain. This determines whether the fence needs a permit at all.
- Measure the rear yard against the setback conditions before choosing a pool type.
- Measure existing enclosure height on the outside face, at the lowest point of grade.
- Test every gate and every door into the yard from six inches open. If it does not latch, fix it before anything else.
- Confirm who is pulling the pool permit and the separate electrical permit, and get the permit numbers.
Requirements described here reflect the Philadelphia Code as published and L&I's posted pool and spa standards. The EZ pool and spa standards currently posted are dated February 2007, so confirm current requirements with L&I before ordering materials.
Statewide context: Pennsylvania Pool Fence Requirements, the statewide Uniform Construction Code rule that applies in all 2,562 municipalities, Philadelphia included.