Backyard Pig Laws in Pennsylvania: What You Need to Know Before You Buy
July 29, 2026
Pennsylvania is a state where farmland and suburban neighborhoods sit side by side, which makes the rules around backyard pigs more complicated than you might expect. Whether you are drawn to a Vietnamese potbellied pig as a companion animal or want to raise a small farm pig on a rural lot, the legal landscape varies dramatically depending on where you live in the state.
Before you bring a pig home, you need to understand how Pennsylvania classifies swine, what your municipality allows, and what permits or registrations may be required. Getting this wrong can mean daily fines, a code enforcement order, and — worst of all — being forced to rehome an animal you have grown attached to.
This guide walks you through every layer of Pennsylvania pig law, from state-level classification to local zoning, breed restrictions, and HOA rules, so you can make an informed decision from the start.
Are Backyard Pigs Legal in Pennsylvania?
The short answer is: it depends entirely on where in Pennsylvania you live. There is no single statewide statute that permits or bans backyard pigs across the board. Whether you can keep a pig in a residential area depends almost entirely on your local zoning and animal control ordinances. Some cities and counties welcome potbellied pigs as household pets, others ban all swine from residential zones outright, and a third group allows pigs under strict conditions involving permits, weight limits, and housing standards.
Urban centers like Philadelphia and Pittsburgh apply strict residential zoning codes that effectively prohibit livestock — including most pigs — in standard residential districts. Rural townships and agriculturally zoned parcels are far more permissive. Suburban areas fall somewhere in between, with rules that shift from one borough or township to the next.
The permissibility of owning a pig as a pet in Pennsylvania is contingent upon your specific location within the state. This means the only reliable way to know whether backyard pigs are legal at your address is to contact your local municipal zoning office or review your township’s animal control ordinance directly.
Pro Tip: Search your municipality’s code online using terms like “swine,” “livestock,” or “animals.” If the code is unclear, call your local zoning or planning department before falling in love with a piglet at a breeder’s farm.
For context, Pennsylvania also has detailed rules governing other backyard animals. If you are weighing your options, the backyard chicken laws in Pennsylvania and goat ownership laws in Pennsylvania follow a similarly municipality-driven framework worth reviewing.
How Pennsylvania Classifies Pigs — Livestock vs. Pet
One of the most consequential questions in Pennsylvania pig law is whether your pig is classified as livestock or as a pet. The answer shapes which zoning districts allow it, which permits apply, and how your municipality can enforce against you.
At the state level, Pennsylvania includes pigs among the animals it categorizes as livestock, alongside cattle, horses, sheep, goats, and poultry like chickens or turkeys. Under that classification, pigs are subject to agricultural regulations and are generally only permitted in zones designated for farming or agricultural use.
However, the picture becomes more nuanced with miniature and potbellied breeds. A York County zoning hearing board case highlighted the difficult enforcement issues raised when certain animals could be considered either pets or livestock. According to reporting on the case, the Pennsylvania Livestock Association told the family involved that potbellied pigs are not considered to be livestock — and potbellied pigs are considered by many to be pets.
Some areas distinguish between miniature or potbellied pigs and larger breeds typically considered livestock. These smaller pigs may be classified as domesticated pets rather than livestock due to their smaller size and suitability for indoor living environments. This distinction plays out differently across Pennsylvania municipalities.
Moon Township in Allegheny County provides a clear example of how local codes handle this split. Vietnamese potbellied pigs are permitted as household pets in Moon Township, provided the owner obtains a document from a licensed veterinarian or a nationally recognized registry certifying that the pet is a Vietnamese potbellied pig, and no more than two are kept as primarily indoor pets. Standard farm-type pigs, by contrast, are treated as livestock and restricted accordingly.
In Erie, the classification diverges from the livestock default entirely. In Erie, Pennsylvania, potbellied pigs are not classified as wild or farm animals, which means they can be kept as pets within the city limits. This kind of city-by-city variation is exactly why you cannot rely on state-level guidance alone.
Key Insight: Even if your pig qualifies as a “pet” under one municipality’s code, a neighboring township may still classify the same animal as livestock. Always verify the classification that applies at your specific address.
Zoning and Property Requirements for Keeping Pigs in Pennsylvania
Zoning is the primary legal tool Pennsylvania municipalities use to control whether pigs are allowed at a given property. Even when state law does not explicitly prohibit backyard pigs, local zoning ordinances almost always do the heavy lifting.
In agricultural (A) and rural residential zones, pigs are generally permitted as part of normal farming activity. In standard residential zones — R-1, R-2, and similar designations — livestock including pigs are typically prohibited outright. Some municipalities create a middle ground by allowing miniature or potbellied pigs in residential zones subject to specific conditions.
One York County municipality issued an enforcement notice against a family keeping potbellied pigs in a Residential Medium Density District, alleging that the keeping of potbellied pigs was “animal husbandry” permitted only in the Agricultural District. This case illustrates that even pigs kept as emotional support animals can trigger zoning enforcement in residential zones if the ordinance language is broad.
When pigs are permitted in residential settings, property requirements typically include minimum lot sizes, setback distances from neighboring structures, and enclosure standards. In Middletown Township, for example, residents may keep a pig as a pet as long as they maintain a securely fenced area to prevent the pig from escaping, and that fenced area must be well-maintained, ensuring cleanliness, safety, and sanitation as mandated by the Township Code.
The Pennsylvania Department of Agriculture oversees the Nutrient Management Act, which may require a simple Manure Management Plan for any property keeping livestock, regardless of the number of animals. If your pig is classified as livestock rather than a pet, this requirement may apply to you even on a small residential lot.
For a sense of how neighboring states handle similar zoning questions, the backyard chicken laws in New York and backyard chicken laws in Delaware show how Mid-Atlantic states approach residential livestock zoning more broadly.
Size, Weight, and Breed Restrictions in Pennsylvania
When a Pennsylvania municipality does allow backyard pigs, it almost never allows all pigs. Size, weight, and breed restrictions are the most common tools local governments use to draw the line between a manageable pet pig and a full-scale farm animal.
Many ordinances allow only miniature or potbellied pigs below a specified weight, often in the 100- to 150-pound range. Standard farm breeds are nearly universally banned from residential lots. In practice, this means breeds like Yorkshire, Duroc, and Hampshire — the large commercial farm pigs — are off the table in virtually every residential zone in Pennsylvania.
Potbellied pigs (Sus scrofa domesticus), the most common breed kept as pets, fall into a gray zone that many municipalities have addressed with weight caps. Potbellied pigs typically reach 70 to 150 pounds as adults, and some exceed 200 pounds without being overweight. A pig may not reach its full adult size until age five. This growth trajectory matters enormously if your local ordinance sets a weight cap.
If your local ordinance permits pigs only under a specific weight limit, a pig that outgrows that threshold puts you in violation, and some owners have been forced to rehome pigs that exceeded their municipality’s cap. This is not a hypothetical risk — it is a documented outcome for Pennsylvania pig owners who did not account for adult size when choosing a breed.
The Shillington Borough in Berks County illustrates how breed restrictions work at the local level. Shillington allows its residents to keep one American mini pig as a pet in any residence or household within its jurisdiction, but pig owners must adhere to certain regulations to ensure a harmonious coexistence within the community.
Important Note: Marketing terms like “teacup pig,” “micro pig,” and “mini pig” carry no legal weight in Pennsylvania zoning codes. Breeders use these terms freely, but most ordinances define regulated animals by species, not by breed name or marketing language. Verify the adult weight of your specific animal against your local ordinance’s weight cap before purchasing.
Pigs will not reach their full size until 3 to 5 years old, so be aware that “fully grown” parents shown at a breeder’s home may actually be very young pigs. Asking the breeder about the parents’ size and age gives you a better estimate than trusting marketing language, but there is no guarantee with any individual animal.
Permits, Licenses, and Registration Requirements in Pennsylvania
Even in municipalities that allow backyard pigs, simply owning one without the proper paperwork can expose you to fines and enforcement action. Pennsylvania pig permit requirements vary widely by location, and some apply at the state level while others are purely local.
At the state level, pigs classified as livestock fall under the Pennsylvania Department of Agriculture’s animal identification and disease traceability programs. Federal rules also come into play if you move the pig across state lines. Under USDA regulations, all swine transported in interstate commerce must carry approved individual identification. Even for a backyard pet pig, this is worth knowing if you ever plan to relocate or travel with your animal.
At the local level, registration and permit requirements differ significantly from one municipality to the next. Shillington Borough requires formal registration with the Borough before keeping a mini pig. It is mandatory for mini pig owners in Shillington to register their companions with the Borough, and proof of neutering or spaying performed by a certified veterinarian must be provided.
Erie goes further with its health requirements. Erie’s municipal code mandates that pet pigs must be spayed or neutered, and Erie pet owners must ensure that their pet pigs do not disrupt, interfere with, or disturb the peace, quiet, rest, or sleep of any person within the city.
Moon Township requires veterinary documentation as part of its permitting process. The owner must obtain a document from a licensed veterinarian or a nationally recognized registry certifying that the pet is a Vietnamese potbellied pig. This requirement prevents owners from misrepresenting a standard farm pig as a permitted pet breed.
The table below summarizes permit and registration requirements across several Pennsylvania municipalities where specific rules are documented:
| Municipality | Pig Type Allowed | Registration Required | Spay/Neuter Required | Quantity Limit |
|---|---|---|---|---|
| Erie | Potbellied pigs (pet classification) | Not specified | Yes | Not specified |
| Shillington Borough | American mini pig | Yes (Borough registration) | Yes (vet documentation) | 1 per household |
| Moon Township | Vietnamese potbellied pigs | Vet/registry documentation | Not specified | 2 maximum (indoor) |
| Middletown Township | Pet pigs (with enclosure) | Not specified | Not specified | Not specified |
| Most Urban Residential Zones | Generally not permitted | N/A | N/A | N/A |
Certain municipalities may also require permits for owning a pet pig. These permits often involve obtaining documentation from a veterinarian. Contact your local township or borough office to confirm exactly which documents you need before acquiring a pig.
If you are navigating Pennsylvania’s animal ownership rules more broadly, the dog leash laws in Pennsylvania and pit bull laws in Pennsylvania offer useful context on how the state approaches municipal-level animal regulation across species.
HOA and Neighborhood Restrictions on Backyard Pigs
Clearing the zoning hurdle does not mean you are free to bring home a pig. If you live in a community governed by a homeowners association, a second layer of restrictions almost certainly applies — and it can be stricter than your local ordinance.
Passing the municipal code test does not mean you are free to bring home a pig. If you live in a community with a homeowners association, the HOA’s covenants, conditions, and restrictions can impose additional rules that go beyond local law. An HOA can ban pigs entirely, cap the number of pets you may keep, or restrict animals by species, breed, or weight, even if your city issues pig permits without hesitation.
HOA restrictions are contractual obligations you agreed to when you purchased the property, and they are enforceable in court. This means that even if your municipality explicitly permits potbellied pigs, your HOA can still prohibit them — and you have limited legal recourse unless you can qualify the pig as an emotional support animal under federal fair housing rules.
Many HOAs prohibit or strictly regulate exotic pets such as reptiles, birds, ferrets, hedgehogs, and potbellied pigs. These bans are often based on noise, safety, or zoning regulations. Pigs, in particular, draw HOA concern because of odor, noise, and the potential to damage landscaping or fencing.
If your pig qualifies as an emotional support animal, you may have grounds to request an accommodation. If your pet qualifies as a service animal or emotional support animal, submit a formal accommodation request to your HOA board in writing. Include documentation from your healthcare provider and cite the specific Fair Housing Act provisions that protect your right to keep the animal regardless of breed, weight, or pet number restrictions.
If an owner is requesting to keep a unique type of animal such as a pig, the burden is on the requester to demonstrate a disability-related therapeutic need for the animal. Associations should not rush to deny the request, but instead seek to gain credible information regarding the request.
Pennsylvania pig rescue organization Pigsburgh Squealers puts the HOA risk plainly: do not get a pig if your city or HOA does not allow it. You cannot hide a pig — they are loud animals. Many families who have not properly checked restrictions have been forced to give up their pet pigs, which is extremely hard on both the family and the pet.
Before purchasing or adopting a pig, pull your HOA’s CC&Rs (covenants, conditions, and restrictions) and look specifically for language about livestock, farm animals, swine, or exotic pets. If the documents are ambiguous, request a written clarification from the HOA board before proceeding.
For additional perspective on how Pennsylvania compares to neighboring states on backyard animal rules, you can review the backyard chicken laws in New York, backyard chicken laws in Connecticut, and backyard chicken laws in Delaware for regional context. If you are also considering other livestock, the goat ownership laws in Pennsylvania follow a similar patchwork structure and are worth reading alongside this guide.
The Bottom Line on Pennsylvania Backyard Pig Laws
Pennsylvania does not have a single statewide answer to whether you can keep a backyard pig. The legal framework is built from the ground up — state classification sets a baseline, local zoning ordinances define what is actually permitted at your address, and HOA rules add a final contractual layer on top of all of it.
As a general framework: rural and agriculturally zoned properties have the most flexibility; suburban municipalities may allow miniature or potbellied pigs with permits, weight limits, and registration requirements; and most urban residential zones prohibit pigs outright. Breed and weight restrictions are the norm wherever pigs are permitted in non-agricultural zones.
- Contact your local township or borough zoning office before acquiring any pig.
- Verify your property’s zoning classification and confirm whether pigs are a permitted use.
- Ask specifically about weight limits, breed restrictions, and enclosure requirements.
- Review your HOA’s CC&Rs for language on livestock, swine, or exotic animals.
- Obtain any required permits, registrations, or veterinary certifications before the pig arrives.
- Account for adult size — a pig that outgrows a local weight cap puts you in violation.
Taking these steps before you buy protects both you and your future pig. A quick call to your municipal zoning office and a review of your HOA documents can prevent a situation where you are forced to rehome an animal your family has already bonded with.