Home › Barking at the door

How to Stop a Dog Barking at the Door, Doorbell and People

Updated October 31, 2026 · General information, not veterinary advice

Some links on this page are affiliate links. If you buy through them we may earn a commission at no extra cost to you. It never changes what we recommend. How we make money.

The short answer: Door and window barking is alert barking. Your dog is doing a job. Block the view, mask noise, and teach a new job: when the doorbell rings, go to a mat for a treat. Practice with fake doorbells before real visitors.

Why it keeps happening

From your dog's side, barking works. The delivery driver always leaves. Every success makes the habit stronger, so the first step is to stop the rehearsals while you train.

Manage the triggers

Teach "go to your mat"

  1. Put a mat or bed a few steps from the door. Reward your dog for stepping on it, then for lying down on it.
  2. Add a cue, such as "place."
  3. Play a recorded doorbell very quietly. Cue "place" and reward. Repeat until your dog heads to the mat on its own when it hears the sound.
  4. Raise the volume over several days, then knock on the real door yourself.
  5. Bring in a friend as a practice visitor. Keep a treat pouch by the door.

Barking at people through the window or fence

Try the "thanks" method. Let your dog bark once or twice, say "thanks," and call them to you for a treat. You're telling your dog you heard the alert and you'll take it from here. Over time, most dogs start turning to you instead of barking on.

Not sure why your dog is barking?

Take our free 60-second quiz. It matches your dog's barking to its most likely cause and gives you a plan for that type.

Take the barking quiz

Common questions

Why does my dog bark at every person walking by?

Your dog is guarding its territory and announcing people. Each time the person leaves, your dog thinks the barking worked, so it gets stronger. Blocking the view breaks that loop.

How do I stop my dog barking at the doorbell?

Record your doorbell or use a doorbell sound on your phone. Play it quietly, reward your dog for staying calm or going to a mat, and slowly raise the volume over several days. Then practice with a friend at the real door.

Want a step-by-step plan instead of piecing tips together?

Brain Training for Dogs is an online course by certified trainer Adrienne Farricelli (CPDT-KA). It uses reward-based games to build focus and self-control, which is what most barking problems come down to. It costs about $47, one time.

See the courseRead our review first

Related guides

Sources
  1. PetMD: How to stop a dog from barking (Teresa Manucy, DVM; reviewed by Erika Lessa, CPDT-KA)
  2. American Veterinary Society of Animal Behavior: Why you need to reward your dog in training