No, it is not illegal to grow your own food in California. State law actively protects your right to keep an edible garden at home, and for most backyard gardeners the only rules that come into play are your local water district’s watering schedule and a handful of common-sense zoning standards. The regulations that carry real penalties are aimed at specific situations: unregistered hemp, citrus in quarantine zones, water diverted without rights, and pesticide misuse. Vegetables, herbs, fruit trees, and personal-use gardens are safe territory.
What State Law Guarantees You
Civil Code Section 4750, added by AB 2561 in 2014, voids any HOA governing document that effectively prohibits or unreasonably restricts a homeowner’s use of a front or back yard for personal agriculture. It also protects your right to donate what you grow.1California Legislative Information. AB 2561 Assembly Bill – AMENDED The protection covers any yard designated for your exclusive use.
An HOA can still impose “reasonable restrictions,” but the statute defines that term narrowly: a restriction is unreasonable if it significantly increases the cost of gardening or significantly decreases its efficiency.1California Legislative Information. AB 2561 Assembly Bill – AMENDED Requiring you to pull weeds and clear dead plant material is fine. Demanding that you replace your vegetable beds with ornamental landscaping is not. If your HOA sends a violation notice over an edible garden, citing Section 4750 is usually enough to end the dispute.
Renters get a narrower protection under Civil Code Section 1940.10, also added in 2014. Tenants in single-family homes and duplexes have the right to grow edible plants in portable containers on their private outdoor space. The landlord cannot prohibit it, provided the containers don’t block doorways, parking, or utility access, don’t cause water damage, and the tenant keeps the area clear of weeds and dead plant material.2California Legislative Information. California Civil Code 1940-10 Planting directly in the ground still requires landlord approval. The statute does not extend to apartment complexes with more than two units, and it does not cover common areas.
If gardening serves a disability-related need, such as therapeutic horticulture prescribed for a mental health condition, you can request a reasonable accommodation under the federal Fair Housing Act. Your HOA or landlord must grant it unless doing so would impose an undue financial burden or fundamentally alter operations.3U.S. Department of Housing and Urban Development and U.S. Department of Justice. Joint Statement on Reasonable Accommodations Under the Fair Housing Act
What Your City or County Can Still Regulate
Local zoning codes decide what a residential lot can support, and those rules vary from one city to the next. A backyard vegetable garden or a few fruit trees will not trigger anything anywhere in California. Problems tend to surface when a garden starts to look like a small farm: selling produce on-site, running heavy equipment, or converting an entire front yard into crop rows without checking local standards.
Some municipalities restrict front-yard gardens by requiring setbacks from sidewalks, limiting plant height, or mandating that a percentage of the front yard remain landscaped. Others have moved the opposite direction and actively encourage urban agriculture. If you are planning something more ambitious than a typical home garden, your city’s planning department is the right starting point.
Crops That Come With Extra Rules
You do not need a permit to grow tomatoes, herbs, squash, berries, or the vast majority of edible plants. A short list of crops carries additional obligations.
Industrial Hemp
Cannabis, under Proposition 64, can be grown at home by adults up to six plants. Industrial hemp cannot. Every hemp grower in California, regardless of scale or purpose, must register with the local county agricultural commissioner under Division 24 of the Food and Agricultural Code. The state registration fee is $900 per year, and counties can add local fees on top. Growing unregistered hemp can result in crop destruction, and three negligent violations within five years bars you from registration for the following five years.4California Department of Food and Agriculture. Industrial Hemp Frequently Asked Questions
Citrus in Quarantine Zones
If you live in a quarantine zone for the Asian citrus psyllid or Huanglongbing (citrus greening disease), your citrus trees are subject to special rules. The California Department of Food and Agriculture maintains quarantine boundaries that restrict the movement of citrus plants and fruit.5California Department of Food and Agriculture. Citrus – Huanglongbing Regulation Homeowners in these areas must buy trees from certified nurseries, and moving homegrown citrus across quarantine lines can lead to confiscation. County agricultural commissioners conduct inspections and can order the removal of infected trees.
Noxious and Invasive Species
The USDA maintains a Federal Noxious Weed List that prohibits cultivating or transporting certain aquatic, parasitic, and terrestrial plant species anywhere in the United States. California maintains its own list of prohibited and restricted plants, enforced by county agricultural commissioners. None of these are common garden vegetables, but if you experiment with unusual ornamental or forage plants, check both lists first.
Water Rules Are Where Most Gardeners Feel the Law
Local water districts set mandatory watering schedules that limit the days and times you can irrigate. During droughts, the State Water Resources Control Board can go further, prohibiting runoff from irrigation altogether. Following your district’s current schedule is the single most important compliance step for a home garden.
Unauthorized Diversion
Diverting water without proper rights, meaning taking water from streams, rivers, or groundwater without a permit, can bring civil liability of up to $500 per day under normal conditions. During critically dry years preceded by two or more consecutive dry years, or during a governor-declared drought emergency, that ceiling rises to $1,000 per day plus $2,500 for each acre-foot diverted.6State Water Resources Control Board. Notice of Violation for Unauthorized Diversion – Water Code Section 1052 These penalties are not aimed at backyard gardeners, but they show how seriously the state treats its water supply.
Rainwater Harvesting
Rainwater collection is legal under the Rainwater Capture Act of 2012 (AB 1750). The law covers rain barrels, cisterns, and larger systems that capture runoff from manmade impervious surfaces, including rooftops, driveways, and patios. Collected water can be used for outdoor nonpotable purposes like garden irrigation.7California Legislative Information. AB 1750 Assembly Bill – Bill Analysis Simple rain barrel setups don’t require a permit; larger systems that divert from natural sources may need state approval.
Greywater
Recycling household water from showers, bathroom sinks, and washing machines for garden irrigation is regulated under the California Plumbing Code (Title 24, Part 5, Chapter 15). Basic systems that route greywater directly to subsurface irrigation don’t require a construction permit in most jurisdictions, but the installation must meet code to prevent runoff, pooling, and contamination of neighboring properties.8State Water Resources Control Board. FAQ Regulations for Onsite Treatment and Reuse of Nonpotable Water Kitchen sink water and toilet water are not greywater and cannot be reused this way.
Pesticides and Soil
California regulates pesticide use more strictly than most states, and the rules reach home gardeners. The Department of Pesticide Regulation requires everyone to follow label instructions exactly. Homeowners are exempt from the training and certification rules that apply to commercial applicators, but misusing a product, such as applying it to a crop not listed on the label or exceeding the stated concentration, can trigger enforcement. County agricultural commissioners typically handle first-time homeowner violations through education, though the authority for civil penalties up to $15,000 per violation exists.9Department of Pesticide Regulation. Homeowner Pesticide Use Violations – Enforcement Response
Soil is a separate concern, especially in older urban neighborhoods or on lots near former industrial sites. The EPA recommends that residential soil contain no more than 200 parts per million of lead, dropping to 100 ppm where additional lead sources exist, such as lead paint or older water pipes.10EPA. Updated Residential Soil Lead Guidance for CERCLA Sites and RCRA Corrective Action Facilities Professional laboratory testing for heavy metals and nutrients typically runs $20 to $120, and many UC Cooperative Extension offices offer affordable testing. Raised beds filled with clean imported soil are a reliable fix if your native soil comes back high.
If You Want to Sell or Donate What You Grow
Personal use is one thing; selling is another. Selling raw, unprocessed produce directly to consumers at farmers markets or roadside stands generally does not require a cottage food permit, though you may need a local business license or certified producer’s certificate depending on volume and venue.
For processed items made from what you grow, such as jams, dried herbs, or baked goods, California’s cottage food program is the path. Register with your local environmental health department and complete cottage food operator training within three months. Class A operations sell directly to consumers with a gross annual sales cap of $75,000. Class B operations can also sell indirectly through stores and restaurants, capped at $150,000. Only foods on the state’s approved list qualify, and labeling must meet both state and federal requirements.11California Department of Public Health. Cottage Food Operations
Donating produce you grow at home is expressly protected under the same law that shields your garden from HOA restrictions.
Occasional sales income belongs on Schedule 1 of your tax return, with no deduction for gardening expenses. Once you operate with a profit motive, keep business records, and act in a business-like manner, income and expenses shift to Schedule F, and self-employment tax kicks in when net farming earnings reach $400.12Internal Revenue Service. Farmers Tax Guide
Chickens and Bees
Growing food often extends past plants. California has no statewide ban on keeping chickens in residential areas, but cities and counties decide whether they’re allowed and under what conditions. Common local rules cap flock size, require minimum coop setbacks, and, almost universally, ban roosters in residential zones. Check your municipal code before buying chicks.
Beekeeping is regulated at both levels. California requires all beekeepers to register their hives through the CDFA’s Apiary Protection Program. Local ordinances may further restrict hive placement, limit colonies per lot, or require minimum distances from sidewalks and neighboring properties. Some cities welcome backyard hives; others prohibit them.
What Enforcement Actually Looks Like
For an ordinary backyard gardener growing vegetables, herbs, and fruit for the household, enforcement is a non-issue. When it does come up, it usually starts with a notice rather than a fine.
- Local zoning violations are handled by city or county code officers. Penalties vary but typically begin with a notice to correct, followed by escalating daily fines if you don’t comply.
- HOA disputes over edible gardens rarely survive a citation to Civil Code Section 4750. If the HOA persists, the matter can go to mediation or court, where the statute generally favors the homeowner.
- Agricultural quarantine breaches can result in confiscation of plant material and civil penalties enforced by county agricultural commissioners.
- Unregistered hemp cultivation can bring crop destruction and, after three negligent violations within five years, a five-year ban from registration.4California Department of Food and Agriculture. Industrial Hemp Frequently Asked Questions
- Water violations for unauthorized diversion run up to $500 per day normally and up to $1,000 per day during a declared drought emergency, plus $2,500 per acre-foot.6State Water Resources Control Board. Notice of Violation for Unauthorized Diversion – Water Code Section 1052
- Pesticide misuse carries civil penalties up to $15,000 per violation, though first-time homeowner cases are typically resolved through education.9Department of Pesticide Regulation. Homeowner Pesticide Use Violations – Enforcement Response
Keep your garden within the bounds of normal residential use, follow your water district’s irrigation schedule, and steer clear of the specific regulated crops, and you are on the right side of every rule on the books.