Do You Need a Permit to Build a Fence in Pennsylvania?
Usually the answer comes from your township or borough, not from Harrisburg. Pennsylvania's building code leaves most ordinary residential fences out of the building-permit process, but nearly every municipality layers its own zoning rules on top: how tall a fence can be, how far it sits from the street and whether you need a zoning permit before the first post goes in.
This guide explains the statewide rules that apply everywhere in Pennsylvania, the local rules that vary from place to place, and the questions to ask your municipal office before you sign a contract.
Updated · Figures and rules on this page link to the public sources they come from (listed below).
Two layers: the state building code and local zoning
Pennsylvania's Uniform Construction Code (UCC) sets the statewide building-permit rules. For homes, 34 Pa. Code § 403.62 lists work that does not need a building permit, and fences no more than 6 feet high are on that list. The exemption only holds if the work doesn't violate another law or ordinance.
That second condition is where local rules come in. Zoning is set by each township, borough or city, and most of them regulate fences through a zoning permit, a fence permit or a simple application to the zoning officer. A 6-foot backyard privacy fence can be exempt from a building permit and still need local zoning approval.
What local fence rules usually cover
Municipal fence ordinances across Pennsylvania tend to address the same handful of topics, though the numbers differ from one place to the next. Look for these in your township or borough's zoning code:
- Maximum height, often lower in front yards than in side and rear yards
- Setbacks from the street right-of-way and, in some places, from property lines
- Clear-sight areas on corner lots, where fences near intersections are limited
- Which side of the fence faces the neighbor (many codes want the finished side out)
- Fences across drainage, utility or access easements
- Extra review in historic districts and floodplains
Pool fences follow stricter statewide rules
A fence that serves as a pool barrier is held to the swimming pool code adopted through the UCC, based on the International Swimming Pool and Spa Code. Municipal handouts summarizing it describe a barrier at least 48 inches high measured on the side away from the pool, pedestrian gates that open outward away from the pool, and gates that are self-closing and self-latching.
Latch placement has its own rule: where the latch release sits less than 54 inches above the ground, it goes on the pool side of the gate, at least 3 inches below the top. Pools and their barriers normally go through permit and inspection, so confirm the requirements with your code official before the fence is ordered.
Retaining walls and fences on walls
The same UCC section exempts retaining walls no more than 4 feet tall, measured from the lowest level of grade, unless the wall supports a surcharge such as a driveway or a slope above it. If your fence sits on top of a wall or the yard needs one to level the line, ask whether the wall itself needs a permit or engineering.
Call PA 811 before any post hole is dug
Pennsylvania One Call must be contacted at least three business days before excavation, and the Public Utility Commission lists fence posts among the small projects that can require an 811 request. The service is free for residential property owners.
When you hire an installer, the contractor doing the digging should place the request. Ask who will call 811 and wait for the utility marks before posts go in.
Contractor registration and your written contract
Under the Home Improvement Consumer Protection Act, contractors who perform at least $5,000 of home improvements a year must register with the Pennsylvania Attorney General, and you can search the registry before you sign.
The Act also requires a written, signed contract that states the total price, estimated start and completion dates and a description of the work, along with a notice of your three-day right to cancel. It limits down payments on projects priced above $5,000.
Questions to ask your township or borough
A short call or email to the zoning office usually settles everything. Have your address and a rough sketch of the fence line ready, then ask:
- Do I need a zoning or fence permit for this fence, and what does it cost?
- What heights are allowed in my front, side and rear yards?
- How far back from the street or property line must the fence sit?
- Do you need a plot plan or a survey showing the fence location?
- Is an inspection required, and is my property in a historic district or floodplain?
Fence permit questions
Do I need a permit for a 6-foot privacy fence in PA?
Not a building permit under the state code, which exempts residential fences no more than 6 feet high. Many townships and boroughs still require a zoning or fence permit and limit height in front yards, so check with your municipality before work starts.
Who gets the fence permit, me or the contractor?
It varies. Many installers handle the application as part of the job, while some municipalities want the property owner to sign it. Ask the contractor to state in the written estimate who is responsible for permits.
Do I need a survey to put up a fence?
Some municipalities ask for a plot plan or survey with the application. Even when they don't, knowing exactly where your property line runs avoids building on a neighbor's land. Existing survey pins or a deed plot plan are a good starting point.
Does a pool fence need a permit?
Pool barriers are covered by the swimming pool code adopted through the Pennsylvania UCC, and pools generally go through permit and inspection. Expect the barrier to be checked for height, gate operation and latch placement.
Does PA Fence Pros pull permits?
No. PA Fence Pros is an estimate-request service and does not perform fence work. The participating contractor who receives your request can explain how permits work in your municipality and whether they handle the application.
Fence types and their rules
Sources
- 34 Pa. Code § 403.62, permit requirements and exclusions for residential buildings
- Pennsylvania PUC: safe digging starts before you break ground (PA 811)
- Buckingham Township: pool barrier requirements (ISPSC as adopted by the PA UCC)
- PA Attorney General: home improvement contractor registration
- PA Attorney General: what is the Home Improvement Consumer Protection Act?
Get a real number for your fence
Ranges only go so far. One participating local contractor can price your exact layout. No obligation.
Get an estimate