GUIDE · PANIC

Nighttime panic attacks: why they wake you and what to do

You wake up at 3 a.m. with your heart pounding, short of breath, and convinced something is wrong. Panic can cause this pattern, but other conditions can feel similar. Check the urgent warning signs first. Then read how nighttime panic works and what you can try once medical emergencies have been ruled out.

Evidence-informed guideAbout a 9-minute read

Check urgent warning signs first

Call 911 now for severe or crushing chest pain, fainting, severe trouble breathing at rest, new weakness or numbness on one side, confusion, trouble speaking, or symptoms that are sharply different from your usual episodes. A first episode also deserves prompt medical evaluation, even if it passes.

What a nighttime panic attack is and how it's even possible

A lot of people assume panic is a reaction to a stressful situation you're aware of. So here's the obvious question: how can you panic in your sleep, when you're not aware of anything?

The thing is, your nervous system kicks off a panic attack on its own, without any thoughts involved. The sympathetic side can switch on during light sleep or while you're shifting between sleep stages. In that moment, your brain gets the alarm signal before your conscious mind catches up to what's happening. Waking up with your heart already racing, you naturally conclude: "If I feel this way, something must be wrong." That read amps up the physical symptoms, and the attack spirals.

Nighttime panic attacks usually happen during NREM sleep (deep, non-dreaming sleep), typically in the first two or three hours after you drift off, when sleep is at its deepest. They're well documented: clinical research suggests that about a third of people with panic disorder have regular nighttime attacks.

How a nighttime attack is different from a nightmare

A nightmare shows up during REM sleep (dreaming sleep, closer to morning) and leaves you with a storyline you remember. A nighttime panic attack happens in deep, non-dreaming sleep: you wake up with no dream at all, already hit by the full set of physical symptoms: racing heart, sweating, shortness of breath, fear. It's exactly that missing "reason" that makes it so frightening.

How a panic attack plays out intensity builds up peaks at 5–10 min fades on its own 0 5 10 15 20 time, minutes
This is one common pattern for a familiar panic response. Timing and intensity vary.

Want to see how strong it is right now?

The GAD-7 asks seven questions and takes about two minutes. You'll get a score and what its range means — no signup, nothing saved unless you ask.

Take the 2-minute check-in

Why it happens at night specifically

Nighttime attacks have a few clear setups behind them. Once you know what they are, the helpless feeling eases, and it gets clear what to actually change.

The day's pent-up tension. During the day you're busy with tasks and don't notice the anxiety humming in the background. At night, when the outside noise drops away, your nervous system "catches up" on whatever it didn't process. Chronic work stress, anxious thoughts about money or your health, bottled-up emotions: all of it tends to "come out" at night.

Physical shifts during sleep. In certain sleep stages your breathing slows and gets irregular, and the CO₂ level in your blood shifts slightly. If you run anxious, your nervous system is sensitive to those swings and can read them as a threat.

Anticipatory anxiety. After a first nighttime attack, a lot of people start to dread falling asleep. That fear of sleep on its own ramps up your physical arousal, and the odds of it happening again go up. The vicious cycle closes.

Caffeine and alcohol. Coffee after 2 p.m. keeps your nervous system revved up longer. Alcohol seems "calming," but it actually wrecks the structure of your sleep, and in the second half of the night it rebounds: your nervous system fires up sharply. That's prime territory for an attack.

Physical triggers. Obstructive sleep apnea, acid reflux, blood-sugar swings from insulin resistance: any of these can set off physical signals that mimic the start of panic. If your attacks are very frequent and severe, it's worth ruling these out with a doctor. A good way to get a handle on your pattern is to take the sleep quality quiz.

What's going on in your body during a nighttime attack

Understanding the mechanism may take the edge off once this is a familiar pattern and a clinician has ruled out other causes.

During an attack, your body dumps adrenaline and noradrenaline into your blood. They prep you to fight or run: your heart beats faster to push blood to your muscles; your breathing speeds up to load your blood with oxygen; the vessels in your hands and feet narrow, so they go cold; your muscles tense and you sweat more.

With a familiar panic response, the intensity often peaks in the first several minutes and then gradually falls. The timing varies, and duration alone cannot distinguish panic from a medical condition.

If a clinician has evaluated these episodes and no warning signs are present, you can remind yourself that a stress response can ease. Do not assume a first, unusual, or more severe episode is panic.

What to do right in the middle of a nighttime attack

Use the first few minutes to check warning signs, then try a few steps that may lower the arousal.

  1. Sit up and turn on a light. Lying flat with your heart racing makes the helpless feeling worse. Sitting up is a small, active move that hands you back a sense of control. The light clears the disorientation.
  2. Name a familiar response. If a clinician has evaluated these episodes and no warning signs are present, try: "This feels like my familiar panic response. I checked the warning signs, and I can watch how it changes."
  3. Try a longer exhale. Breathe in gently for a count of 4 and out for a count of 6 to 8 without forcing it. You can skip the pause. Stop and return to normal breathing if you feel dizzy, short of breath, in pain, or otherwise uncomfortable. There's more in the panic attacks guide.
  4. Ground yourself through your body and surroundings. Put your feet on the floor. Feel the texture of the sheets. Name 5 things you can see in the room. This brings your attention back to what is around you. The anxiety and sleep guide covers grounding in more detail.
  5. Splash your face with cool water. A comfortable temperature may help shift your attention to a physical sensation. Skip this step if it feels unpleasant.
  6. Stay in bed or get up, whatever feels right. If lying back down feels off, it's better to sit in another room for 10 to 15 minutes and read something neutral. Forcing yourself to lie there only ramps up the arousal.

What can keep the anxiety loop going

Once urgent causes have been ruled out, repeated pulse checks and constant reassurance-seeking can keep your attention fixed on the symptoms. It is still okay to ask someone you trust to stay with you, especially if you are alone or frightened. Take medication only as prescribed by your clinician.

Check yourself: the panic disorder test (PDSS-SR)

7 questions: how often panic attacks hit and how much they're affecting your life. You get your score instantly, with an explanation you can talk through with Helpy.

Take the test

Working with nighttime attacks for the long haul: CBT

One-off skills help you get through an attack. Cognitive behavioral therapy changes the very ground the attacks grow out of.

Thought record. After each nighttime attack (the next morning), write down what you felt in your body, what thoughts showed up ("I'm dying," "something's wrong with my heart"), and how you answered those thoughts. After two or three weeks a pattern comes into view, and your brain starts recognizing the familiar loop before it spirals.

Cognitive restructuring. Once a clinician has evaluated familiar symptoms, a more accurate thought might be: "A racing heart can be part of a stress response. I will check the warning signs, then give the response time to ease." A first or unusual episode needs medical evaluation before you reframe it as panic.

Exposure to the sensations. Interoceptive exposure is a method where you deliberately bring on similar physical sensations (say, speeding up your breathing for a minute, or spinning) in a safe setting. Your brain gradually gets used to those sensations and stops treating them as a danger signal. Do this only under the guidance of a professional or as part of a structured program.

Working on sleep as its own track. Fear of sleep and nighttime attacks can interact with sleep habits and beliefs about sleep. CBT-I (CBT for insomnia) includes stimulus control, work on sleep timing, and skills for thoughts that race before bed. Time-in-bed restriction is best used in a structured program or with a clinician.

How Helpy helps

The journal makes it easy to log nighttime episodes right after you wake up, by voice or text, while the sensations are still fresh. The AI chat can help you work through the thoughts that swirl after an attack and land on a more accurate read of the situation, without all the worst-case spin.

Sleep after a nighttime attack: how to get back to it

Trying to force sleep after an attack often adds more tension. Give yourself permission to stay awake for now and wait until sleepiness returns.

Here's the concrete strategy. If sleep isn't coming 20 minutes after you get back in bed, get up, go to another room, and do something calm in dim light: read a paper book, do a puzzle, stretch slowly. Your phone screen and social media are a bad pick: the blue light and the stream of info wake you up more. When you feel drowsy, head back to bed. This is the stimulus-control method from CBT-I.

Relaxing your body may help too. Progressive muscle relaxation (PMR) involves tensing and releasing muscle groups one at a time. Start at your feet and work up without causing pain. The effect and the time it takes vary.

If you don't sleep till morning after an attack, try not to nap during the day for more than 20 minutes. A long daytime nap shifts your circadian rhythm and makes the next night even harder.

When to get professional help

Self-help can complement professional care, but this page cannot determine the cause or severity of your symptoms. Talk with a doctor or therapist in the following situations.

  1. The attacks are frequent or getting worse. Regular episodes, including several in a week, are worth discussing with a clinician. Frequency alone does not establish a diagnosis.
  2. You've developed a fear of falling asleep. If you're putting off bedtime or have started dreading the dark, tell your clinician about that pattern too.
  3. Your quality of life has dropped noticeably. Chronic sleep loss hits your work, your relationships, your immune system. If attacks have kept you from sleeping for weeks, that's a medical situation.
  4. New symptoms have shown up. Chest pain, shortness of breath at rest, fainting. Before doing any psychological work, you need to rule out cardiac and neurological causes.

If you want to understand how anxiety and sleep problems connect in your case, start with the sleep quality quiz. It takes about three minutes.

Important

This is educational self-help content, and it's not a substitute for professional care. If your nighttime attacks are frequent or come with chest pain, see a doctor. If you're in crisis or thinking about suicide, get help now: call or text 988 (Suicide & Crisis Lifeline), text HOME to 741741 (Crisis Text Line), or call 911 for emergencies. Available 24/7.
Outside the US? UK: Samaritans 116 123 · Canada: call or text 988 · Australia: Lifeline 13 11 14 · New Zealand: call or text 1737.

← All CBT guides