Skip to content
Animal of Things
Mammals · 12 mins read

Backyard Pig Laws in New York: What You Need to Know Before Getting a Pig

Backyard Pig Laws in New York
Spread the love for animals! 🐾

Keeping a pig in your New York backyard sounds straightforward until you start reading the fine print. State agriculture law, local zoning codes, and neighborhood association rules all have a say in whether your pig is welcome — and the answer varies dramatically depending on where in the state you live.

Whether you want a potbellied pig as a companion animal or a small herd for homesteading purposes, understanding New York’s backyard pig laws before you bring an animal home can save you from fines, forced removal orders, and a lot of frustration. This guide breaks down the key legal layers you need to work through.

Are Backyard Pigs Legal in New York?

The short answer is: it depends on where you live. New York State does not impose a blanket statewide ban on keeping pigs, but it does not give you a universal green light either. The New York State Department of Agriculture and Markets notes that livestock activities are subject to local law, and livestock in New York State are subject to requirements governing everything from identification to import and export procedures. That means your municipality holds most of the real decision-making power.

Outside of New York City, many rural towns, villages, and even some suburban communities permit pigs under agricultural or livestock zoning rules. Inside New York City, however, the picture is far less flexible. New York City Health Code § 161.09 explicitly states that keeping or yarding cattle, swine, sheep, or goats is prohibited, with limited exceptions. If you live anywhere in the five boroughs, a backyard pig is essentially off the table under current city rules.

For everyone else across New York State, the legality hinges on your local zoning district, the size of your property, and any municipal ordinances your town or county has enacted. Always check with your local zoning or planning office before purchasing a pig.

Pro Tip: Before contacting your local zoning office, search your municipality’s code online using terms like “swine,” “livestock,” or “farm animals.” Many New York towns publish their full municipal code at ecode360.com or municode.com, which can give you a head start before making any calls.

How New York Classifies Pigs — Livestock vs. Pet

One of the most important legal distinctions you will encounter is how New York law categorizes pigs. This classification affects which rules apply to you, which agency oversees your animal, and what protections — or restrictions — are in place.

Under New York Agriculture and Markets Law, pigs are unambiguously classified as livestock, not pets. Section 358-A of the Agriculture and Markets Law defines “livestock” to include any domesticated sheep, goat, horse, cattle, or swine. The law goes further in Article 26, where the definitions are even more explicit. “Farm animal” under Section 350 of Article 26 means any ungulate, poultry, species of cattle, sheep, swine, goats, llamas, horses, or fur-bearing animals raised for commercial or subsistence purposes.

Critically, the law draws a hard line between farm animals and companion animals. “Companion animal” or “pet” means any dog or cat, and also any other domesticated animal normally maintained in or near the household of the owner — but a “pet” or “companion animal” shall not include a “farm animal” as defined in the section. This means that even if you intend to keep a pig purely as a household companion, New York law does not recognize that framing at the state level.

This distinction matters practically. Most ordinances define regulated animals by species, not by breed name or marketing language. Pigs are classified under the species Sus scrofa, and that classification applies regardless of how small the breeder claims the pig will stay. Calling your pig a “mini pig,” “teacup pig,” or “micro pig” carries no legal weight in New York zoning or agricultural law. If your local code restricts swine, it restricts all swine — including the smallest potbellied varieties.

This parallels how New York handles other livestock species. If you have already researched pet laws in New York more broadly, you will find that the livestock-versus-pet distinction consistently shapes what is and is not permitted across the state.

Zoning and Property Requirements for Keeping Pigs in New York

Zoning is the single most important legal layer for backyard pig ownership in New York. Even if state law permits pigs as livestock, your local zoning district determines whether you can actually keep them on your property.

New York State grants local governments broad authority to regulate land use. The New York State Constitution, Article IX, Section 2, delegates responsibility to local governmental units to adopt regulations promoting public health, safety, and general welfare, and the Municipal Home Rule Law at § 10 grants local governments the power to adopt and amend local laws. In practice, this means a town in Sullivan County can have entirely different pig-keeping rules than a village in Westchester County, even though both are in New York State.

In agricultural and rural residential zones, pigs are commonly permitted as part of normal farm or homestead activity. In standard residential zones (often labeled R-1, R-2, or similar), livestock are frequently prohibited outright or require a special use permit. Some towns take a middle-ground approach. The Town of Sullivan, for example, allows the keeping of farm animals and fowl on residential property, provided it is incidental to the primary use of the property as a dwelling, with limited numbers permitted principally for food.

Beyond the zoning district itself, most municipalities that do allow pigs impose property size minimums and setback requirements. Common requirements you will encounter include:

  • Minimum lot size — often one acre or more for any livestock, sometimes two or more acres for swine specifically
  • Setback distances — requiring pig shelters or pens to be a minimum number of feet from property lines, neighboring dwellings, and water sources
  • Nuisance provisions — rules prohibiting odors, noise, or waste runoff that affect neighboring properties
  • Enclosure standards — requirements that pigs be kept in secure, sanitary pens or fenced areas

Violating a zoning ordinance can result in daily fines, a code enforcement investigation triggered by a single neighbor complaint, and a legal order to remove the animal from your property. Getting clarity from your local zoning office before purchasing a pig is not optional — it is essential.

Important Note: New York City residents face a categorical prohibition. Under NYC Health Code § 161.09, swine cannot be kept or yarded in the five boroughs under normal circumstances. This rule applies regardless of the pig’s size or intended use as a pet.

Size, Weight, and Breed Restrictions in New York

Unlike a handful of other states, New York does not have a statewide weight or size threshold that separates “pet pigs” from “livestock pigs.” The state classifies all swine as livestock regardless of size, breed, or the owner’s intent. This is an important point that many prospective pig owners miss after reading information about other states.

At the local level, some municipalities do incorporate size or weight language into their ordinances — but this is not consistent across the state. You may find a town that restricts pigs to animals under a certain weight, while a neighboring town has no weight limit but imposes strict acreage requirements instead. There is no reliable statewide standard to rely on.

Breed labels are equally unreliable as a legal guide. Breeders use terms like “mini pig,” “teacup pig,” and “micro pig” freely, but these labels carry zero legal weight. Most ordinances define regulated animals by species, not by breed name or marketing language. A potbellied pig (Sus scrofa domesticus) sold as a “micro pig” is still a pig under every New York zoning code that addresses swine.

It is also worth noting that pigs marketed as miniature breeds can grow significantly larger than breeders advertise. A “teacup pig” that a breeder claims will stay under 30 pounds may reach 100 to 150 pounds at full maturity. If your local zoning code has a weight cap, you could find yourself in violation years after you brought the animal home — through no deliberate fault of your own.

Classification FactorNew York State StandardLocal Variation
Species classificationAll swine = livestock (Agriculture & Markets Law)No local override possible
Weight thresholdNo statewide thresholdSome municipalities impose limits
Breed distinctionsNot recognized in state lawRarely recognized locally
NYC-specific rulesSwine prohibited under Health Code § 161.09No exceptions for small breeds

Permits, Licenses, and Registration Requirements in New York

New York’s permitting requirements for pigs depend heavily on what you plan to do with your animal and whether you are engaged in any commercial activity. For a private owner keeping one or two pigs purely for personal use on their own property, the state-level permit picture is relatively straightforward — though local requirements may add another layer.

At the state level, the New York Department of Agriculture and Markets oversees swine health and traceability. The Department is concerned with animal disease control and traceability in all animals, including swine. To provide adequate control of infectious and communicable diseases, permits are issued to those who deal in, handle, and transport domestic animals. Any person who buys or sells swine is an animal dealer and must have a Domestic Animal Health Permit.

If you are simply keeping pigs for personal use — not buying and reselling them as a business — you are not automatically required to obtain a state Domestic Animal Health Permit. The permit requirement applies to any person who buys or sells livestock, including swine, as a business practice, not as part of a breeding, feeding, or dairy operation. A backyard owner keeping two pigs for personal use or home food production would generally not fall under this commercial dealer requirement.

However, several other requirements may still apply to you:

  • Local livestock or animal-keeping permits: Many municipalities require a separate local permit to keep livestock on residential property, even for private non-commercial use. Check with your town or village clerk.
  • Interstate movement health certificate: If you are purchasing a pig from a breeder in another state, federal regulations apply. Swine are classified as “covered livestock” under federal law, and any pig moving interstate must be accompanied by an interstate certificate of veterinary inspection.
  • NYC-specific rules: Animals whose destination is within New York City may be subject to New York City Department of Health and Mental Hygiene regulations, and swine entering New York City for any reason must meet these regulations.
  • Veterinary compliance: Permitted livestock dealers must comply with Department laws and regulations regarding record books and record keeping, identification, slaughter, import, personal use, and more.

You can reach the New York State Department of Agriculture and Markets Division of Animal Industry at their official swine information page for the most current guidance on swine-specific requirements. For the broader domestic animal health permit framework, the Department’s permit page outlines who needs a permit and how to apply.

Pro Tip: Even if your municipality does not require a specific pig-keeping permit, contact your local health department as well as your zoning office. Some New York municipalities route livestock complaints and inspections through the health department rather than the zoning board, and health codes can impose additional sanitation and setback requirements beyond what zoning codes cover.

If you are curious how pig permit requirements compare to those for backyard poultry in New York, the rules for backyard chickens in New York follow a similar locally-driven framework, though chickens are generally treated more permissively in residential zones than swine.

HOA and Neighborhood Restrictions on Backyard Pigs

Even if your local zoning code permits pigs and you have cleared every state-level requirement, a homeowners association can still block you entirely. HOA rules operate independently of government zoning, and they are often stricter.

If you are part of a homeowners association, you need to review your HOA covenants. HOA rules can restrict or prohibit livestock on your property entirely, even if local zoning permits it. This is not a technicality — HOA restrictions are legally enforceable private contracts, and violating them can result in fines, legal action, and mandatory removal of your animal.

Most HOA governing documents use broad language that covers livestock, farm animals, or “animals other than common household pets.” Because pigs are classified as livestock under New York Agriculture and Markets Law — not as companion animals — a standard HOA clause restricting livestock will almost certainly apply to your pig, regardless of its size or temperament.

Before purchasing a pig, take these steps if you live in an HOA community:

  1. Read your Declaration of Covenants, Conditions, and Restrictions (CC&Rs) carefully, looking for language about livestock, farm animals, or exotic animals.
  2. Review any supplemental rules or regulations your HOA board has adopted, as these can be updated more frequently than the CC&Rs.
  3. Contact your HOA board in writing to ask for a formal determination, and keep a record of the response.
  4. If the CC&Rs are ambiguous, consult a New York real estate or HOA attorney before proceeding.

Some HOA communities do grant exceptions or variances, particularly in rural or semi-rural developments where agricultural use is common. But you cannot assume a variance will be granted — you need written confirmation before you bring an animal home.

It is also worth considering your neighbors even outside of a formal HOA. Pig ownership in a densely populated area can generate nuisance complaints related to odor, noise, and waste, and a single complaint to your local code enforcement office can trigger an investigation. Building goodwill with your neighbors before getting a pig — and maintaining clean, well-managed enclosures — goes a long way toward avoiding problems that no permit can fully protect you from.

For comparison, see how other states handle similar backyard livestock questions: the rules for backyard chickens in Texas and backyard chickens in Florida illustrate how much local zoning authority shapes what is permitted, even within states that are generally livestock-friendly. Similarly, California’s backyard chicken laws show how urban-rural divides within a single state create wildly different outcomes for livestock owners.

New York’s approach to backyard pig ownership ultimately reflects the same pattern you will see in most states: state law sets the species classification and commercial activity rules, while local zoning and private HOA agreements determine what you can actually do on your specific property. The only way to know for certain whether you can legally keep a pig at your address is to check all three layers — state, local, and HOA — before you commit to ownership.

More articles to expand your knowledge

Spread the love for animals! 🐾

Leave a Reply

Your email address will not be published. Required fields are marked *