A racing heart at night is usually harmless, but it can feel alarming when you’re lying in the dark with nothing to distract you. The good news: several techniques can slow your heart rate within minutes, and understanding why it happens in the first place can take away much of the anxiety that makes it worse.
Slow Your Breathing First
The fastest way to bring your heart rate down is to activate your body’s built-in calming system, the parasympathetic nervous system, through controlled breathing. One well-known method is 4-7-8 breathing: inhale through your nose for 4 seconds, hold for 7 seconds, then exhale slowly through your mouth for 8 seconds. The long exhale is the key part. It signals your nervous system to shift out of fight-or-flight mode and back toward rest. Repeat for three or four cycles and you should notice your pulse beginning to settle.
If counting feels like too much to think about, simply focus on making each exhale longer than each inhale. Even a pattern of breathing in for 4 seconds and out for 6 seconds will produce a similar effect. The goal is to slow your breathing rate to roughly six breaths per minute, which is about half the pace most people breathe at rest.
Use Cold Water on Your Face
Splashing cold water on your forehead and cheeks triggers something called the dive reflex, an automatic response that slows your heart rate. Your body reacts as though you’ve plunged underwater, constricting blood vessels and telling your heart to pump more slowly. You don’t need ice water. Cool tap water on a washcloth held across your forehead and cheeks for 15 to 20 seconds is enough. Hold your breath briefly while you do it to strengthen the effect, but breathe in normally first so you aren’t straining.
Try the Valsalva Maneuver
This technique involves bearing down as if you’re having a bowel movement while keeping your nose and mouth closed. The increase in pressure inside your chest stimulates the vagus nerve, which directly slows heart rate. Hold the strain for about 10 to 15 seconds, then release. Many people feel their heart rhythm reset almost immediately. Avoid this technique if you’ve had cataract surgery, have eye implants, or have been told you have problems with blood vessels in your retina, because the pressure increase can affect your eyes.
Change Your Sleeping Position
If you notice palpitations mainly when lying on your left side, there’s a straightforward anatomical explanation. Your heart sits mostly in the center of your chest, but the lower tip, the part that does the heaviest pumping, angles slightly to the left. When you roll onto your left side, gravity pulls that muscular lower chamber closer to the chest wall. At the same time, the weight of your body compresses the rib cage slightly against the mattress. The combination means you can physically feel each heartbeat more strongly. The quiet and stillness of nighttime amplify the sensation further.
Rolling onto your right side or your back usually reduces or eliminates the thumping feeling. This doesn’t mean your heart is actually beating faster. You’re just more aware of it. But that awareness alone can trigger anxiety, which genuinely does speed your heart rate, creating a feedback loop. Changing position breaks the cycle.
Why Your Heart Races at Night
Several things converge to make nighttime palpitations more likely. Stimulants are a common culprit. Caffeine has a half-life of five to six hours, meaning if you have a coffee at 4 p.m., roughly half the caffeine is still circulating in your blood at 10 p.m. That’s enough to keep your heart rate elevated and make you more sensitive to each beat. Alcohol, while it may feel relaxing initially, increases heart rate as your body metabolizes it overnight.
Stress and anxiety play a major role too. During the day, your mind has distractions. At night, worries surface, and the resulting spike in adrenaline raises your heart rate. This is one reason breathing techniques work so well: they interrupt the stress response at a physical level, not just a psychological one.
Cortisol, your body’s primary stress hormone, follows a predictable daily cycle. Levels begin rising in the early morning hours, sometimes minutes before you wake up. Research from the British Heart Foundation has shown this pre-dawn cortisol surge can make the heart’s electrical signals less regular, which may explain why some people wake up between 4 and 6 a.m. with their heart pounding.
Sleep Apnea and Nighttime Heart Rate
Obstructive sleep apnea is one of the most underdiagnosed causes of a racing heart at night. When your airway partially or fully closes during sleep, your blood oxygen drops. Your brain responds by flooding your system with adrenaline to wake you up enough to start breathing again. This burst of sympathetic nervous system activity spikes your heart rate, sometimes dramatically. People with sleep apnea tend to have a higher resting heart rate overall, and the pattern improves with treatment.
You might suspect sleep apnea if your nighttime heart racing comes with loud snoring, gasping awake, morning headaches, or daytime fatigue that doesn’t improve no matter how many hours you spend in bed. A sleep study can confirm or rule it out.
Magnesium and Heart Rhythm
Magnesium plays a direct role in keeping your heartbeat steady. It helps regulate the flow of sodium and calcium into heart cells. When magnesium levels are low, cell membranes become electrically unstable, which can trigger irregular or rapid heartbeats. A significant number of people with heart rhythm disturbances have low magnesium inside their cells even when standard blood tests show normal levels, making the deficiency easy to miss.
Foods rich in magnesium include dark leafy greens, nuts, seeds, and whole grains. If your diet is low in these, or if you take medications that deplete magnesium (certain diuretics and acid reflux drugs are common ones), a supplement may help. Many people notice a difference in sleep quality and heart rhythm within a few weeks of correcting a deficiency.
Habits That Reduce Nighttime Palpitations
Most cases of nighttime heart racing respond well to a few consistent changes:
- Cut caffeine by early afternoon. Given its five-to-six-hour half-life, noon or 1 p.m. is a reasonable cutoff if you go to bed around 10 or 11.
- Limit alcohol close to bedtime. Even moderate amounts increase heart rate during the second half of the night as your liver processes it.
- Eat enough in the evening. A blood sugar drop overnight can trigger an adrenaline release that wakes you with a pounding heart. A small snack with protein and complex carbohydrates before bed helps keep levels stable.
- Keep your bedroom cool. Heat increases your heart rate as your body works to cool itself. A room temperature around 65 to 68°F (18 to 20°C) supports both lower heart rate and deeper sleep.
- Wind down screens 30 to 60 minutes before bed. Stimulating content raises adrenaline, and the blue light itself can delay the onset of melatonin, keeping your nervous system in a more alert state.
When a Racing Heart Needs Medical Attention
A normal resting heart rate for adults falls between 60 and 100 beats per minute. Brief episodes of palpitations that last a few seconds, settle on their own, and aren’t accompanied by other symptoms are generally benign. But certain patterns warrant a trip to the emergency room: feeling lightheaded or faint, experiencing chest pain or pressure, or having episodes that last longer than a minute or two or keep returning throughout the night. A resting heart rate consistently above 100 bpm with symptoms like shortness of breath or dizziness also needs prompt evaluation.
If your episodes are short and you feel fine otherwise, it’s still worth mentioning them to your doctor at your next visit. A simple ECG or a wearable heart monitor worn for a few days can catch rhythm irregularities that happen only at night, giving your doctor a clear picture of what’s going on.

