Livestock Fence Laws in Pennsylvania: What Every Property Owner Needs to Know
July 26, 2026
If you keep livestock in Pennsylvania, the fences around your property are more than a practical necessity — they carry real legal weight. Whether you raise cattle, horses, goats, or hogs, state law places specific duties on you as a livestock owner, and failing to meet those duties can leave you financially responsible for any damage your animals cause.
Pennsylvania’s fence law dates back to the Commonwealth’s colonial days, when adopting English common law required landowners to keep livestock from trespassing onto a neighbor’s property. That framework has evolved considerably since then, and understanding how today’s rules apply to your farm or ranch is the first step toward protecting yourself and your neighbors.
This guide walks you through every major area of Pennsylvania livestock fence law — from what counts as a lawful fence to what happens when an animal gets out.
Pro Tip: Pennsylvania fence law applies specifically to farms and ranches. If your property is in a residential or suburban setting without livestock, different rules — largely driven by local ordinances — will govern your fencing decisions.
What Qualifies as a Lawful Fence in Pennsylvania
Pennsylvania statute provides that the fence between adjoining landowners must be a “sufficient” one. For the fence to be sufficient, it must be adequate for its intended purpose — and since there is no other discernible purpose than the containment of livestock, the term “sufficient” describes a fence in the context of ranch or farm property, meaning one adequate to prevent livestock from straying onto neighboring properties.
Under Pennsylvania Statutes Title 29 P.S. Fences § 32, a fence made in whole or in part of wire, with or without barbs, is declared to be a legal and lawful fence within the meaning of any act of the Legislature relating to the building, constructing, and maintaining of line fences, provided that such wire fence is of the height required by applicable acts. This means traditional wooden rail fences, woven wire, and barbed wire all qualify as lawful structures when they meet height requirements.
The key principle is functionality: a fence that cannot realistically contain your specific type of livestock will not be considered sufficient under the law. A low strand of wire that holds cattle may not be adequate for goats or hogs. You should match your fence design to the animals you keep, not just to the minimum letter of the statute.
Important Note: Pennsylvania law does not define a single universal height or material specification for all livestock fences. “Sufficient” is evaluated case by case, often by a fence viewer (county surveyor), based on the type of livestock and the condition of the structure.
Fence-In vs. Fence-Out: Which Rule Applies in Pennsylvania
Adopting English common law, Pennsylvania landowners were originally required to keep livestock from trespassing onto a neighbor’s property. In 1700, the state enacted a formal law flipping the burden to landowners to defend their crops by “fencing out” wandering livestock. In 1842, the pendulum swung back, as the state reverted to a “fence-in” rule, requiring livestock owners to confine their livestock to avoid liability.
Under the modern rule, the owner of cattle must fence them in, or he is answerable in damages for their trespasses. This is the standard that governs Pennsylvania today. You, as the livestock owner, bear the primary legal responsibility to keep your animals contained.
The Pennsylvania Supreme Court has confirmed that the Fence Law addresses the sharing of costs for fences constructed on farms and ranches, and it does not apply to single-family residential neighborhoods in typical urban or suburban settings, where the containment of livestock is not a concern. If you operate a working farm or ranch, the fence-in rule applies to you directly.
You can also learn about related goat ownership laws in Pennsylvania that interact with your fencing obligations when keeping smaller livestock species.
Division Fence Responsibilities Between Neighboring Landowners in Pennsylvania
From and after the passage of the governing act, owners of improved and occupied land shall erect and maintain an equal part of all line or division fences between them, nor shall any such owner be relieved from liability under the provisions of this act except by the consent of the adjoining owner. In plain terms, both neighboring landowners on a farm or ranch share the cost and maintenance of the boundary fence equally — unless they have a written agreement saying otherwise.
For a neighbor to be forced to pay for a fence, the fence must be “sufficient” for the purposes of the law, which was to protect and corral livestock. When there is livestock, neighbors need a fence no matter what, but if there are none, a fence is not necessary and thus considered “insufficient.” The court concluded that for two neighbors to be legally required to share the cost of a fence, there has to be livestock on one of their properties.
When a neighbor fails to maintain their share, the law provides a clear remedy. If an owner fails to satisfy such duties, the aggrieved owner can request a “fence viewer” be appointed to address the fence dispute. The fence viewer — typically the county surveyor or a surveyor appointed by a judge of the court of common pleas — shall examine the line or division fence. If the fence is found sufficient, the complainant pays the cost of the service; if found insufficient, the viewer reports to a justice of the peace or alderman, designating points and distances, whether a new fence is required or whether the old one can be repaired, and the probable costs.
No owner of improved land shall be compelled to build or repair fence during the months of December, January, February, and March. This winter exemption gives property owners a seasonal grace period for fence construction and repair obligations.
Key Insight: The fence viewer process is the primary legal mechanism for resolving division fence disputes between Pennsylvania farm neighbors. Attempting to resolve the issue informally first is always advisable, but knowing this formal pathway exists protects your rights if negotiations fail.
For context on how Pennsylvania handles other neighbor-related animal disputes, see this overview of neighbor’s dog on your property laws in Pennsylvania.
Fence Height, Material, and Construction Standards in Pennsylvania
Fence laws in Pennsylvania operate at both the state and local levels. While the state outlines fundamental property rights and addresses neighbor disputes, most height limits, materials, and permit rules are established through township ordinances. For livestock fencing specifically, the state’s “sufficiency” standard governs, but local zoning rules may layer additional requirements on top of it.
At the state level, wire fencing — with or without barbs — is explicitly recognized as lawful when it meets the required height. For agricultural fencing contexts, the Pennsylvania Game Commission’s regulations under 58 Pa. Code § 147.663 provide useful technical benchmarks: the fence shall be constructed of woven wire according to approved design and specifications, or high tensile electrified wire at least 5 feet high. Woven wire fencing may not have openings larger than 6 inches square.
For general livestock containment on farms, common accepted materials include:
- Woven wire (field fence or stock fence) — widely used for cattle, horses, and hogs
- Barbed wire — recognized as lawful under Title 29 P.S. § 32 when at proper height
- High-tensile wire — accepted when meeting height standards
- Board or plank fencing — traditional and generally considered sufficient for horses
- Pipe or metal panel fencing — common for smaller paddocks and handling areas
Pennsylvania fence laws limit residential fences to six feet in height without a special permit, although specific regulations vary by municipality and property location. Front yard fences typically face stricter height restrictions than backyard fences, and local townships may impose additional requirements regarding materials, setbacks, and design. On agricultural land, these residential limits generally do not apply, but you should always confirm with your township before construction.
For permit requirements, typical municipal requirements include submitting plans showing fence height, materials, and placement, with application costs ranging from $25 to $100. Rural farm fencing may be exempt from permit requirements in many townships, but this varies widely across Pennsylvania’s 67 counties.
Electric Fence Rules in Pennsylvania
Pennsylvania does not have a single statewide statute that specifically governs electric fences for livestock in the way some other states do. Instead, electric fencing is addressed through a combination of state agricultural standards and local ordinances.
At the state level, the Pennsylvania Game Commission’s regulations under 58 Pa. Code § 147.663 provide technical standards for electrified fencing used in wildlife exclosures: the fence shall be constructed of woven wire or high tensile electrified wire at least 5 feet high. Woven wire fencing may not have openings larger than 6 inches square, and individual wires on electrified fencing may not be spaced greater than 10 inches apart. While these specifications apply to deer exclosures specifically, they reflect the technical baseline the state uses when evaluating electrified wire structures.
Barbed wire or electric fencing is banned in most residential zones. This is a critical distinction: electric fencing is generally acceptable on agricultural land in Pennsylvania but prohibited in residential and suburban areas under most local ordinances. If your property sits in a mixed-use or transitional zoning area, confirm your township’s rules before installing any electrified wire.
Best practices for electric livestock fencing in Pennsylvania include:
- Use a UL-listed or CE-certified energizer appropriate for your fence length and livestock type
- Post clear warning signs at regular intervals along the fence line
- Keep vegetation cleared from the fence to prevent energy loss and fire risk
- Check local township ordinances for any setback or signage requirements specific to your municipality
- Ensure the fence does not create a hazard to adjoining public roads or rights-of-way
If you keep bees alongside your livestock operation, note that electric fencing is also commonly used around apiaries — see beekeeping laws in Pennsylvania for relevant regulations that may apply to your property.
Road and Highway Fencing Requirements in Pennsylvania
Pennsylvania law explicitly addresses fencing along public highways, and the rules here directly affect livestock owners whose property borders a road.
It is lawful for a landowner within this Commonwealth to construct, build, and maintain, along any of the highways of this Commonwealth, fences made in whole or in part of wire, with or without barbs, subject at all times to restrictions and prohibitions imposed by municipalities relating to fences. This comes from Pennsylvania’s Highway and Safety Fence Act, which confirms that wire fencing — including barbed wire — is a legal option along public roads, provided local municipal rules do not prohibit it.
The highway fencing framework intersects directly with livestock containment law. Pennsylvania prohibits livestock from running at large on public highways. Livestock may not run at large on the public highways of this Commonwealth. This means that if your fence along a road fails and your animals reach the highway, you face potential liability for any resulting accidents or property damage.
| Fence Location | Wire Fencing Permitted | Barbed Wire Permitted | Key Condition |
|---|---|---|---|
| Along public highways | Yes | Yes | Subject to municipal restrictions |
| Agricultural property line | Yes | Yes | Must meet height requirements |
| Residential zones | Varies | Generally prohibited | Check local township ordinance |
| Along streams (pasture) | Not required | Not required | State agencies cannot mandate stream fencing |
No administrative agency of the Commonwealth or any political subdivision thereof shall require any person to erect a fence along a stream in a pasture or other field used for grazing of farm livestock for the purpose of keeping farm livestock out of the stream. This is an important protection for Pennsylvania farmers — you cannot be compelled by a state or local agency to install riparian fencing purely to exclude livestock from waterways.
For issues involving animals that reach public roads, see also roadkill laws in Pennsylvania, which cover what happens when livestock or wildlife are struck on public roads.
County-Level Fence Ordinances and Local Exceptions in Pennsylvania
County governments are left to settle boundary disputes and enforce the remaining state fence laws. Beyond that enforcement role, individual municipalities have broad authority to set their own fence rules — and those local rules often matter more in day-to-day practice than the state statutes.
Local governments have a lot of power over how and where you can install a fence. These laws and local ordinances dictate a fence’s height and fence location and setbacks. Pennsylvania has 67 counties and more than 2,500 municipalities, meaning the variation in local fence rules is substantial. What is acceptable in one township may be prohibited in the next.
Common areas where county and municipal ordinances differ from state-level defaults include:
- Permit requirements — some townships require permits for any fence over 3 feet; others waive permits for agricultural fencing entirely
- Setback distances — in most towns in Pennsylvania, all fences should be set back at least 6 inches from the property lines; in other towns, the regulation is at least 12 inches from front yard property lines, with overall setback jurisdiction ranging between 3 and 12 inches
- Material restrictions — barbed wire and electric fencing are banned in most residential zones but generally permitted in agricultural zones
- Height limits — residential fences generally cannot exceed six feet in height without a permit, with front yards facing stricter limits of three to four feet, while local townships enforce specific regulations regarding materials, setbacks, and design that vary by location
After the state struck down many of the fence laws, local governments created their own fence laws. Before you erect a fence, check with your local government as to the applicable rules. Contact your township zoning office before beginning any fence project — especially if your farm borders a residential area or a public road.
If your livestock operation involves chickens or other poultry, local zoning rules on enclosures are also addressed in Pennsylvania’s backyard chicken laws.
Liability When Livestock Escape Through a Defective Fence in Pennsylvania
When your fence fails and animals get out, Pennsylvania’s fence-in rule means you bear the legal exposure. The question of liability turns on whether you maintained a sufficient fence and whether you acted reasonably to prevent the escape.
Apart from responsibilities to erect and maintain a fence, Pennsylvania landowners should be aware of the state’s law on trespassing livestock. Under the law, if a neighboring landowner or tenant of improved land discovers trespassing livestock, they are allowed to notify the local constable, who is then required to impound the livestock with either the discovering person or another responsible entity. Within 24 hours, the constable must give notice to the livestock owner, who must pay for any land damages, care costs, and constable fees within four days to have the livestock returned.
If the livestock owner fails to pay such costs, the district magistrate is required to direct three disinterested landowners to inspect and value any damage caused for subsequent referral to the appropriate authority. This process provides a structured path for resolving escaped-livestock disputes without immediate litigation, but it also creates a paper trail that can be used against you if you fail to respond.
If one neighbor has livestock but does not build a fence, and that livestock damages the neighbor’s property, it is treated like other property damage cases. Negligence principles apply: if you knew your fence was defective and failed to repair it, courts are more likely to find you liable for resulting damage.
Important Note: Pennsylvania law does not require you to maintain a fence if you have no livestock and your neighbor has none either. The shared-cost obligation under Title 29 P.S. § 41 only arises when at least one party keeps livestock on improved and occupied land.
Liability exposure extends beyond property damage. If livestock escape onto a highway and cause a vehicle accident, you may face civil liability for personal injury. Maintaining a documented fence inspection and repair log is one of the most practical steps you can take to demonstrate that you exercised reasonable care.
For broader context on how Pennsylvania handles animal-related liability, see dog bite laws in Pennsylvania and animal cruelty laws in Pennsylvania, which reflect the state’s general approach to owner responsibility for animals.
Putting It All Together
Pennsylvania’s livestock fence laws place the primary burden of containment squarely on the animal owner. The fence-in rule has governed the state since 1842, and the courts have consistently reinforced that a “sufficient” fence — one capable of actually containing your livestock — is both a legal obligation and your best defense against liability claims.
The most important practical steps for any Pennsylvania livestock owner are:
- Confirm whether your property qualifies as a farm or ranch under the Fence Law — the shared-cost provisions do not apply to residential settings
- Identify your county and township fence ordinances before building or repairing any fence structure
- Use the fence viewer process if a neighboring farm owner refuses to maintain their share of a division fence
- Check local rules before installing electric or barbed wire fencing, especially near roads or residential boundaries
- Respond promptly to any impoundment notice — you have four days to pay damages and reclaim your animals
State laws change frequently through new legislation, higher court rulings, and other means. While staying informed is important, consult a local real estate attorney or conduct further legal research to verify your current state laws. For related Pennsylvania animal law topics, explore coyote hunting laws in Pennsylvania, wildlife removal laws in Pennsylvania, and kennel zoning laws in Pennsylvania to understand how state law governs animal ownership and land use more broadly.