Fences and Gates by Setting

Gates and Fences for a Pet-Friendly Home

How to contain pets safely: gap sizes, digging barriers, latch design and the escape habits that tend to defeat an otherwise sound fence.

On this page
  1. Start with the animal
  2. Gaps and openings
  3. Digging
  4. Height and climbing
  5. Latches and gate design
  6. Safety for the animal
  7. Cats and other animals
  8. Local rules and neighbors

Start with the animal

There is no single pet-proof fence, because pets differ. A small, calm older dog may be content behind a low picket fence, while a young, athletic dog may clear a tall one. A cat is a different problem again. Before choosing or modifying a fence, think about your animal’s size, age, strength, jumping and climbing ability, and habits. Some dogs dig, some squeeze through impossible gaps, some chew, and some learn to open latches. Others are only tempted when something interesting, such as a squirrel or another dog, appears on the other side. Supervision matters too: a fence is a tool for containment, not a substitute for attention, and no fence is escape-proof.

If you are unsure, watch your pet in the yard for a while. The places it lingers, sniffs or tests are usually the places to reinforce. A trainer or veterinarian can help with behavior that drives escape attempts, such as boredom, anxiety or lack of exercise.

Gaps and openings

Look closely at the spaces in and under the fence.

  • Between pickets or bars. Small dogs and cats may fit through gaps that seem too narrow. Puppies are especially good at it. Measure your pet’s head and body, not just the spacing, and consider that a pet can grow. Closer picket spacing and fine mesh fix this.
  • Under the fence. A gap at the bottom, even a few inches, can be enough for a small animal. Keep the bottom close to the ground and fix washouts.
  • At gates. Gaps beside the hinge post or under the gate are common weak points.
  • At posts and corners. Where panels meet posts, shrinkage or rot can open slits.
  • Mesh size. For small animals, choose mesh with smaller openings or add a smaller mesh near the bottom.

There are no universal numbers that suit all pets, and regulations such as pool barrier rules specify their own limits for children, so measure against your own animal.

Digging

Digging is a common reason dogs escape. A few approaches that are frequently used:

  • A buried or flush barrier. Wire mesh or similar material attached to the base of the fence and extended outward along the ground can discourage digging at the line. Details vary by installation, and sharp edges must be avoided.
  • A concrete or paver strip at the base, or a mow strip, can block digging at the fence line.
  • Rocks or large pavers along the base sometimes discourage digging, though determined dogs can move them.
  • Dig-proof fence designs often combine these methods. For more detail, see the guidance on stopping dogs from digging.
  • Give the dog a place to dig. A dedicated digging spot or sandbox can redirect the habit.

Check the area after rain, since soil settles and gaps appear.

Height and climbing

Height requirements depend on the dog’s jumping and climbing ability. Some breeds can jump a surprisingly tall fence, and some will climb a chain link fence or scale one using furniture or a woodpile. Make sure nothing near the fence acts as a step, such as planters, bins, benches or firewood. Solid fences remove the view that might make a dog excited to leap; open fences allow dogs to see passers-by, which can lead to barking, but they also help neighbors see in. Consider the temperament of your animal. For a jumper, some owners add an inward-leaning top or a roller-style top, but these add cost and complexity and may not be allowed locally.

Latches and gate design

The gate is usually the weakest part of a pet fence. A good pet gate:

  • Closes and latches by itself. Self-closing hinges and a self-latching mechanism keep a gate from being left ajar. Gate latch types differ, and thumb latches can be opened by clever dogs. Magnetic or lockable latches and ones with a secondary catch help.
  • Is hung straight. A sagging gate leaves a gap at the bottom or latch side.
  • Has a tight fit between gate and post, with no space big enough for a nose or paw to widen.
  • Has a plan for visitors. The most common escape route is a guest, a delivery person or a worker who leaves the gate open. A sign asking visitors to keep it closed, and a habit of keeping pets inside when contractors are present, help. Some owners create a double-gate airlock arrangement.
  • Is lockable. Locks help if people could take pets or let them out.

Check hinges and latches regularly. Exposure to weather, loose screws and pet pressure can weaken them.

Safety for the animal

Fences can hurt pets if poorly designed. Avoid sharp wire ends, protruding nails or screws, broken boards and bars wide enough to trap a head. Be careful with electric fences and dog-containment systems; electric fencing has uses but also drawbacks, and the effects on animals and children should be understood before installing. Provide shade, water and shelter in the contained area. Watch for toxic plants and chemicals near the fence, and keep gates away from traffic where possible. Pools and ponds need their own barriers.

Cats and other animals

Cats climb well and are hard to contain with a standard fence. Options include fully enclosed catio spaces or specialized cat-proof fencing, depending on your situation. Small animals such as rabbits or chickens need predator-resistant materials as well as containment. Each of these topics has its own considerations.

Local rules and neighbors

Some places set rules about fence height, dangerous dog enclosures and animal containment. Check regulations before you build. Talking to neighbors about shared fences matters, since a pet-friendly fence may be taller or sturdier than they would choose. Written agreements prevent surprises.

The complete guide to fences and gates by setting

Fences and Gates: A Guide to Home Security for New Homeowners
Read the guide

Keep exploring

Guides from other topics

All topics →