Waking up with your heart racing is usually your stress response firing at the wrong moment. A dream, a noise, or a dip in oxygen snaps your body awake, adrenaline surges, and your heart pounds for a minute or two. It passes on its own. If it happens most nights, or comes with chest pain or breathlessness, ask a clinician.
What it feels like when it happens
It rarely arrives gently. One moment you are asleep, the next you are wide awake with your heart thudding against your ribs, sometimes hard enough to feel in your throat. Your breathing is fast. You may be sweaty, shaky, or suddenly alert in a way that feels nothing like normal waking. Some people sit bolt upright. Some lie still, listening to the pounding, wondering whether something is wrong with their heart.
That worry is understandable, and it is also part of the experience. A racing heart feels alarming because it is the same sensation you get in a moment of real danger. But the feeling alone does not mean your heart is in trouble. Most of the time, the heart is doing exactly what it is built to do: responding to a sudden alarm signal, even when the alarm turns out to be a false one.
What matters is the pattern around it. A single episode that fades within a minute or two, with no other symptoms, is a different story from episodes that repeat night after night, or that come with chest pain, breathlessness, or fainting.
Your heart does not idle all night
It helps to know that your heart rate is not steady while you sleep. It follows the shape of the night. During deep sleep, the quietest stage, it drops to its lowest point of the whole day, often below your daytime resting rate. During dream sleep, the stage called REM, it climbs again and turns jumpy, speeding up and slowing down as dreams come and go.
Between those stages, the body passes through short transitions, and the nervous system is not quiet during them. Small bursts of activity ripple through even in healthy sleep, and each one can nudge the heart rate upward. Most of the time you sleep straight through them. But when a transition lines up with a dream, a sound, or a dip in breathing, the nudge can become a jolt: you wake up suddenly, alert, with your heart already racing.
The stress response, waking up with you
The mechanism is the same one that helps you jump out of the way of a car. When the brain senses a threat, real or imagined, it switches on the sympathetic nervous system, the branch that handles fight or flight. The signal travels to the adrenal glands, which release adrenaline. Adrenaline tells the heart to beat faster and harder and sharpens attention. The whole sequence takes seconds.
At night, the threat does not need to be real. A vivid dream can supply one. So can a sudden noise, a drop in blood oxygen, or a surge of worry that was waiting for the first quiet moment of the day. The body cannot tell the difference between a threat in the room and a threat in a dream, so it answers both the same way.
There is a second reason nights make this more likely. During the day, movement, noise, and attention mask your heartbeat completely. Lying still in a quiet, dark room removes every distraction, so a normal heartbeat can suddenly feel loud and alarming. The sensation is real, and the amplification is a normal feature of quiet rooms.
The most common triggers
Vivid dreams and nightmares
Dreams are the most direct trigger, because they play out during REM sleep, the stage when the heart is already at its most reactive. A chase, a fall, a confrontation, or a loved one in danger can push the body into a full stress response before you are even awake. You open your eyes with your heart pounding, and the dream may still be vivid enough to remember, or it may already be gone, leaving only the racing heart behind.
This is also why the episodes cluster on stressful weeks. Dreams draw on the day, and a mind that spent the day braced for trouble keeps rehearsing it at night. Our piece on quieting a racing mind before sleep covers the evening side of that loop.
A mind that never stood down
Stress and worry do not switch off when you close your eyes. Bedtime is often the first quiet moment of the day, and it is when the worries you pushed aside finally get your full attention. When the mind runs on high alert during the day, the body stays primed to react at night, so a small disturbance can trigger a full adrenaline response instead of a quiet return to sleep.
If the racing heart comes with a mind that will not stop listing tomorrow's problems, the two are probably the same event wearing two faces. Our piece on waking up feeling anxious looks at the morning version of that pattern.
Caffeine, still in your system
Caffeine has a half-life of about five to six hours, which means an afternoon coffee is still working at midnight. It blocks the sleep pressure that builds up during the day, keeps the nervous system switched on, and can make the heart beat faster on its own. A late coffee only needs to keep your system alert enough that a small disturbance becomes a jolt. Our guide to what time to stop drinking coffee works out a cutoff from your bedtime.
Alcohol and the second half of the night
Alcohol is the most misunderstood trigger, because it feels like it helps you sleep. It does make you drowsy at first. But as the body clears it, sleep turns shallow and fragmented, and the heart rate climbs. The second half of the night is when the rebound hits, and it is also when most of these episodes happen. Our piece on whether alcohol helps you sleep walks through the research.
Sleep apnea: the alarm you do not hear
Sleep apnea is the trigger most worth knowing about, because it is common, often undiagnosed, and treatable. During sleep, the airway narrows or closes, breathing pauses, and oxygen levels fall. The body answers with an internal alarm: adrenaline floods in, the heart rate spikes, and you gasp awake, sometimes with a snort or a choking feeling. The racing heart is not the malfunction. It is the emergency response to one.
Researchers estimate it affects close to a billion adults worldwide, and many of them have no idea. The clues are loud snoring, pauses in breathing that a partner notices, and waking up unrefreshed no matter how long you slept. If several of those fit, mention sleep apnea by name when you talk to a clinician. A sleep study can confirm it, and treatment usually quiets the nighttime surges along with the snoring.
Medicines and other triggers
Some medicines list a racing heart among their side effects. Decongestants in cold remedies are a frequent one, and so are some asthma inhalers, some thyroid medicines, and some antidepressants. If the episodes started soon after a new prescription or an over-the-counter remedy, mention the timing to the clinician who prescribed it. Do not stop a prescribed medicine on your own.
Two quieter factors can add to the effect. Being short on fluids can leave the heart beating a little faster, and going to bed after a very light dinner can do the same, because the body releases adrenaline to lift blood sugar when it dips. An overactive thyroid can also keep the heart running fast around the clock, which is something a blood test can check.
Racing heart or heartburn?
The two get confused because both sit in the chest and both wake people up at night. They feel different once you know what to listen for. Heartburn is a burning feeling that rises from the stomach toward the throat, often after a late meal or after lying flat. It burns. A racing heart is a sensation of pounding, fluttering, or thudding, and it comes with a feeling of being suddenly, completely awake.
They can also feed each other. Stomach acid moving up can trigger an adrenaline spike of its own, so some people get both at once. If yours feels like burning more than pounding, start with our piece on why you wake up with heartburn at night. If it feels like pounding more than burning, you are in the right place.
What to do in the moment
First, sit up and put your feet on the floor. Feeling something solid under your feet gives the brain a real sensation to hold onto. Take a slow breath in through the nose, then a long, slow breath out through the mouth. Aim for a short inhale and a longer exhale, roughly four seconds in and six seconds out. A long exhale is the part that tells the nervous system to stand down.
If one slow breath is not enough, try a physiological sigh: two short inhales through the nose, one on top of the other, then one long exhale through the mouth. Repeat it four to six times. It looks odd and it works quickly, which is why it is worth learning before you need it. A cool cloth on the forehead can help too, and the small physical task gives your mind something to do besides listen to your heart.
Do not check the clock over and over, and do not reach for your phone to search your symptoms. Both feed the worry that keeps the heart going. If you are still wide awake after about 20 minutes, get up. Read in a chair, or sit quietly with a glass of water, and go back to bed when you feel drowsy. Lying awake in bed trains the brain to link the bed with being awake. Our piece on why sleep experts tell you to get out of bed explains the logic.
What helps over the next few nights
Start with the two triggers you control most easily. Move caffeine earlier in the day, and set a firm cutoff in the early afternoon. Keep alcohol out of the last hours before bed, especially on nights when the episodes have been happening. Both changes take a few days to show their effect, so give them a week before deciding they did nothing.
Keep the schedule steady. A regular bedtime and wake time steadies the body clock behind the night, and an irregular schedule makes the transitions between sleep stages rougher, which is when these jolts happen. Our piece on working out what time to go to bed shows how to count back from your wake time.
Give the day a proper ending. The mind that never stood down is the one that fires at 3 a.m., so a short wind-down helps: dim the lights, put the phone away, and do something quiet for 20 to 30 minutes before bed. It only needs to be a clear signal that the day is over.
If you wear a sleep tracker, use it as a diary, not a judge. It can show whether the racing happens at the same time each night, a pattern worth mentioning to a clinician. It cannot tell you whether your heart is healthy. If the numbers make you more anxious, stop checking them at night.
When to ask a clinician
An occasional episode that fades within a minute or two is not an emergency. It becomes worth a visit when it keeps happening. Go if it shows up several nights a week, if it comes with gasping or choking, if your partner says you stop breathing in your sleep, or if it is starting to make you dread going to bed. Go sooner, the same day, if it comes with chest pain or pressure, breathlessness that does not ease, dizziness or fainting, or a racing feeling that lasts more than a few minutes.
The visit itself is usually straightforward. Expect questions about when the episodes happen, how long they last, what you were doing before bed, and what medicines you take. Expect a blood pressure check and probably blood tests, which can include thyroid levels. If sleep apnea is suspected, the next step is usually a sleep study, which can be done at home in many cases.
It is worth saying plainly: asking is not overreacting. A clinician would rather hear about it early, when the answer is usually reassuring, than late.
Frequently asked questions
Is waking up with a racing heart dangerous?
Usually not. Most episodes are a stress response firing at the wrong moment, and they pass within a minute or two. It becomes something to get checked when it happens often, when it comes with chest pain, breathlessness, or fainting, or when it lasts more than a few minutes.
Why does it happen at 3 a.m.?
The early hours are when the night is lightest. You have had several sleep cycles by then, dream sleep is longer, and the body is closer to waking. A small disturbance that would not have woken you at midnight can be enough at 3 a.m., and alcohol's rebound effect also lands in the second half of the night. Our piece on why you wake up at 3 a.m. covers the timing in detail.
Can anxiety cause it?
Yes, in the sense that a mind running on high alert makes the stress response easier to trigger. But a racing heart at night is not proof of an anxiety problem, and treating it as one without checking the other causes, especially sleep apnea, would miss the point.
Should I check my heart rate when it happens?
Looking once is fine. Watching the number climb will only feed the worry, and a home device cannot tell you whether the rhythm is normal. Note the time and how long it lasted, then put the device down. The pattern over a week or two is far more useful to a clinician than a single number from a frightening minute.
Can a sleep mask help?
Not with the racing itself. A mask does nothing to slow your heart, and no sleep product does. What it can do is help you fall back asleep once the surge has passed, by keeping the room dark while your body settles. If you sit up, breathe, and wait the episode out, a gently weighted sleep mask can make the return to sleep easier. Think of it as help for the second half of the night, not the first.
A racing heart at night is frightening, but it is usually explainable, and that is the useful part. The heart follows the shape of the night, and a dream, a late coffee, a drink, or a dip in breathing can trip the same alarm the body uses for real danger. If tonight is a bad night, sit up, breathe out slowly, and let the wave pass. If most nights are bad nights, ask a clinician to look at the pattern with you.





Share:
Sleep Mask for Back Sleepers
How to Read in Bed Without Waking Your Partner