Livestock Zoning Laws in California: What Property Owners Need to Know
July 13, 2026
Keeping livestock in California is not simply a matter of buying land and fencing it in. Before you bring a single cow, goat, or horse onto your property, you need to understand how local zoning laws govern what animals you can keep, how many you can have, and where on your lot they must be housed. Get it wrong and you could face fines, forced removal of your animals, or costly legal battles with neighbors and code enforcement.
California’s approach to livestock zoning is highly decentralized. The state sets a broad framework, but your county and city fill in the specifics — and those specifics vary dramatically from one jurisdiction to the next. This guide walks you through every layer of the system so you can make informed decisions before you buy land, apply for permits, or expand your operation.
How Livestock Zoning Works in California
Zoning governs what you can and cannot do on your property. For livestock owners, the relevant zoning categories, setback requirements, animal density limits, and nuisance regulations determine whether you can keep animals at all — and if so, how many and under what conditions. California does not have a single statewide livestock zoning code. Instead, authority flows downward from the state to counties and then to cities, each of which writes its own ordinances.
Agricultural zoning in California can vary significantly by county, with some areas categorizing zoning more narrowly to regulate different types of farming. There might be distinct zoning ordinances for field crop production, livestock management, or specialized operations such as vineyards or orchards. This means a rule that applies in unincorporated Riverside County may look nothing like the rule in an incorporated city in the same county.
There are various governing bodies to look to for rules on keeping food-producing animals. These may include neighborhood associations, city ordinances, county laws, the California Department of Food and Agriculture, and the United States Department of Agriculture. When those layers conflict, the more restrictive rule generally controls — so you must check every level, not just the county zoning map.
Pro Tip: Always verify livestock rules with your county planning department directly, not just the online zoning map. Maps are updated less frequently than the underlying ordinances, and a single phone call can save you months of legal headaches.
For context on how California’s approach compares to other states, see our guides on kennel zoning laws in California and kennel zoning laws in Pennsylvania, which illustrate how differently jurisdictions structure animal-keeping rules.
Which Zones Allow Livestock in California
Agricultural zoning is a land use designation assigned by counties that prioritizes farming, ranching, and rural activities on a parcel. It limits more intense uses like subdivision development, commercial retail, and manufacturing, while typically allowing farm structures, crop production, livestock, and often a single residential dwelling. California counties use several overlapping designations that you will encounter when researching a property.
A-1 (General Agriculture) covers most raw undeveloped land in rural California. You can farm, raise livestock, and typically build one single-family home per parcel. Minimum lot sizes range from 5 to 40 acres depending on the county. This is the designation where full-scale livestock operations — cattle, horses, goats, sheep, and swine — are most likely to be permitted by right without additional approvals.
A-2 (Exclusive Agriculture) is a strict farming zone. Building a home requires proving you actively farm the land. Many counties require 20 or more acres minimum. A-3 (Agricultural Residential) is a mixed zone that allows small farms and rural homes, with lot sizes that usually run 1 to 5 acres. At that smaller scale, you are typically looking at hobby-farm quantities of animals rather than commercial herds.
Los Angeles County’s zoning code illustrates how these tiers work in practice. In the A-1 zone, every lot must have a minimum average width of 300 feet and a minimum area of five acres. The keeping of equines, bovines, goats, or other domestic livestock is permitted only on lots with an area of 17,500 square feet or more, and where equines or bovines are kept, the number may not exceed one animal for each 4,000 square feet of lot area.
Rural Residential zones exist in between agricultural and suburban areas. They typically allow one home per 1–5 acres, small hobby farms, horses, and limited livestock. These zones are common in foothill and valley communities across the Central Valley and Inland Empire, and they often attract buyers who want a rural lifestyle without a full agricultural operation.
| Zone Designation | Typical Livestock Permission | Common Lot Size Minimum |
|---|---|---|
| A-1 (General Agriculture) | Full livestock permitted by right | 5–40 acres (county-dependent) |
| A-2 (Exclusive Agriculture) | Full livestock; active farming required | 20+ acres in many counties |
| A-3 / Agricultural Residential | Small-scale livestock; hobby farm quantities | 1–5 acres |
| Rural Residential (RR, R-R) | Horses and limited livestock often allowed | ½–2 acres |
| R-1 / Single-Family Residential | Rarely; small animals or poultry only | 5,000 sq ft–1 acre |
If you are interested in specific animals within these zones, our articles on backyard chicken laws in California and backyard pig laws in California cover the rules for those species in more detail.
Minimum Lot Size and Animal Density Rules in California
Lot size and animal density rules are where most property owners run into trouble. For livestock owners, the relevant zoning categories, setback requirements, animal density limits, and nuisance regulations determine whether you can keep animals at all, and if so, how many and under what conditions. California counties do not use a single formula — each jurisdiction sets its own density ratios, and some are far more restrictive than others.
In Riverside County’s R-R, A-1, A-2, and W-1 zones, the grazing of horses may not exceed five animals per acre of all land available; however, the systematic rotation of animals with more than five animals per acre is permitted so long as the total number of permitted animals is not exceeded. That five-per-acre cap is one of the more permissive standards in Southern California.
In R-1, R-1A, R-2, R-2A, and R-3 zones in Riverside County, the noncommercial keeping of horses is allowed on lots not less than 20,000 square feet in area and 100 feet in width, provided they are kept not less than 100 feet from any street and 20 feet from any property line. Once you move into a standard residential zone, the rules tighten sharply.
Los Angeles County’s A-2 zone requires a minimum lot size of 10,000 square feet, with 1 to 5 acres required depending on the type of structures and the number and types of animals. Animal-related structures must be kept a minimum of 50 feet from streets and highways and structures used for human habitation.
Key Insight: Density limits in California are almost always calculated per acre of usable land — not total parcel size. If part of your lot is a steep slope, a creek setback, or a recorded easement, that area may not count toward your animal allowance. Confirm the calculation method with your county planner before you commit to a herd size.
Rancho Cordova’s agricultural zoning code shows how large some minimum sizes can run. The AG-80 zone is applied to areas of the city to accommodate a wide range of agricultural uses on parcels of land a minimum of 80 gross acres in size. That scale is typical of commercial livestock operations in the Sacramento region. The AG-20 zone is applied to accommodate agricultural use on parcels a minimum of 20 gross acres in size.
You should also be aware that California’s Proposition 12 animal welfare law, which went into full effect in 2024, imposes space and housing standards on commercial livestock operations — particularly for egg-laying hens, pork, and veal. Proposition 12 requires farmers to provide egg-laying hens with more room and in cage-free systems. If you plan to sell animal products commercially, these welfare standards layer on top of your local zoning requirements. Our guide on livestock disease reporting in California covers additional state-level compliance obligations for agricultural operations.
Setback Requirements for Livestock in California
Setback rules tell you how far animal enclosures, pens, corrals, and structures must be placed from property lines, roads, neighboring homes, and your own residence. Farming creates a lot of noise and odors, especially when raising livestock, using heavy machinery, or operating at unusual hours. Many communities have regulations in place to limit noise and odor disturbances, particularly in areas near residential neighborhoods. You may need to position animal enclosures or machinery further from property lines or implement measures to manage odors.
Setback distances in California vary by county, zone, and animal type, but certain patterns emerge across jurisdictions:
- From neighboring residences: In Riverside County’s agricultural zones, livestock shall not be kept or maintained within 50 feet of any residence in existence at the time such use is established.
- From streets and highways: In Los Angeles County’s agricultural zones, animal-related structures must be kept a minimum of 50 feet from streets and highways and structures used for human habitation.
- From interior side lot lines: San Diego County’s zoning regulations prohibit animal enclosures within 50 feet of any interior side lot line in applicable zones.
- From adjacent habitable structures: In Norco’s A-1 zone, all Primary Animal Keeping Areas (PAKAs) must have a 35-foot minimum setback from a habitable structure located on an adjacent lot.
Poultry setbacks tend to be shorter than those for large livestock. In Glenn County, backyard poultry and hobby husbandry are permitted by right on all unincorporated residential and agricultural zones, with a 30-foot setback from side or rear property lines for livestock and poultry structures.
When you are planning pen and corral placement, always measure from the structure itself — not from where the animals stand. Most ordinances define the setback as applying to the enclosure, not the grazing area. If your barn or corral falls within a required setback distance, you will need a variance or redesign before you build. For related rules on animal housing structures, see our article on kennel zoning laws in California.
Right to Farm Protections in California
California’s Right to Farm Act, codified at Civil Code § 3482.5, protects qualifying agricultural operations from nuisance lawsuits brought by neighbors who object to the noise, odors, or other normal byproducts of farming. All fifty states have enacted right-to-farm laws that seek to protect qualifying farmers and ranchers from nuisance lawsuits filed by individuals who move into a rural area where normal farming operations exist, and who later use nuisance actions to attempt to stop those ongoing operations.
California’s Right to Farm law generally protects any practices performed by a farmer or on a farm, such as the preparation, delivery, and storage of agricultural commodities incident to or in conjunction with those farming operations. The statute specifically protects the cultivation and tillage of soil, dairy operations, and the production of any agricultural commodity, including livestock, fur-bearing animals, fish, and poultry.
There is a critical limitation you need to understand: only commercial agricultural operations, activities, and facilities receive California’s Right to Farm protections. If you keep animals purely for personal use or as a hobby, the law does not shield you from a neighbor’s nuisance claim. This distinction has been tested in court multiple times.
In 2012, the owners of an eighty-acre parcel sued their county over an ordinance that mandated the removal of their sixty roosters and forty hens within the county’s unincorporated area, claiming Right to Farm as a defense. However, the court ruled that their activities did not qualify as commercial, neither in terms of a local county ordinance nor in terms of the state’s Right to Farm law.
By contrast, in a 2019 case, Olivera Egg Ranch LLC, which housed between 650,000 and 700,000 hens and produced about 468,000 eggs daily, was able to effectively claim Right to Farm as a defense. Scale and commercial intent matter enormously when invoking this protection.
California’s Right to Farm statute supersedes any local regulations. However, many counties have passed ordinances that bolster the state’s law, providing even further protections for agricultural operations. Placer County, for example, has its own Right to Farm ordinance that requires sellers of property near agricultural land to disclose that fact to buyers — a provision added after the state amended the law in 1992. In 1992, the Right to Farm law was amended to allow cities and counties to require that prospective homeowners be given notice that certain properties are proximate to nuisance-causing agriculture activities.
Important Note: Right to Farm protections apply to operations that use “generally accepted practices.” If you are running a livestock operation in a non-standard way — or if you cannot show that your methods are consistent with similar operations in your region — you may not qualify for the protection even if your operation is commercial. Document your practices carefully and consult an agricultural attorney if a nuisance dispute arises.
For more on California’s livestock regulatory environment, including disease reporting obligations that often accompany commercial operations, visit our guide on livestock disease reporting in California.
HOA and Deed Restrictions That Override Zoning in California
Even if your property is zoned for livestock and you meet every county setback and density requirement, a homeowners association (HOA) or a recorded deed restriction can still prohibit you from keeping animals. Before purchasing property for livestock, search the deed for any recorded covenants, restrictions, or HOA references. Review the full CC&R document if one exists. A real estate attorney can help identify restrictions that may not be obvious from the deed alone.
HOA rules and deed covenants are private contractual agreements, not public zoning law. Courts in California consistently enforce them as long as they do not violate state law or public policy. That means an HOA can ban all livestock — or ban specific species like swine or poultry — even on a parcel that your county zoning map shows as agricultural.
Some developers market rural subdivisions specifically for agricultural use, with covenants that protect the right to farm and keep livestock. These “agricultural communities” or “equestrian communities” use CC&Rs to ensure that all property owners understand and accept livestock activity in the neighborhood. If you are buying into a subdivision and want to keep cattle, look for this type of community.
Deed restrictions recorded before the current owner purchased the property run with the land — they transfer automatically at sale and bind every future owner. A restriction that says “no livestock other than horses” on a parcel that has been sold five times still applies to you today, even if the original developer who wrote it no longer exists.
The practical checklist before you buy any property for livestock use in California:
- Order a preliminary title report and read every recorded document, not just the deed.
- Request the full CC&R package from the HOA or title company if any HOA exists.
- Search for any agricultural preserve or Williamson Act contract on the parcel — these affect what you can and cannot build, but generally support agricultural use.
- Ask the county planning department whether any overlay districts, specific plans, or neighborhood regulations apply beyond the base zone.
- Have a real estate attorney review any restrictions you find before you close escrow.
If you are navigating HOA rules around animals more broadly, our articles on pet laws in California and American Bully laws in California discuss how private restrictions interact with state law in other animal-keeping contexts.
How to Check If Your Property Is Zoned for Livestock in California
Verifying that zoning works for agricultural use before purchasing or leasing land is essential. Zoning designations dictate whether you can legally use land for farming activities, such as cultivating crops or raising livestock. The county typically provides this information on its website, through the local planning department, and on zoning maps.
Here is a step-by-step process for verifying livestock zoning on any California parcel:
- Find the Assessor Parcel Number (APN). Every California parcel has a unique APN. You can find it on the county assessor’s website by searching the property address. You will need this number for every subsequent step.
- Check the county GIS zoning map. Contact the county planning department or check the online GIS map for your parcel’s zoning designation. Most California counties now offer interactive online maps where you can enter an address or APN and see the zoning layer.
- Read the zoning ordinance for your designation. Find the specific regulations for your zoning district, including permitted uses, minimum lot sizes, animal density limits, and setbacks. Do not rely on a summary — read the actual ordinance text, which is usually available through Municode or the county’s own code library.
- Confirm whether a use permit is required. Use regulations in zoning tables are shown with representative symbols: “P” for uses allowed by right, “AUP” for uses that require approval of an administrative use permit, “C” for uses that require a conditional use permit, and “N” for uses that are not permitted. If your desired livestock use falls in the “C” or “AUP” column, you will need to apply before you can legally proceed.
- Call the planning department. After reading the code, call the county planning department and describe exactly what you intend to do — species, number of animals, structures you plan to build. Ask them to confirm in writing that your planned use is allowed. This creates a record if a dispute arises later.
- Check for city jurisdiction. If the parcel is within an incorporated city’s limits, you need to check that city’s municipal code in addition to the county’s. Cities often have stricter rules than the surrounding county.
The best way to determine if you can have livestock on your property is to first check your property’s zoning designation. This can often be found in your county, city, or town zoning ordinance or be provided to you by your local zoning officials. Once you know your property’s zoning designation and how much space you have on your land, you can then determine if you can keep livestock on your property.
If you plan to transport animals once your operation is up and running, California has specific rules for that as well. Our guide on transporting livestock laws in California covers the permits, vehicle standards, and documentation requirements you will need. And if you are also considering poultry as part of a mixed operation, see our articles on backyard chicken laws in California and rooster crowing laws in California for the rules that apply specifically to birds.
Pro Tip: If the county GIS map and the written ordinance appear to conflict, the written ordinance controls. Maps are illustrative tools; the text of the law is authoritative. When in doubt, get a written determination from the planning department — called a “zoning verification letter” in many California counties — before you invest in fencing, structures, or animals.
California’s livestock zoning system rewards property owners who do their homework upfront. The rules are detailed and locally variable, but they are also publicly available and navigable with the right approach. Confirm your zone, read the ordinance, check for deed restrictions, and get your permit questions answered in writing before you commit — and you will be in a strong position to build a lawful, lasting agricultural operation.