San Francisco, California: Urban Agriculture Zoning

Last verified: October 30, 2026 · Written by the UrbanAgLaw.org Editorial Team

Painted Ladies Victorian houses with the San Francisco skyline behind
Quick answer: San Francisco added urban agriculture to its Planning Code with Ordinance 66-11 in spring 2011 and created a city urban agriculture program in 2012. The 2011 ordinance made “Neighborhood Agriculture” a use allowed in all zoning districts, and sent larger or industrial-scale farming to commercial and industrial districts, with conditional use authorization possible elsewhere. Home gardens for personal use were left alone. The code has been amended since, and category names and thresholds in the current Planning Code may differ, so confirm them with the Planning Department.

What the 2011 ordinance did

Ordinance 66-11 broadly did three things, according to the city’s announcement and the ordinance summary:

  • it defined “urban agriculture” in the Planning Code, as growing food or horticultural crops for harvest, sale or donation;
  • it clarified where each type of urban agriculture can and cannot take place;
  • it allowed the sale of agricultural and horticultural products grown on a site.

The categories

San Francisco urban agriculture categories (2011 ordinance, later amended)
CategoryHow it was describedWhere it was allowed
Home gardenA garden at or next to a residence where food and ornamental plants are grown only for personal use.Not covered by the ordinance; no new rules.
Neighborhood AgricultureSmaller urban agriculture under the physical and operating standards in the Planning Code.Principally permitted in all zoning districts.
Urban Industrial (later Large-Scale) AgricultureFarms of about one acre or more, or smaller farms that cannot meet the Neighborhood Agriculture standards (a secondary source).Commercial, industrial and production, distribution and repair districts; conditional use authorization could allow it in other districts, such as residential ones.

Later amendments refer to Industrial Agriculture, Neighborhood Agriculture, Large-Scale Urban Agriculture and Greenhouse as separate uses. The conditions for these uses are in Planning Code section 202.2. The names, the acreage cutoff and the zoning districts in the current code were not checked for this page.

Sales, water and neighbors: what the 2011 ordinance covered

Topics covered when the ordinance passed (verify the current code)
TopicWhat the 2011 summary said
Sale of products grown on siteAllowed, including sales on site, subject to conditions and hours. Sale inside a residence was not allowed.
Value-added productsAllowed in districts other than residential if made mainly from plants grown on the site.
WaterNew gardens above 1,000 square feet had to follow water-efficiency rules and tell the water utility how they would use water.
Appearance and operationsStandards for equipment storage, compost piles and fencing for Neighborhood Agriculture.
PermitsA change-of-use permit from the Planning Department in some cases, such as a new garden as a principal use.

These details are from a 2011 summary and have not been confirmed against the current code. Fees and forms have changed.

The 2012 urban agriculture program

In July 2012 the Board of Supervisors approved legislation to create the city’s first urban agriculture program. It was to coordinate the urban agriculture work of several city agencies and to give the public one place to get information and technical assistance. Ask the city which agency runs this work today and what resources it offers.

How to check the current San Francisco rules

  • Read the Planning Code definitions for agriculture uses (section 102) and the use conditions (section 202.2) on the city’s code site.
  • Find the zoning district of your lot on the Planning Department’s property information map; see how to find your zoning.
  • Ask the Planning Information Center whether your project is a home garden, Neighborhood Agriculture or large-scale agriculture, and whether it needs a change-of-use permit.
  • Ask the water utility about water-efficiency rules for gardens above 1,000 square feet.
  • If you sell food, see farm stands and farmers markets.
  • Get answers in writing with a name and date.

Frequently asked questions

Is urban agriculture legal in San Francisco?

Yes. Ordinance 66-11 (2011) added urban agriculture to the Planning Code and allowed Neighborhood Agriculture in all zoning districts.

Do I need a permit for a home garden in San Francisco?

A home garden grown only for personal use was outside the 2011 ordinance, with no new rules. Check your property’s zone and any building or fence rules.

What is Neighborhood Agriculture in San Francisco?

The smaller kind of urban agriculture defined in the 2011 ordinance, allowed in all zoning districts if it meets the standards in the Planning Code.

How big can a neighborhood farm be?

The larger category began at about one acre, according to a secondary source, but check the current code for the exact threshold.

Can I sell vegetables I grow in San Francisco?

The 2011 ordinance allowed sale of products grown on site, with conditions and hours, and not from inside a residence. Confirm the current rule.

Do I need a change-of-use permit?

In some cases, such as a new garden as a principal use. Ask the Planning Information Center.

What are the water rules for a garden?

Under the 2011 summary, new gardens above 1,000 square feet had to follow water-efficiency rules and submit water-use information. Confirm the current rule.

What is the San Francisco urban agriculture program?

A program created in 2012 to coordinate city agencies and help the public. Ask the city for its current form.

Can I put a greenhouse on my lot?

Greenhouse is listed as a separate use in later amendments. Check the Planning Code and building rules.

Are chickens allowed in San Francisco?

Animals are governed by separate rules. See our guide to urban livestock and ask the city.

Where is the San Francisco Planning Code?

On the city’s online code library; the agriculture uses are defined in section 102 and conditioned in section 202.2.

Is this page legal advice?

No. Confirm with the Planning Department before you rely on it.

Official sources

  • City and County of San Francisco, Ordinance 66-11 (2011) and the Mayor’s office announcement of the urban agriculture legislation
  • San Francisco Planning Code, sections 102 and 202.2, and the amending ordinances on urban agriculture
  • San Francisco Board of Supervisors, 2012 legislation creating the urban agriculture program
  • Not checked for this page: the current text of the Planning Code sections, the acreage threshold, produce sales hours and water-efficiency rules

This page is general information, not legal advice. The Planning Code is amended often; confirm the current rules with the San Francisco Planning Department.