Esophageal Spasm: Chest Pain That Feels Like a Heart Attack, Food That Sticks, the Tests and the Treatments That Help
💔 A sudden squeezing pain behind the breastbone, sometimes spreading to the back, jaw or arm, is the kind of symptom that sends people to the emergency room, and it should. Yet in a part of these patients the heart turns out to be healthy and the real source is the gullet, the muscular tube that carries food to the stomach. 🔍 When the muscle of the esophagus contracts too early, too hard or out of order, the result is esophageal spasm: chest pain that can feel exactly like angina, often with food or drink that seems to stick on the way down. This guide explains the types of spasm (distal esophageal spasm, jackhammer and the older term nutcracker esophagus), why the heart must always be checked first, which tests confirm the diagnosis, and which treatments help, from reflux control and simple habits to diltiazem, nifedipine, nitrates, low-dose antidepressants, botulinum toxin and endoscopic surgery.
🧬 What esophageal spasm is
💡 The esophagus is about 25 cm long. After each swallow, a wave of muscle contraction travels from top to bottom in an orderly way, pushing food ahead of it, while the valve at the bottom (the lower esophageal sphincter) opens to let it into the stomach. In esophageal spasm this wave is disturbed: parts of the tube squeeze at the same time or too early, or the squeeze is far stronger than normal. Food meets a closed segment instead of a moving wave, and the strong contraction itself can hurt. Doctors group these problems under the name esophageal motility disorders, a family that also includes achalasia.
🧠 The nerves inside the wall of the esophagus normally switch off the lower part of the tube for a moment, so the contraction can travel in order. When this inhibitory nerve signal is weak, the lower muscle fires too early, which is the key finding in distal esophageal spasm. The cause of the nerve change is usually unknown, but reflux, stress, some medicines and age-related changes all seem to play a part.
📋 The types: distal spasm, jackhammer and nutcracker
📖 The names have changed over the years, which confuses many patients who read older reports. Today most specialists use the Chicago classification, based on high-resolution manometry, the pressure test described later in this guide.
😖 What an attack feels like
💬 Patients describe the pain as squeezing, crushing, tight or like a fist behind the breastbone. It may last seconds or up to several hours, and it can come during a meal or wake a person at night. Many attacks start with a swallow, especially of very cold or very hot drinks, but some come out of the blue, which makes the link with eating easy to miss.
🔍 A key feature is that the swallowing trouble is intermittent. One meal goes down normally and the next sticks halfway, which is different from a narrowing (stricture) or a tumour, where solid food gets stuck more and more often and weight falls. Some people feel a lump in the throat during attacks, others only feel the pain and never notice any problem swallowing.
❤️ Why the pain can mimic a heart attack
🧩 The heart and the esophagus lie side by side in the chest and share nerve pathways to the brain. The brain cannot always tell which organ the pain is coming from, so both can produce pressure behind the breastbone that spreads to the arm, neck or back. To make things harder, nitroglycerin under the tongue relaxes both heart vessels and esophageal muscle, so pain relief after a nitrate tablet proves nothing about the source.
⚠️ None of these clues is reliable enough on its own. Only tests can separate the two, and people can have both a heart problem and a gullet problem. For pain with normal coronary arteries but a real heart cause, see microvascular angina: chest pain with clear coronary arteries.
🚑 Heart first: the rule every doctor follows
🩺 No good doctor diagnoses esophageal spasm in someone with new chest pain until the heart has been looked at. A missed heart attack can be fatal, while a missed spasm only delays relief, so the order of tests is always the same.
📖 What life looks like after a confirmed heart event is covered in after a heart attack or stent: the first year, and chest wall pain that hurts when pressed is explained in costochondritis or heart pain.
🧊 Common triggers
📝 Triggers differ from person to person, and a simple diary over two or three weeks often shows a pattern. Temperature extremes are the classic trigger, but large bites, eating fast and emotional stress come close behind.
🔗 What causes it
🤔 In most people no single cause is found. The best-supported idea is a fault in the nerve signals that coordinate the muscle, combined with a gullet that is more sensitive to stretch and acid than usual. Reflux can irritate the lining and set off spasms, and in some patients the spasm improves when reflux is controlled. Spasm is more often found in people over 50, but it can appear at any adult age.
🧪 Researchers also describe visceral hypersensitivity: the nerves of the gullet report normal events as pain. This explains why some people with only mildly abnormal pressure readings have severe pain, and why medicines that turn down nerve sensitivity can help even when the muscle pattern does not change.
⚖️ Spasm, achalasia or reflux?
🔍 Three conditions cause most of the overlap in symptoms. Telling them apart decides the treatment, because a medicine that helps one can worsen another: calcium channel blockers, for example, relax the bottom valve and may make reflux worse.
| 🔎 Feature | ⚡ Esophageal spasm | 🚧 Achalasia | 🔥 Reflux disease |
|---|---|---|---|
| Main symptom | Chest pain, food sticking at times | Steadily worse sticking of solids and liquids | Heartburn, acid taste |
| Regurgitation | Sometimes | Undigested food, often at night | Sour fluid |
| Weight loss | Uncommon | Common | Rare |
| Bottom valve | Opens normally | Does not relax | Too loose |
| Barium swallow | Corkscrew or rosary bead look, or normal | Wide gullet with a bird beak end | Often normal |
| First treatment | Reflux control, muscle relaxants, nerve modulators | Dilation, surgery or POEM | PPI and lifestyle |
📖 Reflux that does not respond to standard tablets is discussed in Nexium not working for heartburn, and damage to the lining from acid is graded in reflux esophagitis grades A to D.
🧭 Other look-alikes doctors rule out
💭 Panic and esophageal spasm can feed each other, since frightening pain raises anxiety and anxiety tightens the gullet. Treating one without noticing the other often leaves the patient only half better. More on recognising panic: panic disorder: when fear hits fast.
🧪 The tests, step by step
📅 Once the heart has been cleared, the gullet work-up usually follows a set path. Endoscopy comes before manometry, because a narrowing, inflammation or tumour must be excluded before a pressure tube is passed and before the pain is blamed on the muscle.
📏 High-resolution manometry explained
🧵 A thin, flexible tube with many pressure sensors is passed through the nose into the stomach after the nostril and throat are numbed. The patient then takes ten or more small sips of water while the sensors record every contraction, and a computer turns the readings into a colour map. The test takes around 20 to 30 minutes and is uncomfortable rather than painful. Some centres add solid food or a rapid drinking test to catch spasms that only appear with a real meal.
💡 Patients are usually asked to stop medicines that affect gullet muscle before the test, such as calcium channel blockers, nitrates and opioids. Never stop a heart or blood pressure medicine on your own: ask the doctor who ordered the test which ones to pause and for how long.
📷 Barium swallow and endoscopy
🥛 In a barium swallow the patient drinks a chalky liquid while X-ray pictures are taken. During a spasm the gullet can look like a corkscrew or a string of beads, but the picture is often normal between attacks, so a normal result does not exclude spasm. Endoscopy, a camera passed through the mouth under light sedation, is usually normal in spasm, and that normal result is useful in itself, because it removes the more worrying causes from the list.
The lining: inflammation, rings, ulcers, tumours
The muscle: timing and strength of every squeeze
The shape and how fast liquid empties
📖 If endoscopy finds Barrett changes in the lower gullet, follow-up is described in Barrett esophagus after endoscopy.
💊 Opioids and other medicines that cause spasm
⚠️ One cause is easy to overlook. Regular opioid painkillers can produce a manometry pattern that looks exactly like distal spasm or spastic achalasia, a condition called opioid-induced esophageal dysfunction. The swallowing problem often improves when the opioid is reduced or replaced, so a full medicine list is part of every assessment.
| 💊 Medicine or substance | 📝 Possible effect on the gullet |
|---|---|
| Opioids (codeine, tramadol, morphine, oxycodone) | Spastic, premature contractions and a tight bottom valve |
| Tablets that lodge (doxycycline, potassium, iron, some painkillers) | Pill esophagitis, pain on swallowing |
| Alcohol and smoking | More reflux, more irritation of the lining |
| Very cold carbonated drinks | Common trigger of attacks in sensitive people |
💧 Any tablet should be swallowed with a full glass of water while sitting or standing, and not just before lying down. This simple habit prevents pill injury, which can mimic or worsen spasm pain.
✅ Daily habits that reduce attacks
🍽️ Self-care will not cure spasm, but small changes in how and what you eat cut the number of attacks for many people and make medicines work better.
🔥 Treating reflux first: the PPI trial
💊 Because acid can trigger spasm, many doctors start with a proton pump inhibitor (PPI) for about eight weeks, especially when there is heartburn, a positive pH study or inflammation on endoscopy. If pain clearly improves, reflux was at least part of the story and the lowest dose that keeps symptoms away is continued. If nothing changes, the PPI is usually stopped rather than kept on for years without benefit.
⏰ Timing is the most common mistake. A PPI works best when taken before the first meal of the day, because it blocks the acid pumps that switch on when food arrives. Taken at bedtime on an empty stomach, it does much less.
🫀 Calcium channel blockers: diltiazem and nifedipine
🧪 Calcium is needed for smooth muscle to contract, so blocking its entry relaxes the gullet. Diltiazem and nifedipine lower the force of esophageal contractions and have been used for spasm for decades, although the trials were small and the results mixed: some patients improve clearly, others little. Both are heart and blood pressure medicines used here off-label, so the dose is set by a doctor who knows the blood pressure and pulse.
💊 Diltiazem
📋 Studies in spasm used 60 to 90 mg several times a day; slow-release once-daily forms are also used
💓 Also slows the pulse, so it is used with care alongside beta blockers
💊 Nifedipine
📋 Usually given before meals in older studies; today extended-release tablets are preferred for safety
💨 More flushing, headache and ankle swelling, little effect on pulse
📉 The main side effects are low blood pressure, dizziness when standing, headache, flushing, ankle swelling and constipation. Because they also relax the bottom valve, both drugs can make heartburn worse, which is why reflux is usually controlled first. People with low blood pressure, heart failure with weak pumping or a slow heart rhythm need a careful decision before starting.
💥 Nitrates for attacks and prevention
💡 Nitrates release nitric oxide, the same chemical messenger that normally relaxes the gullet after a swallow. A short-acting nitrate under the tongue can stop an attack within minutes, and long-acting forms such as isosorbide mononitrate have been tried before meals to prevent them. The evidence is limited, and headache is so common that many people stop. 💊 Long-acting option: Imdur (Isosorbide Mononitrate).
⚠️ Important safety points for nitrates:
🔹 Never combine a nitrate with sildenafil, tadalafil or vardenafil: blood pressure can fall to dangerous levels.
🔹 Sit down before the first dose; dizziness and fainting can occur.
🔹 Pain relief after a nitrate does not prove the pain was from the gullet. A new or changing pain still needs a heart check.
🧠 Low-dose antidepressants for a sensitive gullet
🔊 In many patients the problem is less the strength of the squeeze and more how loudly the nerves report it. Small doses of certain antidepressants turn down pain signals from the gut, and they are now among the most useful medicines for chest pain from the esophagus. The dose is far below the one used for depression, and the aim is pain relief, not a change in mood.
⏳ These medicines take two to six weeks to show their full effect, so a fair trial lasts at least six to eight weeks at a steady dose. Tricyclics such as amitriptyline and imipramine cause dry mouth, constipation and drowsiness, and are used with care in older people, in heart rhythm problems, glaucoma and prostate enlargement. They are dangerous in overdose and should be stored safely.
🌿 Peppermint oil and other simple options
🍃 Peppermint oil relaxes smooth muscle, and small studies found that a few drops in water before meals reduced spastic contractions in some patients. It can, however, relax the bottom valve and worsen heartburn, so it suits people whose main problem is spasm rather than reflux. Other approaches with some support include gut-directed hypnotherapy, cognitive behavioural therapy for chest pain, and diaphragmatic breathing training, which also reduces reflux.
Cheap, few side effects, worth a trial
Calms attacks, lowers reflux
Reduces fear of the next attack
📊 How the medicine options compare
📐 There is no single best tablet. Doctors usually match the medicine to the main problem: reflux, a strong muscle squeeze, or pain out of proportion to the pressure readings.
| 💊 Group | 🎯 Best suited to | ⚠️ Main drawbacks |
|---|---|---|
| PPI (omeprazole, esomeprazole, pantoprazole) | Spasm with heartburn or acid on pH study | Little effect if reflux is not involved |
| Calcium channel blockers (diltiazem, nifedipine) | Strong, painful squeezes, food sticking | Low blood pressure, swelling, may worsen reflux |
| Nitrates | Stopping an attack, short-term prevention | Headache, dizziness, no PDE5 inhibitors |
| Low-dose tricyclics or trazodone | Pain out of proportion, poor sleep | Drowsiness, dry mouth, constipation |
| SSRI (citalopram) | Hypersensitive gullet, anxiety around attacks | Nausea early on, slow start |
⚠️ Side effects and interactions to know
📋 Most medicines used for spasm were designed for other conditions, so their side effects and interactions follow the heart and brain rules, not the gut rules. Bring a full list of tablets, supplements and herbal products to every visit.
| 💊 Medicine | 🚫 Do not combine or take care with | 📝 Why |
|---|---|---|
| Diltiazem | Beta blockers, digoxin, simvastatin at high dose, some antifungals | Slow pulse, raised drug levels |
| Nifedipine | Grapefruit juice, other blood pressure tablets | Blood pressure can drop too far |
| Isosorbide mononitrate | Sildenafil, tadalafil, vardenafil | Dangerous fall in blood pressure |
| Amitriptyline, imipramine | MAO inhibitors, other serotonin drugs, alcohol | Heart rhythm effects, drowsiness, serotonin excess |
| Citalopram, trazodone | Other QT-prolonging drugs, tramadol, triptans in high amounts | Heart rhythm effects, serotonin syndrome |
🛠️ When tablets fail: botox, dilation and POEM
💉 For people whose pain or swallowing problem persists despite good trials of medicine, procedures aimed at the muscle itself are the next step. They are done by specialist gastroenterologists or surgeons in centres with experience in motility disorders.
Injected during endoscopy; relief often lasts months, may need repeating
Stretching with a balloon or bougie; helps some patients with sticking
Endoscopic cut of the overactive muscle; for severe or spastic achalasia cases
Longer myotomy through keyhole surgery; rarely needed
🔎 Peroral endoscopic myotomy (POEM) is done through the mouth without skin cuts. The surgeon tunnels under the lining and divides the thick muscle layer along the spastic segment. The main long-term downside is reflux, because the bottom valve is often cut as well, so many patients need a PPI afterwards.
🌳 Which route fits you?
📅 What to expect over time
📈 Esophageal spasm is uncomfortable and frightening, but it does not damage the heart, does not turn into cancer and does not shorten life. Symptoms tend to come in waves over months and years, with quieter spells in between. A small share of patients later develop the picture of achalasia, which is why new or worsening swallowing trouble deserves a repeat assessment.
Diary, habits, reflux control
First medicine trial and review
Switch or combine if needed
Procedure only if still severe
💚 Knowing the diagnosis is itself a treatment for many patients. Once a person knows the pain is from the gullet and not the heart, the fear eases and attacks often feel less severe. Some keep a short note on their phone describing the diagnosis, so that emergency staff see it, while still checking any pain that feels different from the usual pattern.
🗿 Myths and facts
🚨 When to see a doctor
⛔ Call emergency services now if:
🔹 Chest pain is new, crushing or spreading to the arm, jaw or back, or comes with breathlessness, sweating, nausea or fainting, even if you have been told you have spasm before.
🔹 Food is stuck and you cannot swallow your own saliva.
🔹 You vomit blood or pass black stools.
⚠️ Book a doctor visit soon if:
🔹 Swallowing trouble is getting steadily worse, or you are losing weight without trying.
🔹 Pain wakes you at night repeatedly or stops you eating normally.
🔹 You take opioid painkillers and swallowing has changed since starting them.
📖 Hoarseness or a sore throat that lingers alongside reflux symptoms may point to silent reflux, which is assessed and treated differently from typical heartburn; see chronic sore throat and silent reflux.
❓ Frequently asked questions
What does an esophageal spasm feel like?
Most people feel a squeezing pain behind the breastbone that can spread to the back, jaw or arm, often with food or drink that seems to stick on the way down.
How can I tell esophageal spasm from a heart attack?
You cannot be sure at home. New or severe chest pain needs an emergency check with an ECG and blood tests before the gullet is considered.
What is the difference between nutcracker and jackhammer esophagus?
Nutcracker is an older name for high-pressure contractions. Jackhammer esophagus is the current term for very powerful squeezes seen in 20% or more of swallows on manometry.
Which test confirms esophageal spasm?
High-resolution manometry, which measures pressure along the gullet during swallows. Endoscopy is done first to rule out other causes.
Can reflux cause esophageal spasm?
Yes, acid can trigger spasms in some people. That is why many doctors start with an eight-week trial of a PPI taken before breakfast.
Does diltiazem help esophageal spasm?
It relaxes smooth muscle and helps some patients, especially with strong painful squeezes. It can lower blood pressure and may worsen heartburn.
Why would a doctor prescribe an antidepressant for chest pain?
Low doses of drugs such as amitriptyline, imipramine or trazodone calm the pain nerves of the gut. The aim is pain relief, not treating depression.
What drink helps stop an esophageal spasm?
Many people find a few sips of warm water ease an attack. Ice-cold drinks are a common trigger and are best avoided.
Is esophageal spasm dangerous?
It is painful but does not harm the heart or cause cancer. The danger is mistaking a real heart attack for spasm, so new pain must still be checked.
When is POEM or botox considered?
When pain or swallowing trouble stays severe after fair trials of medicines. POEM works best for spastic achalasia and jackhammer patterns.
📑 Sources and editorial
- 📘 International consensus on classification of esophageal motility disorders by high-resolution manometry (Chicago classification)
- 🏥 Gastroenterology society guidelines on the evaluation of dysphagia and of noncardiac chest pain
- ❤️ Cardiology guidance on the assessment of acute and stable chest pain
- 💊 Clinical trials of calcium channel blockers, nitrates, tricyclic antidepressants, trazodone and SSRIs in spastic esophageal disorders
- 💉 Reviews of botulinum toxin, dilation and peroral endoscopic myotomy for spastic motility disorders
- ⚠️ Reports on opioid-induced esophageal dysfunction
- 📖 Related reading: Nexium not working for heartburn, reflux esophagitis grades, microvascular angina, costochondritis or heart pain, Barrett esophagus
- 🛒 Related products: Cardizem (Diltiazem), Adalat (Nifedipine), Imdur (Isosorbide Mononitrate), Elavil (Amitriptyline), Tofranil (Imipramine), Desyrel (Trazodone), Prilosec (Omeprazole)
- 🩺 RXshop Editorial Team — reviewed by Emily Chen, MD — Internal medicine
Medical Disclaimer: The information in this article is for educational and informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek guidance from a qualified healthcare provider with any questions you may have regarding a medical condition, and before starting, stopping or changing any medication.