Keeping Farm Animals as Pets in California: Zoning, Permits, and Local Laws Explained
June 30, 2026
California is home to millions of animal lovers, and a growing number of residents want to go beyond dogs and cats — raising chickens in the backyard, keeping a potbellied pig as a companion, or housing a miniature goat on a suburban lot. The idea is appealing, but the legal path to doing it correctly is anything but simple.
Keeping farm animals as pets in California does not follow a single statewide rulebook. California does not have a single statewide law that flatly bans or universally permits backyard animal ownership. Instead, legality is determined by a patchwork of state agricultural codes, local zoning ordinances, and municipal regulations that vary dramatically from one jurisdiction to the next. Before you bring home a goat, a pig, or a flock of hens, you need to understand exactly what your county, city, and zoning district allow — and what they do not.
This guide walks you through each layer of California’s farm animal rules, from which species are commonly permitted as pets to how Right-to-Farm protections do (and do not) apply to backyard animal keepers.
Which Farm Animals Can You Keep as Pets in California
California does not maintain a single statewide list of approved “pet farm animals,” so the answer depends on your local jurisdiction. That said, certain animals appear repeatedly as permitted or conditionally permitted across California cities and counties.
Chickens and poultry are the most widely allowed farm animals in residential settings. Hens are permitted in many urban and suburban zones, though roosters are frequently banned due to noise concerns. Nuisance animal noise — including crowing roosters — is a recurring source of complaints in residential areas across California. Check your city’s municipal code carefully, because hen limits vary widely even within the same county.
Potbellied and miniature pigs occupy a legally complex middle ground. Many local governments have created a secondary classification for miniature or potbellied pigs as “companion animals” or “household pets.” A city may allow potbellied pigs as pets in residential zones while still prohibiting livestock — meaning the local pet classification effectively overrides the practical impact of the state livestock designation within that jurisdiction. Los Angeles, for example, permits potbellied pigs in residential zones under certain conditions, while many surrounding cities do not.
Goats and sheep are commonly permitted on larger residential lots, particularly in semi-rural and agricultural zones. Miniature breeds such as Nigerian Dwarf goats are more likely to qualify under local “small animal” definitions than standard-sized dairy breeds. Horses, donkeys, and mules are typically restricted to properties with significant acreage. In Santa Cruz, for example, one horse, pony, donkey, or mule is permitted per 20,000 square feet of land on qualifying lots.
Rabbits and ducks are often treated as small animals and permitted in more residential zones than larger livestock. Pygmy goats and pot-belly pigs, along with guinea pigs, hamsters, rabbits, and domestic birds, may be classified as common household pets in certain residential zone districts in counties like Placer.
Pro Tip: Before selecting a species, look up your city’s municipal code on Municode and search for “animal keeping” or “livestock.” The permitted species list is usually found in the planning and zoning chapter, not the general animal control section.
For a broader look at which animals can legally be kept in the state, the guide to exotic pets legal in California covers the state’s restricted species framework in detail. You may also want to review the farm animals overview to understand the general characteristics of the species you are considering.
Zoning and Property Requirements in California
Zoning is the foundational legal factor that determines whether you can keep farm animals on your property at all. Zoning is the single most important legal factor determining whether you can keep a farm animal on your property in California. Local zoning codes divide land into categories — residential, agricultural, commercial, industrial — and each category comes with specific rules about what animals, if any, may be kept there.
In agricultural zones (typically designated A-1, A-2, or similar), farm animals are almost universally permitted. These zones exist specifically to support farming and livestock operations. If your property carries an agricultural designation, you face far fewer restrictions than someone in a residential zone.
Residential zones are where the rules get complicated. In rural and agricultural areas, keeping farm animals is generally permitted and well-established. In suburban and urban zones, the rules tighten considerably — and in many cities, farm animals of any kind are prohibited outright in residential neighborhoods.
Possibly the most critical zoning regulation to research in your area is which animals are allowed on your land and the amount allowed. Some zoning regulations have species-specific requirements and restrictions; others are so specific as to ban male chickens but allow female chickens. Zoning can also change after you have settled on and purchased land. Typically, this should not be an issue as most municipalities have rules for grandfathering in old uses, but some may require you to petition the government to remain in compliance.
When it comes to city ordinances, several sections of law affect the keeping of animals. These include zoning laws, nuisance laws, and sanitation regulations. Zoning laws will inform you of the animal types permitted or not permitted and whether you require any special permit to keep certain animals or certain numbers of animals. Zoning laws will also inform you of any restrictions on numbers of animals and required distances from dwellings, other buildings, property lines, and sidewalks.
Key Insight: Your property’s zoning designation is not the same as the neighborhood you live in. A parcel in a semi-rural subdivision may carry an agricultural zoning designation even if it looks suburban. Confirm your exact zoning classification through your county assessor’s office or planning department before assuming what is or is not permitted.
Lot Size and Number Limits for Farm Animals in California
Even when farm animals are permitted in your zone, California jurisdictions routinely cap the number of animals you can keep based on your lot size. These limits vary significantly from one city or county to the next, but several common patterns emerge.
For larger animals such as horses, the standard formula ties the number of permitted animals directly to acreage. In Santa Cruz, for example, one horse, pony, donkey, or mule is permitted per 20,000 square feet of land on qualifying lots. A maximum of two horses per acre is a common cap, with farm animals other than horses permitted according to acreage standards set by zoning.
For small farm animals, many jurisdictions set a flat number cap rather than an acreage ratio. In Santa Cruz, lots of at least 20,000 square feet may keep no more than two large family farm animals and ten small family farm animals. Cities may also impose minimum lot size thresholds before any farm animal keeping is allowed at all. In Walnut Creek, for example, livestock or roosters are not allowed on a property less than 40,000 square feet unless the property is adjacent to open space and is at least 20,000 square feet in size.
Pig ownership carries its own size and weight restrictions in many cities. Even in jurisdictions that permit backyard pigs, many California cities and counties impose size, weight, or breed restrictions. These restrictions exist primarily to distinguish companion animals from commercial livestock. Weight limits are the most common restriction tool, with cities that allow potbellied pigs as pets frequently capping the permitted weight at anywhere from 100 to 200 pounds at full maturity.
Prospective owners need to be especially careful — many pigs sold as “miniature” or “micro” pigs grow significantly larger than advertised. Some ordinances specifically name potbellied pigs or miniature breeds as the only permitted pig types in residential areas, meaning that even a small standard-breed pig would be prohibited regardless of its actual size.
| Animal Type | Typical Minimum Lot Size | Common Number Limit | Notes |
|---|---|---|---|
| Chickens (hens) | Varies; often no minimum in urban zones | 4–12 hens per lot (city-dependent) | Roosters frequently banned in residential zones |
| Potbellied Pigs | Varies; some cities allow in standard residential lots | 1–2 per household | Weight caps of 100–200 lbs common |
| Miniature Goats | Often 10,000–20,000 sq ft | 2–4 per lot | Bucks (intact males) often prohibited |
| Horses / Donkeys | Often 20,000 sq ft or more | 1 per 20,000 sq ft | Stable setback rules apply |
| Rabbits / Ducks | Often no minimum in residential zones | Varies; often 4–6 | Treated as small animals in most codes |
If you are considering starting a small-scale poultry operation, the tips for starting a backyard poultry farming business article covers practical setup considerations that complement the legal framework here. For beekeeping — which follows its own distinct permit path — see the dedicated beekeeping laws in California guide.
Permit and Registration Requirements in California
Whether you need a permit to keep farm animals as pets in California depends on the species, the number of animals, and the jurisdiction. There is no single statewide permit for backyard farm animal keeping, but several permit categories come into play at the local level.
Common local requirements include registering the animals (similar to a dog or cat license) or obtaining an animal control livestock permit, often with an associated fee. Some cities require a conditional use permit or minor use permit before you can keep any livestock in a residential zone, even if the species is technically allowed.
In Walnut Creek, for instance, livestock and roosters are allowed in certain single-family residential zones subject to conditions, but some zones require a Minor Use Permit for approval. This type of permit typically involves submitting an application to the planning department, paying a fee, and sometimes attending a public hearing where neighbors can comment.
At the state level, the California Department of Food and Agriculture (CDFA) regulates livestock under the Food and Agricultural Code. Livestock-classified animals may require agricultural permits, must comply with CDFA health and movement regulations, and are subject to different zoning rules than companion-classified animals. If you are moving livestock across county lines — even just transporting your pet goat to a veterinarian in another county — CDFA movement regulations may apply.
Some incorporated jurisdictions within county limits maintain their own ordinances that govern animal keeping. California state law governs some areas of animal issues, and some cities use state law rather than creating their own ordinances. Some state laws governing animals are located under the Food and Agricultural Code and some are under Health and Safety.
Important Note: Permit requirements can change. Always verify current requirements directly with your city’s planning department and your county’s animal control agency before acquiring any farm animal. What was allowed two years ago may now require a permit — or may have been banned outright.
California’s restricted species framework, administered by the California Department of Fish and Wildlife under Fish and Game Code Section 671, separately governs animals classified as restricted wildlife. It is unlawful to import, transport, or possess live animals on the restricted list except under a permit issued by the department. Permits may be issued subject to the conditions and restrictions designated by the department. Most standard domestic farm animals (chickens, goats, pigs, horses) are not on this restricted list, but exotic or non-native species kept in farm settings may be.
Housing, Setback, and Sanitation Rules in California
Even when your jurisdiction permits the species you want to keep, your animal housing structures must meet specific setback distances, enclosure standards, and sanitation requirements. These rules are designed to protect neighboring properties from noise, odor, and pest problems.
Setback requirements — the minimum distances between animal housing and property lines, roads, and neighboring structures — are among the most commonly enforced rules. In Walnut Creek, a barn, stable, or chicken coop must be built 100 feet away from any public street or 50 feet from any interior lot line. A fence, corral, chicken coop, or similar enclosure cannot be located within 15 feet of any side or rear property line or within 100 feet of any front property line.
In Santa Clarita, large animal enclosures must be located not less than 150 feet from any highway and not less than 50 feet from the side or rear lot lines of any lot or parcel of land. These figures illustrate how setback rules vary from city to city, which is why checking your specific local code is essential rather than relying on general estimates.
Enclosure and confinement standards are equally important. All animals must be properly caged or housed in corrals, barns, pens, or other enclosures. All such structures must be fenced or otherwise enclosed to adequately confine the animals, and are classified as accessory structures subject to the development standards of the underlying zone.
Sanitation rules address manure management, pest control, and waste disposal — areas where backyard farm animal keepers frequently run into neighbor complaints and code enforcement actions. All buildings used in conjunction with keeping large animals, including animal enclosures and all other animal keeping areas, must be maintained free from litter, garbage, and the accumulation of animal excrement. All excrement must be disposed of on a regular basis to control flies and odor.
Sanitation and treatment laws may list minimum requirements for adequate space, sanitation, and basic humane treatment. Noise rules also apply: all noise must be sound-attenuated so that the noise level measured at the property line is within the ambient level for the zone in which the site is located.
For broader context on California’s animal welfare enforcement environment, the laws on leaving pets in hot cars in California article illustrates how seriously the state treats animal care obligations. You can also explore the dangerous animals in California guide if you are considering species that carry additional liability considerations.
County and City Ordinances That May Override State Rules in California
One of the most important things to understand about keeping farm animals as pets in California is that local rules frequently override — or significantly expand upon — state-level guidance. Just because an animal is legal to own in the state does not mean the city you live in allows it. Many local cities and counties have their own restrictions on which animals are legal to keep, and which are not. You should check with your local city and/or county for their regulations.
California state laws apply throughout the state and include animal abuse and neglect, animal bites, and tethering. Local ordinances may vary and may include nuisance animal noise, loose animals, and spaying or neutering. The result is a multi-layered system where a state law sets a floor, and local governments build their own rules on top of it.
County ordinances apply to unincorporated areas — land that falls within a county’s jurisdiction but outside any city’s boundaries. If you live in an unincorporated area, your county’s code governs you. Some incorporated jurisdictions (cities) within county limits maintain their own ordinances that govern animal keeping. This means a property just across the city limit line from yours may operate under entirely different rules.
The practical implication is significant. A city may ban all livestock in residential zones while the surrounding unincorporated county land allows goats and chickens on lots over half an acre. Two neighboring cities may have opposite rules on roosters or miniature pigs. Municipal codes or ordinances are local laws that describe how a city should operate. To find planning ordinances for keeping animals in your city, check if your city is listed at Municode or find the planning and zoning section of your city’s website. Once you have obtained your city’s planning codes, search for keywords like “animals” or “fowl.”
Homeowners associations (HOAs) add another layer. Even if your city and county permit farm animals on your property, your HOA’s covenants, conditions, and restrictions (CC&Rs) may prohibit them entirely. HOA rules are private contractual agreements, not public law, but they are enforceable and can result in fines or legal action if violated.
Common Mistake: Many people research state law and assume they are covered. State law is only the starting point. You must separately verify your county ordinance, your city’s municipal code, and your HOA’s CC&Rs — all three can impose restrictions that state law does not.
The poisonous animals in California and venomous animals in California guides are useful references if you are also evaluating which species present liability risks under local nuisance and dangerous animal ordinances. For a broader perspective on the challenges of keeping non-traditional animals, see the worst animals to keep as pets article.
Right-to-Farm Laws and How They Apply to Pet Farm Animals in California
California’s Right-to-Farm Act, codified at California Civil Code Section 3482.5, is a frequently misunderstood protection. The Act was enacted in 1981 and subsequently amended in 1993 and 1999. Many backyard farm animal keepers assume it shields them from neighbor complaints about noise or odor — but the law’s scope is narrower than that.
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 version follows this general model but includes specific limitations that matter greatly for pet farm animal owners.
The most important limitation: only commercial agricultural operations, activities, and facilities receive California’s Right-to-Farm protections. If you are keeping a few chickens or a pet goat for personal enjoyment — not for commercial sale — your operation almost certainly does not qualify for Right-to-Farm protection against nuisance claims.
A California court case illustrates this directly. 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.
For operations that do qualify as commercial, the protections are meaningful. The state’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 agriculture commodities incident to or in conjunction with those farming operations. California’s legislation contains a time-in-operation requirement of three years or more before the nuisance protection applies.
The state’s health and safety code bars the discharge of air contaminants and other materials that endanger the comfort, repose, health, or safety of any persons or the public. Yet the law makes an exception for agricultural operations, saying that the law does not apply to their odors, animal waste products, compost green material, or compost facilities and operations.
California’s Right-to-Farm statute law supersedes any local regulations. However, many counties have passed ordinances that bolster the state’s Right-to-Farm law, providing even further protections for agricultural operations. This means that if your operation qualifies, local ordinances cannot strip away those state-level protections — though they can add to them.
What does this mean practically for pet farm animal owners? If your animals are purely personal companions with no commercial activity attached, do not rely on Right-to-Farm as a shield against neighbor complaints or local code enforcement. Your best protection is full compliance with your local zoning, setback, and sanitation rules from day one. If you do sell eggs, milk, or other products — even informally — consult an attorney about whether your operation might qualify for any degree of Right-to-Farm coverage.
For additional context on California-specific animal regulations and what it means to be a responsible owner in this state, explore the stray animals guide and the overview of low-maintenance pets for kids if you are considering which animals fit your household’s capacity. The animals with multiple stomachs article also provides helpful biological background on the ruminants — goats, sheep, and cattle — that are most commonly kept as farm pets in California.
Getting It Right Before You Bring an Animal Home
Keeping farm animals as pets in California is entirely achievable, but it requires doing your legal homework before you acquire any animal. The rules are local, layered, and specific — and the consequences of getting it wrong range from fines and code enforcement orders to being required to rehome an animal you have already bonded with.
- Start with your property’s zoning designation — contact your county planning department or use your county assessor’s online parcel lookup.
- Pull your city’s municipal code from Municode and search for “animal keeping,” “livestock,” and the specific species you want.
- Contact your county animal control agency to ask about permit requirements and any recent ordinance changes.
- Review your HOA’s CC&Rs if you live in a planned community.
- Check whether your operation would qualify for any CDFA registration requirements, especially if you plan to move animals across county lines.
- Speak with a local land use attorney if your situation is complex — particularly if you want to keep multiple species or a larger number of animals.
California’s farm animal rules are genuinely complex, but they are navigable. The key is verifying every layer of applicable law for your specific parcel before you commit. Once you have confirmed compliance, you can focus on what matters most: giving your animals a healthy, well-managed home. For more on responsible animal ownership and the realities of keeping non-traditional pets, visit the guide to keeping pets safe when flying them to a new home and the endangered animals in California overview to understand which species carry additional conservation-related legal obligations in the state.