Doctors Note Logo

Published on: 12/5/2025

Why is my chest hurting when I lay down?

Chest pain that worsens when lying down is often from acid reflux but can also signal pericarditis, angina/heart attack, pleurisy or pneumonia, costochondritis, or anxiety. There are several factors to consider—timing, triggers, and accompanying symptoms—because red flags like spreading pressure, shortness of breath, sweating, fever, or fainting need urgent care. See below for how to tell the difference, what you can try at home, and when to call a clinician or 911.

answer background

Explanation

Why Does My Chest Hurt When I Lay Down?

Chest pain when you lie flat is a common complaint. While it can be alarming, there are many possible reasons—some harmless, others serious. Understanding why your chest hurts when you lay down can help you decide when to seek care and how to find relief.

  1. Gastroesophageal Reflux Disease (GERD)
    Gastroesophageal reflux happens when stomach acid flows back into the esophagus. Lying down often makes this worse:

• Why it hurts: Gravity no longer keeps acid in the stomach, so acid pools and irritates the esophagus lining.
• Symptoms: Burning sensation behind the breastbone, sour taste, burping, worse after meals or at night.
• What the experts say: According to Katz & Gerson (2013) guidelines, raising the head of your bed, avoiding late or heavy meals, and limiting trigger foods (spicy, fatty, caffeinated) can reduce symptoms. Over-the-counter antacids or acid blockers (H2-blockers, proton-pump inhibitors) may help.

  1. Pericarditis
    Pericarditis is inflammation of the sac around your heart (pericardium). Pain often worsens when you lie flat or take a deep breath.

• Why it hurts: Inflammation causes the heart’s covering to rub against nearby structures.
• Symptoms: Sharp, stabbing pain in the center or left of chest; pain may improve when sitting up and leaning forward. You might also have fever or shortness of breath.
• Action steps: Seek prompt medical care. An ECG and echocardiogram can confirm pericarditis. Treatment may include anti-inflammatory medications.

  1. Angina and Other Heart Conditions
    Reduced blood flow to the heart muscle (angina) or, more seriously, a heart attack can present with chest discomfort that changes with body position.

• Why it hurts: When lying flat, increased venous return and pressure on the heart can trigger discomfort if coronary arteries are narrowed.
• Symptoms: Pressure, tightness, squeezing in chest; may radiate to arms, neck, jaw or back; accompanied by sweating, nausea, lightheadedness.
• When to worry: Chest pain with physical exertion, lasting more than a few minutes, or coming with cold sweat and breathlessness needs immediate evaluation. Call emergency services.

  1. Costochondritis and Musculoskeletal Strain
    Inflammation of the cartilage connecting ribs to the breastbone (costochondritis) or chest muscle strain can cause localized pain.

• Why it hurts: Certain positions stretch or compress inflamed joints or strained muscles, often more noticeable when lying on one side.
• Symptoms: Sharp, localized pain that you can reproduce by pressing on the chest wall; often related to heavy lifting, coughing, or a recent injury.
• Relief tips: Rest, over-the-counter pain relievers (NSAIDs), and gentle stretches usually improve symptoms over days to weeks.

  1. Pleurisy and Other Lung Issues
    Inflammation of the lining around the lungs (pleura) or lung infections can cause chest pain when you change position or take deep breaths.

• Why it hurts: Inflamed pleura rub together during breathing; lying flat can alter how your lungs expand.
• Symptoms: Sharp pain that worsens with breathing, coughing or sneezing; may have fever, cough, or shortness of breath.
• Next steps: A chest X-ray or ultrasound can check for pneumonia, pleural effusion, or pulmonary embolism.

  1. Anxiety and Panic Attacks
    Stress and panic can trigger chest tightness or pain that may feel worse at night or when you lie down alone with your thoughts.

• Why it hurts: Hyperventilation and muscle tension cause chest discomfort; lying flat can make you more aware of your breathing.
• Symptoms: Racing heart, sweating, trembling, sense of doom, tingling in hands or feet.
• Coping strategies: Deep-breathing exercises, mindfulness, or talking with a mental health professional can help. If you’re unsure, get checked first to rule out physical causes.

When to Seek Immediate Help
Some signs mean you should call 911 or go to the nearest emergency department:

• Severe chest pain lasting more than a few minutes
• Pain spreading to the jaw, shoulder, arm or back
• Sudden shortness of breath, dizziness or fainting
• Cold sweat, nausea or lightheadedness
• Swelling in the legs, abdominal bloating (could indicate heart failure)
• High fever, chills plus chest pain (possible infection)

Free, Online Symptom Check
Not sure what’s causing your discomfort? Try a free, online symptom check for Chest pain to get personalized information and next-step advice.

If your chest pain doesn’t have an obvious cause, worsens, or comes with any of the “red flags” above, speak to a doctor. Only a healthcare professional can rule out life-threatening conditions and guide you to the right treatment.

Tips for Relief at Home
While you’re figuring things out, here are some simple strategies that might ease chest pain when you lie down:

• Elevate your head: Use extra pillows or raise the head of your bed by 6–8 inches.
• Watch your diet: Avoid fatty, spicy or acidic foods close to bedtime.
• Relax your mind: Practice deep breathing, meditation or gentle yoga before bed.
• Use heat or cold: A heating pad or ice pack on your chest wall may help with muscle soreness.
• Stay active: Light exercise during the day can reduce reflux and improve posture.

Key Takeaways
• Chest pain when lying down can have many causes—from acid reflux and muscle strain to serious heart or lung conditions.
• Note your other symptoms: timing, triggers, quality of the pain, and any accompanying signs like fever or breathlessness.
• If you have high-risk features (radiating pain, sweating, fainting, severe shortness of breath), seek emergency care.
• For mild cases, simple lifestyle changes and over-the-counter remedies may help, but persistent or unexplained pain deserves a professional evaluation.

Always err on the side of caution. If you’re ever in doubt, speak to a doctor immediately to make sure nothing serious is going on.

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.