How to Stop Heart Palpitations at Night

Nighttime heart palpitations are common and usually harmless, but they feel alarming precisely because you notice them more when everything else is quiet. The good news: several techniques can slow your heart rate within seconds, and simple habit changes can prevent palpitations from waking you up in the first place.

Why Palpitations Feel Worse at Night

During the day, distractions mask minor heartbeat irregularities. When you lie down in a quiet room, you lose that buffer. Your body is also more attuned to internal sensations at rest, so a skipped beat or brief flutter that would go unnoticed during a meeting becomes impossible to ignore.

Sleeping position plays a role too. Your heart sits slightly left of center in your chest, with the muscular left ventricle angled toward the chest wall. When you lie on your left side, gravity shifts the heart’s apex even closer to your ribs. The rib cage compresses slightly against the mattress, and together these forces make each heartbeat physically perceptible as a thump. This doesn’t mean left-side sleeping is dangerous for healthy adults, but it can make normal heartbeats feel like palpitations. If you’re bothered, try rolling onto your right side or your back.

How to Stop Palpitations in the Moment

The Valsalva Maneuver

This is the fastest self-help technique for a racing or fluttering heart. Sit up or lie on your back. Take a deep breath in, then push that breath out against your closed mouth and pinched nose while bearing down as if you’re straining on the toilet. Hold for 15 to 20 seconds, then release and breathe normally. The straining briefly raises your blood pressure, and when you release, the rebound drop triggers your vagus nerve to slow your heart rate back down. It works because the vagus nerve acts directly on your heart’s natural pacemaker, reducing the speed of its electrical impulses.

Cold Water on Your Face

Fill a bowl with cold water and submerge your face for 10 to 15 seconds while holding your breath. This triggers what’s called the diving reflex: cold water activates a nerve in your face that sends a signal to your brain, which then fires your vagus nerve to slow your heartbeat. The effect is much more pronounced when you combine the cold water with breath-holding rather than doing either one alone. If a bowl isn’t practical at 2 a.m., pressing a cold, wet washcloth firmly over your forehead, eyes, and cheeks works as a simpler alternative.

Slow Breathing

Most adults breathe 12 to 20 times per minute without thinking about it. Deliberately slowing to about 6 breaths per minute has been shown to measurably improve heart rate variability, which is the healthy, flexible variation between beats that reflects a calm nervous system. A simple pattern: breathe in for 4 seconds, hold for 4 seconds, breathe out for 4 seconds, hold for 4 seconds. Repeat for two to three minutes. This kind of controlled breathing shifts your nervous system away from its fight-or-flight mode and toward the rest-and-digest state that stabilizes heart rhythm.

Preventing Palpitations Before Bed

Watch What You Eat at Night

Late meals, especially high-carbohydrate ones, can spike your blood sugar and trigger a compensatory insulin response that leaves your blood sugar low. That drop can cause your heart to race. High-sodium foods like processed snacks and canned soups are another common trigger. Caffeine and alcohol are obvious culprits, but they’re worth mentioning because even an afternoon coffee or a single evening drink can linger in your system long enough to disrupt your heart rhythm hours later. Try finishing your last meal at least two to three hours before bed, and keep it moderate in size.

Address Stress and Anxiety

Anxiety-driven palpitations tend to start suddenly and resolve within a few minutes once the stress passes. But if you climb into bed with a racing mind, your sympathetic nervous system stays activated, and your heart follows. A consistent wind-down routine matters more than any single relaxation trick. The slow breathing technique described above doubles as a pre-sleep practice. Even five minutes of it before turning out the light can meaningfully lower your resting heart rate.

Consider Magnesium

Low magnesium is a well-known contributor to premature heartbeats, the type that feel like a skip or an extra thump. Many people find that supplementing with magnesium reduces the frequency of these episodes. Magnesium glycinate and magnesium taurate are the forms most commonly recommended for heart-related symptoms because they’re well absorbed and less likely to cause digestive issues than other forms. A typical range is 200 to 400 mg daily, though individual needs vary. If you’re already eating plenty of leafy greens, nuts, and seeds, you may not need supplementation at all.

Sleep Apnea: A Hidden Cause

If you snore, wake up gasping, or feel exhausted despite a full night’s sleep, obstructive sleep apnea could be driving your palpitations. The connection is strong: people with moderate to severe sleep apnea have nearly five times the odds of developing atrial fibrillation compared to people without it. The mechanism is mechanical. When your airway collapses during sleep, the effort to breathe against a blocked throat creates dramatic pressure swings inside your chest, stretching the heart muscle. Each episode also triggers a surge of adrenaline-like activity as oxygen levels drop, which can kick off irregular rhythms.

The data is striking. In one study, nights with the worst apnea severity doubled the likelihood of atrial fibrillation the following day compared to milder nights. Sleep apnea also raises the risk of dangerous ventricular rhythm disturbances, with a 2-fold increase in one type and a 50% increase in another. Treating sleep apnea, typically with a CPAP device that keeps the airway open, often resolves the palpitations entirely. If nighttime palpitations are a recurring problem and you have any risk factors for apnea (snoring, obesity, a thick neck, daytime sleepiness), getting a sleep study is one of the most impactful steps you can take.

Anxiety Palpitations vs. Something More Serious

Most nighttime palpitations are benign. Anxiety-related episodes typically last seconds to a few minutes and stop on their own once you calm down. Arrhythmias like atrial fibrillation, by contrast, can persist for much longer and often come with a sustained irregular rhythm rather than a single skip or brief flutter.

Certain symptoms alongside palpitations warrant immediate attention: sudden loss of consciousness or collapse, dizziness or lightheadedness that doesn’t pass quickly, and chest pain. A family history of sudden cardiac death at a young age or known inherited heart conditions is another red flag, particularly if you’re under 40. Palpitations that happen frequently, last more than a few minutes at a stretch, or come with any of these warning signs are worth a medical evaluation rather than self-management alone.