Zoning for Urban Farms and Gardens: What Is Allowed Where You Live

How zoning decides what you can do
A city divides its land into zoning districts and sets out which uses are allowed in each. Many codes were written before urban agriculture was a planning topic, so they restrict or ban farming in residential areas and can block things like backyard chickens, composting or vegetables in a front yard. The Healthy Food Policy Project (March 2024) sorts urban agriculture into three groups: home gardens, mostly for the residents; community gardens, usually small and neighborhood-based; and urban farms, larger and more intensive, which may sell food.
Four terms come up in almost every code:
- Permitted use. Allowed as of right, without special approval. Small home gardens are typically in this group.
- Accessory use. An activity or structure that supports a main use, such as a shed, hoophouse, greenhouse, farm stand, compost bin or fence at a home or garden.
- Conditional use. Allowed only with special approval and conditions, such as setbacks, size limits or hours. Large urban farms may need this review.
- Variance. An exception to a dimensional rule, such as a setback, granted when strict compliance would create a practical difficulty. In Grosse Pointe Woods, Michigan, it takes a review by the planning commission, a public hearing and a decision by the Zoning Board of Appeals, and costs $575.
Zoning is separate from the building code. Zoning says where a use or structure may go; the building code says how it must be built. See our guide to building codes and permits.
At a glance: how cities often treat common activities
| Activity | What cities often do |
|---|---|
| Home vegetable garden | Often an ordinary residential use. Some codes limit front yards: Grosse Pointe Woods allows raised beds in the rear yard but not within the front yard setback. |
| Community garden | Varies widely. Seattle allows it in all zones; Raleigh in appropriate districts, some with special approval; Oakland outright in many zones but with a conditional use permit in the OS and IG zones; Miami-Dade only in 12 Urban Center Districts. |
| Urban farm that sells produce | Often limited by size. Seattle allows one as an accessory use in residential zones with no permit up to 4,000 square feet of planting area and an administrative conditional use permit above that. |
| Selling on site (farm stand) | Often restricted. Raleigh requires an on-site sales zoning permit, Minneapolis caps farm stands at 75 days a year, and Miami-Dade community gardens may sell only at permitted farmers markets and grocery stores. |
| Chickens and bees | Governed by animal rules that differ by city. Seattle: up to eight domestic fowl, no roosters, up to four hives on lots under 10,000 square feet. Boston: six hens and two hives per lot. |
| Greenhouse, hoophouse, shed | Often needs a building or zoning permit. Raleigh requires a permit before construction, and Milwaukee requires permits for hoophouses. |
Four cities compared
These four show how far the answers can differ. The date column is the date the city gives for its own page.
| City | Community gardens and farms | Sales, animals and structures | Source date |
|---|---|---|---|
| Seattle, Washington | Community garden allowed as a primary use in all zones. Urban farm in residential zones: no permit up to 4,000 sq ft of planting area; above that, an administrative conditional use permit and a management plan. | Urban farm sales 7 a.m. to 7 p.m. and only plants and products grown by the farm. Garden structures up to 1,000 sq ft in total and 12 feet high; over 120 sq ft needs a building permit. Up to eight fowl, no roosters; up to four hives on lots under 10,000 sq ft. | Updated May 27, 2022 |
| Raleigh, North Carolina | Allowed on private land in appropriate zoning districts, some with conditional or special use approval. Size depends on the district. | On-site sales need a zoning permit (five business days for review). Sheds, greenhouses and hoophouses need a permit. No animals in residential districts; elsewhere chickens at 1 per 1,000 sq ft (maximum 10, no roosters) and up to two hives. | No date shown |
| Oakland, California | Community gardens permitted outright in many residential and commercial zones; conditional use permit in the OS and IG zones; prohibited in the D-GI zone. | Limited seasonal sales at community gardens. Up to three hives count as limited agriculture; more counts as extensive agriculture with stricter approval. | Described as recently updated, no date shown |
| Miami-Dade County, Florida | Community gardens only in 12 designated Urban Center Districts. | No livestock or poultry. Hand tools only. Open from sunrise to sunset. Produce sold only at permitted farmers markets and grocery stores. | Page undated; regulations file from 2019 |
Same activity, four answers. That is why the question to ask is not whether urban farming is legal in general, but how your city classifies your project.
Do I need zoning approval? A step-by-step check
Answer in order. Each answer tells you what to look up in your city’s code.
- Do you know your zoning district?No: look it up first (see the next section). Yes: go to step 2.
- Is the garden only for your own household?Yes: it is usually an ordinary residential use. Check front yard, structure and animal rules (step 5). No: go to step 3.
- Will it serve a group or donate produce (a community garden)?Yes: check whether “community garden” is a listed use in your district and whether it is allowed outright or only with a permit. No: go to step 4.
- Will you sell produce, on site or elsewhere?Yes: check the urban farm, farm stand or home occupation rules, including size, hours, signs and any sales permit. Also check food safety rules. No: go to step 5.
- Will you add animals, bees, a greenhouse, hoophouse, shed or roof use?Yes: check the animal ordinance and building permit rules. No: go to step 6.
- Is the use not allowed, or allowed only conditionally?Yes: ask about a conditional use permit, a variance or a different site. Also check your lease and HOA. No: you are likely fine, but confirm with the planning department in writing.
How to find your rules in 15 minutes
- Find your zoning district on your city or county zoning map. Raleigh points to its Citywide Zoning Map in iMaps, and Miami-Dade points to its Property Search.
- Read the zoning code section on the use you have in mind: community garden, urban farm, urban agriculture, farm stand or home occupation. Many county and city codes are online on code publishers such as Municode and General Code, as Cornell Small Farms notes. The University of California’s urban agriculture program calls city websites the best source for local zoning and municipal codes.
- Check animal, building and business rules separately. They often sit in different chapters.
- Ask your local Cooperative Extension office and your city or county planning staff. Cornell recommends starting there.
- Write down what you were told, by whom and when, and ask for it by email.
- What is the zoning of my parcel, and is my project (home garden, community garden, urban farm, farm stand) a listed use there?
- Is it allowed outright, as an accessory use or only with a conditional use permit, and what are the size, hours, sign and sales limits?
- Do separate rules cover animals, bees, greenhouses, hoophouses or sheds?
- Do I also need a business license, a building permit or a health permit?
- Is a zoning code update planned, and how long does a conditional use permit take and cost?
Special cases
Selling food
Selling is where zoning most often changes the answer. A garden that only feeds a household rarely raises questions; sales can turn it into a commercial use. Cities respond in different ways: Seattle allows farm sales within set hours, Raleigh asks for a sales permit and Miami-Dade sends sales to markets and stores. Food safety rules are separate, so see our guide to food safety rules for selling urban-grown food.
Chickens, bees and other animals
Animal rules usually live in a separate ordinance and often set numbers, distances from neighbors and bans on roosters. Seattle keeps its fowl structures at least 10 feet from a residential structure on an adjacent lot, and Raleigh requires 25 feet from property lines for chicken housing outside residential districts. Read our guide to animals and livestock.
Greenhouses, hoophouses and sheds
Structures face both zoning rules (height, setbacks, how many) and building permits. Austin requires greenhouses to meet its building code, while Cincinnati exempts smaller agricultural buildings from zoning approval and building permits. See our building codes guide for size thresholds and examples.
Neighbors, HOAs and leases
Complaints about odor, dust, noise or traffic can lead to restrictions even where the use is allowed. A homeowners association or a lease can restrict a garden that zoning allows, so read your HOA covenants and lease, and think about liability and insurance if volunteers or visitors come.
Right-to-farm laws
Right-to-farm laws protect farms from nuisance lawsuits. The University of Maryland’s agricultural law program (October 2014) explains that they usually provide an affirmative defense and that many require commercial production, compliance with other laws and accepted agricultural practices. A backyard flock that feeds one family may not be covered, and Missouri’s constitutional language is broader than most. Because the answer depends on your state’s wording and the source is from 2014, check your state statute before relying on it. For state examples and a short self-check, see our guide to right-to-farm laws.
If your city does not allow it
- Ask about a conditional use permit. Seattle and Oakland both use one for larger or more intensive projects.
- Ask about a variance if the problem is a size or setback rule and not the use itself.
- Look for another site. See our guide to land access.
- Ask for a code change. Some advocates ask the city to add a sentence making growing food for community or personal use a permitted residential use, whether tended by residents or others. If the city is already updating its zoning code, ask about timing and whether greenhouses and other structures are included.
City guides on this site
Our earlier city summaries, written by the Sustainable Economies Law Center, may be out of date. Use them as background and confirm with the city.
Oakland, California
Planning rules and legislation.
San Francisco, California
Urban agriculture legislation.
Seattle, Washington
Urban farm and community garden rules.
Philadelphia, Pennsylvania
The zoning code rewrite and urban agriculture.
Overview of U.S. cities
Home occupation and landscaping rules.
Frequently asked questions
Can I grow vegetables in my front yard?
Often yes, but not everywhere. Many older codes were not written with food gardens in mind, and some limit front yards: Grosse Pointe Woods allows raised beds in the rear yard but not within the front yard setback. Check your city’s code for front yard and structure rules.
Do I need a permit for a community garden?
It depends on the city and the zone. Seattle allows community gardens as a primary use in all zones, Oakland permits them outright in many zones but requires a conditional use permit in the OS and IG zones, and Miami-Dade allows them only in 12 Urban Center Districts.
Can I sell vegetables from my yard?
Often only within limits. Seattle allows urban farm sales within set hours, Raleigh requires an on-site sales zoning permit, and Minneapolis limits farm stands to 75 days a year. Ask your planning department before you sell.
What is a conditional use permit?
It is special approval for a use that a zone allows only with conditions, such as size limits, hours or a management plan. In Seattle, an urban farm over 4,000 square feet of planting area in a residential zone needs one.
Do right-to-farm laws protect urban farms?
Not automatically. They often cover commercial farms, and a backyard flock feeding one family may fall outside them. The result depends on your state’s statute.
How do I find my zoning district?
Use your city or county zoning map or property search, then read the code section for the use you want. If the online map is unclear, ask the planning department.
Official sources
- Healthy Food Policy Project, “Zoning for Urban Agriculture” (March 2024)
- City of Seattle, Department of Construction and Inspections, Tip 244, “Urban Agriculture” (updated May 27, 2022); Seattle Municipal Code 23.42.051 as summarized there
- City of Raleigh, North Carolina: community garden guidance and Citywide Zoning Map
- City of Oakland, California, Planning and Building: Urban Agriculture and Community Gardens
- Miami-Dade County, Florida: Community Gardens (Urban Center Districts)
- City of Grosse Pointe Woods, Michigan: Raised Garden Beds guide (March 2024)
- Cornell Small Farms: Guide to Urban Farming, “Codes and Regulations”
- University of California Agriculture and Natural Resources: “Laws, Zoning and Regulations” (urban agriculture)
- University of Maryland, Agricultural Law Education Initiative: “Is There a Right-to-Farm in Urban Areas?” (October 27, 2014)
- Sustainable Economies Law Center, Urban Agriculture Legal Resource Library (original text of this page)