Before we'd give you steps, we'd want to know whether this dog has always barked in the crate or whether it started last week. Those are two different problems and they get two different plans. People lump them together because the noise sounds the same.
So pick your version.
If the dog used to sleep through and now barks at night all of a sudden, something changed, and your job is to find it. If the dog has barked in the crate from the start, the crate was never properly built up and you're going back to do that work now.
When it starts suddenly
Run through this list in order. Most of the time the answer is in the first three.
Potty. A puppy under about 4 months often can't hold it overnight, and an older puppy going through a growth spurt sometimes loses a few hours of bladder capacity for a week or two. An adult dog who suddenly needs out at 2am may have a urinary issue or a stomach bug. If the barking is new, the dog is over a year old, and nothing in the house has changed, a vet visit comes before any training plan. We've watched owners spend a month on "crate training" for what turned out to be a bladder infection.
The house. Heat kicking on for the first time in the fall. A new smoke detector chirping. Mice in the wall. A streetlight fixed. Someone in the house started working a different shift and now there's movement at 11pm. Dogs notice all of it, and a dog shut in a box can't go investigate, so it barks.
Age. Dogs between roughly 6 and 14 months go through a stretch where things they used to accept become a problem. The crate is a common one. This passes, but only if you don't accidentally teach the dog that barking opens the door.
Which brings us to the most common cause of all: barking worked. Once. Somebody got up at 3am, said "what, what is it," opened the door, and took the dog out. The dog may well have needed to go that night. Doesn't matter. The dog now has one clear data point: bark long enough and the door opens. One night is enough to install that, and it takes considerably longer than one night to remove it.
The crate itself. Measure it. A dog should be able to stand without ducking and turn around without wedging. Puppies outgrow crates and nobody notices because the dog is in it every day. Check the bedding too. Some dogs run hot and will bark in a crate stuffed with fleece and sleep fine on a bare mat. Many owners notice the barking gets worse at night, and our page on stopping a dog barking at night goes further.
If the dog was never okay in there
Then we go back to the beginning, during the day, and we don't start with nights.
Feed every meal in the crate, door open. Put the bowl at the back so the dog has to go all the way in. Do this for three or four days before you close the door at all.
Then start closing the door only while the dog is busy with something that takes a few minutes: a stuffed food toy, a chew. Close it, sit nearby, open it before the dog finishes. If the dog finishes and starts looking at you, you waited too long. Next time, bigger food toy or shorter session.
Build the time in small steps. Two minutes, five, ten, twenty. Then leave the room for thirty seconds and come back. Then two minutes. Then start putting the dog in for naps after a walk or a training session when it's actually tired. A tired dog that's used to the crate goes in and flops down. That's the picture you're after.
Keep a crate and a pen, not just a crate. If you have to leave for four hours and the dog is only good for thirty minutes, use the pen. Every long stint in a crate the dog isn't ready for undoes a week of short good ones.
Nights come last. Once the dog can nap in the closed crate for an hour during the day with you out of the room, nights usually sort themselves out, because the dog is asleep for most of it anyway.
What to do at 3am
Here's the part everyone wants.
Move the crate into your bedroom for now. Near the bed, close enough that you can drop a hand down beside it. A dog that can hear you breathing is quieter than a dog alone in the kitchen. You can move the crate back out later, a few feet at a time over a couple of weeks. The next step is learning about the causes of apartment dog barking, especially once the crate leaves your bedroom.
Last trip outside right before bed, not an hour before. Pick up the water bowl after 8pm for puppies.
If the dog barks and you think it genuinely needs out, take it out. But make the trip boring. No talking, no lights beyond what you need, leash on, straight to the spot, back in the crate. Thirty seconds of outdoor time, not a stroll. If the dog doesn't go within a minute or two, back in. The dog learns that 3am barking gets a dull bathroom trip and nothing else.
If you're fairly sure the dog doesn't need out, wait. Don't talk, don't shush, don't tap the crate. Wait for a gap in the barking. Even two seconds. Then quietly say "good" and nothing else. You're not opening the door, you're marking the quiet. Do it again at the next gap. Most dogs give you more gaps and longer ones once they notice quiet is the thing getting a response.
The barking will get worse for a night or two before it gets better if it has been working up to now. This is predictable. Tell the neighbors, run a fan for white noise, and don't change the plan on night two because that's when it sounds like it's failing.
What we don't do: no spray collars, no shaking a can of coins, no yelling. A dog that's barking because it's unsettled doesn't get less unsettled when something unpleasant happens in the dark. Those methods also tend to produce a dog that's quiet and miserable in the crate, which isn't the goal.
One more thing. A dog that barks in the crate at night often also goes off at the door during the day, and the same dog gets easier at night when its days are calmer. Our guide Calm at the Door in 21 Days covers the daytime side if that sounds like your dog.

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.











