Feeling pain behind the breastbone as food or a drink goes down is unsettling. Doctors call it odynophagia (painful swallowing), and when food also feels stuck, dysphagia (difficult swallowing). Because the esophagus runs right behind the heart, many people worry first about a heart problem.
In most cases, chest pain that happens specifically when you swallow comes from the esophagus itself. Still, esophageal pain and heart pain can feel remarkably alike, and the two can coexist. This guide explains the common causes, the warning signs that need prompt evaluation, and how doctors make sure the heart is not involved.
Quick answer
Chest pain when swallowing is most often caused by acid reflux and inflammation of the esophagus (esophagitis), esophageal spasm, irritation from pills, infections, a narrowing (stricture), eosinophilic esophagitis or a hiatal hernia. See a doctor promptly if pain persists for more than a few days, food sticks, you lose weight, vomit blood or have black stools. Call 911 if chest pain comes with shortness of breath, sweating, or pain spreading to the arm, jaw or back, or if food is completely stuck and you cannot swallow saliva.
Have symptoms you want checked? Dr. M. Usman Khan sees patients at our Northwest Houston, Tomball and Sugar Land offices.
What patients say about our care team
Read all reviews on Google- ★★★★★
The staff was amazing, very friendly and attentive.
— Stephanie G. Google review - ★★★★★
He explained everything to me!
— Yesenia B. Google review - ★★★★★
Everyone is incredibly supportive and the standard of care is top tier.
— Humzah A. Google review - ★★★★★
It's always good when someone cares, not just comes to work.
— Cecila A. Google review - ★★★★★
I felt like I waited less time and was seen much faster!
— Yesenia B. Google review
- ★★★★★
I am extremely grateful for the support and compassion.
— Debra L. W. Google review - ★★★★★
She always takes great care of me.
— Shemeanna B. Google review - ★★★★★
Her clinical skills were exemplary. I would definitely recommend.
— Humzah A. Google review - ★★★★★
I had a great experience with my appointment today.
— Stephanie G. Google review - ★★★★★
Mrs. Maxine literally listened to my concerns.
— Cecila A. Google review
Important
Esophageal spasm can feel exactly like a heart attack and may even improve with nitroglycerin. Never assume chest pain is from the esophagus until the heart has been checked.
Why Does Swallowing Cause Chest Pain?
Swallowing triggers a wave of muscle contraction down the esophagus; if the lining is inflamed, the muscle spasms or the passage is narrowed, that wave causes pain behind the breastbone.
The esophagus is a muscular tube about 10 inches long that carries food from the throat to the stomach. It shares nerve pathways with the heart, so the brain often cannot tell the two apart. Pain may be felt in the center of the chest, between the shoulder blades or in the throat.
What Are the 7 Most Common Causes?
The seven most common causes are reflux esophagitis, esophageal spasm, pill esophagitis, infections, strictures, eosinophilic esophagitis and hiatal hernia.
1. Acid reflux and esophagitis
Repeated exposure to stomach acid inflames the lining of the esophagus, making swallowing hot, acidic or spicy food painful. Heartburn and a sour taste are common.
2. Esophageal spasm
Uncoordinated or overly strong contractions cause sudden squeezing chest pain, sometimes triggered by very hot or cold drinks. It can last minutes to hours.
3. Pill esophagitis
Pills that stick in the esophagus, especially doxycycline and other antibiotics, NSAIDs, potassium and iron tablets, and bisphosphonates for osteoporosis, can burn the lining and cause sharp pain with swallowing for days.
4. Infections
Yeast (Candida), herpes and cytomegalovirus can infect the esophagus, mostly in people with weakened immune systems, diabetes or after inhaled or oral steroids.
5. Stricture or food impaction
Scarring from long-term reflux or a ring of tissue can narrow the esophagus, so solid foods such as meat or bread stick and cause pressure or pain.
6. Eosinophilic esophagitis
An allergic-type inflammation, increasingly common in young adults, causes trouble swallowing solids, food getting stuck and chest pain. Many patients have allergies or asthma.
7. Hiatal hernia
Part of the stomach slides up through the diaphragm, worsening reflux and sometimes causing pressure or pain after meals.
Which Serious Causes Should Be Ruled Out?
Esophageal cancer, a tear or perforation of the esophagus, achalasia, and heart conditions such as angina or pericarditis must be considered when symptoms are persistent, progressive or severe.
- Esophageal cancer: progressive difficulty swallowing solids, then liquids, with weight loss, more common in older adults with long-standing reflux, smoking or heavy alcohol use.
- Perforation: severe chest pain after forceful vomiting or a procedure, often with fever; an emergency.
- Achalasia: the lower esophageal valve fails to relax, causing food to back up, regurgitation and chest pain.
- Angina or heart attack: rarely triggered by swallowing itself, but heart pain can occur after meals because digestion increases the heart’s workload. See chest pain after eating.
- Pericarditis: inflammation around the heart can cause pain that worsens with swallowing, deep breaths or lying flat.
When to seek care right away
Call 911 for:
- Chest pain with shortness of breath, sweating or nausea
- Pain spreading to the arm, jaw, neck or back
- Food stuck so you cannot swallow saliva
- Vomiting blood or severe pain after vomiting
Call your doctor the same day for:
- Painful swallowing lasting more than a few days
- Food repeatedly sticking
- Unintended weight loss
- Black stools or anemia
How Can You Tell Esophageal Pain From Heart Pain?
Pain tied to the act of swallowing, food sticking, heartburn or relief from antacids points to the esophagus, while pain with exertion, breathlessness or sweating points to the heart; testing is often needed to be sure.
| Clue | Esophagus | Heart |
|---|---|---|
| Trigger | Swallowing, hot/cold drinks, meals, lying down | Walking, stairs, stress, cold weather |
| Other symptoms | Heartburn, food sticking, regurgitation | Breathlessness, sweating, nausea, dizziness |
| Relief | Antacids, sitting up | Rest within minutes |
| Duration | Minutes to hours | Usually 2–20 minutes; longer in a heart attack |
Because spasm and angina can both respond to nitroglycerin, relief from it does not prove the heart is the cause. An ECG and, when needed, a stress test help separate them. See ECG testing.
How Is the Cause Diagnosed?
Doctors typically use an ECG to check the heart, then an upper endoscopy, a barium swallow or esophageal manometry to examine the esophagus.
- ECG and troponin when chest pain could be cardiac.
- Upper endoscopy (EGD): a camera examines the esophagus, takes biopsies and can stretch a stricture.
- Barium swallow: X-ray pictures as you swallow contrast, showing narrowing, hernia or abnormal movement.
- Esophageal manometry: measures pressure and coordination of the esophageal muscles for spasm or achalasia.
- pH monitoring: measures acid reflux over 24 to 96 hours.
How Is Painful Swallowing Treated?
Treatment depends on the cause: acid-suppressing medicine for reflux, changing how pills are taken, antifungal or antiviral medicine for infection, dilation for strictures, diet or medicine for eosinophilic esophagitis and muscle relaxants or procedures for spasm.
- Reflux esophagitis: proton pump inhibitors, smaller meals, avoiding late eating and raising the head of the bed.
- Pill esophagitis: take pills with a full glass of water, stay upright for at least 30 minutes, and ask about liquid alternatives.
- Infection: antifungal or antiviral treatment.
- Stricture: endoscopic dilation plus acid control.
- Eosinophilic esophagitis: swallowed topical steroids, elimination diets or newer biologic medicines.
- Spasm or achalasia: medicines that relax the muscle, injections or procedures.
What Can You Do Until You Are Seen?
Eat soft, lukewarm foods, chew slowly, avoid very hot, cold, spicy or acidic items, take pills upright with plenty of water and avoid alcohol and smoking.
These steps ease discomfort but do not replace an evaluation if symptoms persist beyond a few days. Keep track of what triggers the pain and bring the list to your appointment.
Who Is More Likely to Have Painful Swallowing?
People with frequent heartburn, a hiatal hernia, obesity, smoking or heavy alcohol use, weakened immunity, allergies or asthma, and older adults taking several pills are at higher risk.
- Frequent heartburn: more than twice a week raises the chance of esophagitis and, over years, strictures and Barrett’s esophagus.
- Older adults: often take multiple pills, may swallow them with little water or lie down soon after, and have slower esophageal movement.
- People on inhaled steroids: can develop yeast infections of the mouth and esophagus; rinsing the mouth after each use helps.
- Diabetes and weakened immunity: raise infection risk.
- Young adults with allergies or asthma: are the typical group for eosinophilic esophagitis.
- Heart patients: may take aspirin, antiplatelet drugs and potassium supplements, all of which can irritate the esophagus; ask about safer ways to take them.
If you are in one of these groups and develop pain with swallowing, tell your doctor early. Simple changes, such as taking pills with a full glass of water and staying upright, prevent many problems.
Where to See a Cardiologist in Houston
Epic Heart & Vascular Center evaluates heart and vascular symptoms at three Greater Houston offices, with many tests such as ECGs and echocardiograms available on site. Care is led by Dr. M. Usman Khan, MD, FACC.
Also serving Richmond, Spring, Kingwood, Willowbrook and Eldridge patients. Monday to Friday, 8:00 am to 5:00 pm.
Key Takeaways
- Chest pain with swallowing usually comes from the esophagus: reflux, spasm, pills, infection or narrowing.
- Esophageal spasm can mimic a heart attack and even respond to nitroglycerin.
- Food sticking, weight loss, vomiting blood or black stools need prompt evaluation.
- An ECG rules out urgent heart causes; endoscopy examines the esophagus.
- Take pills upright with a full glass of water to prevent pill esophagitis.
Frequently Asked Questions
Why does my chest hurt when I swallow?
Most often from inflammation of the esophagus due to reflux, pills or infection, or from esophageal spasm. Persistent pain should be evaluated.
Can chest pain when swallowing be a heart problem?
Rarely. Heart pain is usually tied to exertion, but pericarditis can hurt more with swallowing. Chest pain with breathlessness or sweating needs urgent care.
What does esophageal spasm feel like?
A sudden squeezing chest pain that can last minutes to hours, sometimes with difficulty swallowing, often triggered by very hot or cold drinks.
Which pills cause pain when swallowing?
Doxycycline and other antibiotics, NSAIDs, potassium and iron tablets, and osteoporosis medicines are common causes.
When is painful swallowing an emergency?
When food is completely stuck, you cannot swallow saliva, you vomit blood, or chest pain comes with breathlessness, sweating or pain spreading to the arm or jaw.
How is painful swallowing diagnosed?
After the heart is ruled out when needed, an upper endoscopy is the main test, sometimes with a barium swallow or manometry.
Sources and Further Reading
- MedlinePlus. Swallowing Disorders.
- MedlinePlus. Esophagus Disorders.
- NIDDK. Acid Reflux (GER and GERD) in Adults.
- MedlinePlus. Chest Pain.
Medical disclaimer: This article is for general education and does not replace a visit with your own doctor. Symptoms, test results and treatment choices differ from person to person.
Please note: Reading this article does not create a doctor–patient relationship. If you think you are having a medical emergency, call 911.







