What Causes Esophageal Spasms and How Are They Treated?

Esophageal spasms are caused by a breakdown in the coordination between the muscles that move food from your throat to your stomach. Normally, these muscles contract in a smooth, wave-like sequence. In people with esophageal spasms, the nerve signals controlling this process become disrupted, causing the muscles to contract too forcefully, too quickly, or out of sync. The result is sudden chest pain or difficulty swallowing that can feel alarming but is rarely dangerous.

How Normal Swallowing Goes Wrong

Your esophagus is lined with smooth muscle that you can’t consciously control. When you swallow, a carefully timed wave of contraction pushes food downward, while the muscles just ahead relax to make room. This coordination depends on a balance between two types of nerve signals: ones that tell the muscle to contract and ones that tell it to relax.

In esophageal spasms, the inhibitory signals (the ones that tell muscles to relax) don’t work properly. One leading theory points to problems with nitric oxide, a chemical messenger that normally helps the esophageal muscles relax at the right moment. When nitric oxide signaling is impaired, the muscles can fire prematurely or contract with excessive force, producing the painful, uncoordinated squeezing that defines a spasm. This isn’t a structural problem you can see on an X-ray. It’s a wiring issue in the nerve pathways embedded in the esophageal wall.

Two Main Types of Esophageal Spasms

Not all esophageal spasms look the same. Pressure-sensing tests can distinguish between two primary patterns:

  • Distal esophageal spasm (DES): The contractions happen too quickly, before the normal relaxation wave has time to finish. Doctors identify this when swallows produce premature contractions, typically arriving in under 4.5 seconds. The strength of the contraction itself may be normal, but the timing is off.
  • Jackhammer esophagus: The contractions arrive with extreme force, sometimes many times stronger than normal. Some people with jackhammer esophagus also have the premature timing seen in DES, a combination sometimes called “spastic jackhammer esophagus,” which tends to cause more severe symptoms.

Both types produce similar symptoms: chest pain that can mimic a heart attack, difficulty swallowing, and the sensation that food is stuck. The distinction matters mainly for treatment decisions.

Known Triggers for Spasm Episodes

Even in someone predisposed to esophageal spasms, individual episodes are often set off by specific triggers. The most consistently reported ones include very hot or very cold foods and liquids, which can shock the esophageal muscles into a sudden contraction. Red wine is another frequently cited trigger. Acidic, spicy, or carbonated foods and drinks can also provoke episodes in some people.

Stress and anxiety play a real, measurable role. The esophagus is heavily influenced by the vagus nerve, the same nerve that controls your heart rate and gut activity during stress responses. Research on related motility disorders shows that patients with autonomic nervous system dysfunction have significantly higher cardiac activity and altered stress responses. While this research focused on achalasia (a related but distinct condition), the vagal nerve pathways involved overlap with those in esophageal spasms. Many people notice their spasms worsen during periods of high stress or anxiety, and this neurological connection explains why.

The Role of Acid Reflux

Acid reflux (GERD) has long been considered a major contributor to esophageal spasms. The theory makes intuitive sense: stomach acid irritating the esophageal lining could trigger the muscles to clamp down. About 46% of patients diagnosed with distal esophageal spasm also have GERD, which is a substantial overlap.

However, the relationship is more complicated than it appears. A 2024 study found no distinguishing clinical or physiological differences between spasm patients who had GERD and those who didn’t. This challenges the long-held assumption that acid reflux directly causes the spasms. For some people, treating reflux does improve spasm symptoms. For others, the two conditions simply coexist without one driving the other. If you have both, treating the reflux is still worthwhile, but it may not eliminate the spasms entirely.

Can Esophageal Spasms Get Worse Over Time?

For most people, esophageal spasms are an intermittent nuisance rather than a progressive disease. Episodes come and go, sometimes disappearing for weeks or months. But in a small number of cases, distal esophageal spasm can progress to achalasia, a more serious condition where the lower esophageal sphincter stops relaxing properly and food has difficulty entering the stomach. Some cases have also led to esophageal diverticula, small pouches that form in the esophageal wall from the repeated pressure of abnormal contractions.

This progression is uncommon, but it’s worth being aware of if your symptoms are gradually worsening over months or years, particularly if swallowing becomes consistently difficult rather than intermittently problematic.

How Esophageal Spasms Are Treated

Treatment starts with identifying and avoiding your personal triggers. Keeping a food diary can help you spot patterns, whether it’s temperature, specific drinks, or eating too quickly. Managing stress through whatever works for you, whether that’s exercise, therapy, or breathing techniques, can reduce the frequency of episodes.

When lifestyle changes aren’t enough, medications that relax smooth muscle are the next step. Calcium channel blockers, originally developed for heart conditions, work by reducing the force of esophageal contractions. They reliably lower contraction strength, though they don’t always eliminate chest pain completely. Medications that release nitric oxide can also help by restoring some of the inhibitory signaling that’s lacking.

Peppermint oil is an option that gets less attention but has a logical basis. The menthol in peppermint relaxes smooth muscle by blocking calcium channels in a way similar to prescription medications. Clinical research on peppermint oil for esophageal spasms specifically is limited, but case reports show symptom relief, and its low cost and minimal side effects make it a reasonable thing to try. Dissolving a peppermint lozenge or taking peppermint oil capsules before meals is a common approach.

For severe cases that don’t respond to medication, a procedure called peroral endoscopic myotomy (POEM) can cut the dysfunctional muscle fibers from the inside, without external incisions. In patients with non-achalasia motility disorders including distal esophageal spasm and jackhammer esophagus, this procedure has a clinical success rate of about 77%. It’s typically reserved for people whose symptoms significantly affect their quality of life and who haven’t improved with other treatments.