What happens when you stop drinking: a timeline
From the first 24 hours to a full year: what can change, and what the research says.
If you can't sleep without alcohol, there's a physical reason, and it says nothing about you as a person. Alcohol is a sedative, so it can put you under fast, then disrupt the second half of the night and reduce REM sleep. When you stop, insomnia and nightmares are known withdrawal symptoms, so sleep can get worse before it gets better. How long that lasts varies a lot. In a survey of people doing Dry January, 70% said they slept better. After long-term heavy drinking, sleep can take months or longer to recover.
Insomnia can be a withdrawal symptom, and severe withdrawal can include seizures and delirium tremens, which are medical emergencies. If sleeplessness comes with shaking, sweating, a racing heart, confusion or hallucinations, get medical help now. In the UK, the NHS says to call 999 for hallucinations, severe tremors or seizures. Nothing below is medical advice.
If you can't sleep without alcohol, nothing is wrong with your character. Your brain may have got used to a sedative arriving at night. Bad sleep also matters for staying stopped: researchers think it may play a role in relapse, so it's worth knowing what's going on. SoberLine's health timeline has a sleep stage, though it's a general guide and it can't measure your sleep.
It did work, for part of the night. Alcohol acts on GABA, the brain's main calming signal, which may be part of why it can speed up falling asleep.
The trouble comes later. A review of studies in healthy volunteers found that at all doses alcohol shortens the time it takes to fall asleep, then increases sleep disruption in the second half of the night. At moderate and high doses it also reduces REM sleep, the dreaming stage. So you can get a heavy start to the night and broken sleep at the back of it, which can look like waking at 3 a.m. and not getting back to sleep.
This part catches people out, and it can make you think stopping isn't working.
Insomnia is a listed symptom of alcohol withdrawal. A research review links it to the brain losing alcohol's effect on GABA and to stress chemicals such as norepinephrine running too high. That can mean trouble falling asleep and more time awake during the night. Without the sedative at bedtime, it can feel worse than it did while you were drinking.
Then there's REM rebound. Because alcohol reduces REM sleep, REM can swing back when you stop. Research finds more REM sleep than normal in people with long-term heavy drinking, lasting long into abstinence, and nightmares are on the withdrawal symptom list. Vivid dreams can be unsettling. If they keep going or worry you, mention them to a doctor.
It varies a lot, so be careful with anyone quoting you a precise figure. Here's what the sources say:
Sleep is one part of a bigger picture, and the full timeline of what can change puts it in context.
Standard sleep advice can feel thin when you are three nights in, but these are worth trying:
Bad nights and cravings may go together, too. One study of people with alcohol use disorder found that worse insomnia went with stronger cravings, so it's worth having something to do at 2 a.m.

SoberLine gives the waiting some structure:
From the first 24 hours to a full year: what can change, and what the research says.
Urges to drink are short-lived, says NIAAA. How the urge wave works.
Structure beats willpower: the complete guide.
Free to try. You're not alone in this.