Pennsylvania Fence Permit Rules: What Homeowners Need to Know

Quick answer

In most Pennsylvania municipalities, a standard 6-foot privacy fence in the side or rear yard requires at least a zoning permit, and fences taller than 6 feet require a building permit. Front-yard fences are typically limited to 3 to 4 feet. Pennsylvania enforces the Uniform Construction Code statewide, but each township, borough, and city sets its own zoning rules for fence height, setbacks, and materials. Always check with your local building department before starting your project.

Pennsylvania at a glance

Building code adopted

Pennsylvania Uniform Construction Code (PA UCC), based on 2018 ICC codes as adopted by the PA Department of Labor & Industry

State authority

Pennsylvania Department of Labor & Industry

Common permit threshold

Most municipalities require a permit for fences over 6 feet, though many require zoning review for all fences — some boroughs require permits for any fence over 30 inches

Did you know?

Pennsylvania enforces one of the country's strictest pool fencing standards: any body of water 24 inches deep or greater is classified as a pool and must be surrounded by a barrier at least 4 feet high — including above-ground pools that don't meet the height threshold on their own.

Pennsylvania's Uniform Construction Code Sets the Baseline

Pennsylvania enforces a statewide building code — the Uniform Construction Code (PA UCC) — which is administered by the Pennsylvania Department of Labor & Industry. The PA UCC is based on the International Code Council's model codes and applies to all new construction, including fences and walls, throughout the state.

However, like most states, the practical rules that determine whether you need a permit, how tall your fence can be, and what materials you can use are set at the municipal level. Pennsylvania has over 2,500 municipalities — cities, boroughs, and townships — each with its own zoning ordinance. The result is a patchwork of rules that can vary significantly over short distances. A fence that's perfectly legal in one township might need a permit and variance approval in the neighboring borough.

The statewide code establishes structural minimums and safety standards, but your municipality's zoning code controls fence height, placement, setbacks, and design. Both layers apply — your fence needs to satisfy both.

For a broader look at how fence permit rules work across the country, see our national guide to fence permits.

Height Limits Across Pennsylvania

Pennsylvania follows the same general pattern as most northeastern states: front yards are the most restricted, and backyards offer the most freedom.

Front-yard fences are typically limited to 3 to 4 feet across the state. Philadelphia and Pittsburgh both cap front-yard fences at 4 feet. Some boroughs — like Reading, where the zoning code requires a permit for any fence over 3 feet — set even lower thresholds. Front-yard fences in many municipalities must also be at least partially open (picket, wrought iron, or chain link) rather than solid.

Side-yard and rear-yard fences generally max out at 6 feet without triggering a building permit. Some municipalities allow 6.5 feet — the extra half-foot accounts for post caps and minor variations in ground level. A few cities, including Pittsburgh, commonly allow rear-yard fences up to 8 feet with a building permit.

Corner lots face additional restrictions statewide. Fences near intersections must remain below 3 to 3.5 feet within a visibility triangle — typically measured as a triangle extending 15 to 20 feet from the intersection point. Pittsburgh specifically limits corner lot fences to 3.5 feet within 20 feet of the street corner.

Fences taller than 6 feet almost universally require a building permit in addition to the zoning permit, and some municipalities require engineering for fences above a certain height, particularly masonry walls.

How Pennsylvania Cities Handle Permits

Permit requirements vary more widely in Pennsylvania than many homeowners expect. The key distinction is between zoning permits and building permits — most municipalities require at least one, and many require both.

Philadelphia

Philadelphia has a detailed set of fence regulations within its zoning code. The key rules:

Philadelphia's permit process is managed by the Department of Licenses and Inspections (L&I). The city has a separate FAQ document for residential fence rules that helps homeowners navigate the specific thresholds for masonry versus non-masonry construction.

Pittsburgh

Pittsburgh requires a zoning permit for all fences regardless of height, and a building permit for fences taller than 6 feet. The city also requires an occupancy certificate for any new fence — meaning an inspection must confirm the fence was built in compliance with the approved plans.

Pittsburgh's zoning code requires that the finished side of the fence face adjacent properties and public rights-of-way. The city also has specific rules for walls over 40 feet in length, which must incorporate visual relief (such as changes in material, offset sections, or landscaping) to prevent monotonous streetscapes.

Barbed wire and razor wire are banned in all Pittsburgh zoning districts — residential, commercial, and industrial. This is stricter than many Pennsylvania cities, which typically ban these materials only in residential zones.

Pittsburgh's older neighborhoods present a common challenge: many lots are narrow, and homes are built close to the property line. Getting a survey before building is essential to avoid encroachment, particularly in neighborhoods like Lawrenceville, South Side, and the North Side where lot widths can be under 25 feet.

The Lehigh Valley: Allentown and Bethlehem

Allentown and Bethlehem — the two largest cities in the Lehigh Valley — both require permits for most fence construction. Height limits follow the standard 4-foot front / 6-foot side and rear pattern. Both cities have seen significant residential growth, and newer developments typically have HOA restrictions that layer on top of municipal codes.

The Lehigh Valley's proximity to New Jersey means homeowners near the border should be careful to verify which municipality's rules apply — particularly in unincorporated areas where county zoning may differ from nearby city codes.

Reading

Reading has one of the state's stricter permit thresholds: a zoning permit from the Zoning Administrator is required for any fence over 3 feet. The city also enforces detailed rules about fence location relative to the property line and right-of-way. Reading measures fence height from the total above the ground, including if a fence sits on top of a wall — a 2-foot fence on a 2-foot retaining wall is treated as a 4-foot structure.

Scranton and Northeastern Pennsylvania

Scranton and the surrounding Lackawanna County municipalities require permits for most fence construction. The standard 4-foot front / 6-foot rear limits apply, with additional restrictions near intersections. Northeastern Pennsylvania's harsh winters — with heavy snow, deep frost, and freeze-thaw cycles — make material selection and post depth critical, similar to upstate New York.

Pool Fence Requirements

Pennsylvania applies pool barrier requirements through the Uniform Construction Code, which aligns closely with the IRC's provisions. The state defines a pool as any body of water 24 inches deep or greater — a definition that includes in-ground pools, above-ground pools, hot tubs, and even some portable pools.

The requirements:

Above-ground pools with walls at least 48 inches above the adjacent ground level can use the pool structure itself as the barrier, but must have a removable or lockable ladder that prevents unsupervised access when the pool is not in use. If the pool walls are shorter than 48 inches, a separate fence meeting the full barrier requirements is needed.

Pool fence inspections are taken seriously across Pennsylvania. Most municipalities require a permit specifically for pool construction, and the pool barrier is inspected as part of that process. A pool that doesn't pass barrier inspection won't receive its certificate of occupancy.

Property Lines and Boundary Fences

Pennsylvania does not have a Good Neighbor Fence Law in the way California does. There is no state statute requiring a neighbor to share the cost of a new boundary fence.

However, Pennsylvania common law and some municipal codes recognize that a fence built directly on the property line is jointly owned by both neighboring property owners, and both share responsibility for maintenance. This creates a practical tension: building on the property line gives your neighbor shared ownership (and shared maintenance responsibility), but it also means you can't modify or remove the fence without their consent.

Many Pennsylvania municipalities address this by requiring a setback — typically 0 to 3 feet — from the property line. The setback ensures the fence sits entirely on your property, giving you full ownership and control. The downside is losing those inches of usable space.

A property survey is strongly recommended before building near any boundary line. Many municipal permit applications require a site plan showing the fence relative to property boundaries. In townships that don't formally require it, a survey still protects you from costly encroachment disputes.

For an overview of all building permit requirements in Pennsylvania — including decks, sheds, pools, and more — see our complete Pennsylvania building permit guide.

Material Restrictions

Pennsylvania does not impose statewide restrictions on residential fence materials, but local zoning codes commonly prohibit or restrict the following:

Barbed wire and razor wire are prohibited in residential zones in virtually every Pennsylvania municipality. Pittsburgh goes further and bans them in all districts. Rural townships with significant agricultural activity may allow barbed wire on farm properties.

Electric fences are similarly restricted in residential areas. Some municipalities allow low-voltage pet containment systems that are buried or mounted on an existing fence, but stand-alone electric fencing is generally prohibited.

Chain link is allowed in most areas but may be restricted in front yards. Some boroughs and townships in the Philadelphia Main Line suburbs — places like Radnor, Lower Merion, and Tredyffrin — restrict chain link in residential zones and require decorative alternatives.

Masonry fences trigger stricter permit requirements across the state. Philadelphia requires a building permit for masonry fences over just 2 feet — much lower than the 6-foot threshold for wood or vinyl. This reflects the structural nature of masonry construction: a poorly built block wall poses a safety risk that a wooden fence does not.

Climate and Seasonal Considerations

Pennsylvania's climate affects fence construction in ways that homeowners in warmer states don't need to worry about.

Frost depth ranges from roughly 36 inches in the southeast (Philadelphia area) to 42 inches or deeper in the northern and western parts of the state (Scranton, Erie). Fence posts must be set below the frost line to prevent frost heaving, where the expansion and contraction of frozen soil pushes posts out of the ground over repeated winter cycles. Setting posts at a minimum of 36 inches — and deeper in the northern counties — is a practical necessity.

Snow and ice loads affect solid panel fences more than open designs. A standard 6-foot privacy fence can accumulate significant lateral pressure from wind-driven snow or ice. Posts should be sized and braced accordingly, and many contractors recommend a slight gap at the bottom of the fence (1 to 2 inches) to allow snow to pass through rather than banking against the panels.

Wet rot is a concern for wood fences in Pennsylvania's humid summers. Pressure-treated lumber, cedar, or composite materials last significantly longer than untreated pine. Ground-contact-rated posts are essential for any in-ground installation.

HOA Rules

HOAs are common in Pennsylvania's newer residential developments — particularly in the suburban ring around Philadelphia (Chester, Delaware, Montgomery, and Bucks Counties), the Lehigh Valley, and the suburbs of Pittsburgh (Allegheny County). Many master-planned communities require architectural committee approval before any fence construction.

Typical HOA fence restrictions in Pennsylvania include requirements for specific materials (often wood or vinyl only), color approvals, height limits below what municipal code allows, and prohibitions on chain link or wire fencing. Some communities mandate a uniform fence style across the neighborhood.

Pennsylvania law (the Uniform Planned Community Act) gives HOAs the authority to enforce their governing documents, and violations can result in fines, mandatory removal, and liens on your property. Always check your HOA's rules and get written approval before building.

Consequences of Building Without a Permit

If your municipality requires a permit and you build without one, enforcement varies by jurisdiction but can include:

Pennsylvania municipalities also have the authority to deny a certificate of occupancy for properties with unresolved code violations. While a fence alone rarely triggers a CO issue for an existing home, it can become a problem when combined with other unpermitted work.

Permit fees across Pennsylvania are generally modest — $25 to $100 for a standard residential fence permit in most municipalities. That small cost is a bargain compared to the risk of fines and removal orders.

If you're also planning a deck or retaining wall alongside your fence, note that each project requires its own permit in most Pennsylvania municipalities. Planning all your outdoor projects together and submitting applications simultaneously can streamline the process.

City Permit threshold Typical fee Review time
Philadelphia Varies Varies Varies
Pittsburgh Varies Varies Varies
Allentown Varies Varies Varies
Reading Varies Varies Varies
Scranton Varies Varies Varies

City names link to full city-specific guides.

Fence permits in neighboring states:

Ready to build your fence?

Professional fence plans that meet Pennsylvania building code requirements. Permit-ready drawings you can submit with your application.

Get Fence Plans

Frequently asked questions

Do I need a permit to build a fence in Pennsylvania?

In most municipalities, yes — at least a zoning permit. Many Pennsylvania townships require zoning review for any new fence to confirm it complies with height limits, setback rules, and visibility requirements. Some boroughs — like State College — require a permit for any fence over 30 inches. Fences over 6 feet generally require both a zoning permit and a building permit. Some rural townships with fewer resources may have lighter enforcement, but the requirement technically exists under the Uniform Construction Code.

What are the pool fence requirements in Pennsylvania?

Pennsylvania classifies any body of water 24 inches deep or greater as a pool. All pools must be surrounded by a barrier at least 48 inches (4 feet) high with a self-closing, self-latching gate. Above-ground pools with walls at least 48 inches above grade may use the pool structure itself as the barrier, but must have a removable or lockable ladder to prevent unsupervised access. In-ground pools and above-ground pools shorter than 48 inches need a separate fence.

Does my neighbor have to pay for half the fence in Pennsylvania?

Pennsylvania does not have a Good Neighbor Fence Law. A fence built directly on the property line is generally considered jointly owned by both neighbors, and both share maintenance responsibility. But there's no state statute requiring a neighbor to share the construction cost of a new fence. If you want to split expenses, work that out in a written agreement before building. Many Pennsylvania municipalities require you to place fences slightly inside your own property line rather than directly on the boundary.

Can my HOA restrict my fence in Pennsylvania?

Yes. Pennsylvania law allows HOAs to enforce their CC&Rs, which often include restrictions on fence height, materials, colors, and design. Many planned communities in the Philadelphia suburbs, the Lehigh Valley, and central Pennsylvania require architectural committee approval before any fence installation. HOA restrictions can be — and often are — stricter than municipal code. Building without HOA approval can result in fines, mandatory removal, and legal action.

Is barbed wire allowed on residential fences in Pennsylvania?

In most residential zones across Pennsylvania, no. Barbed wire, razor wire, and electric fencing are prohibited in residential areas in virtually every municipality. Pittsburgh's zoning code explicitly bans barbed wire and razor edge fencing in all zoning districts. Some rural townships make exceptions for agricultural properties, but the standard residential ban is nearly universal.

Fence permits in Pennsylvania cities

Select your city for specific fence permit rules, fees, and application details.

Permit requirements vary by city and county. The information in this guide provides general guidance for Pennsylvania based on common local building codes. Always verify requirements with your local building department before starting your project.