How Cities Regulate Urban Farming: Overview of U.S. Cities

New to the topic? See what is urban farming for the types of urban farming and how federal law describes them.
The building blocks of city urban agriculture rules
| Building block | What it decides | Why it matters to you |
|---|---|---|
| Use category | Whether a project is a home garden, community garden, urban farm or something else. | The category decides which zones allow it and whether a permit is needed. |
| Size threshold | Planting area, lot size or acreage at which rules change. | A small project may need no permit; a larger one may need review. |
| Zones | Where each use is allowed: by right, with a conditional permit or not at all. | The same project can be easy in one zone and impossible in another. |
| Sales | Whether, when and how you may sell what you grow. | Sales can turn a garden into a commercial use. |
| Animals and structures | Numbers of chickens and hives, setbacks, sheds, greenhouses and hoophouses. | Often governed by separate ordinances and permits. |
| Home occupation and landscaping rules | General rules about businesses at a home and about what may grow in a front yard. | They can limit a farm stand or a front-yard garden even where urban agriculture is allowed. |
Six cities compared
| City | How it categorizes urban agriculture | Notable rules |
|---|---|---|
| Seattle, WA | Community garden (principal use, all zones), urban farm (accessory use) and, since 2023, community farm. | No permit up to 4,000 sq ft of planting area for an urban farm in a residential zone; sales 7 a.m. to 7 p.m. of products grown by the farm (city guidance, 2022). See Seattle. |
| San Francisco, CA | Home garden (outside the ordinance), Neighborhood Agriculture and larger industrial or large-scale agriculture (2011 ordinance, since amended). | Neighborhood Agriculture principally permitted in all districts; larger farms mainly in commercial and industrial districts. See San Francisco. |
| Oakland, CA | Community garden, limited agriculture and extensive agriculture. | Community gardens permitted in some zones, conditional in others, prohibited in D-GI; 2014 update eased gardens under one acre with sales area up to 500 sq ft. See Oakland. |
| Philadelphia, PA | Four subtypes: community garden, market or community-supported farm, horticultural nursery, animal husbandry. | Gardens and market farms recognized as uses allowed as of right; animals more restricted (2012 code). See Philadelphia. |
| Boston, MA | Urban agriculture uses in the city’s zoning code. | Ground-level farms up to one acre allowed outright in any zone, as summarized by city materials; six hens and two hives per lot (see the planning hub). |
| Raleigh, NC | Community gardens and agriculture uses by district. | Allowed in appropriate districts, some with special approval; on-site sales need a zoning permit; no animals in residential districts. |
Other cities show the range. Minneapolis limits farm stands to 75 days a year, Miami-Dade allows community gardens only in 12 Urban Center Districts, and Milwaukee requires permits for hoophouses. See the planning and zoning guide for more on these examples. Details were taken from city guidance and policy summaries and may have changed since; confirm with your city.
Home occupation rules
Home occupation rules govern businesses run from a home. They often limit signs, employees and customer traffic, and some keep all activity inside the dwelling or ban sales of goods on the premises. A farm stand at a residence can fall under these rules unless the code treats farm stands as a separate agricultural use. Look for the home occupation section of your code and read whether it mentions outdoor activity, display or sale of products. See selling vegetables from home.
Landscaping and front-yard rules
Landscaping rules, weed and grass ordinances and neighborhood standards can limit what you may plant in a front yard and how tall plants may grow. They are usually separate from urban agriculture rules. A vegetable garden in a front yard may be allowed, restricted by height or setback, or require a design standard, depending on the city. If you live in an HOA, also read homeowners associations and right-to-garden laws.
How to read your own city’s rules
- Find your zoning district.Use your city or county zoning map. See how to find your zoning.
- Search the code for agriculture uses.Look for “urban agriculture,” “community garden,” “urban farm,” “agriculture” and “accessory use.”
- Read the definitions.The definition decides which rules apply to your project.
- Read the use table for your district.Is your use allowed by right, with a conditional or special permit, or not allowed?
- Read the standards.Size limits, setbacks, hours, sales, structures and animals.
- Read the general rules.Home occupation, landscaping, building permits and animals.
- Ask the planning office in writing.Get the answer, the name and the date.
Frequently asked questions
Is urban farming legal in my city?
Probably in some form, but it depends on your zoning district and what you plan. Check your city’s code and ask the planning office.
Which US cities have urban agriculture ordinances?
Many do, including Seattle, San Francisco, Oakland, Philadelphia, Boston and Raleigh, which are summarized here. Many others have rules in their zoning codes.
What is an urban agriculture ordinance?
A city law that defines urban agriculture uses and says where and how they may happen.
What is a use category?
A group of land uses in a zoning code, such as urban agriculture, with defined subtypes.
Do I need a permit for a community garden?
Often not for a small garden in a district that allows it, but structures, size or sales may need permits.
Can I sell what I grow?
Often with limits on hours, area, location or products. See selling vegetables from home.
What is a home occupation?
A business run from a home, regulated by home occupation rules.
Can the city restrict my front-yard garden?
Possibly, through landscaping, height or setback rules. Check your code and any HOA rules.
What is the difference between by right and conditional use?
By right means allowed without special approval; conditional means allowed only after a permit review.
Where can I find my city’s code?
On your city’s website or a code library service; search for the municipal or zoning code.
Do state laws override city rules?
Sometimes, in limited ways, such as right-to-farm or right-to-garden laws. See right-to-farm laws.
Is this page legal advice?
No. It is a general guide; confirm with your city.
Official sources
- City of Seattle, Department of Construction and Inspections, Tip 244, Urban Agriculture (updated May 27, 2022)
- City of San Francisco, Ordinance 66-11 (2011) and Planning Code sections 102 and 202.2
- City of Oakland, Urban Agriculture and Community Gardens page and Planning Code Title 17
- City of Philadelphia, Zoning Code, Title 14, and Zoning Code Commission materials
- City of Boston, urban agriculture zoning materials; City of Raleigh, Unified Development Ordinance and community garden guidance
- Not checked for this page: the current text of these codes, and any California home occupation ordinances (we no longer list the 2011 collection of examples)