Put a camera on the dog before you change anything. Not because we doubt the barking, but because the fix depends on what it looks like, and you can't see that from the car. A phone propped on a shelf on a video call to a second phone works. So does any cheap pet camera. Leave for 20 minutes the way you normally do and watch the whole thing.
Watch what he actually does
Three things we're looking for.
When does it start. If the barking starts before the door is fully shut, or within a minute of it, that's a different problem than barking that starts at minute 25 because the neighbor's dog went past.
What else is he doing. Pacing from the door to the window and back, panting with his mouth wide open in a cool room, drooling onto the floor, scratching at the door frame, ignoring a treat he'd normally take: that cluster points to real distress. A dog who barks for a bit, sniffs around, lies down, gets up, barks at a truck, lies down again, is usually bored or reacting to sounds. Not thrilled about being alone, but not panicking.
Does it stop. Some dogs bark for three or four minutes after the door closes and then settle for the rest of the afternoon. That's worth knowing, because it's a much smaller job.
If anything looks sudden, like a dog who was fine for years and started this last month, or if you see heavy drooling, vomiting, or a dog who has chewed through a door, have a vet check him before you start training. Pain and a few medical conditions show up as exactly this behavior, and no amount of practice fixes a sore back.
Also notice where he is. A lot of dogs who panic in a crate do noticeably better gated into a bathroom or bedroom. If your dog is barking in the crate when you leave, film one absence crated and one absence loose in a room and compare. Our page on barking in the crate covers the crate side of this in more detail.
If it's panic
This is the slow version, and there isn't a fast one that works.
The method is graded departures. You find the length of absence your dog can handle without distress, which for some dogs is 20 seconds, and you practice absences under that length until they're dull, then make them slightly longer. The barking isn't the thing you're training. The dog's comfort is. The barking drops as the comfort goes up. A common follow-up is the barking that happens outdoors, which is covered in how to stop dog barking outside.
Step one, before any departures: the cues. Keys, shoes, coat, bag, the sound of the garage door. Dogs who panic usually start getting worried at the first cue. So for a week or so, pick up your keys and sit back down. Put your coat on and make a coffee. Open the front door, stand in it, close it, don't leave. Do these a handful of times a day at random until he stops lifting his head for them.
Step two: short absences, under threshold. Walk out, shut the door, count to ten, come back in. No speech on the way out, no greeting on the way in, just come in and go about your business. Camera running on your phone so you can see him the whole time. If he's calm at ten seconds, do a few more at ten, then try twenty.
Step three: mix the durations. Don't go 30 seconds, 40, 50, 60 in a row, because the dog learns that every absence is longer than the last and starts worrying earlier. Do something like 45 seconds, 15, 90, 30, 2 minutes, 20 seconds. Five to eight departures in a session, one or two sessions a day, and stop while it's still going well. Write them down. You'll forget otherwise.
The part people hate: during this, don't leave him alone past what he can handle. If his threshold is three minutes and you have to go to work, that means daycare, a sitter, a neighbor, taking him with you, or working from home for a stretch. Every full-length absence where he barks for an hour sets the practice back. We won't pretend this is convenient. It's why most attempts at this fail, and it's also why the ones that work, work. Thin walls and a neighbor home at noon make every bark feel louder, so read about what drives apartment dog barking.
Don't count on a frozen food toy to get a panicking dog through. Most won't eat when they're scared, and the ones who do eat it and then panic when it's empty. Food toys are for the next section.
How long. Weeks for a mild case, months for a serious one, and it will go up and down. A bad day where he's at 2 minutes after being fine at 10 last week is normal. You drop back and rebuild. If the panic is severe enough that you can't find a threshold at all, or he's hurting himself, work with a certified professional (IAABC or CCPDT) who takes separation cases. Many of them do this entirely over video, which is the right setup for this problem anyway.
If it's not panic
Easier. Not nothing, but easier.
The dog who barks at sounds: close the blinds, move him to a room on the quiet side of the house, run a fan or a white noise machine near where he settles. You're removing the trigger, not training through it. If the delivery truck or the doorbell is what sets him off and he's fine otherwise, that's door barking, and you work on it while you're home; our free doorbell trainer plays the sounds at low volume so you can pair them with food.
The bored dog: a real walk with sniffing before you leave, not a quick pee. Then a food puzzle or a stuffed toy he only gets when you go. Scatter a handful of kibble across the kitchen floor on your way out so he's busy for the first ten minutes, which is when most bored-dog barking happens.
The dog who barks for four minutes and stops: the cue work above, plus a departure routine that's dull. Same words, same order, no big goodbye. A two-minute farewell with lots of talking tells the dog something major is about to happen.
A few things that don't help, whichever type you have. Yelling from the other side of the door teaches him you're still there. Coming back in when he barks, even once in five, teaches him barking brings you home, so come back during a pause instead. Scolding him when you get home does nothing, since the barking was an hour ago and all he learns is that your return is unpleasant. Bark collars and spray collars add punishment to a dog who is already scared or frustrated, and we don't use them.
If the barking is really happening at night while you're home, not when you leave, that's a different setup and our night barking page is the one you want.
Our guide Calm at the Door in 21 Days walks through the cue work and the departure practice day by day, with a log you can fill in.

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
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.











