Why Is My Heart Beating Fast at Night and I Can't Sleep?

REVIEWED BY

William Maish, MD MBA MPH

Clinical Product Lead

Published

Last updated

Quick answer:

A racing heart at night is usually triggered by caffeine, alcohol, dehydration, stress hormones, or body position — not a cardiac emergency. Atrial fibrillation alone affects more than 12 million Americans and commonly strikes at night. Identifying the true driver requires looking at thyroid function, electrolyte levels, and cortisol, not just the symptom itself.

Read more →

Understand what your sleep health results really mean

See your biomarkers in context with a comprehensive panel.

  • CLIA-certified labs
  • HIPAA compliant
  • Personalized health protocol
Book your test

Why your heart beats faster at night

Your nervous system shifts gears

During the day, noise, movement, and mental activity mask subtle changes in your heart rate. At night, your parasympathetic nervous system (the "rest and digest" branch) is supposed to take over and slow everything down. When it doesn't fully engage, you feel each beat more intensely.

Body position matters

Lying on your left side can bring your heart closer to your chest wall, making each contraction feel stronger. A study in Clinical Autonomic Research showed that body position significantly influences heart rate variability during sleep. This doesn't mean something is wrong. It means your heart is simply easier to detect.

Heightened interoception at rest

When external stimulation drops, your brain turns its attention inward. This phenomenon, called interoception, means you become more aware of signals from your organs. If you're already anxious, this awareness can spiral into a feedback loop where noticing your heartbeat makes it beat faster.

Common causes of a racing heart at bedtime

Caffeine and stimulant lingering

Caffeine has a half-life of about five hours. That afternoon espresso at 3 p.m. still has half its stimulant power at 8 p.m. Research published in the * Journal of Clinical Sleep Medicine * found that caffeine consumed even six hours before bed significantly disrupted sleep quality. If your heart is beating fast at night and you can't sleep, your coffee habit is the first place to look.

Dehydration and electrolyte imbalances

When your blood volume drops from dehydration, your heart compensates by beating faster to maintain circulation. Low levels of magnesium, potassium, or calcium can also trigger palpitations. These minerals regulate the electrical impulses that keep your heart rhythm steady.

Thyroid overactivity

An overactive thyroid (hyperthyroidism) revs up your metabolism, including your heart rate. If nighttime palpitations come with unexplained weight loss, heat intolerance, or tremors, a thyroid function test can clarify what's happening.

Alcohol before bed

Alcohol might make you drowsy, but it raises your heart rate as your body metabolizes it. A study in JAMA Network Open confirmed that even moderate drinking elevated resting heart rate for several hours afterward.

Join 150,000+ others building better health

Get the science behind better health, every week.

By clicking “Subscribe” you agree to our Terms of Service and Privacy Policy.

When nighttime palpitations signal something serious

Red flags to watch for

Most palpitations are harmless premature beats or sinus tachycardia. But certain symptoms alongside a racing heart demand prompt medical evaluation:

  • Chest pain or tightness that doesn't resolve within a few minutes
  • Dizziness, lightheadedness, or fainting
  • Shortness of breath at rest
  • A heart rate consistently above 100 bpm at rest without an obvious trigger
  • Episodes lasting longer than a few minutes or occurring frequently

Arrhythmias worth investigating

Atrial fibrillation (AFib) affects more than 12 million Americans, and episodes often strike at night. AFib feels like an irregular, fluttering heartbeat rather than a simple fast beat. If your palpitations feel chaotic rather than just fast, mention this to your care team. A Holter monitor or event recorder can capture what's happening electrically while you sleep.

How anxiety and stress fuel nighttime heart racing

The cortisol connection

Stress raises cortisol, and elevated cortisol keeps your sympathetic nervous system (the "fight or flight" branch) on high alert. When you finally lie down, your body may still be running on daytime stress hormones. Research in Psychoneuroendocrinology links elevated evening cortisol to poor sleep onset and increased heart rate variability disruption.

The anxiety-palpitation feedback loop

Noticing your heart beating fast at night can trigger sleep anxiety, which further raises your heart rate. This loop is why many people with health anxiety report worse palpitations. Cognitive behavioral therapy for insomnia (CBT-I) has shown strong results in breaking this cycle, according to research in Annals of Internal Medicine.

Hypervigilance at bedtime

If you've experienced a scary palpitation episode before, your brain may become hypervigilant at bedtime. You scan for the sensation, find it, and escalate. Recognizing this pattern is the first step toward calming it. Mindfulness-based stress reduction can help retrain your response to body sensations.

The role of diet and stimulants

Heavy meals before bed

Eating a large meal within two hours of bedtime forces your cardiovascular system to work harder to support digestion. Blood flow redirects to your gut, and your heart rate increases to compensate. Sleeping right after eating can also worsen acid reflux, which itself mimics chest tightness and palpitations.

Sugar spikes and crashes

A high-sugar snack before bed can trigger a blood sugar spike followed by a reactive drop. That drop activates your adrenal glands, releasing adrenaline to bring glucose back up. The result? A racing heart at exactly the wrong time. Choosing a protein-rich evening snack, like peanut butter, can stabilize blood sugar through the night.

Nicotine and other stimulants

Nicotine is a stimulant that raises heart rate and blood pressure. Smoking or vaping close to bedtime puts your cardiovascular system into a state that's the opposite of sleep-ready. Even nicotine patches can cause nighttime palpitations if worn overnight.

Test 150+ biomarkers

Two blood draws. A full picture of your health, explained in plain language.

Book your test

How to calm a fast heartbeat at night

Vagal maneuvers

Stimulating your vagus nerve activates the parasympathetic nervous system and can slow your heart rate within seconds. Try these techniques when you feel your heart racing in bed:

  • Slow, deep breathing: inhale for 4 counts, hold for 4, exhale for 6
  • Bearing down gently (the Valsalva maneuver)
  • Splashing cold water on your face to trigger the dive reflex
  • Gentle carotid sinus massage (ask your care team to show you the proper technique first)

Progressive muscle relaxation

Tensing and releasing muscle groups from your toes to your scalp redirects your attention away from your heartbeat and signals your nervous system to stand down. A meta-analysis in the Journal of Psychosomatic Research found progressive muscle relaxation significantly improved sleep quality and reduced anxiety symptoms.

Change your position

If you feel palpitations while lying on your left side, try shifting to your right side or propping yourself up slightly with an extra pillow. Elevating your upper body can also help if acid reflux is contributing to the sensation. Sometimes the simplest fix is the most effective.

Lifestyle changes for long-term relief

Set a caffeine curfew

Cut off caffeine by noon, or at least eight hours before your target bedtime. This includes coffee, energy drinks, pre-workout supplements, and dark chocolate. Track whether your nighttime heart rate drops over the following week.

Build a wind-down routine

Your nervous system needs a transition period between the stimulation of your day and the stillness of sleep. Spend 30 to 60 minutes before bed on low-stimulation activities: reading, gentle stretching, or listening to calming music. White noise machines can also mask the silence that amplifies your awareness of your heartbeat.

Stay hydrated and check your minerals

Drink water consistently throughout the day, not just at bedtime. If you exercise heavily or sweat a lot, consider an electrolyte supplement. Testing your magnesium, potassium, and calcium levels through a blood panel can reveal deficiencies you'd never guess from symptoms alone.

Move your body earlier in the day

Regular exercise strengthens your heart and lowers your resting heart rate over time. But intense workouts within two to three hours of bedtime can temporarily elevate your heart rate and cortisol. Aim to finish vigorous activity by early evening.

Take the guesswork out of your heart health

Understanding why your heart is beating fast at night means looking beyond the symptom to the underlying drivers. Thyroid function, electrolyte balance, and stress hormones all play roles that you can't assess by feel alone.

Superpower's comprehensive blood panel measures over 150 biomarkers, including thyroid hormones, magnesium, potassium, and cortisol markers linked to nighttime palpitations. Paired with personalized protocols, you get a clear picture of what's driving your symptoms and what to do about it.

Start your Superpower membership today and turn those late-night questions into real answers.

Frequently Asked Questions

References

  1. Drake C, Roehrs T, Shambroom J, Roth T (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. *Journal of clinical sleep medicine : JCSM : official publication of the American Academy of Sleep Medicine*, *9*(11), 1195-200. https://doi.org/10.5664/jcsm.3170
  2. Thyroid. (n.d.). *Thyroid Function Tests*. https://thyroid.org/thyroid-function-tests
  3. Jamanetwork. (n.d.). *Fullarticle*. https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2810077
  4. American Heart Association. (n.d.). *What is an Arrhythmia?*. https://heart.org/en/health-topics/arrhythmia/about-arrhythmia
  5. Adam EK, Quinn ME, Tavernier R, McQuillan MT, Dahlke KA, Gilbert KE (2017). Diurnal cortisol slopes and mental and physical health outcomes: A systematic review and meta-analysis. *Psychoneuroendocrinology*, *83*, 25-41. https://doi.org/10.1016/j.psyneuen.2017.05.018
  6. Trauer JM, Qian MY, Doyle JS, Rajaratnam SM, Cunnington D (2015). Cognitive Behavioral Therapy for Chronic Insomnia: A Systematic Review and Meta-analysis. *Annals of internal medicine*, *163*(3), 191-204. https://doi.org/10.7326/M14-2841
  7. Gong H, Ni CX, Liu YZ, Zhang Y, Su WJ, Lian YJ, Peng W, Jiang CL (2016). Mindfulness meditation for insomnia: A meta-analysis of randomized controlled trials. *Journal of psychosomatic research*, *89*, 1-6. https://doi.org/10.1016/j.jpsychores.2016.07.016

Led by doctors with 40 years of health and longevity expertise

Dr. Anant Vinjamoori

Dr. Anant Vinjamoori, MD

Chief Longevity Officer, Superpower

Dr. Leigh Erin Connealy

Dr. Leigh Erin Connealy, MD

Clinician & Founder of The Centre for New Medicine

Dr. Robert Lufkin

Dr. Robert Lufkin, MD

Physician & UCLA Medical School Professor, NYT bestselling author

Dr. Abe Malkin

Dr. Abe Malkin, MD

Founder & Medical Director of Concierge MD

Biological age 32 — a Superpower member portraitA health system built around you — test, understand, optimize150+ biomarkers across 2 blood drawsWhat to expect with Superpower — week 1 to month 3Trusted by 64,000+ customers — member reviewsBetter than the status quo — Superpower vs the old way60% of members found something a doctor missed — member survey
Daniel OSuperpower memberDavid LSuperpower memberRachel DSuperpower memberCamelia VSuperpower member

4.6 · 64,000+ members

Superpower health membership

Find early signs of 1,000+ conditions - then act, retest, and see what changed.

$349

/year*

150+ biomarkers annually across baseline + retest

Personalized plan that turns results into action

Superpower AI and on-demand care team

Results in 10 days or less

At-home or 2,000+ labs nationwide**

Yearly membership$0.96 / dayHSA/FSA eligible

*Pricing may vary for members in New York and New Jersey

**At-home labs for an additional cost

What we test

TestosteroneFree T4Vitamin DApoBHbA1cThyroid (TSH)hs-CRPFerritinCortisolFasting insulin

60%

found something a doctor missed

93%

rated it more useful than their checkup

77%

found something new in their results

Superpower member survey, 90 days post action plan (n=143).

How does the Superpower membership work?

We test 150+ biomarkers annually across two blood draws. Your baseline test paints a comprehensive picture of your health, and your dashboard shows what’s working, what needs attention, and what to do next. Superpower AI and your care team help you take action across lifestyle, supplements, and treatments. Then we retest to track your progress and continue refining your plan.

Can I cancel anytime?

Yes. You can cancel anytime, no fees. Your membership stays active through the end of your paid year.

How often should I test?

Your membership includes two blood tests per year: one to establish your baseline, and one to see whether your plan improved biomarkers that were out of range or not yet optimized. You can add other diagnostics anytime through the app or with help from your care team.

When will I get my results?

Book your draw at any of 2,000+ partner labs or at-home. Results are typically ready in about a week and land in the Superpower app.

What the 100+ panel measures

All 101 markers in your annual baseline draw, organized by system. Nothing here is an upsell.

Heart & Vascular Health

26

  • Apolipoprotein B
  • Atherogenic Coefficient
  • Atherogenic Index of Plasma
  • Castelli Risk Index I
  • Castelli Risk Index II
  • HDL Cholesterol
  • LDL Cholesterol
  • LDL/HDL Ratio
  • Cholesterol, Total
  • Non-HDL Cholesterol
  • Cholesterol/HDL Ratio
  • Carbon Dioxide, Total
  • High-sensitivity CRP
  • hsCRP-to-Albumin Ratio (CAR)
  • GGT-to-HDL Cholesterol Ratio
  • LDL-C to Apolipoprotein B Ratio (LDL-C/ApoB)
  • LDL Cholesterol / Total Cholesterol (Mass Ratio)
  • Monocyte-to-HDL Ratio (MHR)
  • Neutrophil-to-HDL Cholesterol Ratio (NHR)
  • Non-HDL Cholesterol-to-Apolipoprotein B Ratio (Non-HDL-C/ApoB)
  • NON-HDL Total Cholesterol Ratio
  • Triglyceride HDL Molar Ratio
  • Triglycerides
  • Triglyceride-to-Apolipoprotein B Ratio (TG/ApoB)
  • TyG Index
  • Uric Acid

Metabolic Health

4

  • Estim. Avg Glu (eAG)
  • Eag (mmol/l)
  • Glucose
  • Hemoglobin A1c

Energy

1

  • Cortisol

Liver Health

15

  • Albumin/Globulin Ratio
  • Albumin
  • Alkaline Phosphatase (ALP)
  • Alanine Aminotransferase (ALT)
  • Aspartate Aminotransferase (AST)
  • Bilirubin Direct
  • Bilirubin Indirect
  • Bilirubin, Total
  • Bilirubin-to-Albumin Ratio
  • Ferritin
  • Ferritin-to-Albumin Ratio
  • y-Glutamyl Transferase (GGT)
  • Globulin, Total
  • Indirect-to-Direct Bilirubin Ratio
  • Protein, Total

Kidney

11

  • Calcium
  • Chloride
  • Corrected Calcium (Albumin-adjusted)
  • Creatinine
  • Estimated Glomerular Filtration Rate (eGFR)
  • Potassium
  • Sodium
  • BUN/Creatinine Ratio
  • Blood Urea Nitrogen (BUN)
  • Urea-to-Creatinine Ratio
  • Uric Acid-to-HDL Cholesterol Ratio (UHR)

Sex Hormones

7

  • DHEA-Sulfate (DHEA-S)
  • Free Androgen Index
  • Sex Hormone Binding Globulin (SHBG)
  • Free Testosterone
  • Testosterone, Bioavailable
  • Testosterone, Total
  • Testosterone-to-Estradiol Ratio (T/E₂)

Thyroid Health

4

  • Free Thyroxine Index
  • T3 Uptake
  • T4 (thyroxine) Total
  • Thyroid-Stimulating Hormone (TSH)

Nutrients

13

  • Vitamin D
  • Red Cell Dist Width (RDW)
  • Hematocrit
  • Hemoglobin
  • Total Iron Binding Capacity (TIBC)
  • Iron
  • Iron Saturation
  • Mean Cell Hemoglobin (MCH)
  • Mean Corpuscular Hemoglobin Concentration (MCHC)
  • Mean Cell Volume (MCV)
  • Platelet-to-WBC Ratio (PWR)
  • Red Blood Cells
  • RDW MCV Ratio

Immune System

12

  • Basophils
  • Baso (Absolute)
  • Eosinophils
  • Eos (Absolute)
  • Lymphocytes
  • Lymphs (Absolute)
  • Monocytes
  • Monocytes (Absolute)
  • Neutrophils
  • Neutrophils (Absolute)
  • Mean Platelet Volume
  • Platelet Count

Inflammation

8

  • Lymphocyte-to-Monocyte Ratio (LMR)
  • Monocyte-to-Lymphocyte Ratio (MLR)
  • Neutrophil-to-Lymphocyte-Platelet Ratio (NLPR)
  • Neutrophil-to-Lymphocyte Ratio (NLR)
  • Platelet-to-Lymphocyte Ratio (PLR)
  • Systemic Immune-Inflammation Index
  • Systemic Inflammation Response Index (SIRI)
  • White Blood Cells
Get my health baseline

The full list of 100+ markers and 8 specialty add-ons available at superpower.com/what-we-test.