Why Does It Hurt to Swallow Food? Causes Explained

Pain when swallowing food, called odynophagia, usually signals inflammation or irritation somewhere along the path from your throat to your stomach. The most common culprits are acid reflux, infections, medications that irritate the esophagus, and allergic conditions. Most causes are treatable once identified, but the specific location and quality of the pain can tell you a lot about what’s going on.

Acid Reflux and Esophageal Damage

Gastroesophageal reflux disease (GERD) is one of the most frequent reasons swallowing becomes painful. When stomach acid, digestive enzymes, and bile repeatedly wash back into the esophagus, they erode the protective lining. This erosion creates raw, inflamed patches called erosive esophagitis, which sting or burn when food passes over them. The pain is typically felt behind the breastbone, often within an hour of eating, and gets worse when you lie down or exercise afterward.

What makes reflux damage progressive is that the esophagus has a relatively weak defense system compared to the stomach. It relies on a thin layer of mucus, bicarbonate from saliva, and tight junctions between cells to keep acid out. Once those barriers break down, the tissue becomes inflamed at a cellular level, with immune cells migrating into the damaged area and amplifying the irritation. That’s why the pain can persist even between meals.

Up to 40% of people treated with acid-suppressing medications still report symptoms, which sometimes points to other conditions like a hiatal hernia, poor esophageal motility, or a diagnosis that isn’t reflux at all.

Medications That Burn the Esophagus

Certain pills can cause ulcers in the esophagus if they get stuck or dissolve too slowly on the way down. This was first documented in 1970 with potassium chloride tablets, and the list of known offenders has grown considerably since then. The most common culprits include antibiotics (especially doxycycline), NSAIDs like aspirin, bisphosphonates used for bone density, and iron supplements.

The mechanism varies by drug. Some medications are directly caustic to tissue. Potassium chloride, for example, destroys local tissue through its high concentration of dissolved particles, which can also damage small blood vessels in the esophageal wall. Others, like NSAIDs, weaken the mucosal lining’s ability to protect itself.

Prevention is straightforward: take pills with at least 200 to 250 ml of water (roughly a full glass) and stay upright for at least 30 minutes afterward. If you tend to take medication right before bed with a small sip of water, that habit alone could explain your pain. People who have difficulty swallowing or are bedridden should ask about liquid formulations of their medications.

Infections of the Esophagus

Fungal, viral, and bacterial infections can inflame the esophagus and make swallowing acutely painful. These infections are most common in people with weakened immune systems, but they can occur in otherwise healthy individuals too.

The most common infectious cause is Candida, a type of yeast. Candida esophagitis produces a characteristic pain behind the breastbone that flares with each swallow. Herpes simplex virus is another cause, creating small volcano-shaped ulcers in the lower esophagus. About half of people with herpes esophagitis also develop a fever and may notice cold sores around the mouth at the same time. Cytomegalovirus (CMV) tends to produce fewer but larger, deeper ulcers, along with fever and nausea.

All three infections cause a rapid onset of symptoms. If swallowing pain appeared suddenly over a few days rather than building gradually over weeks, an infection is more likely than a structural or reflux-related problem.

Eosinophilic Esophagitis

Eosinophilic esophagitis (EoE) is a chronic allergic condition where a specific type of immune cell accumulates in the esophageal lining, causing inflammation and stiffness. It’s found primarily in young males and is diagnosed when a biopsy shows at least 15 of these immune cells per high-power microscope field, combined with symptoms of esophageal dysfunction.

The hallmark appearance on imaging is a “ringed” esophagus, where circumferential ring-like structures run along its length, narrowing the passage. This makes EoE a common cause of food getting stuck (impaction), particularly with solid foods like meat or bread. The pain tends to be chronic and recurring rather than sudden. Many people with EoE have other allergic conditions like asthma, eczema, or food allergies, which can be an important clue.

Structural Narrowing and Rings

Physical obstructions inside the esophagus can make swallowing painful or difficult. Esophageal webs are thin folds of tissue that partially block the upper esophagus. Rings form in the lower esophagus. The most common type, called a Schatzki ring, sits right at the junction between the esophagus and stomach.

These structures only cause symptoms when they narrow the esophageal opening to about 13 mm or less, which happens in roughly 0.5% of people who undergo imaging. The most common way a Schatzki ring announces itself is through food impaction, where a bite of food simply won’t go down and gets lodged. This tends to happen with large, poorly chewed pieces of solid food and can be intermittent, occurring weeks or months apart.

Nerve-Related Swallowing Pain

Glossopharyngeal neuralgia is a rare condition that produces sharp, stabbing, or electric shock-like pain in the throat and tonsillar area, triggered by swallowing, coughing, talking, or yawning. Each episode lasts only a few seconds to about two minutes but can be severe. The pain is always on one side.

This condition is frequently misdiagnosed as a dental problem or confused with trigeminal neuralgia, which causes similar pain but on the face rather than in the throat. The key difference: glossopharyngeal neuralgia pain is provoked by swallowing and chewing, while trigeminal neuralgia is set off by light touch on the face, washing, or brushing teeth. The most common underlying cause is a blood vessel pressing on the nerve root, though inflammatory diseases and infections near the tonsils can also trigger it.

How Painful Swallowing Gets Diagnosed

An upper endoscopy (where a thin camera is guided down the throat) is the recommended first test for suspected esophageal problems. It allows direct visualization of the tissue, the ability to take biopsies, and in some cases, immediate treatment like stretching a narrowed area. A barium swallow, where you drink a contrast liquid while X-rays are taken, is better at detecting subtle narrowing, esophageal webs, and compression from structures outside the esophagus. If endoscopy comes back normal, a barium swallow is often the next step.

For reflux-related pain, doctors sometimes skip imaging entirely and start with an 8-week trial of acid-suppressing medication. If symptoms resolve, that response itself serves as a diagnostic tool. If they don’t, it opens the door to investigating other causes like EoE, motility disorders, or esophageal hypersensitivity.

What Helps While You’re Healing

Regardless of the underlying cause, adjusting what and how you eat can reduce pain significantly during recovery. Foods that are soft, smooth, moist, and easy to swallow put less mechanical stress on inflamed tissue. Think mashed potatoes, yogurt, smoothies, scrambled eggs, and well-cooked grains. Avoid anything sharp-edged, dry, or crumbly, like chips, crackers, raw vegetables, or crusty bread.

Temperature matters too. Your mouth and throat have nerve receptors that detect temperature along with texture, and very hot or very cold foods can aggravate irritated tissue. Room temperature or slightly warm foods are generally the most comfortable. Eating smaller bites, chewing thoroughly, and sitting upright during and after meals all reduce the chance of food lingering in the esophagus where it can cause further irritation.

Signs That Need Prompt Attention

Most causes of painful swallowing are manageable, but certain combinations of symptoms warrant urgent evaluation. These include progressive difficulty swallowing that gets worse over days or weeks, unexplained weight loss, persistent one-sided ear pain without an obvious ear problem, and swallowing pain combined with a hoarse voice or noisy breathing. A history of smoking or heavy alcohol use raises the concern for throat or esophageal cancers, which can present initially as nothing more than pain with swallowing. If food is getting stuck and you cannot swallow liquids either, that’s a situation that needs same-day medical attention.