A nighttime panic attack breaks the usual logic of fear. It seems that something always sets panic off: thoughts that have been spinning in your head for a long time, a stifling crowd, bad news. But here you’re asleep and not thinking about anything. Your body has finally let go of the day, and at that very moment you’re thrown out of sleep straight into an attack: no frightening dream, no warning, no reason you could name.
It’s this lack of a reason that’s most frightening. When fear comes out of nowhere, the mind hurries to find a culprit, and sleep itself falls under suspicion. And the next evening, when it’s time to go to bed again, a quiet question sounds in your head: “What if it happens again tonight?”
What a person does with this question next matters more than the attack itself. One hard night can remain just that: one night. Or it can become the start of a life in which you go on duty beside your own sleep every evening.
1. The storm and the harbor: how a panic attack differs from panic disorder
The difference between a panic attack and panic disorder is the difference between a sudden storm that swept across the sea and a life of constantly waiting for a shipwreck, when you don’t even dare to leave the harbor.
A panic attack is a single, abrupt, and extremely intense malfunction in the body’s alarm system. It hits suddenly: a rush of adrenaline switches on the ancient fight-or-flight response at full throttle where there’s no real physical threat to life. Your heart starts pounding in your throat, your breath catches, you go hot or cold, your limbs go numb, and a primal terror switches on in your head: “I’m going to die right now,” “I’m having a heart attack,” or “I’m going crazy.” Physiologically, this state can’t last forever — it usually peaks within 10 minutes, and then the wave subsides, leaving the body drained and exhausted. A person without panic disorder can go through one or several panic attacks in a lifetime, brought on by chronic stress, overwork, lack of sleep, or physical factors. On its own, an attack is a hard but isolated episode: the storm blew in, thundered itself out, and was over.
Panic disorder begins not in the body but in how the mind explains this experience to itself and what it starts doing next. The disorder isn’t simply repeated panic attacks. It’s the formation of the so-called “fear of fear.” After going through that shock, the person no longer goes back to a calm life: they start scanning their own pulse every moment, listening for the slightest tingling in their chest or dizziness. An intrusive anticipatory anxiety sets in: “What if it happens again when I’m on the subway, in a meeting, or alone?”
The main marker of the disorder is avoidance behavior. The person’s life starts to shrink rapidly, rearranging itself around the panic. They stop using public transportation, going to supermarkets, staying home alone, wearing certain clothes, or going outside without a blood pressure monitor, a bottle of water, and calming pills in their pocket. Panic disorder turns a person into a hostage of their own safety system: you subordinate your whole schedule and all your choices to a single goal — not to trigger another attack.
If a panic attack is a physiological malfunction during which you can learn to breathe and ground yourself, and which is safe for your physical health, then panic disorder is a change in your way of life in favor of avoidance. And the way out of it begins with reclaiming your space: with realizing that panic is unpleasant but not deadly, and that trying to control every heartbeat only feeds the very fear the person is trying to escape.
2. The alarm in the silence: why the attack wakes you at night
A nighttime attack is the same malfunction in the same alarm system, and on its own it doesn’t mean a more severe form of panic. The only difference is the place and the time: a dark bedroom in the middle of sleep, when nothing is happening around you.
Let’s start with what it isn’t. It isn’t a scary dream that has faded from memory. The attack rises out of non-REM sleep, most often in the first third of the night, that is, in the first hours after falling asleep, and no dream sets it off. That’s why it’s easy to tell apart from similar nighttime awakenings:
- A scary dream wakes you. That’s waking from a nightmare, a different state.
- You wake up fully, clearly understand what’s happening, and remember the attack afterward. That’s a nighttime panic attack. Night terrors also happen early in the night, but during them consciousness is impaired.
- A sudden noise wakes you (an explosion, a siren, a bang), and the fear comes only after you’re awake. Researchers don’t call this a nighttime panic attack. That’s a different story, one where safety rules come first.
Science hasn’t yet fully worked out why the alarm wakes some people at night and leaves others alone. But it is clear what makes an attack stronger. The body doesn’t freeze during sleep: sleep moves from phase to phase, and each time the body switches modes. Usually no one notices this. But an alarm that has already been tuned to catch changes in your own body hears them even through sleep.
The explanation decides what happens next. The most interesting thing here was shown in experiments during sleep: the body reacted to the signals the same way, but there was far more anxiety and many more attacks when the signal caught people off guard. Only one thing differed: whether the brain knew what was happening.
So it helps to know what happens to your body at night before the night comes. This article is exactly that kind of warning.
And for some people with nighttime attacks, it’s relaxation itself that switches the anxiety on: to their alarm, the moment vigilance drops also sounds like a threat.
3. Getting through the wave: what to do when an attack wakes you
One rule comes before all the steps: if you have even one of the signs that mean you call for help right away (they’re listed in section 5), or any doubt about whether this might be a heart attack, don’t guess — call. If there are no signs and no doubt, here’s what to do.
Step 1. Name what’s happening
- What to do: Tell yourself plainly, in a whisper if you like: “This is a panic attack. The alarm went off in my sleep. It’s unpleasant, but it will pass.” The UK’s health service, the NHS, advises exactly this during an attack: remind yourself that it will pass and isn’t life-threatening.
- Why it works: The explanation takes away the attack’s main fuel — surprise. In the sleep experiments, it was surprise that brought more anxiety and more attacks.
Step 2. Stay where you are
- What to do: If nothing outside is threatening you, don’t run anywhere. Sit up in bed or stay lying down.
- Why it works: Running away is avoidance too. Every escape convinces the brain that the escape is what saved you, and next time the alarm will demand it again. But an attack that passes right where it found you teaches something else: you can get through it.
Step 3. Breathe slowly, but don’t turn your breathing into an off switch
- What to do: Breathe slowly.
- The reality: If you breathe only to stop the attack at any cost, every breath turns into a check — “did it work or not?” — and the fear gets a new job. Here, breathing is a handrail you hold on to while the wave subsides on its own.
Step 4. Bring your attention back into the room
- What to do: Ukraine’s health ministry (in Ukrainian) recommends the 5-4-3-2-1 technique: name five things you see, four you’re touching, three sounds, two smells, and one taste. At night, whatever is around you is enough: the glow of a streetlight on the ceiling, the cool edge of the pillow, the creak of the bed, the smell of a freshly washed pillowcase, a sip of water.
- The point: To let your attention move out of your chest and into the room for a few minutes.
Step 5. When the wave has passed but sleep won’t come
- What to do: Don’t lie there for hours with your phone, waiting for the fear to let go completely. Get out of bed and spend some time somewhere else until you feel sleepy. Then go back.
- Why it works: The bed should stay a place for sleep. If you spend hours in it fighting anxiety, the brain remembers exactly that fight, and the next evening the fight will start as soon as your head hits the pillow. This is one of the rules of CBT for insomnia.
What not to do
- Don’t check your pulse.
- The reality: Each check calms you for a minute, but the brain never learns that nothing terrible is happening. And the more closely you watch your heart, the more work the alarm has.
- Don’t breathe into a paper bag.
- The reality: In a bag, you keep breathing in your own exhaled air, and the oxygen in your blood keeps dropping. When similar sensations are actually hiding a heart or lung condition, this is dangerous. And the relief from the bag rests partly on expectation and suggestion.
4. Standing guard by the bed: why the fear of falling asleep keeps nighttime attacks going
After one or two nights like that, a person often starts getting ready for sleep as if for a night shift at a guard post. They go to bed as late as possible. They fall asleep with the light on, phone in hand. They keep a watch that measures their pulse and “just in case” pills close by. They listen to every heartbeat against the pillow and jump at the slightest rustle. It seems like caution. In fact, it’s the same avoidance behavior, just moved into the bedroom: at night there’s nowhere to run, so the person starts guarding their own sleep.
The trap is that standing guard hurts sleep itself. If you’re afraid of falling asleep, you put off sleep. If you put off sleep, you don’t get enough of it. And lack of sleep turns up the alarm’s sensitivity: after a sleepless night, even people without panic disorder are more frightened by breathlessness that is deliberately brought on in a lab. It’s a vicious circle: the longer you stand guard, the more easily the alarm goes off.
Standing guard by the bed
- Fear of falling asleep‘What if it happens again tonight?’Attack
- You put off sleepyou go to bed as late as possible
- Lack of sleep
- The alarm gets more sensitiveanxiety gets sharper
The longer you stand guard, the more easily the alarm goes off
| The guard by the bed | What it promises | What it actually does |
|---|---|---|
| Going to bed as late as possible | “Less sleep, less chance of an attack” | Lack of sleep makes anxiety sharper and the alarm more sensitive |
| A watch that measures your pulse, and middle-of-the-night checks | “One look and I’ll calm down” | Calms you for a minute but keeps the brain from learning that nothing terrible is happening |
| “Just in case” pills on the nightstand | “If anything happens, they’ll save me” | They reinforce the idea that you can’t cope without them. Decide with your doctor what to do about medication you were prescribed |
| Trying as hard as you can to relax before bed | “If I relax, the attack won’t come” | For some people, relaxation itself is what sets off the anxiety, so it’s better not to make it your main support |
What to do instead of standing guard:
- Go to bed only when you’re sleepy.
- Get up at the same time every morning, even after a hard night.
- Don’t nap during the day, however much you want to lie down.
- Keep the bed for sleep and sex. Let your phone, the news, and pulse checks live outside it.
Why it works: After nights of standing guard, the brain gets used to the bed being a place where you don’t sleep. These rules from CBT for insomnia retrain it: the bed becomes linked with sleep again, not with lying awake. And a steady wake-up time keeps your rhythm.
Cut out the amplifiers. Coffee, alcohol, smoking, and sugary food and drinks can make attacks worse, so it’s better to give them up.
If your sleep doesn’t get better for weeks, CBT for insomnia is done as a full course, with a professional: more on it in section 5.
5. When not to wait and where to go: doctor, psychotherapist, medication
The same day
If there are no emergency signs but you have even one of these, see a doctor the same day:
- shortness of breath that’s worse than usual;
- nausea or vomiting;
- coughing up blood;
- pain or swelling in one leg;
- palpitations, as if your heart is racing, beating too slowly, skipping beats, or fluttering.
See a doctor
It isn’t urgent, but it’s best not to put off a checkup if:
- the attack is your first, or it’s unlike the ones you’ve had before, and none of the signs from the lists above are present: physical causes need to be ruled out before calling it panic;
- chest pain comes and goes, or it went away quickly but you’re worried about it;
- shortness of breath gets worse with your normal activities or when you lie down;
- shortness of breath comes with swollen ankles;
- shortness of breath comes with a cough that hasn’t gone away for three weeks or more.
You can start with a family doctor or GP.
What the doctor checks
A diagnosis of panic disorder is made once physical causes have been ruled out. So the doctor checks, among other things:
- Heart. Rhythm problems often occur alongside panic disorder, and they need to be ruled out.
- Thyroid. When it’s overactive, there can be attacks that look like panic.
- Lungs. Obstructive lung diseases can also cause similar attacks.
- Breathing during sleep. A choking sensation is very common in nighttime attacks, and it’s easy to confuse with sleep apnea, a disorder of breathing during sleep. A sleep study helps tell them apart.
- Nocturnal epilepsy. It’s also distinguished from nighttime panic.
- Medications and substances. Caffeine, a salbutamol (albuterol) inhaler, levothyroxine, decongestants, and withdrawal from certain substances can cause similar attacks. So tell your doctor everything you take.
If what wakes you isn’t dreamless attacks but nightmares or memories of what you’ve been through, tell the professional about it separately: that’s a different condition.
What treats panic: CBT
The main treatment for panic disorder is cognitive behavioral therapy (CBT). International guidelines for treating anxiety disorders call it the first-line psychotherapy. A course usually takes about twelve sessions with a psychotherapist, and afterward most people stop having attacks. There’s nothing mystical about it:
- Explanation. What happens in the body during panic, and why the sensations themselves are safe.
- Working with thoughts. Catastrophic explanations like “it’s a heart attack” get examined and tested.
- Interoceptive exposure. An especially important part: you deliberately and gradually bring on the sensations you’re afraid of. You spin in place until you’re dizzy, run in place until your heart pounds, breathe fast and deep. Again and again, the alarm hears a familiar signal and learns from experience that there’s no danger behind it, so the fear weakens. This part is done together with a psychotherapist.
- Returning to situations a person has started to avoid.
Nighttime attacks specifically haven’t been studied much, so they’re treated the way panic disorder (in Ukrainian) is treated in general. CBT helps with them too.
It matters to have a professional alongside you. Self-help works when a psychotherapist guides it, while a book or an app on its own is a weaker support.
If sleep has been disrupted for a long time: CBT for insomnia
CBT for panic reduces insomnia too, but sometimes the attacks recede and sleep still doesn’t recover. Then cognitive behavioral therapy for insomnia (CBT-I) is added. The American Academy of Sleep Medicine strongly recommends it for chronic insomnia, and doesn’t recommend sleep hygiene as the only method. A course usually takes 4–8 sessions. Having an anxiety disorder as well doesn’t reduce the effect of the full course, and the therapy itself also eases anxiety a little along the way.
One of its parts sounds scary — sleep restriction. But it doesn’t mean “don’t sleep.” First, the person keeps a sleep diary, and time in bed is limited to how much they actually sleep. Then it’s gradually adjusted based on how sleep is going. It’s a method with rules, and it’s done with a professional. It isn’t for everyone. It isn’t recommended for people prone to mania or hypomania, with poorly controlled seizures, or with excessive daytime sleepiness. Nor is it recommended for people who work where sleepiness is dangerous: behind the wheel or around heavy machinery. At the start there can be fatigue, sleepiness, and irritability, and they usually pass.
Medication
Medication is prescribed by a doctor. The first choice is usually antidepressants (SSRIs or SNRIs). They don’t work right away: they start working after 2–4 weeks and take up to 8 weeks to work fully. Don’t stop taking them without talking to your doctor.
Benzodiazepines work faster and help in the short run. But dependence on them can develop after just several days or weeks of regular use, even when taken as prescribed. Stopping them abruptly is dangerous: withdrawal can even lead to life-threatening seizures. So the dose is lowered gradually and only together with a doctor.
In the short run, medication prescribed by a doctor can help a lot. In the long run, the results of CBT hold up better: after medication is stopped, attacks often come back. Take everything your doctor prescribed the way you agreed with them. Decide with them, too, what to do about the “just in case” pills by your bed.
If thoughts of death come
If thoughts of not wanting to live come along with the nighttime attacks, don’t stay alone with them until morning. Call the emergency number of the country you’re in. In Ukraine, it’s 112, and the People in Need psychological support line also answers around the clock: 0 800 210 160.
A sober conclusion
A nighttime panic attack is one of the most frightening ways to wake up. But the attack itself doesn’t harm the body: the wave rises, peaks, and subsides, no matter how loudly the alarm wails.
This hasn’t broken your sleep. That night only showed that your alarm is set too sensitively and protects you even where there’s nothing to protect you from. You don’t rip an alarm like that out, wires and all. You recalibrate it: you explain to yourself what’s happening, stop running from it, and take down the guard posts by the bed — night after night, until it learns again to tell the body’s ordinary nighttime work from real trouble.
Every shift ends sometime: you hand it over and go to sleep. This guard duty can be handed over too. The alarm will stay in place and keep protecting you. And at night you’ll once again have just one job — to sleep.
