Keeping Farm Animals as Pets in Massachusetts: What You Need to Know Before You Start
July 5, 2026
Massachusetts is home to a growing number of residents who want more than a dog or cat — they want chickens in the backyard, a pair of goats on a half-acre lot, or a miniature pig living alongside the family. The idea is appealing, but the legal reality is layered. State regulations, local Board of Health permits, zoning bylaws, and setback rules all apply before a single animal sets hoof or claw on your property.
This guide walks you through everything you need to know about keeping farm animals as pets in Massachusetts — from which species are legally recognized as domestic animals to how your town’s ordinances may be stricter than anything the state requires. Whether you’re in a rural corner of Franklin County or a residential neighborhood in Worcester, the rules matter and they vary significantly by location.
Pro Tip: Always contact your local Board of Health and Planning or Zoning Board before acquiring any farm animal. State law sets a floor, but municipalities frequently impose stricter limits on species, numbers, and lot requirements.
Which Farm Animals Can You Keep as Pets in Massachusetts
Massachusetts draws a clear legal line between domestic animals and wildlife. The state takes a “list” approach to animal ownership, maintaining an official exemption list under 321 CMR 9.02 that identifies domestic animals you can keep without any special state permit. Common farm animals that appear on the domestic animal list — and are therefore legal to keep without a MassWildlife license — include chickens, ducks, geese, turkeys, domestic pigs (including pot-bellied pigs), goats, sheep, cattle, horses, donkeys, and rabbits.
Poultry is among the most popular choice for Massachusetts residents interested in backyard poultry keeping. Chickens, ducks, and domestic geese are recognized as domestic fowl and do not require a MassWildlife permit, though local permits almost always apply. Miniature pigs — often marketed as “teacup” or “micro” pigs — are still legally classified as swine and face some of the strictest local regulations of any farm animal species.
Camelids like llamas and alpacas are also recognized as domesticated livestock in Massachusetts. Llamas, alpacas, and dromedary camels must have a permit issued by the Massachusetts Division of Animal Health prior to importation if you are bringing them from out of state, so factor that step into your planning timeline. Goats are another popular pet-farm-animal hybrid — social, manageable in size, and widely kept across the state, though they require local permits in most towns.
If you’re curious about the broader landscape of exotic pets legal in Massachusetts, it’s worth knowing that the rules for farm animals and the rules for exotic wildlife operate under entirely separate regulatory frameworks. Massachusetts has strict laws that limit the types of animals that can be kept as pets, and these laws protect people and animals from harm.
Zoning and Property Requirements in Massachusetts
Zoning is the first legal checkpoint you need to clear before keeping farm animals as pets in Massachusetts. Local zoning bylaws determine whether agricultural uses — including hobby livestock — are allowed on your parcel at all. Most Massachusetts cities and towns divide land into residential, commercial, and agricultural zones, and the rules for keeping farm animals differ dramatically between them.
Under Chapter 40A of Massachusetts zoning law, this section restricts areas which cities and towns may regulate relative to commercial agriculture, aquaculture, silviculture, horticulture, floriculture, or viticulture, relating to many areas including farm buildings and retail farm stands on parcels of 5 acres or more, or on parcels of 2 acres or more that meet income requirements. For pet-level farm animals that fall outside commercial agriculture, however, local zoning boards have wide discretion.
In practice, residential zones in Massachusetts cities and dense suburbs often prohibit farm animals outright or restrict them to agricultural or rural residential districts. Rural towns and those with active agricultural commissions are generally more permissive. Massachusetts municipalities can pass their own ordinances and bylaws related to licensing and controlling animals, as long as those rules don’t conflict with state law — meaning your city or town might limit how many animals a household can keep or impose other animal-related rules.
Your first step is to pull your town’s zoning map and identify your parcel’s district. Then read the zoning bylaw’s agricultural use section carefully. Many towns require that farm animals be kept only as an accessory use on a conforming lot — meaning the primary use of the land must be residential or agricultural, not commercial. You can find your town’s zoning bylaws through your local planning board or the Massachusetts Law About Animals resource page maintained by the state.
Lot Size and Number Limits for Farm Animals in Massachusetts
Even when farm animals are allowed in your zoning district, Massachusetts towns almost universally impose minimum lot sizes and caps on the number of animals you can keep. These limits vary by town but follow recognizable patterns across the state.
As a representative example, Medfield’s Board of Health regulations specify that no person shall keep more than 1 horse, 1 bovine, 2 goats, 4 sheep, 4 swine, 8 rabbits, 10 geese, 10 ducks, 20 chickens, or 15 pigeons on a lot except where the property for keeping said animals is more than one (1) acre. Many neighboring towns use similar thresholds as a baseline.
Weymouth’s ordinance takes a comparable approach. The ordinance applies to swine, horses, cows, goats, sheep, burros, llamas, deer, chickens, ducks or other fowl, or other farm animals stabled or sheltered outside homes within the town. No more than 10 animals are allowed on site in a small animal shelter — defined as housing for animals under 20 pounds — while larger animals face additional acreage requirements.
The table below summarizes typical number limits seen across Massachusetts municipalities. These are illustrative ranges, not universal rules — always verify with your specific town.
| Animal Type | Typical Max on <1 Acre | Typical Max on 1+ Acres | Notes |
|---|---|---|---|
| Chickens | 6–20 | 20+ | Roosters often prohibited in residential zones |
| Ducks / Geese | 5–10 | 10+ | Waterfowl rules vary widely by town |
| Goats | 1–2 | 2–4 | Miniature breeds may have separate limits |
| Sheep | 2–4 | 4+ | Often grouped with goats in ordinances |
| Swine / Pigs | 1–2 | 2–4 | Strictly regulated; some towns prohibit entirely |
| Horses / Donkeys | 0–1 | 1 per acre | Usually require large animal permit |
| Rabbits | 4–8 | 8+ | Often classified as small animals |
If you’re interested in animals with unique digestive systems — goats, cattle, and sheep among them — you may already know that these are animals with multiple stomachs, which shapes their grazing needs and the amount of pasture space required per animal. That biological reality often aligns with why towns set minimum acreage thresholds the way they do.
Permit and Registration Requirements in Massachusetts
A Board of Health permit is the single most common requirement for keeping farm animals as pets across Massachusetts towns. Unlike a simple dog license, this permit involves an inspection of your property before any animals arrive and must typically be renewed annually.
No person shall keep or allow to be kept within the limits of the town in any building or any premises any horses, cows, goats, fowl, sheep, swine, or any other animal than those kept as family pets without a written permit from the Board of Health. All such permits expire on June 30th of each year, unless sooner revoked by the Board of Health for cause. This June 30 renewal deadline is consistent across many Massachusetts towns that model their regulations on state guidance.
A permit will be issued only to someone who resides at the location for which the permit is requested. Before a permit will be granted, an Animal Inspector or officer of the Board of Health is to visit the property to determine fitness and suitability of the site. That means you cannot apply for a permit on a property where you don’t live, and you should expect an on-site inspection before approval.
The permit to keep animals shall be issued after construction of the facility is completed and approved by the Board of Health and the Building Inspector. In cases where a Building Permit is required, preliminary Board of Health approval shall be indicated by countersigning the Building Permit. This means your animal housing structure may itself require a separate building permit before the animal permit can be finalized.
At the state level, livestock brought into Massachusetts from another state must meet import requirements administered by the Massachusetts Department of Agricultural Resources (MDAR). Identification must be listed on an official certificate of veterinary inspection (health certificate) from the state of origin issued within 30 days of importation. For sheep and goats specifically, under the USDA Scrapie Eradication Program, all categories of sheep and goats entering Massachusetts must have official individual identification, including Scrapie Program ear tags, official USDA or country-of-origin RFID ear tags, or registry tattoos accompanied by a current registration certificate.
Important Note: Swine face an additional layer of import oversight. All swine (including pot-bellied pigs or other “pet” type) must meet brucellosis testing standards — all swine imported into Massachusetts must be blood test negative to brucellosis within 30 days prior to importation unless coming directly from a validated brucellosis-free herd or state. Contact MDAR’s Division of Animal Health before purchasing any pig from out of state.
All permits shall specify the exact number and type of animals or fowl to be kept within the area described for the keeping of such animals. No animals in excess of the specified number shall be kept. This is a detail many first-time farm animal owners overlook — if your permit says two goats, adding a third puts you in violation even if your lot could physically accommodate more.
Housing, Setback, and Sanitation Rules in Massachusetts
Once your permit is in hand, the physical setup of your animal housing must meet specific standards for setback distances, construction, and sanitation. These rules exist to protect neighboring properties, local water supplies, and the animals themselves.
Setback requirements — the minimum distance between an animal structure and property lines, neighboring dwellings, and water sources — are among the most site-specific rules you will encounter. In Medfield, the building (stable) shall be 50 feet away from any public way, and 50 feet from a dwelling, and the pen (corral) shall be 50 feet from any public way and 50 feet from a dwelling. Weymouth’s rules are different: applicants must maintain at least 10 feet to an adjacent property line, 20 feet to an adjacent dwelling, 100 feet from a wetland, and 200 feet from the high water mark of a source of drinking water or tributary thereof.
These differences illustrate why you cannot assume one town’s setback rules apply in another. Always request the specific setback table from your local Board of Health or zoning office before breaking ground on any animal shelter or enclosure.
Sanitation standards are equally detailed. The owners or persons in control of any buildings or premises in which animals are kept shall keep the buildings and premises clean and free from decaying food, filth, dirt, stagnant water and animal wastes, and shall provide a pit constructed of concrete or another suitable plan, approved by the Board of Health, for the storage and disposal of manure. Manure management is taken seriously — no person shall store manure within 100 feet of any property line, wetland or well.
Feed storage also falls under sanitation rules. Any animal feed that is stored on, at, or proximate to the facility for the keeping of animals shall be stored in sealed, moisture-proof, vermin-proof, and rat-proof containers. Improper feed storage is one of the most common reasons farm animal permits are revoked or not renewed.
Fencing is a structural requirement, not just a good practice. All facilities for the keeping of animals shall be securely fenced so as to prevent the escape of animals therefrom. At no time will animals be allowed to roam unattended. An escaped goat or pig that damages a neighbor’s garden can trigger both civil liability and permit revocation. For additional guidance on farm animals and their general care requirements, solid fencing and predator protection are baseline needs regardless of local rules.
County and City Ordinances That May Override State Rules in Massachusetts
State law in Massachusetts sets the minimum framework, but local ordinances routinely go further — and in many cases, they are the rules that matter most in your day-to-day situation. Per the Code of Massachusetts Regulations (321 CMR 9.01), you can possess certain animals without a MassWildlife permit or license, but in some instances you may need to comply with local or state laws regarding municipal agriculture or zoning laws.
City ordinances in Massachusetts’s denser urban areas — Boston, Worcester, Springfield, and Lowell — tend to be the most restrictive. Some prohibit farm animals in residential zones entirely. Others allow only a small number of hens (no roosters) on lots above a minimum square footage threshold. Suburban towns like Lexington, Medfield, and Weymouth have their own detailed animal regulations that differ from one another even though they sit in the same region of the state.
Lexington’s Board of Health, for example, requires permits for all large farm-type animals and requires all persons who wish to maintain any large animal (including but not limited to swine, horses, cattle, goats and sheep) or more than five small animals to obtain prior approval. The Conservation Commission is also notified of applications near wetland areas. The Conservation Commission will be notified by the Board of Health of all new animal permit applications that are subject to the Wetlands Act or Zone II restrictions.
If you are renting rather than owning, the situation is more complicated. Most Massachusetts towns issue permits only to property residents, and your landlord’s consent does not substitute for zoning or Board of Health approval. Review your lease carefully and confirm with local authorities before bringing any farm animal onto rented property.
Key Insight: Some Massachusetts towns explicitly prohibit roosters in residential zones even when hens are allowed. If you plan to keep chickens and want fertile eggs or a full flock experience, check your local ordinance for rooster-specific language before purchasing birds.
Towns also differ on how they handle complaints. The owner or keeper of a farm animal, livestock or fowl who has violated provisions of a local ordinance shall be punished by a written warning for the first offense, a fine of $75 for the second offense, a fine of $100 for the third offense and $200 for the fourth and each subsequent offense — using Agawam’s schedule as one example. Fines and enforcement procedures vary by municipality, but most follow a warning-then-escalation model.
For Massachusetts residents curious about other local animal regulations, the beekeeping laws in Massachusetts follow a similar patchwork structure, with state guidelines layered beneath highly variable town-level rules.
Right-to-Farm Laws and How They Apply to Pet Farm Animals in Massachusetts
Massachusetts has a suite of right-to-farm protections built into several chapters of its General Laws. Understanding how these laws work — and where they stop — is important for anyone keeping farm animals as pets, because these protections are more limited than many people assume.
The core statutes are Article 97 of the Massachusetts Constitution (agricultural land and open space preservation); MGL Chapter 40A, Section 3, Paragraph 1 (exemptions from restrictive zoning); Chapter 90, Section 9 (farm vehicle licensing); Chapter 111, Section 125A (nuisance statute); and Chapter 128, Section 1A (definition of farming).
The nuisance protection in MGL Chapter 243, Section 6 is the most practically relevant for animal keepers. No action in nuisance may be maintained against any person or entity resulting from the operation of a farm or any ancillary or related activities thereof, if said operation is an ordinary aspect of said farming operation, provided that said farm shall have been in operation for more than one year. This section shall not apply if the nuisance is determined to exist as the result of negligent conduct or actions inconsistent with generally accepted agricultural practices.
However, this protection comes with a significant caveat for pet farm animal owners. Massachusetts’s right-to-farm protections apply only to commercial farms of more than five acres. They can apply to small commercial farms of two acres (minimum) if they produce gross sales of at least $1,000 per acre annually. If you are keeping goats or chickens purely as companions or for personal egg production — with no commercial activity — you likely do not qualify for the nuisance exemption under Chapter 243, Section 6.
The zoning protection under Chapter 40A, Section 3 is similarly tied to commercial agricultural use. No zoning ordinance or by-law shall prohibit, unreasonably regulate, or require a special permit for the use of land for the primary purpose of commercial agriculture, aquaculture, silviculture, horticulture, floriculture or viticulture. Pet-level animal keeping, where the land’s primary purpose is residential rather than commercial agriculture, does not automatically receive this exemption.
Many Massachusetts towns have adopted their own local right-to-farm bylaws that can be more protective than state law. The purpose and intent of these bylaws is to explain the right to farm accorded to all citizens of the commonwealth under Article 97 of the Constitution and all state statutes and regulations thereunder, including MGL c. 40A, § 3, Paragraph 1; MGL c. 90, § 9; MGL c. 111, § 125A; and MGL c. 128, § 1A. Hadley, Fitchburg, Acton, and many other towns have passed such bylaws. If your town has one, it may provide additional protection against neighbor complaints about noise or odors from your animals — but only if you are operating in accordance with generally accepted agricultural practices.
Agricultural activities covered under local right-to-farm bylaws may occur on holidays, weekdays, and weekends by night or day and shall include the attendant incidental noise, odors, dust, and fumes associated with normally accepted agricultural practices. This can help if a neighbor complains about early-morning crowing or the smell of a goat pen — provided your operation is properly permitted and managed.
The bottom line: right-to-farm laws in Massachusetts offer meaningful protection for qualifying agricultural operations, but pet farm animal owners keeping small numbers of animals on residential lots should not assume these protections apply automatically. Staying compliant with your Board of Health permit, maintaining proper sanitation, and following local ordinances is your strongest legal footing. For context on how Massachusetts approaches animal regulation more broadly, the state’s animal laws and regulations page is updated regularly by the Division of Animal Health.
If you’re weighing whether farm animals are the right fit for your household, it also helps to read up on which animals tend to be more challenging to care for. Our guide on the worst animals to keep as pets covers species that often surprise owners with their complexity — a useful counterpoint before committing to livestock. And if you’re moving to Massachusetts with animals already in tow, the logistics of keeping your pets safe when flying them to a new home add another layer of planning to consider alongside state import requirements.
Keeping farm animals as pets in Massachusetts is entirely achievable — but it rewards those who do their homework first. Check your zoning district, secure your Board of Health permit, build compliant housing before the animals arrive, and stay current on your town’s specific ordinances. The rules exist to protect your neighbors, your animals, and ultimately your ability to keep farming on your own terms.