Can You Have Farm Animals in City Limits? Rules & Permits

In most U.S. cities, you can keep some farm animals within city limits, but the rules vary dramatically from one municipality to the next. Some cities allow chickens, goats, and bees with a permit. Others ban all farm animals outright. Your specific city’s zoning code, lot size, and even your homeowners association all determine what you’re allowed to keep.

Why City Rules Vary So Much

There is no single federal or state law that governs whether you can raise livestock in a city. Instead, each municipality writes its own zoning ordinances and animal codes. Some cities, like Albany, New York, flatly prohibit keeping any farm animal or fowl within city limits, including cows, horses, pigs, goats, sheep, chickens, ducks, and geese. Buffalo, New York takes a similar approach, making it unlawful to keep any hoofed or cloven-footed animal on any lot with a dwelling in residential or business districts.

Other cities are far more permissive. Long Beach, California allows up to 20 live fowl on a single lot. New Rochelle, New York permits farm animals if your parcel is at least two acres, with an additional acre required per animal and a 50-foot setback from neighboring residential property lines. Missouri has gone a step further by creating a formal “Urban Agricultural Zone” designation that allows raising livestock, poultry, and produce on previously blighted urban land. A grower operating within one of these zones can keep up to 50 laying hens, 650 broiler chickens, or 30 domesticated animals (including cattle, goats, sheep, swine, llamas, alpacas, and rabbits).

The first step is always checking your city’s municipal code. Search your city name plus “animal ordinance” or “livestock zoning” to find the specific rules. Your local animal control office can also point you to the right section of the code.

Chickens Are the Easiest Entry Point

Backyard chickens are the most commonly permitted farm animal in urban areas. Hundreds of U.S. cities now allow hens, though most impose limits on flock size and ban roosters entirely. Long Beach, for example, caps total fowl at 20 per lot and prohibits any “crowing fowl.” If you want to keep five or more chickens in Long Beach, you need a permit from Animal Care Services.

Setback requirements are the other major constraint. These rules dictate how far your coop must sit from neighboring homes. In Long Beach, the distance scales with flock size: one to four chickens require at least 10 feet from an adjacent dwelling, five to ten chickens need 35 feet, and 11 to 20 chickens must be kept at least 50 feet away. If you live near an apartment building or hotel, the required distance can jump to 100 feet. On a small urban lot, these setback rules may limit your flock size more than the bird count does.

Before you build a coop, measure the distance from every potential placement spot to your neighbors’ homes. Many people discover their yard geometry only allows a handful of birds, regardless of what the city’s maximum count permits.

Goats, Sheep, and Other Small Livestock

Goats (especially miniature breeds like Nigerian Dwarfs and Pygmies) have become increasingly popular in urban settings, but fewer cities allow them compared to chickens. Where they are permitted, expect minimum lot sizes, animal caps, and shelter requirements.

Space needs are real. According to UMass Amherst’s agricultural guidelines, each mature goat needs 10 to 15 square feet of sheltered bedded area, plus an additional 25 square feet for exercise, either inside or outside the shelter. Goats kept entirely in confinement need at least 15 square feet per animal in penned areas. That means even two goats require a minimum of roughly 80 square feet between shelter and outdoor space, and more is better for their health and temperament. If you’re planning for breeding, kidding pens should be at least 4 by 5 feet each.

Cities that allow goats typically require them to be penned or fenced at all times. Letting livestock roam freely, even briefly, is almost universally prohibited. New Rochelle’s code is representative: no cattle, horses, goats, sheep, swine, or poultry may be “at large” within city limits.

Pigs Have Special Classification Issues

Pigs occupy a gray area in many city codes because potbellied pigs are sometimes classified as pets rather than livestock, depending on their size. Carrollton, Texas, for instance, defines a potbellied pig as a variety of swine no more than 18 inches tall at the shoulder, with short ears and a straight tail. If the pig exceeds 60 pounds, the city no longer considers it a potbellied pig, and standard livestock prohibitions apply.

This distinction matters because many cities ban “swine” as livestock but allow potbellied pigs under pet regulations. If your pig grows larger than the city’s size threshold, you could be in violation even if you had permission when the pig was smaller. Potbellied pigs frequently exceed the weight limits owners expect, so check your city’s specific cutoffs before committing.

Bees Are Increasingly Welcome

Urban beekeeping has gained acceptance in many cities over the past decade. Local regulations typically address how many hives you can keep per property, how far hives must sit from sidewalks and property lines, and whether you need a flyway barrier (a tall fence or hedge that forces bees to fly upward before crossing into neighboring yards). Some cities require registration with a county agricultural department, while others simply fold beekeeping into their urban agriculture permits. Check both your city code and your county’s agriculture or weights and measures department for applicable rules.

Permits, Fees, and Inspections

Most cities that allow urban livestock require some form of permit. These are generally inexpensive. Atlanta’s urban garden permit, for example, costs $30 per year and must be renewed annually. Chicken permits in other cities tend to fall in a similar range, though fees vary. The permit process usually involves an application showing your lot dimensions, planned animal housing, and sometimes neighbor notification.

Some cities also conduct inspections, either before issuing a permit or periodically afterward, to verify that enclosures meet sanitation and setback standards. Violations can result in fines or orders to remove the animals, so staying in compliance after you receive your permit is just as important as getting one.

Slaughter Is Almost Always Restricted

Even in cities that allow you to raise livestock, on-site slaughter is a separate legal question, and the answer is usually no for residential properties. New York City’s health code, for instance, only allows live poultry to be kept at federally or state-authorized slaughterhouses subject to government inspection. Cities that do permit home processing typically require compliance with federal and state food safety standards. Missouri’s urban agricultural zone framework, for example, includes a “Processing UAZ” category, but operations must meet federal and state processing laws and obtain department approval.

If you’re raising animals for meat, you’ll likely need to transport them to a licensed processing facility rather than butchering at home.

Your HOA Can Still Say No

Here’s a detail that catches many homeowners off guard: even if your city allows farm animals, your homeowners association can prohibit them. HOA covenants are private contracts that run with the property, and they can impose stricter rules than municipal code. If your state and city both permit backyard chickens, the HOA can still say no. The only exception would be a state law that specifically grants homeowners the right to keep animals and prohibits private restrictions, which is rare and typically applies only to certain agricultural contexts, not personal-use livestock.

Before buying animals or building enclosures, review your HOA’s CC&Rs (covenants, conditions, and restrictions) in addition to your city’s municipal code. Getting crosswise with an HOA can mean fines, legal action, and ultimately being forced to rehome your animals.

How to Find Your City’s Rules

Start with your city’s municipal code, which is usually searchable online. Look under sections labeled “animals,” “livestock,” “zoning,” or “urban agriculture.” Key things to identify:

  • Which animals are allowed and whether your city distinguishes between poultry, small livestock, and large livestock
  • Maximum animal counts per lot or per acre
  • Minimum lot size required to keep any livestock at all
  • Setback distances from neighboring dwellings, property lines, and public areas
  • Permit requirements and whether neighbor consent or notification is part of the process
  • Noise and nuisance provisions, especially bans on roosters or other loud animals

If your city’s code is unclear, call your local animal control or zoning office directly. Getting a clear answer before you invest in animals and infrastructure saves significant time, money, and heartache compared to discovering a violation after the fact.