Urban Livestock and Backyard Animals: What the Law Says

Can I keep animals at my home?
Work through the questions below in order. Each one can stop the plan, and it is cheaper to learn that before you buy animals or build anything.
- Is your address inside a city or in an unincorporated area?Inside a city, start with the city code. Outside, start with the county code. If unsure, ask the county assessor or planning office. Go to step 2.
- Does the code allow the animal in your zoning district?Look in the zoning chapter and the animal chapter. Many codes list animals by type and by zone. Not allowed: stop, or look at the last section of this page on changing the rule. Allowed: go to step 3.
- Is there a limit on numbers or lot size?Some codes cap the total per lot, set one limit for all small animals together, or tie numbers to lot size. Note the limit. Go to step 4.
- Is a permit, license or registration required?Ask the animal control office, the planning department or the health department. Some require a fee, a neighbor notice or a class. Go to step 5.
- What are the distance and structure rules?Setbacks from property lines, houses and wells, coop size, and whether the coop is an accessory structure. See our building permit guide. Go to step 6.
- Does your HOA, lease or condo document allow it?Private rules can be stricter than the city. See HOAs and urban agriculture. Go to step 7.
- Are you ready for neighbor and nuisance rules?Noise, odor, flies and escapes are what lead to complaints. Plan waste, fencing and quiet hours. If yes, you can proceed; if you plan to sell anything, read the selling section below.
Four layers of rules
Most disputes happen because people check only one layer. These are the layers that usually apply to a household that keeps animals.
| Layer | What it decides | Where to look |
|---|---|---|
| Zoning | Whether an animal is allowed at all, how many, which lot sizes or zones, setbacks and structures. | Zoning code and the animal or livestock chapter of the municipal code; county code if unincorporated. |
| Animal welfare | Care standards, licenses, loose animals, cruelty offenses, how dead animals are handled. | City animal control ordinance and your state animal cruelty statute. |
| Public health and nuisance | Noise, odor, manure, flies, rodents, waste disposal and complaints. | Health code, nuisance chapter, local health department. |
| Private rules | HOA covenants, condo rules, rental leases, land-owner permission on shared land. | Your recorded covenants, bylaws and lease. |
Some places also have separate state or federal layers: state animal health rules, bee registration, and federal rules for slaughter and egg sales. Those are covered on the child pages below.
Which animals cities usually regulate, and how
Codes differ a lot, so this table shows only what rules often cover. It is a checklist of things to look up, not a statement of your local law.
| Animal | What local rules often cover | Read more |
|---|---|---|
| Chickens (hens) | Whether hens are allowed, a cap per lot, coop distance from lines and houses, permit or neighbor notice, and whether roosters are banned. | Backyard chicken laws |
| Ducks, quail and other poultry | Often grouped with chickens as poultry or fowl; some codes list them separately or ask for the same coop rules. Check the definition of “fowl”. | Backyard chicken laws |
| Rabbits | Sometimes counted as small animals or pets, sometimes as livestock. Keeping for meat may be treated differently from keeping as pets. | This page, FAQ |
| Goats and sheep | Often limited to larger lots or agricultural zones; some codes allow small breeds or a set number. Fencing and odor rules matter. | This page, FAQ |
| Pigs | Frequently restricted more strictly than poultry; some codes treat small pet pigs differently from farm pigs. | This page, FAQ |
| Bees | Registration may be required by the state; local rules can add distance, water source, fencing or notice rules. | Urban beekeeping laws |
| Horses and cattle | Usually need large lots and agricultural zoning, and often fall under an animal unit or acreage limit. | This page, FAQ |
How to find your local rules
- Do you know the code your property falls under?Check your city or county website. If you are not sure whether you are inside city limits, the county assessor can tell you.
- Can you find the municipal code online?Many cities publish their code on a code library website or on the city site. Search the code, not general web pages, for the words “animals”, “fowl”, “poultry”, “livestock”, “bees” and “apiary”.
- Did you check more than one chapter?Rules may sit in the zoning code, the animal control chapter, the health code or the nuisance chapter. Open all of them.
- Do you still have questions?Call or email the planning department or animal control. Ask in writing, and save the answer with the name and date.
Searching a city’s name together with phrases such as “keeping of chickens” or “food-producing animals” often brings up a summary page or a recent council discussion. Treat those summaries as a guide to where to look, then read the code itself. Local food policy councils, 4-H and FFA chapters, poultry and beekeeping clubs and community gardens usually know how the rule is applied in practice.
Words you will see in animal codes
| Term | What it usually means |
|---|---|
| Animal unit | A way to count different animals on one scale so that a lot can hold a combined total. Each code sets its own conversion; check the table in your code. |
| Fowl or poultry | Chickens and often ducks, geese, turkeys, pigeons and quail. Check whether the definition includes the birds you want. |
| Small animals / large animals | Small animals are often dogs, cats, birds and rabbits; large animals are goats, sheep, pigs, horses and cattle. The line varies. |
| Setback | The minimum distance a coop, hutch or hive must be from a property line, a dwelling or a well. |
| Accessory structure | A building that supports the main use of a lot, such as a shed or coop. It may need a permit or follow size and height limits. |
| Animals at large | Animals loose outside their owner’s property or tethered on public land. Cities can pick them up. |
| Nuisance | Noise, odor, pests or other conditions that unreasonably interfere with neighbors’ use of their property. |
| Home occupation | A business use at a residence. Selling eggs, honey or live animals can raise this question; see our planning and zoning guide. |
Neighbors, nuisance and complaints
Enforcement of animal rules is often driven by complaints. A neighbor’s call to animal control or code enforcement is usually how a problem starts, even when no one has been checking permits. The best defence is to follow the rules and keep conflict low.
- Keep coops, hutches and hives clean and keep feed in sealed containers to avoid rodents and flies.
- Know the quiet rules for your area before you buy roosters or other noisy animals.
- Keep animals inside secure fencing; escapes are usually the fastest route to a citation.
- Tell neighbors before you start, and offer eggs or honey once the animals are settled.
- Keep a copy of the permit, the ordinance section and any email from the city.
HOAs and rentals
Even when the city allows animals, your homeowners association covenants or lease can forbid them. Read your recorded covenants, bylaws and any rules the board has adopted, and ask a landlord for written permission. A few states have passed laws that limit HOA bans on certain gardening activities; see our right-to-garden guide, and do not assume those laws cover animals.
Animal welfare and care
State animal cruelty laws apply to every animal you keep, whether it is a pet or food animal. Cities often add care rules such as bedding, enclosure size, water and shelter, and rules for loose animals. Cities also differ on what to do with a dead animal: some allow burial or garbage disposal under conditions, some require you to call the city. Call before you need the answer.
Manure, odor and flies
Many codes require a plan for removing or composting manure so it does not create odor, flies or runoff. Some require manure to be stored in a covered container or kept a set distance from a property line, well or water body. Composting manure can be a benefit for your garden, but check the compost rules in your city, and see our soil section for ways to use it safely. Do not use fresh manure on crops close to harvest unless you know the safe waiting period for your crop.
Bird flu and animal disease
Highly pathogenic avian influenza (HPAI) can affect small backyard flocks as well as commercial farms. The U.S. Department of Agriculture’s Animal and Plant Health Inspection Service (APHIS) runs the Defend the Flock program, and guidance for flock owners focuses on biosecurity: keep your birds away from wild birds and standing water, limit visitors, clean boots and equipment, and wash hands after handling birds.
If you buy chicks or birds, ask where they come from. Rules for moving birds between states depend on both states, and the federal National Poultry Improvement Plan is a voluntary program; check the rules of the state you are shipping to.
Slaughter, eggs, honey and meat
The rules for eating your own animals are different from the rules for selling. Cities usually do not regulate eating your own eggs, honey or meat, but some codes restrict slaughtering animals at home. Federal law has exemptions that let a household slaughter its own birds for personal use, and sets limits on selling. State and local rules come on top. Our selling eggs and backyard meat guide explains the federal and state layers, and our cottage food guide covers products made in a home kitchen.
Coops, hutches and buildings
A coop or hutch can be treated as an accessory structure. Some cities exempt small coops; others require a permit above a given size or ask for site plans. Setbacks may apply even when no permit is needed. See our guide to permits for sheds, greenhouses and coops.
Insurance
Homeowners and renters policies differ on animals. Some exclude certain animals or injuries, and a dog bite or a coop collapse can lead to a claim. Ask your agent in writing how the policy treats backyard animals, and see our liability and insurance guide. For community gardens and school programs that keep animals, check the landowner’s permission, the garden’s insurance and the school district policy before you start.
Community gardens and schools
Animals on shared land raise questions beyond zoning: who owns the animals, who cares for them on weekends and holidays, who pays vet bills and what happens if someone is hurt. Put the rules in the garden agreement or lease (see land access), keep hens or bees in an area visitors cannot reach by accident, and have a written plan for animal care and for what happens at the end of a season.
How to change a local ordinance
If your city bans an animal you want to keep, or has rules that are hard to meet, you can try to change them. Many cities have updated their rules, and their examples help your case.
- Have you found out whether others are already working on it?Ask local food policy councils, gardening groups and council members. If there is an effort, join it. If not, go to step 2.
- Have you found similar cities that already allow it?Look for cities of similar size and density. Copy the rules that worked, such as a permit, a class, a limit on numbers or a ban on roosters. Go to step 3.
- Have you met the people who write or enforce the rule?Planning, animal control, public health, the city manager and council members. Listen to their concerns. Go to step 4.
- Have you built support and shown responsible keeping?Gather letters, petitions and speakers; invite officials to see a well-kept coop. Then ask for a draft ordinance. Be patient: change takes months.
Common objections are noise, smell, disease and neglected animals. Ordinances often answer these with caps on numbers, hens only, minimum space per bird, permits, coop standards and inspections on complaint.
Frequently asked questions
Are farm animals allowed in city limits?
It depends on the city and the zone. Many cities allow small numbers of hens or bees; larger animals are more often limited to larger lots or agricultural zones. Read the local code.
Can I keep chickens, goats or rabbits in a residential zone?
Sometimes. Zoning decides which animals are allowed in residential districts and how many. Check the animal chapter and the zoning chapter, then ask the city.
Do I need a permit to keep backyard animals?
Some cities require a permit or license, a fee, a class or notice to neighbors; others require nothing for a few hens. Ask the animal control or planning office.
What is an animal unit?
A way of counting different animals on one scale to limit total animal numbers on a property. Each code defines it differently.
Can an HOA ban chickens or other animals?
Often yes, if the covenants prohibit them. HOA rules are separate from city law. Read your recorded covenants.
Can renters keep chickens or bees?
Only with the landlord’s permission and within city law. Ask for permission in writing.
Can I keep a horse or a cow in town?
Usually only in agricultural zones or on larger lots, and often under an acreage or animal unit rule.
Can I have a pot-bellied pig or miniature goats?
Some codes allow small breeds or pet pigs while banning farm pigs or full-size goats. The definition in your code matters, so ask how the city classifies them.
What if my city has no animal ordinance?
Nuisance, animal cruelty and zoning laws can still apply. Ask the city in writing before you buy animals.
How do manure and composting rules work?
Many cities require waste to be removed, covered or composted in a way that avoids odor and flies. Check your city code and your health department.
What should I do about bird flu?
Follow APHIS Defend the Flock biosecurity guidance, and report sick birds or sudden deaths to your state veterinarian or USDA.
Can I slaughter animals at home?
Federal law has exemptions for personal use, but some cities restrict home slaughter. See the child page on selling eggs and backyard meat.
Is my coop a building that needs a permit?
It may be. Check the size and height thresholds for accessory structures in your code.
Official sources
- Municipal and county codes: animal, zoning, health and nuisance chapters (search by your city name)
- U.S. Department of Agriculture, Animal and Plant Health Inspection Service: Defend the Flock program and HPAI guidance for backyard flocks
- Code of Federal Regulations, Title 9, section 381.10 (poultry inspection exemptions)
- State veterinarian and state department of agriculture for your state
- APHIS pages were not opened directly for this page; confirm hotline numbers and current guidance on the APHIS website