Most barking stops when you do two things: block what the dog sees and hears as much as you can, and teach one specific job to do when the trigger happens, then pay for that job every single time for a few weeks. Yelling, shake cans, spray collars and ultrasonic boxes skip both of those steps, which is why they wear off. That's the short answer. The rest of this page is the long one.
We'll take door barking first, because that's what most people who type this into a search bar are dealing with, and the plan for it carries over to almost everything else: the window, the mail truck, the hallway, the guest on the couch.
Key takeaways
- Block what the dog sees and hears, then teach one job like going to a mat, and pay for it every time for weeks.
- Tonight: cover the front window to sill height and scatter treats in the kitchen at every knock or bell, before opening the door.
- Yelling, shake cans, spray or shock collars and ultrasonic boxes interrupt the bark without touching the reason, so they wear off or backfire.
- Most dogs go to the mat on the bell within two to three weeks at five reps a session, two or three sessions a day.
- If barking changes suddenly or an older dog starts at night, see your vet first; pain, hearing loss and cognitive change show up as barking.
At a glance
Days 1 to 3: find the pattern
- 1
Write down every bark burst for 3 days: time, what set it off, how long it lasted, what you did.
- 2
Sort each burst into one bin: alert (window, door), demand (you), boredom (alone), fear, or play.
- 3
Count which bin has the most entries. That is the one you work on first. Leave the others for now.
- 4
Note where your dog was standing. A dog that barks at the front window has a window problem.
- 5
Time the longest burst with your phone. If you can predict the trigger, you can get ahead of it.
Why does my dog bark at the door?
Dogs bark because something changed and they want you to know about it, or because they want something from you, or because barking worked last time. At the front door it's usually all three at once.
Something changed: footsteps, a truck idling, a knock, the bell. The dog's hearing is a lot better than yours, so the bark often starts before you've heard anything. That's the "my dog barks at nothing" complaint, and it's almost never nothing. It's the neighbor's garage door, a dog three streets over, someone's car door. If you want to check, next time your dog barks at "nothing," go quiet and listen for ten seconds.
Wanting something from you: the dog wants you up, wants you at the door, wants the thing on the other side to go away or come in. You get up. The dog got it.
It worked last time: the mail carrier comes to the door, the dog barks, the mail carrier leaves. Every day. From the dog's side, the barking drives him off, and it has never once failed. The same thing happens with every delivery, every passerby, every dog walked past the window. Nobody stays. The barking gets credit for all of it.
That last one is the piece most owners miss, and it's why "Quiet" and "Enough" and "Hey" don't hold. When you shout, you also get up and go to the door, which is what the dog wanted, and then the thing outside leaves anyway, which is also what the dog wanted. Your voice is just more noise in the middle of a sequence that ends well for the dog.
You can read a bark if you watch the body with it. Low, spaced-out barks with a stiff body, weight forward, tail up and still: that's an alarm bark, the dog is telling you there's a problem and wants backup. Higher, faster, repetitive barking with bouncing or spinning, tail going: excitement or frustration, the dog wants to get to the thing and can't. One or two barks and then staring at you: a request. The dog wants dinner, the ball, the door opened, you off the phone. That's the attention bark, and it's the easiest to fix and the easiest to accidentally build, because answering it even one time in five keeps it going. When the doorbell rings and the alarm barking starts, here is how to handle a dog barking at the door.
A few related questions we get a lot.
Dogs do not get tired of barking in any useful sense. They wind down once the trigger is gone, and the next time starts fresh. Letting a dog "bark it out" at the window for twenty minutes is twenty minutes of practice.
A dog barking in its sleep, little muffled woofs with paw twitching, is just dreaming. Leave it alone and don't wake it.
Some dogs rarely bark. If yours never has, that's normal for the dog and not a problem. If a dog that used to bark goes quiet suddenly, or an older dog starts barking at night when it never did, or the barking changes character in a week, see your vet before you train anything, because pain, hearing loss and cognitive change in older dogs all show up as barking first.
Puppies bark at new things, at you when they want out of the pen, and at night the first week. Adolescent dogs, from about six months on, bark more than they did as small puppies because they're bolder and they've had time to learn what works. A puppy barking "so much" is mostly a puppy that has found out barking gets a reaction, and a puppy that spends the afternoon alone at a window.
Read the body with the bark and the fix follows.
| What you see | What it usually means | What to do |
|---|---|---|
| Low, spaced-out barks, stiff body, weight forward, tail up and still | Alarm bark; the dog is reporting a problem and wants backup | Block the view, scatter treats for the sound, send to the mat |
| Higher, faster, repetitive barking with bouncing or spinning, tail going | Excitement or frustration; the dog wants to reach the thing and can't | Add distance or a gate, pay for quiet, send to the mat |
| One or two barks, then staring at you | Attention bark; a request for dinner, the ball, the door, you | Don't answer the bark; answering it one time in five keeps it going |
| Muffled woofs with paw twitching while asleep | Dreaming | Leave the dog alone and don't wake him |
| A sudden change in barking, or an older dog barking at night for the first time | Possible pain, hearing loss or cognitive change | See your vet before you train anything |
| Barking, pacing, drooling, scratching the door after you leave, chew untouched | Separation anxiety, not a door problem | A different plan built on very short absences; no bark collar |
How do I stop my dog barking at the door?
Tonight, block the dog's view of the walkway and keep a jar of small, good treats by the door, scattering a handful on the kitchen floor at every knock or bell, before you open it. Then teach the dog that the bell means go lie on a mat six feet back, built up in short sessions over two to three weeks.
Here is what to do tonight, before you teach anything.
Block the view. If your dog can see the walkway or the street from the front room, cover the bottom of the window with frosted film cut to sill height, or move the chair he stands on, or close that room off with a baby gate. Dogs that bark at the door are usually barking at what they see coming to it. Take away the preview and you've taken away half the barking before you've done one rep.
Put a jar of treats by the door. Something small and good: pea-sized pieces of cheese or boiled chicken, not kibble. From now on, every knock and every bell gets a handful scattered on the floor in the kitchen, or wherever is six to ten feet from the door. Not handed to the dog, scattered, so he has to put his nose down and hunt. You do this whether he barked or not. You do it before you open the door. The point is to teach the dog, over a couple of weeks, that the bell predicts food on the kitchen floor, and that the food is never at the door. We see this often with apartment dogs, where every hallway sound acts like a knock, so apartment dog barking causes and fixes may help.
That's it for tonight. Those two things alone cut the barking for most dogs within days, and they cost nothing.
The actual training is a mat. You teach the dog that when the bell rings, his job is to go lie on a mat and stay there until you release him. Done right, it replaces the barking, because a dog lying on a mat eating cheese is not a dog bouncing at the door.
Put the mat somewhere the dog can see the door but isn't in the swing of it. Six feet back, off to the side, is about right. Then:
- Toss a treat onto the mat. Dog steps on, you say nothing, you feed two or three more treats while he's on it. Toss one off to reset. Ten reps.
- Wait for him to go to the mat on his own. When he does, feed on the mat. Ten reps. Now add the word, "mat," just before he moves.
- Ask for a down on the mat, feed, then take one step away and come back and feed. Then two steps. Then walk to the door and back. Then touch the handle and come back. Then open the door an inch and close it. Feed on the mat every time. If he gets up, no problem, just send him back and make the next rep easier.
- Add the sound. Start with a soft knock on the inside of the door while he's on the mat. Feed. Then a real knock from outside by someone in the family. Then the bell, recorded on your phone and played at low volume, then louder, then the real bell.
Five reps per session, two or three sessions a day. Most dogs are going to the mat on the bell inside two to three weeks if nobody's rushing step four.
What you do when the bell rings for real and he's barking before you've gotten this far: don't shout. Go to the kitchen. Say "mat" or "cookies" once in a normal voice, scatter the handful, and go to the door while he's eating. He'll come back. Scatter again. Boring, but it works, and it keeps him from practicing the full sequence.
While you're training, put a note on the bell asking people to text instead, or disconnect the chime for three weeks. Every real visitor during this period who gets the old barking undoes some of the work.
Two things not to do: don't hold his muzzle, don't throw anything, don't use a can of pennies. These interrupt the bark, sometimes, and they teach the dog that the bell predicts you getting weird, which makes most dogs louder, not quieter.
For a puppy, same plan, shorter sessions, and you lean harder on management. A ten week old puppy with no window access and a scatter at every knock often never develops door barking at all.
If your dog barks at "everything," pick the door. Get the mat solid there. Then the same mat and the same scatter go to the window, the yard, the hallway. You don't need a separate plan for each thing, you need one job the dog knows cold.
The full doorbell sequence with the timing laid out is on how to stop dog barking at doorbell, and the mat work by itself, with the week by week plan, is on place command for doorbell.
Mail carriers, windows, knocks and the TV
Every one of these uses the same fix as the door: block the view, scatter treats for the sound before the bark, and send the dog to the mat. For the mail carrier use the schedule and be in the front room with the treat jar before the truck arrives; for windows, film the glass to a height the dog can't see over and move his bed to a room facing the yard.
The mail carrier is the hardest version of door barking because it happens every day at nearly the same time, and the carrier always leaves. Your dog knows the truck. He probably knows the sound of the brakes two houses down. By the time the carrier is at your box he's been winding up for a minute.
Use the schedule. If mail comes between one and two, you're in the front room with the treat jar at a quarter to one. Truck brakes, scatter. Footsteps, scatter. Mailbox lid, scatter. You are paying the dog for every sound in the sequence before he's got a bark out. If you can't be home at that time, the dog shouldn't have access to that room at that time, and a mailbox at the curb instead of on the house is worth asking about.
Delivery drivers are the same problem with no schedule. The fix is the same: block the view, scatter for the sound, and for the ones that come to the porch, a note asking them to leave the package without knocking. Most will.
The window is where most "my dog barks at everything" dogs do their work. People walking past, dogs, squirrels, the recycling truck. A dog who has the front window all day is rehearsing all day, and no amount of evening training catches up with that. Film the window to a height the dog can't see over. Move the couch. Close the blinds on that side and open the ones at the back. Give him a bed in a room with a view of the yard instead of the street. This one change does more than any training for window barkers, and it does it in a day.
Knocks are different from the bell because they come from so many places: a neighbor, a contractor, a kid selling something, someone knocking on the house next door. Practice knocks yourself, from inside, on the inside of the door, at a volume where the dog notices but doesn't bark, and pay. Then from outside. Then a family member at random times. The dog should hear knocks as often as he hears the bell.
The TV: dogs on screen, doorbells on screen, a knock in a show. Mute it when you see a dog coming, send to the mat, pay. If your dog barks at the TV a lot, sit him on the far side of the room from the screen for a while, with a chew. Some dogs grow out of this as the screen stops being new. Some don't, and those dogs just watch less TV.
Barking at people and dogs on walks is its own thing and mostly about distance. The dog that barks at a person at twenty feet is usually fine at fifty. Work at the distance where he can see and not bark, pay for looking and looking back at you, and close the distance over weeks. If he's lunging and can't eat, you're too close. Cross the street. There's no shame in it. If he's lunging at people rather than just barking at them, that's aggression toward people, and you should work with a certified professional through the IAABC or CCPDT directories before you try to close any distance on your own.
The daily routine for the delivery problem is on dog barks at delivery driver, and the window fix, which we'd do before anything else if that's your dog, is on dog barks at window.
How do I stop my dog barking at guests?
Put the dog behind a baby gate with a frozen stuffed food toy ten minutes before anyone arrives, and bring him out on a leash or to the mat once the guest is seated. The guest ignores him for two full minutes, and if he goes back to barking, he goes back behind the gate without fuss and tries again in five minutes.
Guests are the hardest reps because you can't control them, they talk to the dog, and they're nice about it, which makes it worse.
Our routine for a dog that barks at visitors looks like this.
Before anyone arrives, the dog goes behind a baby gate in another room with something that takes a while: a stuffed and frozen food toy, a lick mat, a bully stick. Not at the moment the bell rings. Ten minutes before. The guest comes in, sits down, gets a drink. The house is settled.
Then the dog comes out on a leash, or to the mat, and the guest does nothing. No eye contact, no "hi puppy," no hand out. We tell guests: ignore the dog for two full minutes and we'll tell you when you can say hello. Most dogs sniff, bark once or twice, and settle within that window when nobody's feeding the excitement. The guest can drop a treat on the floor near their feet, not hand it over, once the dog is quiet.
If the dog goes back to barking, back behind the gate with the food toy, no fuss, try again in five minutes. You're not punishing him. You're taking him out of a situation he can't handle yet and bringing him back when he's got a better chance.
Jumping on guests is the same problem with the front feet. Leash on, feet on the floor gets the treat, feet on the guest means the guest turns away and you step back. Four feet on the floor is the only position anyone pays attention to.
Dogs that bark at guests for the whole visit, from the back of the room, and won't come closer are usually nervous rather than excited. For those, the gate and the chew are not a stopgap, they're the plan for a long time, and the guest is told to never approach. Let the dog choose the distance. If he comes over, fine. If he lies down at the far end of the room and watches, also fine.
If your dog has bitten anyone, snapped at a guest, or barks at people in a way that frightens you, work with a certified professional through the IAABC or CCPDT directories rather than this page, because that needs someone in the room with you.
The whole routine, including a card you can hand to guests at the door, is on dog barks at visitors.
Apartments, hallways and night
In an apartment, run a white noise machine or fan by the door, add a rug and draft stopper, and scatter a treat on the floor for every footstep or key jingle in the hallway, before any bark. Night barking depends on the cause: a new dog or puppy needs the crate in your bedroom, a dog barking at sounds needs white noise and a bed away from the window, and an older dog that starts barking at night needs the vet first.
Apartments have a specific problem: the door is a few feet from a hallway that twenty other people use, and every one of them sounds like a visitor. Footsteps, keys, a neighbor's door, the stairwell door, someone's dog. Your dog isn't wrong that it's happening. He's wrong that it concerns him.
A white noise machine or a fan by the door, running all day, cuts the amount of hallway the dog can hear. A rug and a draft stopper at the bottom of the door help more than you'd think. The mat goes at the far end of the apartment, not near the door.
Then you do the scatter for hallway sounds, exactly like the bell. Footsteps go by, treat on the floor. Keys jingle, treat. You are not waiting for a bark to do this, you're paying for the sound itself, before the bark. Do this for a week when you're home and the barking at footsteps mostly stops, because footsteps now mean food is about to appear at your feet, which is not where the hallway is.
Talk to the neighbors. A short note on the door, or a conversation, saying you know about the barking and you're working on it, with your number, buys you weeks of goodwill. People complain about the owner who doesn't seem to care. They rarely complain about the one who told them first.
Night barking has a handful of causes, and they need different fixes.
A puppy or a new dog barking the first few nights is usually a dog that's alone for the first time. Move the crate into your bedroom. Not the hallway, the bedroom, where he can hear you breathing. Cover three sides. He'll settle in a few nights. You can move the crate out later, a few feet at a time.
A dog barking at two in the morning at sounds is a dog that hears something, and white noise plus a crate or bed away from the window fixes most of it. A late walk and a chew before bed help too.
Crate barking during the day is different. Usually it's a dog that was put in the crate and left before he'd learned the crate was fine. Back up: meals in the crate with the door open, then door closed for the length of a meal, then five minutes with a chew while you're in the room, then ten with you out. Don't let him out mid-bark if you can help it, but don't leave a barking dog in a crate for an hour and call it training. If the crate is a wall he's been barking at for twenty minutes, he's not learning to settle, he's learning the crate is where bad things happen. And nobody's crate day should be nine hours.
Barking when you leave is the one to take seriously. Set your phone up to record the first thirty minutes after you go. A dog who barks for a minute and settles with a chew is fine. A dog who barks, paces, drools, scratches at the door and doesn't touch the chew is panicking, and that's separation anxiety, which is a different plan built on very short absences and a lot of patience. The bell plan won't fix it and a bark collar makes it worse.
For older dogs that start barking at night, the vet visit comes first, as we said above. Once that's done, a night light, a predictable bedtime routine and a bed in your room get most of them through it.
What gear helps with barking, and what should I skip?
Skip shock, vibration and citronella collars, ultrasonic boxes, whistles used as a stop button, and muzzles, because none of them touch the reason for the bark and several make it worse. What helps is frosted window film, baby gates, a white noise machine, a treat jar by the door, a training-only mat, a frozen food toy and a way to ring your bell on cue; those just remove rehearsals so the mat, the scatter and the reps can do the teaching.
Bark collars come up in nearly every conversation about this, so here's where we stand. We don't use shock, vibration or citronella spray collars, and we don't recommend them for any dog, including small dogs, including "just for the hallway." They punish the bark without touching the reason for it, so the dog is still scared or still excited, just quieter about it for a while. The common fallout is a dog who connects the shock or the spray with the thing he was looking at, the person at the door, the kid in the hallway, and starts to dislike that thing more than he did. We see those dogs. They're harder to fix than they were before the collar. If a dog is barking because he's frightened of the person on the other side of the door, the collar teaches him the person makes bad things happen.
Ultrasonic boxes, the kind you put on the counter or hang on the fence, are unreliable. Some dogs don't react at all. Some react the first few days and then stop. Some are bothered by it and aren't the dog that was barking. A dog mid-bark at the mail carrier is not going to notice a tone, and the ones that do notice it are often the sound-sensitive dogs who shouldn't be subjected to it.
A dog whistle is a cue, not a stop button. You can teach a recall to a whistle, and that's a fine thing to do, but blowing one at a barking dog does nothing unless he's been taught what it means, and what it means should never be "something unpleasant is coming."
Muzzles don't stop barking. Dogs bark through a basket muzzle without trouble. A basket muzzle is a safety tool for the vet or the groomer or a dog with a bite history, and if you need one for that, the dog should be taught to wear it happily, with treats through the basket, over weeks. It isn't a barking tool.
What actually helps, and what's in our house:
- Frosted window film, bought by the roll, cut to sill height.
- Two baby gates, one for the front room and one for guests.
- A white noise machine by the door, and a second one in the bedroom for night barkers.
- A treat jar by the door and another in the kitchen, refilled every evening.
- A mat the dog only sees during training, so it stays meaningful.
- A frozen stuffed food toy and a lick mat, for guests and for the crate.
- A doorbell you can ring from your phone, which some smart doorbells do, or a recording of your actual bell played from a speaker.
- A draft stopper for the apartment door.
None of that teaches the dog anything by itself. It takes away the rehearsals and gives you a quiet house to train in. The teaching is still the mat, the scatter and the repetitions, and there isn't a product that replaces those.
We went through what's known about bark collars in detail on do bark collars work, and if you've already got one in the drawer, that's the page to read before you put it on.
If you want the whole plan laid out one day at a time, with what to do in each session and what to skip, that's what our guide Calm at the Door in 21 Days is for.
Frequently asked questions
Can you train a puppy to stop barking?
Yes. Use the same plan as the door section with shorter sessions, and lean harder on management: no window access, and a scatter of treats in the kitchen at every knock. A ten week old puppy handled this way often never develops door barking at all, because barking never gets the chance to work.
How to stop puppy barking for attention?
Stop answering it. One or two barks and then staring at you is a request, and it keeps going because it works, even if you only answer it one time in five. Ignore the bark, give the puppy a job instead, like going to a mat, and pay for that. Attention barking is the easiest kind to fix.
How to stop dog barking in seconds?
In the moment, go to the kitchen, say "mat" or "cookies" once in a normal voice, and scatter a handful of treats on the floor. The dog comes to eat and the sequence stops. Nothing fixes barking in seconds for good; yelling, shake cans and collars wear off. Blocking the view and the scatter cut it within days.
How to stop dog barking at every noise?
Pay for the sound before the bark. Footsteps, keys, a truck idling: a treat on the floor every time, whether he barked or not, for a week. Add a white noise machine or fan by the door and block the window. Then get the mat solid at the door and carry that one job to every other trigger.
How to stop dog barking at strangers?
On walks it is about distance. Find the distance where he sees the person and does not bark, pay for looking and looking back at you, and close it over weeks. If he is lunging and cannot eat, cross the street. If he lunges at people rather than barks, work with a certified professional before closing distance on your own.
How to get a yappy dog to stop barking?
The same way as any other dog: block what he sees and hears, scatter treats for the trigger before the bark, and teach him to go to a mat and stay there. Small dogs do not need a different plan or a collar; we do not recommend shock, vibration or spray collars for any dog, including small ones.
Stop dog barking sound?
No sound reliably stops a barking dog. Ultrasonic boxes are unreliable: some dogs ignore them, some stop reacting after a few days, and the sound-sensitive dogs they bother are often not the ones barking. A whistle only means something if you taught it. The useful sound is a recording of your own bell, played softly during mat training.

Calm at the Door in 21 Days
The 21-day plan for dogs who bark at the doorbell, the window and every visitor. 10 minutes a day, reward-based, 6 printable tools.
See the plan →Not sure yet? Take the free 2-minute quiz
Sources
- Juarbe-Díaz SV (1997). Assessment and treatment of excessive barking in the domestic dog. Vet Clin North Am Small Anim Pract.
- Lord K et al. (2009). Barking and mobbing. Behav Processes.
- AVSAB (American Veterinary Society of Animal Behavior). Position statements on humane training, punishment and puppy socialization.
Educational content from the CalmDoor team. Not veterinary or behavioral advice for your specific dog. If your dog has bitten, or behavior changed suddenly, see your veterinarian and a certified professional.











