The short answer
A dog that barks at people through the window is reacting to what it sees. The fastest fix is to limit the view while you teach a calmer habit. Reward the dog for looking and staying settled, rather than correcting it for barking.
Why it happens
Windows give dogs a view of the outside world, and many dogs take their job as watchdog seriously. A person walking past may feel like a threat or like an invitation to play. Each bark can also feel like it worked, since the person often keeps walking. That makes the habit easy to repeat.
Some dogs bark at other dogs, cyclists, or delivery drivers through the glass. The same approach applies.
Limit the view
Start by changing what the dog can see:
- Apply frosted or privacy window film to the lower panes.
- Close the blinds or curtains during the times the dog is most reactive.
- Move the dog’s bed or resting spot to a room without a street-facing window.
- Use a gate or a closed door to keep the dog away from the window when no one is home.
These steps are not a cure, but they reduce practice. Each time the dog does not get to bark at the window, the habit gets a little weaker.
Teach a calmer habit
Give the dog a new job to do when it sees something outside. A mat or bed that it goes to on cue is a good option. Practice this at home, when nothing is happening, and reward the dog for going there.
When a person passes the window, you can call the dog to the mat and give a treat for staying there. If the dog barks, wait for a quiet moment and then reward. Keep the rewards quick and frequent while the dog is learning.
Change the reaction over time
Over time, you can help the dog feel less worried by the sight of people outside. Use a distance where the dog notices the person but stays calm. Reward calm looks at the window, then move the dog back if it starts to react. Gradually reduce the distance as the dog stays settled.
This works best when the dog is not already very worked up. If the dog is reacting strongly, begin at a greater distance or with the blinds partly closed.
What to avoid
- Shouting at the dog. It can add excitement and may not stop the barking.
- Letting the dog practice barking. Each session at the window strengthens the habit.
- Using a bark collar as the main fix. These tools do not address the reason for the barking.
When to get help
If the barking includes lunging at the glass, snapping, or aggression toward people or other dogs, get help from a certified trainer or behavior professional. Window reactivity can overlap with other behavior problems, and a professional can help you build a plan that is safe for everyone.
For general barking help, our article on how to stop a dog from barking covers the broader steps.