Livestock Law

How to Legally Keep Farm Animals in Town

A step-by-step way to learn what your city or town allows for chickens, goats, bees and other animals, and how to seek permits, variances or ordinance changes.

Updated November 20, 2026 · 5 min read · Livestock and Animal Law

More people want a few hens, a pair of goats or a beehive on a small lot, and many towns have updated their rules to allow it. But the legal answer depends on your city, your zoning district, your lot, any homeowners association covenants and sometimes your neighbors. In many places the right to keep animals is limited by species, number, sex of the animals, setbacks from property lines, and standards of cleanliness. Some towns allow chickens but not roosters. Some allow goats only with a larger lot. Some prohibit livestock entirely.

The good news is that the rules are usually public, and a methodical approach saves you money and trouble. This guide walks through the steps to find out what is allowed, how to apply for permission and what to do if the answer is no. It is general information and not legal advice. Ordinances change often, so verify everything with your local officials.

Where the rules come from

SourceWhat it may control
Municipal zoning codeWhat uses are allowed in each district, including keeping animals
Animal control or nuisance ordinancesNumbers, noise, odor, waste, fencing, sanitation
Health department rulesDisease, waste and food safety, especially if you sell products
Building or accessory structure rulesCoops, barns, sheds, setbacks and permits
Homeowners association covenantsPrivate restrictions that can be stricter than the city
Deed restrictionsRecorded limits that run with the land
State lawRight-to-farm laws and limits on local regulation, which vary

State right-to-farm laws seldom override local zoning in residential areas, so do not assume they protect a backyard flock. See understanding agricultural zoning laws and understanding farm deed restrictions.

Step-by-step: finding out what is allowed

  1. Identify your zoning district. Use the city or county's online map or call the planning office.
  2. Read the animal rules. Search the municipal code for "animals," "livestock," "poultry" or "fowl."
  3. Note limits: species, number, age or sex restrictions, minimum lot size, setbacks and enclosure rules.
  4. Check for permits. Many towns require a permit, a fee, an inspection or neighbor notification.
  5. Review HOA or deed documents for restrictions.
  6. Ask staff directly. Email the planning or animal control office and keep the reply.
  7. Check health and building rules for coops, shelters and waste.
  8. Talk to neighbors before you buy animals.

Take notes, copy the code sections and save emails. If staff give an informal answer, ask them to confirm in writing, because a casual phone answer may not protect you later.

Typical conditions

Even where animals are allowed, conditions commonly include:

  • A maximum number of animals, often small.
  • A prohibition on roosters or intact males.
  • Setbacks from property lines and neighboring homes.
  • Secure fencing and shelters.
  • Prompt waste removal and odor control.
  • No slaughter in residential areas, or only under conditions.
  • No sales from the property, or sales only with a permit.
  • Licenses or tags for certain animals.

If you sell eggs or products, other rules apply; see farm egg sales regulations and farm stand and market legal requirements. For manure and waste, see livestock manure regulations.

If the answer is no

You still have options. A variance is a request for permission to deviate from the rule because of a particular hardship, and the standards are strict. A conditional use permit may be available for uses allowed only with special approval. You can also petition for an ordinance change, which takes organizing and time: gather examples from similar towns, bring neighbor support and present safeguards for noise, odor and health. Public meetings are often the route for these requests. Keep your tone cooperative, since officials and neighbors respond better to practical proposals than to demands. An attorney experienced in land use can advise about the process.

Neighbors and nuisance

Even legal animals can lead to nuisance complaints if noise, odor or flies become a problem. Good fences, clean coops, prompt manure management and open communication prevent most conflicts. If a neighbor complains, listen, fix what you can and document your actions. See how to handle livestock complaints and how to resolve farm neighbor disputes. Liability also follows you, so confirm that your homeowners insurance covers the animals and any injuries; see livestock ownership and liability rules.

A hypothetical example

Consider a hypothetical family in a town of mid-sized lots who want four hens. They look up the code, which allows up to a small number of hens on residential lots with a permit, no roosters and a minimum distance between the coop and neighboring houses. They measure their yard, find that the proposed coop location is too close to the fence and move it. They submit the permit application with a sketch, speak with their two nearest neighbors and keep the coop clean. The permit is approved and the flock thrives. Another household that skipped the research received a citation and had to rehome their birds. This example is hypothetical and does not reflect a particular ordinance.

Resources

Extension offices provide small flock and backyard livestock guidance, and Extension.org has articles on housing and care. The National Agricultural Law Center and Farm Commons share information on land use and small farm law, while National 4-H and FFA promote youth animal projects. The EPA agriculture pages explain waste and water basics. If you want inspiration, FARM.FM 4-H has stories about kids and their first animals, and FARM.FM Today is a pleasant stop for a daily dose of rural life.

When to call a professional

Call your city planning or zoning office and animal control to confirm rules before you buy animals. Consult a land use attorney if you want a variance, conditional use permit or ordinance change, or if you receive a citation. Contact your HOA board about covenants. Talk to your insurance agent about liability coverage. Your veterinarian can advise on care and health regulations. Bring a site sketch, photos, copies of code sections and any correspondence.

Frequently asked questions

Can I keep chickens in my backyard?

Many towns allow a small number of hens with conditions, and some prohibit them. Check your zoning code and animal ordinances, and ask the planning office to confirm in writing.

Does a state right-to-farm law protect my backyard flock?

Usually not in residential zones. Right-to-farm laws mostly protect established agricultural operations from nuisance claims and do not override local zoning for small lots. Check your state law and local code.

What if my HOA bans animals but the city allows them?

The HOA covenants may still bind you, since they are private restrictions. Read your documents and talk with the board before you buy animals.

What can I do if a neighbor complains about my animals?

Respond calmly, fix any real problems, keep records and cooperate with officials. If the complaint becomes formal, talk with a local attorney.

Livestock Manure RegulationsPrevious articleFarm Animal Breeding RegulationsNext article

Keep learning

Farm tax and legal rules change and differ by state. Confirm current details with a licensed attorney, a CPA or enrolled agent, and the agencies involved.

Browse the state directory for tax agencies, business filing offices, lawyer referral, labor and environmental agencies, mediation and Extension contacts near you.

General information only, not legal, tax or financial advice. No attorney-client or accountant-client relationship is created by reading this article. Facts, state law and tax rules change, so verify before you act.