My heart races when I try to sleep. Is this a panic attack?
When I lie down at night, my heart suddenly starts pounding and I feel a wave of fear. Sometimes I sit up because I feel like something bad is about to happen. During the day I'm mostly fine, so I don't know what's going on.
Answer
Written by the DonnWorry editors with AI assistance, not reviewed by a clinicianThat sounds frightening, especially when you're trying to rest. A racing heart and a sudden wave of fear can be part of a panic attack. But they can also have other causes, including physical ones. So the first and most important step is to see a doctor to check what's going on.
The NHS describes panic attacks as a sudden rush of intense physical and mental symptoms. These can include:
- A racing or pounding heartbeat.
- Sweating, trembling, or feeling dizzy.
- Shortness of breath or chest pain.
- Feeling sick, or numbness and tingling.
- A sense of dread, or feeling detached from your body.
Most panic attacks last around 5 to 20 minutes. They are very frightening, but the NHS says they are not dangerous and won't cause you physical harm.
A noticeable or racing heartbeat can also be a sign of ongoing anxiety. The NHS lists it as a symptom of generalized anxiety disorder, along with trouble sleeping and restlessness. And because many of these symptoms can come from other health conditions, a doctor may want to examine you to rule those out. Please don't skip this step, especially if you have chest pain.
If it happens tonight, the NHS suggests:
- Stay where you are if you can.
- Breathe slowly and deeply.
- Remind yourself that it will pass.
- Focus on a calm, peaceful image.
- Remember that it isn't life-threatening.
Some general habits may also make nights easier. The NHS suggests cutting back on caffeine, which can worsen both sleep and anxiety. Try to relax for an hour before bed and keep screens away just before sleep.
When you see your doctor, tell them what happens, how often, how long it lasts, and how long it's been going on. If it does turn out to be panic or anxiety, there is help. Talking therapies are usually the first option, and panic disorder is treatable. Getting help early matters, because it can get worse without support.
You're not overreacting by wanting answers. Your body is telling you something, and you deserve to have it checked.
Learn more
Panic attacks: what they are and how to cope — A panic attack is a sudden rush of intense fear with strong body symptoms. Learn the signs, what to do during an attack and how treatment helps.
Written by the DonnWorry team from trusted health sources. Not yet reviewed by a licensed professional. This answer is general information, not a diagnosis or treatment plan. Updated 2026-10-30.