Keeping Farm Animals as Pets in Pennsylvania: Zoning, Permits, and Legal Rules
July 7, 2026
Pennsylvania is one of the most agriculturally active states in the country, and many residents dream of raising chickens, goats, miniature pigs, or even horses on their property. But wanting to keep farm animals as pets and legally being allowed to do so are two very different things in the Commonwealth.
Before you build a coop or bring home a pair of pygmy goats, you need to understand a layered system of rules that spans state law, county guidance, and hyper-local municipal ordinances. This guide walks you through every major legal consideration — from which animals you can keep to how Right-to-Farm protections do (and do not) apply to backyard pet owners.
Pro Tip: Always contact your local township or borough zoning office before acquiring any farm animal. Ordinances change frequently, and what is permitted in a neighboring municipality may be completely prohibited on your street.
Which Farm Animals Can You Keep as Pets in Pennsylvania
Pennsylvania does not publish a single statewide list of approved “pet farm animals,” so the answer depends almost entirely on your local zoning district and municipality. That said, the animals most commonly kept for personal, non-commercial purposes across the state include chickens (hens), ducks, rabbits, miniature goats, miniature pigs (potbellied pigs), sheep, horses, alpacas, and llamas.
Although horses are the most common domestic livestock use in Pennsylvania, small-scale noncommercial preferences also include camelids such as llamas and alpacas, and large birds such as emus and peacocks, as well as a variety of other less typical species. If you are considering any of these animals, you should treat them as livestock under Pennsylvania law — not as conventional pets — because most municipal codes draw a hard legal line between the two categories.
Domestic animals are typically defined as those normally kept in conjunction with a dwelling for the pleasure of the resident family, including dogs, cats, small birds, gerbils, and rabbits. Livestock, by contrast, is defined as any living creature maintained for commercial use or profit but not maintained as a pet. This distinction matters because the same animal — say, a potbellied pig — may be classified as a domestic pet in one township and as prohibited livestock in another.
You can also explore our broader overview of farm animals to understand the full range of species people commonly raise before narrowing down your choice for Pennsylvania specifically.
Important Note: Roosters, intact male goats (bucks), and full-size pigs face the strictest local restrictions across Pennsylvania. Even in municipalities that allow hens or does, these male animals are frequently banned outright due to noise and odor concerns.
Zoning and Property Requirements in Pennsylvania
Pennsylvania does not have a single statewide zoning system. Instead, municipal zoning ordinances determine the allowed land uses for specific districts. Under the Municipalities Planning Code (MPC), local governments establish zoning classifications that may restrict agricultural activities in certain areas. Properties in agricultural or rural zones typically allow livestock, while residential or commercial zones may impose limitations.
Agricultural zones — typically designated as A-1, A-2, or AG — permit livestock keeping as a primary use, while residential zones (R-1, R-2, R-3, etc.) usually prohibit or heavily restrict farm animals. If your property sits in a residential zone, you face the steepest regulatory climb. The distinction between agricultural and residential zoning creates the most significant legal hurdle for prospective farm animal owners. Properties zoned for agricultural use typically allow livestock without special permissions, while residential zones often prohibit farm animals entirely or require conditional use permits.
Mixed-use or rural residential zones fall into a gray area where regulations vary dramatically between municipalities. If your parcel is in one of these hybrid districts, you will need to read your local zoning ordinance carefully — or speak directly with your zoning officer — to determine what is permitted by right versus what requires a hearing.
Many municipal zoning ordinances in Pennsylvania contain provisions that regulate livestock operations in agricultural and conservation zones and prohibit the keeping of livestock in residential zones. This pattern holds across the state, but the details — which animals, how many, and under what conditions — differ sharply from one municipality to the next. For a look at how similar zoning dynamics play out for a specific species, see our article on beekeeping laws in Pennsylvania.
Lot Size and Number Limits for Farm Animals in Pennsylvania
Pennsylvania does not regulate or provide guidelines for the keeping of noncommercial livestock at the state level. Densities are regulated by each municipality and should be based on need and impact to the community. The most common regulatory methods are based on Animal Equivalent Units (AEUs) or by distinguishing between “large” and “small” animals.
Most guidelines discourage keeping a large animal or one animal equivalent unit on less than half an acre (20,000 sq. ft.) for the welfare of the animal and the potential impact to neighbors. In practice, this means a horse, cow, or full-size pig typically requires at least a half-acre to one acre of usable pasture, and many townships set the minimum even higher.
Here are some real-world examples of how Pennsylvania municipalities handle lot size and number limits:
- In Denver Borough, Lancaster County, farm animals may be maintained on lots of 1.5 acres or larger, and all structures for stabling farm animals must be at least 100 feet from any lot line.
- East Rockhill Township requires a minimum of 3 acres to keep 2 large animals or 2 small animals. For each additional acre above 3 acres, 1 additional large animal or 2 additional small animals are permitted.
- In Pittsburgh, up to 5 hens are allowed on lots of at least 2,000 square feet.
- In Carroll Valley, Adams County, up to 6 hens are allowed per single-family detached dwelling. McSherrystown typically requires a minimum of 0.5 acres for any poultry.
- North Fayette Township allows poultry as an agricultural use on parcels of at least 5 acres.
Rural townships may allow goats or other livestock on any agriculturally zoned parcel regardless of size, while suburban municipalities often impose minimum acreage requirements ranging from one to five acres. Some progressive townships have adopted tiered systems that permit miniature breeds on smaller lots — as small as 0.5 acres — while requiring larger parcels for standard-sized breeds.
If you are weighing whether a farm animal is truly the right fit for your household and lot size, it may help to review our guide on animals that make poor pets before committing.
Permit and Registration Requirements in Pennsylvania
There is no single statewide permit required to keep farm animals as pets in Pennsylvania. However, several layers of registration and documentation may apply depending on the species, your municipality, and whether you move animals across property lines.
Municipal officials must determine whether livestock uses are to be permitted directly as a “use by right” — by application and permit issuance through the Zoning Officer — reviewed by the zoning hearing board when permitted by special exception, or acted on by the governing body if permitted as a conditional use. In practical terms, this means your first permit stop is your local zoning office, not a state agency.
At the state level, the Pennsylvania Department of Agriculture’s Bureau of Animal Health and Diagnostic Services oversees health requirements for animal movement. In Pennsylvania, you cannot move livestock to another farm without official records. The state tracks animal movement to prevent disease spread, which is especially important given recent animal health concerns across the country. When you move livestock, you need an official document — an “animal movement record” or transport certificate” — which your veterinarian or the state agriculture office can help you obtain.
An interstate health certificate is a legible official document made on a form issued by the chief livestock health official of the state of origin or the USDA, prepared by an accredited veterinarian certifying the health of the animal described therein. If you are bringing a farm animal into Pennsylvania from another state, this paperwork is mandatory before the animal crosses the border.
| Animal Type | Typical Local Permit Needed | State-Level Requirement |
|---|---|---|
| Backyard hens (no rooster) | Residential chicken permit (many municipalities) | Health certificate if brought from out of state |
| Goats / miniature goats | Zoning permit or conditional use approval | Health certificate for interstate movement |
| Horses / ponies | Zoning permit; setback compliance | Health certificate; Coggins test for equine infectious anemia |
| Miniature pigs | Varies widely; often prohibited in residential zones | Health certificate; swine identification requirements |
| Alpacas / llamas | Zoning permit in most municipalities | Health certificate; temporary guidelines under 7 Pa. Code Ch. 3a |
Some local governments require registration for certain livestock to track compliance with local rules. Property owners may also need permits for structures like barns, shelters, or fences. Always ask your zoning officer whether a building permit is required for any animal housing structure — even a simple chicken coop can trigger this requirement in some boroughs.
Housing, Setback, and Sanitation Rules in Pennsylvania
Even when a municipality permits farm animals, you are not free to house them anywhere on your property. Setback rules — minimum distances between animal structures and property lines, neighboring homes, or water sources — are among the most consistently enforced local regulations in Pennsylvania.
In Manheim Township, Lancaster County, up to two saddle horses are permitted in any zoning district, provided no building, corral, or stable is less than 100 feet from any lot line and no closer than 200 feet to the nearest existing dwelling other than that of the owner. A pasture fence must be at least 10 feet from the property line, and no manure storage facility may be established closer than 100 feet to any property line.
Setback distances vary widely across the state. In Media Borough, Delaware County, manure storage must be 50 feet from any adjacent residence and 25 feet from property lines. In Mahanoy Township, coops must be 200 feet from property lines and neighboring dwellings, and free-ranging is prohibited within 100 feet of property lines.
Sanitation requirements are equally strict. Every structure, building, shelter, or pen in which any farm animal is kept must be constructed of such material and in such manner that it can be kept clean and sanitary, free of rodents and vermin, and free of objectionable odors. Public health and sanitation rules frequently include waste management mandates to reduce odors and contamination, and municipalities may enforce rules for manure storage and removal schedules.
Pennsylvania law requires you to keep livestock in conditions that support their health. The animals need adequate shelter, clean water, and appropriate food. These baseline welfare standards apply statewide, even where local ordinances are silent on the specifics. The Pennsylvania Department of Environmental Protection may issue separate penalties if livestock causes environmental damage, such as polluting local waterways. Under the Clean Streams Law, civil penalties can reach up to $10,000 per day for each violation.
If you plan to keep poultry specifically, our backyard poultry guide covers housing and management best practices that align well with Pennsylvania’s sanitation expectations.
Pro Tip: Store all animal feed in sealed, rodent-proof containers. Many Pennsylvania ordinances — including those in Punxsutawney and Mahanoy Township — specifically require this, and violations can result in citations even when your animals are otherwise compliant.
County and City Ordinances That May Override State Rules in Pennsylvania
One of the most important things to understand about keeping farm animals in Pennsylvania is that local ordinances almost always control the outcome. Several factors influence whether livestock is allowed, including zoning laws, local ordinances, and necessary permits. State-level rules such as environmental protections and the Right to Farm Act may also place limits on how local governments can regulate agricultural operations. Property owners must understand both local and state rules before acquiring animals to avoid fines or legal issues.
The variation between neighboring municipalities can be dramatic. Rural townships in Wyoming County are very permissive, with most following the Pennsylvania Right to Farm Act for properties over 10 acres. Yet in Wyoming Borough just down the road, hens are strictly prohibited in Residence, Business, and Mining districts — the code classifies them as “Farm Animals” which are not permitted on standard residential lots.
Urban centers have their own specific rules. In Philadelphia, up to 6 hens are allowed on residential parcels under Bill No. 220455. Hens are officially excluded from the “Farm Animal” ban that applies to roosters and other livestock. Roosters are strictly prohibited and classified as “Farm Animals” banned in the city to preserve “domestic tranquility.”
Urban and suburban areas face the strictest regulations. Philadelphia, Pittsburgh, and their surrounding suburbs generally prohibit goats in residential zones, though some townships have recently amended ordinances to allow miniature breeds under specific conditions. Always check for recent amendments — ordinances in this space change more often than most people expect.
If you are relocating to Pennsylvania with pets or farm animals already in tow, our article on keeping pets safe when moving to a new home covers logistics that apply whether you are crossing state lines with a dog or a miniature goat.
Noise and pest concerns also influence local enforcement. Roosters may be banned in residential areas even if hens are allowed, and ordinances may address issues like excessive flies or animal cruelty. Violations can result in citations or the mandatory removal of animals if complaints arise from the community.
| Municipality / Area | Hens Allowed | Roosters | Permit Required | Key Restriction |
|---|---|---|---|---|
| Philadelphia | Up to 6 | Prohibited | Yes | Roosters banned citywide |
| Pittsburgh | Up to 5 (2,000 sq ft min lot) | Prohibited | Yes | Minimum lot size applies |
| Carroll Valley (Adams Co.) | Up to 6 | Prohibited | Yes (biannual) | Coop 25 ft from property line |
| Wyoming Borough | Prohibited | Prohibited | N/A | All poultry banned in residential zones |
| Rural Wyoming County townships | Largely unrestricted | Allowed | Generally no | Right-to-Farm Act applies (10+ acres) |
| Punxsutawney (Jefferson Co.) | Allowed with permit | Prohibited in residential zones | Yes (annual inspection) | Annual inspection required |
For a deeper look at how Pennsylvania regulates specific wildlife and animal categories in your area, see our pages on venomous animals in Pennsylvania and endangered animals in Pennsylvania, which provide useful context for understanding the state’s broader animal regulatory framework.
Right-to-Farm Laws and How They Apply to Pet Farm Animals in Pennsylvania
The Pennsylvania Right to Farm Act is one of the most misunderstood protections in the state’s agricultural legal landscape. Many backyard animal owners assume it shields them from neighbor complaints and local ordinances — but the reality is far more limited.
The Pennsylvania Right to Farm Act protects qualifying farms from nuisance suits and certain ordinances. However, this law does not exempt farmers from needing permits or following other state and local regulations. The Act preserves the government’s power to protect public health and safety and does not protect operations that violate existing laws.
The Pennsylvania Right to Farm Act provides some protection against nuisance complaints for established agricultural operations, but this protection has significant limitations. The operation must have existed before nearby residential development, must follow generally accepted agricultural practices, and must not create public health hazards. Backyard animal keeping that begins after residential neighbors are already established receives no Right to Farm protection, making good neighbor relations essential for long-term success.
This is a critical point for anyone who wants to keep farm animals as pets in a suburban or semi-rural setting. Pennsylvania’s Right to Farm Act protects agricultural operations from nuisance lawsuits, but this protection only applies to properties actively engaged in commercial agricultural production. Backyard keeping for personal use does not qualify for these legal protections in most cases.
In heavily agricultural counties like Juniata, the Pennsylvania Right to Farm Act provides robust protection for flocks in all townships. But even in those areas, the Act does not give you unlimited rights — you still need to follow generally accepted agricultural practices and cannot create conditions that endanger public health.
Key Insight: The Right to Farm Act is a shield against nuisance lawsuits, not a blanket exemption from zoning or permit requirements. You must still obtain all required local permits and comply with setback, sanitation, and number limits — even if your farm predates your neighbors.
Several factors influence whether livestock is allowed, including zoning laws, local ordinances, and necessary permits. State-level rules such as environmental protections and the Right to Farm Act may also place limits on how local governments can regulate agricultural operations. Property owners must understand both local and state rules before acquiring animals to avoid fines or legal issues.
If you are interested in a specific agricultural activity that intersects closely with Right-to-Farm protections, our guide to beekeeping laws in Pennsylvania examines how that framework applies to apiary operations — a useful comparison for understanding how the law treats small-scale, non-commercial animal keeping.
Steps to Take Before Bringing a Farm Animal Home in Pennsylvania
Given how fragmented Pennsylvania’s regulatory landscape is, a methodical approach before you acquire any farm animal will save you significant trouble. Here is a practical sequence to follow:
- Identify your zoning district. Contact your township, borough, or city zoning office and ask specifically which zoning classification your parcel falls under. Agricultural, rural residential, and standard residential zones carry very different rules.
- Request the current animal ordinance. Ask for the most recent version of your municipality’s animal or livestock ordinance. Codes change, and online versions may lag behind official amendments.
- Check HOA rules separately. When purchasing or already residing in residential property where you want to keep livestock, check local zoning laws and homeowners’ association rules — HOA restrictions can be stricter than municipal codes and are enforced independently.
- Apply for required permits. If your municipality allows the animal with a permit, submit your application before acquiring the animal — not after.
- Arrange a pre-acquisition veterinary exam. For animals coming from out of state, secure a Pennsylvania health certificate (form AAI-13) from an accredited veterinarian before the animal enters the Commonwealth.
- Plan your housing before the animal arrives. Confirm setback measurements, building permit requirements, and sanitation plan before construction begins.
For additional context on what responsible pet and animal ownership looks like — and the types of animals that tend to create the most regulatory and practical problems — review our articles on low-maintenance pets for families and stray animals, both of which touch on ownership responsibility in ways that apply equally to farm animals kept as pets.
Keeping farm animals as pets in Pennsylvania is entirely possible, but it demands upfront legal homework. The state gives municipalities wide authority to set their own rules, which means your neighbor two townships over may be legally raising goats in a backyard where you cannot legally keep a single chicken. Know your zone, read your local ordinance, get your permits, and build a relationship with your neighbors before any animal arrives — those four steps resolve the vast majority of legal complications that Pennsylvania farm animal pet owners face.