Doctors Note Logo

Published on: 3/13/2026

Nighttime Chest Pain: Is It Heartburn, Anxiety, or Your Sleep?

Nighttime chest pain can come from heartburn or reflux, anxiety or panic, sleep issues like apnea or poor posture, and muscle strain, but it can also be angina or a heart attack.

There are several factors to consider, like burning after meals worse when lying down, panic symptoms, exertional pressure that spreads to the arm or jaw, pain reproducible with movement, or snoring and daytime fatigue; severe or crushing pain, shortness of breath, or spreading pain needs emergency care, while recurring symptoms or risk factors warrant a doctor visit. See below for a fuller guide to distinguishing signs, self care steps, and the exact next tests and actions to discuss with your clinician.

answer background

Explanation

Nighttime Chest Pain: Is It Heartburn, Anxiety, or Your Sleep?

Chest pain at night can be unsettling. When you're lying in bed and feel pressure, burning, tightness, or sharp discomfort in your chest, your mind may jump to the worst-case scenario. The truth is, nighttime chest pain has many possible causes. Some are mild and common, like heartburn. Others, such as heart disease, are serious and require urgent care.

Understanding the differences can help you respond appropriately — without ignoring something important or panicking unnecessarily.

Below, we break down the most common causes of chest pain at night, how to tell them apart, and when to seek medical help.


Common Causes of Chest Pain at Night

1. Heartburn and Acid Reflux (GERD)

One of the most frequent causes of chest pain at night is acid reflux, also known as gastroesophageal reflux disease (GERD).

When you lie down, stomach acid can flow backward into your esophagus. This can cause a burning sensation in your chest, often called heartburn.

Typical signs of nighttime heartburn include:

  • A burning feeling behind the breastbone
  • Pain that worsens when lying flat
  • A sour or bitter taste in the mouth
  • Regurgitation of food or acid
  • Relief when sitting upright or taking antacids

Nighttime reflux is common because gravity no longer helps keep stomach contents down. Eating large meals, spicy foods, alcohol, or eating close to bedtime can make it worse.

While GERD is usually not life-threatening, chronic reflux can damage the esophagus over time and should be discussed with a doctor if frequent.


2. Anxiety or Panic Attacks

Anxiety can absolutely cause chest pain at night. In fact, nighttime panic attacks are common and can wake you from sleep.

During anxiety or panic episodes, your body releases stress hormones. This can cause:

  • Chest tightness or sharp pain
  • Rapid heartbeat
  • Shortness of breath
  • Sweating
  • Dizziness
  • A feeling of doom or loss of control

Unlike heartburn, anxiety-related chest pain often comes with intense emotional distress. The pain may feel sharp or stabbing and may improve as you calm down.

However, anxiety symptoms can closely mimic heart problems. If chest pain is new, severe, or different from previous panic attacks, it's important to get medical evaluation rather than assuming it's "just anxiety."


3. Heart-Related Causes

Not all chest pain at night is harmless. Some cases are related to the heart and need urgent care.

Angina

Angina occurs when the heart muscle doesn't get enough oxygen-rich blood. It may feel like:

  • Pressure, squeezing, or heaviness in the chest
  • Pain that spreads to the arm, jaw, neck, or back
  • Discomfort triggered by exertion or stress
  • Relief with rest

Some people experience angina at night, particularly a type called variant angina (Prinzmetal angina), which can happen at rest due to spasms in the heart arteries.

Heart Attack

A heart attack can occur at any time — including during sleep or early morning hours.

Call emergency services immediately if chest pain is accompanied by:

  • Crushing or severe pressure
  • Pain spreading to the arm, jaw, or back
  • Shortness of breath
  • Nausea or vomiting
  • Cold sweats
  • Lightheadedness

Women, older adults, and people with diabetes may have less typical symptoms, such as fatigue, mild pressure, or discomfort rather than intense pain.

Do not ignore persistent or severe chest pain at night. It is always better to be evaluated and reassured than to miss a serious condition.


4. Sleep-Related Issues

Your sleep position and sleep disorders can also contribute to nighttime chest discomfort.

Obstructive Sleep Apnea (OSA)

Sleep apnea causes repeated pauses in breathing during sleep. It is linked to:

  • Chest discomfort
  • Morning headaches
  • Loud snoring
  • Gasping during sleep
  • Excessive daytime fatigue

Sleep apnea increases strain on the heart and raises the risk of high blood pressure and heart disease. If chest pain at night occurs along with snoring and breathing pauses, discuss sleep testing with your doctor.

Muscle or Rib Pain

Sometimes chest pain has nothing to do with the heart or stomach.

Musculoskeletal causes include:

  • Strained chest muscles
  • Inflammation of rib cartilage (costochondritis)
  • Poor sleep posture

These types of pain often:

  • Feel sharp or localized
  • Worsen with movement or pressing on the area
  • Improve with rest or anti-inflammatory medication

How to Tell the Difference

While no checklist replaces medical care, these patterns can offer clues:

Symptom Pattern More Likely Cause
Burning pain after meals, worse lying down Heartburn
Pain with panic, racing heart, fear Anxiety
Pressure with exertion, spreading to arm/jaw Heart-related
Pain with movement or touch Muscle-related
Snoring, gasping, daytime fatigue Sleep apnea

Because symptoms overlap, uncertainty is common. If you're unsure about what's causing your discomfort, you can use a free AI-powered chest pain symptom checker to help identify potential causes and determine whether you should seek immediate care or schedule an appointment with your doctor.


When to Seek Immediate Medical Care

Call emergency services right away if chest pain at night:

  • Is sudden and severe
  • Feels like crushing pressure
  • Lasts more than a few minutes
  • Comes with shortness of breath, fainting, or sweating
  • Spreads to the arm, neck, jaw, or back

Do not drive yourself if you suspect a heart attack.


When to Schedule a Doctor's Appointment

Make a non-urgent appointment if:

  • Chest pain happens repeatedly
  • You have frequent nighttime heartburn
  • Anxiety is interfering with sleep
  • You have risk factors for heart disease (high blood pressure, diabetes, smoking, high cholesterol, family history)
  • You suspect sleep apnea

A doctor may recommend:

  • An ECG or stress test
  • Blood tests
  • A sleep study
  • Acid reflux treatment
  • Anxiety management strategies

Getting evaluated provides clarity and peace of mind.


Ways to Reduce Nighttime Chest Pain

Depending on the cause, these strategies may help:

For Heartburn:

  • Avoid large meals 2–3 hours before bed
  • Limit spicy, fatty, or acidic foods
  • Elevate the head of your bed
  • Maintain a healthy weight

For Anxiety:

  • Practice slow breathing before bed
  • Reduce caffeine intake
  • Create a calming nighttime routine
  • Consider cognitive behavioral therapy (CBT)

For Sleep Issues:

  • Sleep on your side if you snore
  • Maintain a regular sleep schedule
  • Get evaluated for sleep apnea if symptoms suggest it

For Heart Health:

  • Exercise regularly
  • Control blood pressure and cholesterol
  • Avoid smoking
  • Manage diabetes carefully

The Bottom Line

Chest pain at night can be caused by heartburn, anxiety, sleep disorders, muscle strain, or heart disease. Many cases are not life-threatening — but some are.

Pay attention to:

  • The type of pain
  • Associated symptoms
  • Your personal risk factors
  • Whether it's new, worsening, or different

If you are ever unsure, seek medical care. Chest pain should never be ignored, especially if it could be heart-related.

You may also consider starting with a free online chest pain symptom checker to better understand your symptoms before your appointment.

Most importantly, if there is any concern that your chest pain could be serious or life-threatening, speak to a doctor immediately or seek emergency care. Prompt evaluation can save lives — and often provides reassurance when the cause is less serious.

Your health and peace of mind are worth it.

(References)

  • * Roman S, Pandolfino JE. Non-cardiac chest pain. J Clin Gastroenterol. 2016 Jan;50(1):1-10. doi: 10.1097/MCG.0000000000000401. PMID: 26569145.

  • * Liu X, Ma X, Ma C, Wang D, Lu C, Yang G. Impact of obstructive sleep apnea on gastroesophageal reflux disease and esophageal motor function. J Thorac Dis. 2021 May;13(5):3172-3180. doi: 10.21037/jtd-20-3331. PMID: 34168759.

  • * Clouse RE. Psychological aspects of noncardiac chest pain. J Clin Gastroenterol. 2016 Jan;50(1):11-6. doi: 10.1097/MCG.0000000000000405. PMID: 26569146.

  • * Echeburúa E, Salaberría K, Cruz-Sáez S. Psychological characteristics of patients with anxiety and panic attacks that result in visits to the emergency room. Rev Psiquiatr Salud Ment (Engl Ed). 2017 Jan-Mar;10(1):47-50. doi: 10.1016/j.rpsm.2016.12.001. Epub 2017 Jan 31. PMID: 28161327.

  • * Finan PH, Smith MT, Quartana PJ. Sleep and pain: a bidirectional relationship. Psychol Bull. 2013 May;139(3):700-34. doi: 10.1037/a0030044. Epub 2012 Sep 24. PMID: 22985223.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Learn more about symptoms

Chest pain

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.