Garden and Animal Fencing

Fencing for Gardens and Animals: A Practical Overview

Learn how to match a fence to the animal or pest you want to manage, from deer and rabbits to dogs, cats and chickens, with height, mesh and gate basics.

On this page
  1. Start With the Animal, Not the Fence
  2. Keeping Animals Out of the Garden
  3. Keeping Animals In
  4. Choosing Materials by Job
  5. Gates, Ground and Corners
  6. Practical Planning Questions
  7. A Fence Is Part of a System

Start With the Animal, Not the Fence

A fence that works well for one animal can be useless against another. A tall solid privacy fence keeps a dog in but does little against a rabbit squeezing through a gap at ground level. A low wire fence may stop a rabbit but not a deer. Before comparing materials, work out what you are trying to keep out, or keep in, and how that animal behaves.

Most animal problems come down to four behaviors: jumping, climbing, squeezing through gaps, and digging. Some animals do more than one. A fence plan is mostly a matter of deciding which of those behaviors you need to block, then choosing the height, opening size and ground detail that handles them.

Keeping Animals Out of the Garden

Deer

Deer are strong jumpers, so height is the main issue. Barriers meant to stop them are often much taller than an ordinary yard fence, and many gardeners find that lower fences are cleared easily when deer are hungry. Because deer tend to avoid jumping into spaces they cannot see across or land in, some designs use two fences set apart or a sloped barrier. Pressure varies a great deal by region and season, so local experience matters. The details are covered in the article on keeping deer out of the garden.

Rabbits and groundhogs

Small pests are the opposite problem. Height matters less than opening size and what happens at ground level. Rabbits can pass through surprisingly small gaps, and groundhogs dig under barriers. The usual answer is a fine mesh with the bottom edge buried or bent outward. This is the focus of rabbit-proof fencing for vegetable beds.

Other wildlife

Raccoons, opossums and similar animals climb and are good with their paws, so a plain fence may not stop them. General wildlife fencing often relies on a combination of height, a smooth or leaning top, and sometimes a low-voltage electric wire. Rules for electric fencing differ by location, and it should be installed with warning signs and with attention to children and pets, so check local requirements first.

Keeping Animals In

Dogs

A dog fence has to handle jumping, climbing and digging, and the right balance depends on the dog. A small, calm dog may need little more than a secure gate. A determined digger or athletic jumper needs more height and a plan for the base of the fence. Gaps beneath panels and at gates are common escape points. If you are looking at pet-friendly fencing in general, think about the specific dog rather than a typical one. A separate area built just for the dog is a different project, which is covered in the article on planning a dog run area.

Cats

Cats climb, so a normal fence rarely contains them. Containment systems usually involve a fully enclosed structure or a top that curves inward, which is why many owners choose an enclosed outdoor space with mesh on all sides, including the roof. These enclosures are discussed in the article on catios and cat enclosures.

Chickens and other poultry

Poultry fencing has two jobs at once: keep birds in and keep predators out. Predators are usually the harder job. A fence that holds chickens may offer little protection against raccoons, foxes, dogs, hawks or owls. Strong small-opening mesh, a covered top and a skirt at the ground are the common ingredients, and they are described in the guide to fencing a chicken run against predators.

Choosing Materials by Job

Job Common material approach
Tall barrier against deer Tall posts with woven wire or mesh, sometimes plastic deer netting
Rabbits and small pests Small-opening wire mesh, buried or bent outward at the base
Dog containment Solid panels or a welded wire fence, with a secure base
Cat enclosure Framed enclosure with mesh on the sides and the top
Poultry predator protection Heavy small-opening mesh on the sides, top and ground edge

These are general patterns, not specifications. Product strengths and mesh sizes vary, so read the manufacturer’s information for the exact material you buy.

One caution on mesh: lightweight poultry netting, often called chicken wire, keeps birds contained but is generally not strong enough to resist determined predators. Welded wire with a small opening is typically stronger, though gauge and coating matter for lifespan.

Gates, Ground and Corners

Most failures happen at the weak points, not along the middle of a panel. Check these before you build:

  • Gates. A gate that does not close firmly, or that leaves a gap at the bottom, is the easiest route for an animal. A gate used every day should swing freely and latch without effort, or people will leave it open. Good gate hardware matters here, and self-closing hinges can help with pets and small animals.
  • The base. Gaps under the fence line, uneven ground and soft soil invite digging. A buried edge, a concrete footer or a flat apron of mesh laid on the ground can all help.
  • Corners and transitions. Where two types of fence meet, or where a fence meets a wall or building, small openings tend to appear.
  • Posts. Posts must be set deep enough for the height of the fence. Taller fences catch more wind, so post depth and strength matter more as height increases.

Practical Planning Questions

Before spending money, ask:

  1. Which animal is actually causing the problem? Look for tracks, droppings or the pattern of damage. Guessing wrong is a common reason a new fence fails.
  2. Is the goal keeping the animal out, in, or both?
  3. How much access do people need? A daily-use area needs convenient gates.
  4. Do the rules allow it? Height limits, materials, setbacks and permits vary by town, and homeowner associations may have their own requirements. Check local fence regulations and any HOA approval requirements before building, and have your property lines confirmed.
  5. What is underground? Before digging post holes or burying mesh, arrange utility locating through your local service.

A Fence Is Part of a System

Even a well-built fence works better with some supporting habits. Remove fallen fruit, store feed in sealed containers, and close poultry coops at night. Plants outside the fence can also change animal behavior. No fence guarantees that an animal will stay out or in, and results depend on the animal, the season and local conditions. Plan to inspect the fence regularly and repair small gaps quickly, since animals tend to find and enlarge them.

Keep exploring

Guides from other topics

All topics →