Start with your city code
Most chicken rules live in your municipal code, which almost every city publishes online. Search it for chickens, poultry, fowl and animals. Then look in the zoning chapter for accessory structures and setbacks, because the coop is often regulated as a small building rather than as an animal enclosure.
If the text is vague, call the planning or zoning office and ask your question in plain words: how many hens, any roosters, where on the lot, and does the coop need a permit. Ask for the answer by email so you have it in writing. Also check your county and state, since both can add rules on top of the city's.
What an ordinance actually says
Rules differ a lot from town to town, so treat this as one example, not a standard. The city of Chandler, Arizona, allows up to five chickens on each detached single-family lot, prohibits roosters, and limits chickens to the rear and side yards. The coop must be at least five feet from any property line, and droppings must be removed from the coop at least twice a week.
Chandler also draws a permit line: a coop over 120 ft² counts as an accessory building and needs a building permit, and any coop connected to electricity or water needs a permit regardless of size. That last rule matters if you plan a heated waterer or a light.
The things to look for in your own code are the same everywhere: flock size, roosters, which part of the yard, setbacks from property lines and neighbors' homes, coop size and permits, cleaning and odor rules, and whether slaughtering at home is allowed.
HOAs can say no even when the city says yes
A homeowners' association enforces its own covenants, conditions and restrictions (CC&Rs), and those can be stricter than city law. A city ordinance that allows hens does not cancel them. Chandler's own chicken page tells residents to check with their HOA before keeping chickens.
Ask your HOA or management company for the current CC&Rs and search them for poultry, livestock, fowl and animals. If the wording is silent or unclear, ask the board for written approval before you buy a coop. A friendly letter with your coop plan and a photo of the design goes a long way.
Renting, neighbors and the other layers
Leases. Check your lease and ask your landlord in writing. A coop is a structure on someone else's property.
Neighbors. Most complaints that reach a city start with an unhappy neighbor, not a broken rule. Talk to the people next door before the coop goes up, and share eggs.
State registration. Some states require backyard flocks to register with the state Department of Agriculture. The University of Maryland and University of Delaware extension services note that both Maryland and Delaware do. Rules for selling eggs can include licensing, labeling and packaging, so check your state and local authorities before you sell any. See also our guides to bird flu and the National Poultry Improvement Plan.
Quick checklist
- Read the city code for chickens, poultry and accessory structures
- Confirm flock size, rooster rules and setbacks
- Ask whether the coop needs a permit, especially if it will have power or water
- Get your HOA's CC&Rs and check for poultry or livestock language
- Check your lease and ask your landlord in writing
- Look up your state's flock registration rules
- Talk to your neighbors
Quick answers
Do I need a permit for a chicken coop?
It depends on your city. Some require a permit only above a certain size or when the coop has power or water. In Chandler, Arizona, for example, a permit is required for coops over 120 ft² and for any coop connected to utilities. Check your city code or call the zoning office.
Can my HOA ban chickens if my city allows them?
Yes. HOA covenants are separate from city law and can be stricter, so a city ordinance that allows hens does not override them. Read your CC&Rs and get written approval if the wording is unclear.
Are roosters allowed in backyard flocks?
Often not. Many cities prohibit roosters, as Chandler, Arizona does. You do not need a rooster for hens to lay eggs, so skip him unless your code clearly allows one.
Sources
- City of Chandler, AZ: Backyard chicken ordinance
- University of Maryland Extension: Backyard Layer Flock Economics (FS-2025-0783)
Local laws change. This page explains how to check, not what your town allows. Confirm with your city, HOA and state before you buy birds.