Guides

Dogs

Dog barking at the window or fence: what actually helps

Every walker, delivery driver and squirrel gets announced. Here's why window and fence barking builds up over time, and a calm plan to bring it down.

Treatwise Pet School · Updated November 24, 2026 · 6 minute read

A dog looking out of a window at home

Why it gets worse

Barking at passers-by is normal alert behaviour. The trouble is that it seems to work, from your dog's point of view. They bark, and the person walks away. The "intruder" leaves every single time, so the barking gets stronger with practice. A dog who spends hours at a window can rehearse it dozens of times a day.

So the plan has two parts: cut down the practice, and teach something to do instead.

Step 1: Less to watch

Step 2: A better spot

Give your dog a comfy bed in a quieter part of the home, and make it the place where good things happen: chews, food puzzles, a few treats now and then for lying there calmly.

Step 3: Teach them to check in with you

  1. Practise a "look" first. In a quiet room, say your dog's name once. When they look at you, say "yes" and give a treat. Repeat until it's quick and happy.
  2. Catch the moment before the bark. When your dog notices someone outside, before they bark, say "yes" and treat. Soon, seeing a person becomes a cue to look at you for a treat.
  3. If they're already barking, call them away cheerfully. Walk away from the window as you call, and reward them for coming. Then give them something to do, like a chew on their bed.
  4. Try a "thank you". Some dogs settle faster when they're acknowledged. Let them give one or two barks, walk over, glance out, say "thank you" calmly, then walk away and reward your dog when they follow.
  5. Reward the quiet. Calmly reward the times your dog sees something and stays quiet. Those are the moments you want more of.

What not to do

Is it working?

Count the barking spells for a few days before you start, then keep counting once a day. Look for fewer spells, shorter spells, and your dog turning to you more often. Expect weeks, not days. The view-blocking usually makes the quickest difference.

When to get help

This guide is general information. It isn't a substitute for advice from your vet.

Sources