Esophageal spasm is a disorder in which the muscles of the esophagus contract in an uncoordinated or excessively forceful way, causing chest pain and difficulty swallowing that can feel alarmingly similar to a heart attack. It is considered rare among esophageal motility disorders, but it punches well above its weight in terms of the distress it causes, partly because the chest pain it produces can be genuinely indistinguishable from cardiac angina without testing. The condition is better understood now than it was even a decade ago, thanks to advances in how esophageal function is measured, yet treatment remains frustratingly imperfect.
What Actually Happens During a Spasm
Your esophagus is a muscular tube that moves food from your throat to your stomach using coordinated, wave-like contractions called peristalsis. In a healthy swallow, the muscles at the top contract first, and the contraction rolls downward in sequence, pushing food ahead of it. In esophageal spasm, parts of the esophageal muscle contract simultaneously or with excessive force, so instead of a smooth wave, you get disorganized squeezing that traps food, pushes it the wrong way, or simply generates pain without moving anything at all.
The underlying problem appears to involve the nerves that normally inhibit esophageal contraction. In a healthy esophagus, inhibitory nerves create a precisely timed delay so that each segment relaxes before the contraction wave arrives. When this inhibitory signaling is deficient, the timing breaks down and you get simultaneous contractions along the esophageal body.{1PubMed Central. Physiology of Normal Esophageal Motility} Nitric oxide, a chemical messenger that relaxes smooth muscle throughout the body, seems to be a key player in this inhibitory system. Research has found that people with diffuse esophageal spasm may have a defect in how their esophagus produces or breaks down nitric oxide, and that drugs supplying nitric oxide externally can help some patients.{2PubMed. Diffuse esophageal spasm: a malfunction that involves nitric oxide?}
Two Recognized Types of Spastic Disorder
Modern diagnostic criteria, known as the Chicago Classification (now in its fourth version), recognize two spastic esophageal motility disorders: distal esophageal spasm and hypercontractile esophagus.{3Foregut: The Journal of the American Foregut Society. Spastic Motility Disorders: Diagnosis and Management in the Era of the Chicago Classification} These are related but distinct conditions. In distal esophageal spasm, the hallmark is premature contractions, meaning the muscle fires too early relative to the swallowing wave. In hypercontractile esophagus, the contractions arrive at the right time but with abnormally high force. A diagnosis of hypercontractile esophagus now requires both an abnormal pressure reading on testing and symptoms like difficulty swallowing or chest pain that cannot be explained by heart disease.{4PubMed. Chicago Classification Update (v4.0): Technical review on diagnostic criteria for hypercontractile esophagus}
The distinction matters because the two can behave differently over time and may respond differently to treatment, but in everyday experience, the symptoms overlap heavily. Both can produce crushing chest pain and the sensation that food is getting stuck. When people say “esophageal spasm” casually, they are usually referring to either condition or sometimes to a single episode of painful, uncoordinated esophageal contraction that never gets formally classified.
What It Feels Like
The two main symptoms are chest pain and dysphagia, the medical term for difficulty swallowing. Distal esophageal spasm presents mainly with these two complaints, and the chest pain is characteristically noncardiac in origin.{5PubMed. Distal Esophageal Spasm: A Review} The pain tends to come on suddenly, can be severe, and often radiates to the back or jaw, which is part of why it is so easily confused with heart pain. Some people describe it as a squeezing or pressure sensation behind the breastbone.
The swallowing difficulty in esophageal spasm is different from the kind caused by a physical blockage. Food is not stuck at a narrowing; rather, the esophagus is failing to move it forward efficiently. People often notice it more with liquids than solids, which is the opposite of what happens with a mechanical obstruction like a stricture or tumor. Episodes tend to be intermittent and unpredictable. You might go days or weeks without trouble, then have a stretch where every meal is painful.
Why It Mimics a Heart Attack
This is the single most important practical concern with esophageal spasm: the chest pain it causes can be virtually identical to the pain of angina or even a myocardial infarction. Research comparing patients with confirmed esophageal pain to those with confirmed cardiac pain found that classical features of angina were equally common in both groups, and that the pattern doctors call “crescendo angina,” pain that gets progressively worse, showed up frequently in people whose pain was entirely esophageal.{6PubMed. Angina-like esophageal pain: differentiation from cardiac pain by history}
A few features lean toward an esophageal source: pain that continues as a dull background ache after the acute episode, pain that wakes you from sleep, retrosternal pain that does not radiate sideways, and a response to exercise that does not follow the typical angina pattern. But none of these are reliable enough to skip cardiac evaluation. If you develop sudden, severe chest pain and have not been previously diagnosed with esophageal spasm, you should treat it as a potential cardiac emergency until proven otherwise. Clinicians who are aware that esophageal pain and angina can be indistinguishable make the correct diagnosis more often, but that awareness does not help the patient in the moment of the episode.
How It Is Diagnosed
The gold standard for diagnosing esophageal spasm is high-resolution manometry, a test where a thin, pressure-sensing catheter is passed through the nose into the esophagus. You swallow water or food while the catheter records the pressure pattern along the entire length of the esophagus. In distal esophageal spasm, the test reveals premature contractions; in hypercontractile esophagus, it shows abnormally high contraction pressures.
The latest version of the Chicago Classification has made the testing protocol more rigorous, incorporating swallows in different body positions and provocative challenges like rapid drinking or solid food swallows. These additions are designed to catch motility problems that might not show up during standard water swallows and to reduce the number of tests that come back inconclusive.{7PubMed Central. Chicago classification version 4.0 technical review: Update on standard high-resolution manometry protocol for the assessment of esophageal motility}
A barium swallow, the older imaging test where you drink a chalky liquid while X-rays are taken, can sometimes show a characteristic pattern called the “corkscrew esophagus” or “rosary bead esophagus,” where the disorganized contractions create a curling, compartmentalized appearance.{8PubMed. Corkscrew esophagus} It is a striking image when present, but many patients with confirmed esophageal spasm never show this pattern on barium studies because the spasms are intermittent. A normal-looking barium swallow does not rule out the condition.
What Triggers Episodes
Episodes can seem to come out of nowhere, but there are identifiable triggers for many people. Temperature extremes in food and drink are a well-recognized provocation. Research on patients with esophageal motility disorders found that cold water increased resting pressure in the lower esophageal sphincter and prolonged contraction duration, while hot water had the opposite effect, lowering sphincter pressure and shortening contractions.{9PubMed Central. Response of Esophagus to High and Low Temperatures in Patients With Achalasia} Most patients in that study reported discomfort with cold food, including worsened swallowing difficulty and chest pain. This aligns with what many patients report anecdotally: ice-cold drinks are often a reliable trigger.
Stress and anxiety are widely cited triggers, and while controlled studies are limited, the connection is biologically plausible given that the esophagus is richly innervated by the autonomic nervous system. Gastroesophageal reflux can also provoke or worsen spasms in some people, which is why acid-suppressing medications are sometimes part of the treatment plan even when reflux is not the primary diagnosis. Very hot foods, carbonated drinks, and eating too quickly are other commonly reported triggers, though the evidence base for these is mostly clinical observation rather than controlled research.
Treatments That Help (and Their Limits)
Treatment for esophageal spasm is frustrating territory. Multiple options exist, but none work reliably for everyone, and the evidence supporting most of them is thin. This is one of those areas where the published literature honestly acknowledges that the available treatments have only limited utility due to a lack of large, well-designed trials.{10PubMed Central. Distal Esophageal Spasm: An Updated Review}
Medications
The first-line medications are smooth muscle relaxants. Nitrates like isosorbide dinitrate work by increasing nitric oxide availability, which relaxes the esophageal muscle. They can help with both chest pain and swallowing difficulty if taken about half an hour before eating. Calcium channel blockers like nifedipine work through a different pathway but achieve a similar relaxation effect. Phosphodiesterase-5 inhibitors, the same class of drug used for erectile dysfunction, also increase nitric oxide signaling and have been used off-label. The practical problem with all of these is that they tend to be short-acting, require multiple doses per day, and produce side effects like headache, low blood pressure, and ankle swelling that make long-term use difficult.{11PubMed Central. Distal Esophageal Spasm: An Updated Review}
Beyond smooth muscle relaxants, a range of other medications have been tried: peppermint oil (which also relaxes smooth muscle), proton pump inhibitors to suppress any underlying reflux, and various psychiatric medications including tricyclic antidepressants, SSRIs, and benzodiazepines.{12PubMed. Treatment of esophageal motility disorders based on the chicago classification} The neuromodulators, particularly low-dose tricyclic antidepressants, are increasingly favored because they can dampen the pain signaling pathways between the gut and brain, even at doses too low to have an antidepressant effect. This is where the overlap between esophageal spasm and functional esophageal disorders gets interesting, and where treatment starts to address not just the spasm itself but how the brain processes the discomfort.
Botulinum Toxin Injections
For patients who do not respond adequately to medications, botulinum toxin injected directly into the esophageal muscle during endoscopy is an option. A prospective study of patients with symptomatic diffuse esophageal spasm found that about 80% improved after injection, with symptom scores dropping significantly within a day and remaining low at six months.{13PubMed. Treatment of symptomatic diffuse esophageal spasm by endoscopic injections of botulinum toxin: a prospective study with long-term follow-up} Another study focused on chest pain specifically reported that about 72% of patients had at least a 50% reduction in pain, with an average response duration of roughly seven months.{14PubMed. Treatment of chest pain in patients with noncardiac, nonreflux, nonachalasia spastic esophageal motor disorders using botulinum toxin injection into the gastroesophageal junction}
The catch is that botulinum toxin wears off. Half the patients in the first study eventually needed reinjection, anywhere from 8 to 24 months after the initial treatment. It works well as a bridge or a test, if botulinum toxin relieves your symptoms, that confirms the problem is in the esophageal muscle and suggests you might benefit from a more permanent procedure. But as a standalone long-term solution, repeated injections are not ideal.
POEM and Surgical Myotomy
Per-oral endoscopic myotomy, or POEM, has become one of the more promising treatments for spastic esophageal disorders. During this procedure, an endoscope is used to cut the inner muscle layer of the esophagus from the inside, without any external incisions. Originally developed for achalasia, POEM has been applied to distal esophageal spasm and hypercontractile esophagus with encouraging results. One large study reported long-term clinical success in about 83% of patients with spastic motility disorders, with results holding at follow-up beyond five years.{15Journal of Clinical Gastroenterology. Long-term Outcomes of Per-oral Endoscopic Myotomy in Spastic Esophageal Motility Disorders: A Large, Single-Center Study} Another study with over six years of follow-up found that about two-thirds of patients with distal esophageal spasm maintained clinical success, with 93% expressing satisfaction with the procedure.{16Surgical endoscopy. POEM: clinical outcomes beyond 5 years}
The success rates for spastic disorders are lower than the rates for the more common forms of achalasia, where POEM achieves long-term success in over 90% of cases.{17Journal of Gastrointestinal Surgery. Predictors of Long-Term Outcomes, Recurrent Dysphagia, and Gastroesophageal Reflux After Per-oral Endoscopic Myotomy in Esophageal Motility Disorders} A significant trade-off is the risk of developing gastroesophageal reflux after the procedure. Roughly 29% of patients develop symptomatic reflux, and about 35% show signs of reflux esophagitis on follow-up endoscopy.{18Journal of Gastrointestinal Surgery. Predictors of Long-Term Outcomes, Recurrent Dysphagia, and Gastroesophageal Reflux After Per-oral Endoscopic Myotomy in Esophageal Motility Disorders} This happens because cutting the muscle weakens the anti-reflux barrier. For some patients, trading spasm for manageable reflux is a worthwhile deal; for others, it is not.
Traditional Heller myotomy, performed laparoscopically, is the surgical alternative and has a longer track record. It achieves similar goals through external incisions in the muscle rather than working from inside. It is sometimes combined with a partial fundoplication to reduce post-operative reflux, an advantage over POEM.
The Role of the Brain in Symptom Severity
One of the more interesting findings in recent esophageal research is that the severity of symptoms people experience does not correlate very well with how abnormal their esophageal function actually looks on testing. A study measuring both esophageal motility and psychological factors found that a patient’s level of esophageal hypervigilance, essentially how much attention and anxiety they direct toward sensations in their esophagus, predicted symptom severity twice as strongly as the actual motility diagnosis.{19PubMed Central. Esophageal Hypervigilance and Visceral Anxiety Are Contributors to Symptom Severity Among Patients Evaluated With High-Resolution Esophageal Manometry} The manometry numbers themselves were not significant predictors of how bad people felt.
This does not mean the pain is imaginary. It means the brain’s processing of esophageal signals plays a huge role in the overall experience. Someone with moderate spasm and high anxiety about their symptoms may suffer more than someone with severe spasm who is not particularly focused on it. This finding has pushed the field toward integrating brain-gut behavioral therapies, including gut-directed hypnotherapy and cognitive behavioral therapy, into treatment plans. Emerging evidence suggests that combining these psychological approaches with standard pharmacologic treatment improves quality of life for patients with functional esophageal symptoms.{20PubMed. The Clinical value of brain-gut behavioral therapies for functional esophageal disorders and symptoms}
Does Esophageal Spasm Progress to Something Worse?
A natural worry is whether esophageal spasm is an early stage of achalasia, a more serious motility disorder where the esophagus loses its ability to contract and the lower sphincter fails to open. The two conditions share some pathophysiology, both involving deficient inhibitory nerve signaling, and there is evidence that they exist on a spectrum.{21PubMed Central. Distal esophageal spasm: Update on diagnosis and management in the era of high-resolution manometry}
The reassuring news is that progression from esophageal spasm to achalasia appears uncommon. A prospective follow-up study found that only about 8% of patients with diffuse esophageal spasm developed achalasia over a mean follow-up of nearly five years, while the majority either continued with stable spasm or actually reverted to normal motility.{22PubMed. Does diffuse esophageal spasm progress to achalasia? A prospective cohort study} A quarter of patients in that study had completely normal esophageal function on repeat testing. The researchers noted that patients with low contraction strength at baseline were the ones most likely to develop worsening patterns over time, which makes sense if you think of weakening inhibitory nerves as the shared driver: those who have already lost more nerve function are further along whatever spectrum exists.
The condition also tends to appear later in life. A multicenter analysis comparing ages across different esophageal motility diagnoses found that patients with distal esophageal spasm were significantly older than those with normal motility, with a mean age of 57 compared to 52 for the normal group.{23PubMed. Esophageal motor disorders across ages: A retrospective multicentric analysis} Hypercontractile esophagus patients were even older on average, at about 61. This age pattern is consistent with a gradual loss of inhibitory nerve function over time, though it does not explain the occasional younger patient who develops significant spasm.
Living With Intermittent Episodes
For many people, esophageal spasm is not a constant condition but an episodic one, flaring up unpredictably and then retreating for weeks or months. This intermittent pattern makes it particularly hard to study and treat, but it also means that practical management, the day-to-day strategies between doctor visits, carries real weight. Eating slowly, chewing thoroughly, avoiding temperature extremes in food and drink, and managing stress are the basics. Some patients find that warm water during a spasm helps relax the esophagus, which aligns with the finding that hot liquids reduce sphincter pressure and shorten contraction duration.
Keeping a symptom diary can be genuinely useful, not as busywork but because the intermittent nature of spasm makes it easy to forget what preceded an episode by the time you see a doctor. Recording what you ate, the temperature of your food, your stress level, and how quickly you ate can reveal patterns that are not obvious in the moment. Some patients also find that peppermint oil capsules, which relax smooth muscle, provide enough relief for mild episodes to avoid prescription medications and their side effects, though this is an area where formal evidence is limited and individual responses vary widely.

