Keeping Farm Animals as Pets in Maryland: What You Need to Know Before You Start
August 5, 2026
Maryland has a long agricultural tradition, and that heritage shapes how the state — and its 24 counties — regulate farm animals kept for personal enjoyment rather than commercial production. Whether you want a pair of backyard chickens in a suburban neighborhood, a miniature goat on a few rural acres, or a horse on your residential property, the rules you must follow depend on far more than a single statewide law.
Keeping farm animals as pets in Maryland means navigating a layered system: state-level animal health regulations set a baseline, county zoning ordinances determine whether your parcel qualifies, and individual municipalities can layer on stricter rules still. This guide walks you through each layer so you know exactly what compliance looks like before you bring any animals home.
Important Note: Maryland does not operate under a single statewide ordinance for pet farm animals. County and municipal rules vary significantly — always verify requirements with your local Department of Planning and Zoning before acquiring any livestock.
Which Farm Animals Can You Keep as Pets in Maryland
Maryland law does not prohibit residents from keeping common farm animals as personal pets, provided they comply with local zoning rules. The animals most commonly kept for personal use — and most frequently addressed in county codes — include chickens and other poultry, ducks, rabbits, goats, sheep, pigs, cattle, and horses.
The distinction between a “pet” farm animal and a “commercial” or “agricultural” operation matters enormously under Maryland law. Horses and other livestock are defined as “pets” when maintained on non-farm property as a pet, as opposed to being housed in agricultural or commercial stables. That classification affects which zoning rules apply and whether state Right-to-Farm protections extend to your animals.
Exotic or wild animals are a separate matter entirely. A person may not keep or permit to be kept on their premises any wild animal, exotic animal, or vicious animal as a pet or for display or exhibition purposes, whether gratuitously or for a fee. Standard farm species — chickens, goats, horses, cattle, pigs, sheep, and common poultry — are not classified as exotic animals, so they fall outside that prohibition. For a broader look at what exotic animals you can legally own in the state, see our guide to exotic pets legal in Maryland.
If you are considering beekeeping alongside your farm animals, note that honeybees carry their own dedicated regulatory framework. Our guide to beekeeping laws in Maryland covers those rules in detail.
Zoning and Property Requirements in Maryland
Zoning is the single most important threshold to clear before keeping farm animals as pets in Maryland. The state does not impose one universal zoning standard — instead, each of Maryland’s 23 counties and Baltimore City administers its own zoning ordinance, and those ordinances determine whether your property type and size permit livestock at all.
Agricultural (AG) zones almost universally allow farm animals. The complications arise in residential, rural residential, and mixed-use zones, where livestock may be conditionally permitted, require a special exception, or be prohibited outright. Animal husbandry activities are conditionally permitted in NAR, SAR, RR, LDR, ST, UR, VR, M1, M2, MEA and OS zones, with a minimum lot size of one acre.
If your county’s zoning code is silent or ambiguous about a particular animal species, do not assume it is allowed. If a county’s code is ambiguous or silent on the property use for horses or livestock, it is best to contact the Zoning and/or Land Use department of that county for guidance, because ignorance of the law can result in costly fines and penalties.
For context on how Maryland balances animal ownership with community rights more broadly, you may also find our article on stray animals and responsible ownership useful background reading.
Lot Size and Number Limits for Farm Animals in Maryland
Minimum acreage thresholds and per-animal density limits are where most Maryland residents run into trouble. These numbers vary by county and by animal type, but several patterns emerge across the state.
For large animals — horses, cattle, pigs, goats, and sheep — the minimum parcel requirement is commonly set at two acres. In Charles County, large animals such as horses, cattle, pigs, goats, and sheep require a minimum of two acres of land with a maximum of one animal per acre. Calvert County follows a similar framework: if you plan to keep livestock as pets or for personal use on a non-farm property under Article 19 of the zoning ordinance, your lot or parcel must be at least two acres in size.
For smaller animals like chickens and rabbits, the acreage floor is lower but density caps still apply. In Charles County, small animals such as chickens and rabbits are permitted provided they are kept in a humane, secure, and sanitary fashion, with fewer than two acres allowing two adult small animals per acre, and properties over two acres allowing four adult small animals per acre.
In Calvert County, poultry rules differ slightly from livestock rules. Poultry may be kept on properties that are one acre or larger; if your property is less than one acre, you must obtain a special exception from the Board of Appeals.
Larger parcels unlock more flexibility. In Charles County, on a property larger than five acres, livestock is permitted in all zones, provided that areas of animal confinement less than one acre, manure storage, or feed storage are a minimum distance of 75 feet from any public street or highway and no closer than 250 feet from any existing residential dwellings on an adjoining parcel.
Pro Tip: Before purchasing property specifically to keep farm animals, pull the parcel’s zoning classification and confirm the exact acreage with your county’s Department of Planning and Zoning — not just the deed description. Lot size calculations sometimes exclude wetlands, easements, or rights-of-way that reduce your usable acreage.
If you are researching animals that are well-suited to smaller properties or beginner owners, our overview of farm animals and our list of low-maintenance pets for kids offer useful comparisons.
Permit and Registration Requirements in Maryland
Maryland does not require a single statewide permit to keep farm animals as pets for personal use. However, several permit-adjacent requirements apply depending on the county, the number of animals, and how those animals were acquired.
At the state level, the Maryland Department of Agriculture (MDA) regulates the movement of livestock into and within Maryland. All bovine animals are subject to inspection for evidence of infectious disease; affected and exposed animals are not eligible for movement to Maryland farms and must be consigned directly to slaughter or handled as specified by the Secretary. For pet farm animals brought in from out of state, a Certificate of Veterinary Inspection (health certificate) is typically required by the MDA’s Animal Health program — always confirm current requirements directly with the Maryland Department of Agriculture Animal Health division before transport.
At the county level, permit requirements vary. Prince George’s County has a notable threshold: anyone who keeps or harbors five or more animals larger than a guinea pig over the age of four months must obtain an Animal Hobby Permit; a valid license is also required to operate all kennels, catteries, guard or sentry dog facilities, pet shops, riding schools or stables, petting zoos, or grooming establishments. Importantly, this Animal Hobby Permit requirement does not apply to the keeping of farm animals, fish, or birds, and the annual fee for the permit is $5.
Some counties also require that non-farm properties seeking to keep livestock obtain an Agricultural Use Assessment from state tax authorities. The property must have an Agricultural Use Assessment from the Maryland Department of Assessments and Taxation in certain zoning contexts in Calvert County. Check whether your county imposes a similar prerequisite before applying for any local zoning approval.
For context on how Maryland handles other animal-related licensing and registration frameworks, our article on kennel zoning laws in Maryland outlines how the state’s layered licensing system works in practice.
Housing, Setback, and Sanitation Rules in Maryland
Even when your property meets the minimum acreage threshold, you must still site and construct animal housing in compliance with setback requirements and sanitation standards. These rules protect neighboring properties from noise, odor, and runoff — and violations can result in nuisance complaints or forced removal of your animals.
Setback rules differ by county and by structure type. In Calvert County, the rules break down as follows:
- Livestock enclosures on non-farm properties must meet the front setback requirements for primary structures, and side and rear setbacks must be at least 25 feet.
- Poultry coops are treated separately from livestock enclosures under the zoning ordinance.
Montgomery County sets specific requirements for chicken coops. The zoning ordinance requires chicken coops to be in the rear yard, at least 25 feet from any property line and 100 feet from another home; properties that cannot meet these setbacks cannot have chicken coops. Roosters receive separate treatment: roosters are prohibited in Urban Farming zones.
In larger agricultural districts, setback distances scale up considerably. In some counties, farm building setbacks depend on use — feedlots and chicken houses may require 600 feet, subject to a variance where a hardship exists.
Sanitation is a non-negotiable baseline across all Maryland counties. Sanitation provisions must meet the requirements of the County Health Department. In practice, this means adequate manure management, proper drainage away from waterways, and pest control. Maryland’s Chesapeake Bay watershed location makes nutrient runoff from livestock a regulated concern — some counties require a Nutrient Management Plan or a letter of exemption from the Maryland Department of Agriculture for properties above certain animal densities.
Key Insight: Setback distances in Maryland are measured from the animal enclosure or structure, not from the property boundary of your lot. Confirm with your county whether setbacks run from the structure’s wall, the pen fence line, or the manure storage area — the answer affects where you can legally site a barn or coop.
If you are thinking about a poultry-focused operation rather than purely personal pets, our guide on tips for starting a backyard poultry farming business covers the operational side in more detail.
County and City Ordinances That May Override State Rules in Maryland
Maryland’s regulatory structure gives counties broad authority to enact animal control ordinances that are stricter than state minimums. This means what is permissible in one county may be flatly prohibited in the next — and even within a county, incorporated municipalities often layer on additional rules.
Here is how several major Maryland jurisdictions approach pet farm animals:
| County / Jurisdiction | Minimum Lot Size (Large Animals) | Poultry / Small Animals | Notable Rules |
|---|---|---|---|
| Charles County | 2 acres; max 1 large animal per acre | 2 small animals/acre (<2 acres); 4/acre (>2 acres) | 250 ft setback from neighboring dwellings on parcels >5 acres |
| Calvert County | 2 acres for livestock | 1 acre for poultry; special exception if under 1 acre | 25 ft side/rear setback for enclosures; Health Dept. sanitation standard |
| Montgomery County | Varies by zone; AG zone permits farming | Urban Farming: 1 fowl per sq ft; 2,500 sq ft minimum | No roosters in Urban Farming; coop must be 25 ft from property line, 100 ft from neighboring home |
| Prince George’s County | Zoning-dependent | Farm animals exempt from Animal Hobby Permit | Riding schools and stables require a valid license |
Incorporated cities and towns can be even more restrictive than their surrounding counties. The City of Gaithersburg in Montgomery County, for example, maintains its own Chapter 4 Animals and Fowl ordinance separate from the county code. Just because an animal is legal to own in the state does not mean the city you live in allows it. Always check both your county ordinance and any municipal code that applies to your specific address.
Anne Arundel County takes a notably broad approach to restricting non-domestic animals. Small animals such as hamsters, gerbils, guinea pigs, mice, rats, other small rodents, rabbits, ferrets, birds, fish, and nonpoisonous amphibians and reptiles are not considered wild or exotic animals under county code — but larger farm species are subject to separate agricultural zoning rules that vary by district.
For additional context on Maryland-specific animal regulations, our articles on venomous animals in Maryland and endangered animals in Maryland provide useful background on how the state classifies and regulates different species.
Right-to-Farm Laws and How They Apply to Pet Farm Animals in Maryland
Maryland’s Right-to-Farm statute — codified at Md. Code Ann., Cts. & Jud. Proc. § 5-403 — protects qualifying agricultural operations from nuisance lawsuits brought by neighbors. Understanding whether that protection extends to your pet farm animals is important before you invest in infrastructure or animals.
The core protection under the Right-to-Farm statute applies to “agricultural operations” conducted using “generally accepted agricultural practices.” The statute pertains to those normal activities associated with agricultural or forestry production that are performed during various times of the year, and such daily activities are expected to be performed in a manner that will have minimal impact on the environment as well as human health.
The critical question for pet farm animal owners is whether keeping a small number of animals on a non-farm residential parcel qualifies as an “agricultural operation.” In most cases, it does not — at least not automatically. All of Maryland’s counties have adopted or incorporated portions of Right-to-Farm legislative language into their county zoning ordinances, recognizing the significant contributions of agricultural activities and providing protection of a person’s right to farm or to engage in agricultural activities. However, those county-level protections typically extend to properties that qualify as farms under the local definition.
In many Maryland counties, a “farm” requires a minimum parcel of 20 acres with active agricultural use assessment. A “farm” is defined in several county codes as a parcel of land not less than 20 acres in size used for agricultural purposes, receiving agricultural use assessment from the Maryland Department of Assessments and Taxation. If your property does not meet that threshold, your pet farm animals are likely classified as a residential accessory use — meaning Right-to-Farm protections may not shield you from a neighbor’s nuisance complaint about noise, odor, or flies.
What this means practically: if you keep two goats on a two-acre residential lot, you must comply with all setback, sanitation, and zoning rules precisely — because you cannot rely on Right-to-Farm immunity to defend against a nuisance action. Staying within your county’s permitted animal numbers, maintaining proper enclosures, and managing waste diligently are your best protections.
Important Note: Right-to-Farm protections in Maryland are strongest for established agricultural operations on qualifying farm parcels. Residential pet-keeping of farm animals sits in a legal gray zone — consult a Maryland agricultural or land use attorney if you face a nuisance complaint or zoning enforcement action.
If you are weighing the responsibilities of farm animal ownership against other pet options, our article on the worst animals to keep as pets offers a candid look at high-maintenance species to avoid. You may also want to review our guide on keeping your pets safe when flying them to a new home if you plan to relocate with animals across state lines.
Steps to Take Before Bringing Farm Animals Home in Maryland
Before you acquire any farm animal as a pet in Maryland, work through this checklist to avoid costly mistakes:
- Confirm your zoning classification — Contact your county’s Department of Planning and Zoning to verify that your parcel’s zone permits livestock or poultry as an accessory residential use.
- Measure your usable acreage — Verify that your net usable lot area meets the minimum threshold for the animal species you want, excluding wetlands, easements, and rights-of-way.
- Check animal density limits — Confirm the maximum number of animals permitted for your lot size under county code.
- Review setback requirements — Identify where you can legally site enclosures, coops, and manure storage relative to property lines and neighboring structures.
- Contact the County Health Department — Ask about sanitation standards and whether a Nutrient Management Plan or exemption letter is required.
- Check municipal ordinances — If you live within an incorporated city or town, review the municipal code separately from the county ordinance.
- Obtain a health certificate for incoming animals — Verify current Maryland Department of Agriculture requirements for animals transported into the state.
- Consult a local attorney if needed — For larger investments or complex zoning situations, a Maryland land use or agricultural attorney can clarify your rights and risks before you commit.
Maryland’s farm animal regulations reward preparation. The owners who run into enforcement problems are almost always those who acquired animals first and asked questions later. Taking the time to verify your county’s specific rules protects both your investment and your relationship with your neighbors.
For more on the broader world of farm animals and what makes them rewarding companions, explore our full farm animals resource. And if you want to understand more about Maryland’s overall wildlife and animal regulatory environment, our guides on leaving pets in hot cars in Maryland and exotic pets legal in Maryland round out the picture of how the state approaches animal ownership law.