Heart palpitations at night are usually caused by a combination of factors that become more noticeable when your body is at rest: your sleeping position, stimulants still in your system, digestive activity, or underlying conditions like sleep apnea or hormonal changes. Because you’re lying still in a quiet room with fewer distractions, you’re far more likely to notice heartbeat irregularities that would go undetected during the day.
Most nighttime palpitations are harmless, but some patterns point to conditions worth investigating. Here’s what’s actually happening in your body.
Your Sleeping Position Matters More Than You Think
If you notice palpitations most when lying on your left side, there’s a straightforward anatomical explanation. Your heart sits behind the sternum, roughly centered in your chest, but the lower tip angles slightly to the left. This tip is made up largely of the left ventricle, the chamber responsible for pumping blood out to your entire body. When you roll onto your left side, gravity shifts that muscular, forcefully pumping section of the heart closer to your chest wall.
At the same time, your rib cage compresses slightly against the mattress under the weight of your body. The combination of the heart shifting and the chest wall pressing inward means the strongest pumping action in your heart is now separated from the surface of your skin by very little tissue. The result is a perceptible thump that many people mistake for an abnormal rhythm. Try rolling onto your right side or your back. If the sensation disappears, your position was the culprit, not your heart.
Sleep Apnea and Oxygen Drops
Obstructive sleep apnea is one of the most underdiagnosed causes of nighttime palpitations. During an apnea episode, your airway partially or fully collapses, cutting off airflow for seconds at a time. Your blood oxygen level drops, and your nervous system responds with a burst of stress hormones to jolt you awake enough to resume breathing. That adrenaline surge can push your heart into fast, irregular, or skipped beats.
Research on sleep apnea patients has found heart rhythm disturbances in more than 50% of cases, driven by repeated oxygen desaturation throughout the night. People with more severe apnea tend to have more dramatic oxygen drops and a higher rate of arrhythmias. In one study, patients with nighttime rhythm disturbances had oxygen levels dipping to 69% at their lowest point, compared to 77% in those without arrhythmias. (Normal oxygen saturation is 95% or above.)
If you snore heavily, wake up gasping, or feel exhausted despite a full night of sleep, sleep apnea may be behind your palpitations. Treating the apnea, typically with a device that keeps your airway open during sleep, often resolves the heart symptoms as well.
Late Meals and the Vagus Nerve
Eating a large meal close to bedtime can trigger palpitations through a nerve most people have never heard of. The vagus nerve is a long, branching nerve that runs from your brain through your neck and into your chest and abdomen. It carries about 75% of the nerve fibers responsible for your “rest and digest” functions, and it directly influences both your digestive system and your heart rate.
When your stomach is working hard to break down a big or heavy meal, the vagus nerve is highly active. That increased signaling can spill over into heart rate regulation, causing your heart to speed up, slow down, or beat irregularly. Lying down makes this worse because gravity no longer helps keep stomach acid in place, and acid reflux itself can further stimulate the vagus nerve. If your palpitations tend to follow late dinners or bedtime snacks, eating your last meal two to three hours before bed is a simple fix worth trying.
Stimulants, Alcohol, and Dehydration
Caffeine consumed in the afternoon or evening stays active in your body for hours. Its half-life is roughly five to six hours, meaning half the caffeine from a 3 p.m. coffee is still circulating at 9 p.m. Even if you fall asleep without trouble, caffeine keeps your nervous system slightly revved, making irregular beats more likely.
Alcohol is deceptive. It may help you feel relaxed initially, but as your body metabolizes it overnight, it triggers a mild stimulant rebound. Your heart rate increases, and your sleep architecture fragments. This is why palpitations after a few drinks often hit in the middle of the night rather than right after your last glass. Dehydration from alcohol (or simply not drinking enough water during the day) concentrates your blood and forces your heart to work harder to maintain circulation, another trigger for that racing or pounding sensation.
Hormonal Shifts During Menopause
For women in perimenopause or menopause, fluctuating hormone levels are one of the most common causes of heart palpitations. Estrogen influences how blood vessels dilate and how the nervous system regulates heart rate. As estrogen levels swing unpredictably, the heart can respond with episodes of racing, fluttering, or skipped beats.
These palpitations often arrive alongside hot flashes. A sudden rush of heat, flushing, and sweating triggers a spike in heart rate that feels alarming when you’re lying quietly in bed. The combination of waking from sleep, feeling overheated, and sensing your heart pound can create significant anxiety, which feeds back into more palpitations. If you’re in your 40s or 50s and these episodes coincide with other menopausal symptoms, hormonal changes are a very likely explanation.
Low Electrolyte Levels
Your heart’s electrical system depends on a precise balance of minerals, particularly potassium and magnesium. When levels of either run low, the heart’s normal rhythm becomes unstable. Low potassium can cause the heart to develop abnormal electrical firing patterns and delay the signals that coordinate each beat. Low magnesium compounds the problem, especially when combined with other electrolyte imbalances.
You don’t need a dramatic deficiency for this to matter. Mild depletion from sweating, diuretic medications, chronic stress, or a diet low in leafy greens, nuts, and bananas can be enough to tip your heart rhythm toward irregularity. These effects are more noticeable at night because your heart rate is slower at rest, and any disruption in the electrical timing becomes proportionally more prominent.
Thyroid Overactivity
An overactive thyroid gland floods your body with thyroid hormone, which directly stimulates the heart to beat harder and faster. This can trigger palpitations at any time of day, but many people first notice them at night because daytime activity masks the sensation. Excess thyroid hormone can also cause atrial fibrillation, a disorganized rhythm in the heart’s upper chambers that produces a distinctive fluttering or quivering feeling in the chest.
Other signs of an overactive thyroid include unexplained weight loss, heat intolerance, trembling hands, and difficulty sleeping. A simple blood test can confirm or rule it out.
Anxiety and Stress Activation
When you lie down to sleep, your brain often takes the opportunity to process the day’s worries. Even low-grade anxiety activates your sympathetic nervous system, releasing stress hormones that raise your heart rate and make you hyperaware of each beat. This creates a feedback loop: you notice your heart beating, which makes you anxious, which makes your heart beat faster, which makes you more aware of it.
Chronic stress also elevates your baseline levels of cortisol and adrenaline throughout the day. By nighttime, your body may struggle to shift into the calm, parasympathetic state needed for restful sleep. The result is a heart that feels like it’s working harder than it should for someone who’s just lying in bed.
How Nighttime Palpitations Are Diagnosed
The challenge with nighttime palpitations is that they often vanish by the time you see a doctor. A standard electrocardiogram captures only a brief snapshot of your heart’s rhythm, so it frequently misses irregular beats that happen during sleep. If your doctor suspects a rhythm issue, the next step is usually a Holter monitor, a small wearable device that continuously records your heart’s electrical activity for one to two days, including while you sleep.
You wear the monitor around the clock, and it captures every heartbeat during that window. If one to two days isn’t enough to catch an episode, an event monitor extends the recording period to several weeks. With these devices, you press a button when you feel symptoms so the recording can be correlated with what your heart was actually doing at that moment. Blood work to check thyroid function, electrolyte levels, and red blood cell counts can identify systemic causes.
Warning Signs That Need Immediate Attention
Most nighttime palpitations are benign, but certain accompanying symptoms change the picture. Palpitations combined with sudden loss of consciousness, even briefly, warrant an emergency room visit. The same is true for a racing heart paired with dizziness or lightheadedness that doesn’t resolve within a few minutes, or palpitations accompanied by chest pain or pressure. These combinations can signal a serious arrhythmia or reduced blood flow to the heart that needs evaluation right away.

