Our Services
Medical Information
Helpful Resources
Published on: 6/17/2026
Esophageal spasm vs. heart attack: how to tell the difference
Esophageal spasm chest pain is typically sharp or squeezing, brief, and triggered by swallowing hot or cold foods, often with regurgitation, heartburn, or difficulty swallowing (dysphagia). Heart attack pain, in contrast, is more constant, crushing or heavy, may radiate to the arm or jaw, and is paired with sweating, nausea, or shortness of breath.
How doctors tell them apart:
Several factors can influence diagnosis and treatment. See below for more details.
Because chest pain can stem from causes ranging from harmless to life-threatening, guessing isn't safe—and waiting can be costly. A free, instant, online symptom check uses your specific symptoms to help you understand possible causes and decide whether to seek emergency care, schedule a visit, or monitor at home. It takes only a few minutes and could help you take the right next step with confidence.
Reviewed for medical accuracy: 06/17/2026
Chest pain can be alarming. While heart attacks are often the first concern, esophageal spasm—sudden, involuntary contractions of the esophagus—can mimic many cardiac symptoms. Understanding the differences can help you and your doctor find the right diagnosis and treatment.
The esophagus is the muscular tube that carries food from your throat to your stomach. Normally, waves of coordinated muscle contractions (peristalsis) move food smoothly. In esophageal spasm, these contractions become uncoordinated or overly strong, causing chest pain and swallowing difficulties.
Types of esophageal spasm include:
"Esophageal spasm symptoms" can overlap with cardiac issues, but there are clues that point toward the esophagus:
Keep in mind that not everyone experiences all symptoms. If chest pain is your main issue, doctors will work to rule out heart-related causes first.
Because chest pain can signal a heart attack, physicians follow a stepwise approach:
By combining these findings, doctors can usually tell if chest pain is cardiac in origin or due to an esophageal spasm.
| Feature | Esophageal Spasm | Heart Attack |
|---|---|---|
| Pain Trigger | Swallowing hot/cold foods, stress, reflux | Physical exertion, emotional stress, at rest |
| Pain Quality | Sharp, squeezing, brief or episodic | Pressure, heaviness, crushing, more constant |
| Associated Symptoms | Regurgitation, heartburn, dysphagia | Sweating, nausea, shortness of breath, jaw pain |
| Relief Methods | Antacids, nitroglycerin (sometimes), time | Rest, nitroglycerin, emergency interventions |
| Diagnostics | Manometry, endoscopy, barium swallow | ECG, troponin, echocardiogram |
Accurate diagnosis ensures you receive the right treatment:
Delays in correct diagnosis can lead to unnecessary anxiety, tests, or even missed treatment opportunities for either condition.
Once a heart attack is ruled out, treatments for esophageal spasm may include:
Working with a gastroenterologist ensures you find the safest and most effective plan.
Keeping a symptom diary can help your doctor identify triggers and patterns. Note:
If you're experiencing chest pain, difficulty swallowing, or other concerning symptoms and want to better understand what might be causing them, try Ubie's free AI-powered symptom checker for Esophageal Spasm (Including Achalasia And Jackhammer Esophagus) to help determine whether you should seek medical attention.
While esophageal spasm is rarely life-threatening, chest pain can sometimes signify serious conditions. Call emergency services (e.g., 911) or go to the nearest emergency department if you experience:
If you're ever in doubt, it's better to get checked out promptly.
Esophageal spasm can closely mimic a heart attack, but key differences in symptoms, triggers, and diagnostic tests help doctors tell them apart. If you experience chest pain, especially with swallowing difficulties or regurgitation, discuss your symptoms thoroughly with a healthcare provider. Tracking your esophageal spasm symptoms and understanding treatment options will empower you to find relief and avoid unnecessary worry.
If you have concerning symptoms or think you might be experiencing a serious issue, please speak to a doctor right away. Your health and peace of mind are worth it.
(References)
* Prakash C, Facista R, Patel R, Salgia R. Approach to the patient with noncardiac chest pain. World J Gastrointest Pharmacol Ther. 2015 Nov 6;6(4):186-94. doi: 10.4292/wjgpt.v6.i4.186. PMID: 26558156. Available from: pubmed.ncbi.nlm.nih.gov/26558156/
* Roman S. High-resolution manometry for esophageal spasm: current perspectives. J Neurogastroenterol Motil. 2017 Jan 31;23(1):15-22. doi: 10.5056/jnm16104. PMID: 28108154. Available from: pubmed.ncbi.nlm.nih.gov/28108154/
* Singh S, Arora S, et al. Differential diagnosis of chest pain: esophageal versus cardiac origin. Indian J Gastroenterol. 2018 Sep;37(5):383-392. doi: 10.1007/s12664-018-0897-4. PMID: 30338379. Available from: pubmed.ncbi.nlm.nih.gov/30338379/
* Vaezi MF, Fass R, Hirano I, Mertz J, Omary MB, Pandolfino JE, Prakash C, Savarino E, Yadlapati R. AGA Clinical Practice Update on the Evaluation and Management of Noncardiac Chest Pain: Expert Review. Clin Gastroenterol Hepatol. 2023 Feb;21(2):292-300.e1. doi: 10.1016/j.cgh.2022.09.006. PMID: 36140889. Available from: pubmed.ncbi.nlm.nih.gov/36140889/
* Pandolfino JE, Vaezi MF. Chest pain of esophageal origin. Gastroenterology. 2009 May;136(6):1813-26. doi: 10.1053/j.gastro.2009.02.049. PMID: 19397985. Available from: pubmed.ncbi.nlm.nih.gov/19397985/
We would love to help them too.
For First Time Users
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.
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.