Why Does It Hurt When I Swallow and What to Do?

Pain when you swallow, known medically as odynophagia, is most often caused by an infection in the throat or esophagus, though everything from a stuck pill to a nerve disorder can be responsible. The good news is that the most common culprits are temporary and treatable, and over-the-counter painkillers can meaningfully reduce the discomfort while you heal. Understanding the range of causes helps you figure out when you can ride it out at home and when you need a doctor’s attention.

The Most Common Reason Is an Infection

If swallowing hurts and you also have a sore throat, the odds overwhelmingly favor some type of pharyngitis. The vast majority of acute pharyngitis cases are viral, caused by the same respiratory viruses behind colds and flu: rhinovirus, coronavirus, adenovirus, influenza, parainfluenza, and Epstein-Barr virus among them.1PubMed Central. Pharyngitis and Pharyngeal Space Infections A viral sore throat usually shows up alongside a runny nose, cough, hoarseness, or red eyes, and it resolves on its own within a week or so.

Bacterial pharyngitis, most commonly caused by Group A Streptococcus (strep throat), is less frequent but tends to be more painful. In children, strep accounts for roughly 15 to 30 percent of sore-throat visits, and in adults about 5 to 15 percent.1PubMed Central. Pharyngitis and Pharyngeal Space Infections A few patterns can help you tell the two apart: strep tends to come with fever, swollen lymph nodes in the front of the neck, and white or yellow patches on the tonsils, typically without a cough. One study found that considerable pain on swallowing, being between 3 and 14 years old, and having symptoms for three days or less were all significantly associated with a strep diagnosis on top of the standard clinical criteria.2PubMed Central. Clinical symptoms and signs in sore throat patients with large colony variant beta-haemolytic streptococci groups C or G versus group A Strep requires antibiotics because untreated cases can lead to rheumatic fever or kidney problems, so if the pattern fits, a rapid strep test or throat culture is worth pursuing.

Infections Below the Throat

When the pain feels like it is deeper than the back of your mouth, behind the breastbone rather than in the throat, the problem may be in the esophagus rather than the pharynx. Esophageal candidiasis, a yeast infection of the esophagus, is one of the more common causes of this deeper swallowing pain. It typically affects people with weakened immune systems, such as those living with HIV, taking immunosuppressive medications, or on prolonged courses of antibiotics or inhaled steroids. Patients tend to report pain on swallowing, difficulty getting food down, and pain behind the sternum.3PubMed Central. Diagnosis and Treatment of Esophageal Candidiasis: Current Updates

Other infections can also target the esophagus specifically, including herpes simplex virus and cytomegalovirus. These share similar symptoms with candidiasis, which is why doctors sometimes need an endoscopy to tell them apart.3PubMed Central. Diagnosis and Treatment of Esophageal Candidiasis: Current Updates If you have ongoing pain deep in your chest every time you swallow and you are immunocompromised, mention it to your doctor sooner rather than later.

When a Pill Is the Problem

One underappreciated cause of swallowing pain is pill-induced esophagitis: a chemical burn of the esophagus caused by a medication that gets stuck or lingers on its way down. More than 70 drugs have been reported to cause this kind of injury. Antibiotics like doxycycline, tetracycline, and clindamycin account for more than half of all cases.4PubMed. Drug-induced oesophageal disorders: pathogenesis, incidence, prevention and management Other frequent offenders include aspirin, potassium chloride supplements, iron tablets, and nonsteroidal anti-inflammatory drugs. The damage happens when a tablet or capsule sits in the esophagus long enough for its caustic contents to eat into the lining.

This is especially common when people take pills right before bed with too little water, or when they swallow medication while lying down. The esophagus does not have the same protective mucus layer as the stomach, so even brief contact with an acidic or caustic pill can create a sore. The fix is straightforward: always take medications with a full glass of water, stay upright for at least 30 minutes afterward, and avoid dry-swallowing pills. If you are already dealing with pill-related esophageal pain, the discomfort usually clears within a few days to a couple of weeks once the offending medication is stopped or taken properly.

Acid Reflux and Eosinophilic Esophagitis

Gastroesophageal reflux disease (GERD) is another common source of swallowing pain. When stomach acid repeatedly washes back into the esophagus, it inflames and can erode the lining, making swallowing uncomfortable or outright painful. Most people with GERD recognize the heartburn component, but the swallowing pain can exist on its own, particularly if the reflux is happening at night or in small amounts that do not trigger an obvious burning sensation.

Eosinophilic esophagitis (EoE) is a less well-known inflammatory condition where a type of white blood cell accumulates in the esophageal lining, causing swelling and stiffness. Its hallmark symptom is difficulty swallowing solid food, often with a sensation of food getting stuck. But pain during swallowing and chest pain behind the breastbone also occur and tend to be linked to greater overall symptom severity.5PubMed Central. Odynophagia and Retrosternal Pain Are Common in Eosinophilic Esophagitis and Associated with an Increased Overall Symptom Severity EoE is driven by an allergic or immune response and is increasingly recognized in adults, not just children. If you have recurring episodes of food sticking in your throat and pain when you swallow, especially if you also have allergies, asthma, or eczema, ask your doctor about EoE.

Burns and Physical Injuries

Sometimes the cause of swallowing pain is as simple as a thermal burn from something too hot. A scalding sip of coffee or a bite of food straight from the oven can burn the throat or the upper esophagus. Most of these heal on their own in a few days. In rare and extreme cases, though, hot food or beverages can cause serious swelling in the larynx. A review of case reports found 27 documented instances of laryngeal burns from hot food or drink, with swelling peaking between 8 and 36 hours after the injury and lasting up to four days.6PubMed Central. Fatal laryngeal burn from ingestion of a hot fish cake: Case report and literature review Those severe cases are vanishingly rare, but if swallowing pain after a burn is getting worse over the first day or two rather than better, seek medical attention.

Other physical injuries that cause painful swallowing include scratches from sharp foods like tortilla chips or fish bones, post-surgical soreness after procedures involving the throat, and irritation from a breathing tube used during general anesthesia. These are usually obvious from context. Cool, soft foods and time take care of most of them.

Structural and Rare Anatomical Causes

Occasionally, the source of swallowing pain is structural. Eagle syndrome is a rare condition in which the styloid process, a small bony projection at the base of the skull, grows abnormally long and presses on surrounding tissues. One documented case involved a styloid process measuring nearly 15 centimeters (the normal length is around 2.5 cm), which caused neck pain during swallowing significant enough to require surgical removal.7PubMed Central. Dysphagia Due to an Extremely Long Styloid Process: A Case Report of Eagle Syndrome

Tumors in the throat, esophagus, or surrounding structures can also produce swallowing pain, whether from the tumor itself, from cancer treatments like radiation and chemotherapy, or from surgical removal of the growth.8PubMed Central. Swallowing dysfunction in cancer patients This is not where the mind should jump first, since the vast majority of sore throats are not cancer. But persistent, worsening swallowing pain lasting more than two to three weeks, especially if it is one-sided, accompanied by unexplained weight loss, or associated with a lump in the neck, warrants investigation.

Glossopharyngeal Neuralgia

Not all swallowing pain originates from tissue damage. Glossopharyngeal neuralgia is a nerve condition that causes severe, sudden jolts of pain in the throat, the base of the tongue, the tonsil area, or beneath the angle of the jaw.9PubMed Central. An uncommonly common: Glossopharyngeal neuralgia The pain is paroxysmal, meaning it strikes in brief, intense episodes rather than being constant, and swallowing or talking can trigger an attack. It is considered rare, but it may be underdiagnosed because people attribute the pain to a throat infection or tooth problem.

If your swallowing pain comes on as sharp, electric, stabbing episodes that last seconds to minutes and then vanish, especially if the pain radiates to the ear, mention glossopharyngeal neuralgia to your doctor. Anticonvulsant medications used for other nerve pain conditions are the first-line treatment, and in refractory cases, surgical decompression of the nerve can be effective.

The Globus Sensation

Some people feel a persistent lump or tightness in the throat that makes swallowing feel uncomfortable, even though nothing structurally abnormal shows up on examination. This is called globus pharyngeus, and it is one of the most common reasons people visit an ear, nose, and throat specialist.10PubMed Central. Globus pharyngeus: a review of its etiology, diagnosis and treatment It is not quite the same as pain on swallowing, but many people describe it that way because the discomfort intensifies when they try to swallow. Acid reflux, muscle tension, stress, and anxiety can all contribute. Paradoxically, the sensation often eases when actually eating food, and worsens when swallowing saliva. Treatment depends on the suspected trigger: managing reflux, reducing stress, or speech-language therapy to address muscle tension.

Red Flags That Need Urgent Attention

Most painful swallowing resolves on its own or with simple treatment, but a few patterns should send you to a doctor quickly:

  • Drooling or inability to swallow saliva: this can indicate severe swelling or an abscess blocking the throat.
  • Difficulty opening the mouth: this “trismus” is a classic sign of a peritonsillar abscess, a pus collection next to the tonsil that typically causes one-sided throat swelling, fever, and pain on swallowing.11PubMed Central. Ageusia: A Symptom of Peritonsillar Abscess?
  • Difficulty breathing or a muffled voice: swelling in the throat that compromises the airway is a medical emergency.
  • Swallowing pain lasting more than two weeks: anything that lingers beyond a typical infection timeline deserves evaluation, particularly if it is getting worse.
  • Unexplained weight loss or a neck mass: these alongside persistent swallowing pain raise the possibility of a tumor and warrant prompt workup.

Peritonsillar abscesses deserve special mention because they can develop fairly quickly from an ordinary case of tonsillitis. If your sore throat suddenly gets much worse on one side, your voice changes, and you find it hard to open your mouth, you likely need drainage and antibiotics, not just rest.

What Actually Helps With the Pain

For ordinary sore-throat pain, over-the-counter anti-inflammatory drugs are the most effective option. In a head-to-head trial, 400 mg of ibuprofen outperformed 1,000 mg of acetaminophen (paracetamol) on all pain measures, including swallowing difficulty and throat swelling, at every time point after the first two hours.12PubMed. Sore throat pain in the evaluation of mild analgesics Both drugs were significantly better than placebo, so if you cannot take ibuprofen because of stomach issues or other contraindications, acetaminophen still helps. But if you have the choice, an NSAID like ibuprofen addresses both the pain and the inflammation driving it, which acetaminophen does not.

Medicated lozenges containing flurbiprofen, an NSAID available in some countries without a prescription, have shown strong results for throat pain specifically. In a controlled trial, patients using an 8.75 mg flurbiprofen lozenge over 24 hours experienced about 59 percent greater reduction in throat pain, 45 percent less difficulty swallowing, and 44 percent less throat swelling compared to placebo.13PubMed Central. Utility of the sore throat pain model in a multiple-dose assessment of the acute analgesic flurbiprofen: a randomized controlled study The advantage of a lozenge or spray format is that it delivers the anti-inflammatory drug directly to the inflamed tissue.14The Journal of Pain. Efficacy of Flurbiprofen 8.75 mg Spray Versus Lozenge in Patients with Sore Throat Due to Upper Respiratory Tract Infection

Beyond medication, a few simple measures make a real difference:

  • Stay hydrated: warm liquids like broth or tea soothe inflamed tissue and prevent dehydration, which makes throat pain worse.
  • Eat soft, cool foods: yogurt, smoothies, and ice pops reduce friction and can temporarily numb the area.
  • Gargle with warm salt water: about half a teaspoon of salt in a cup of warm water reduces swelling and loosens mucus.
  • Use a humidifier: dry air irritates an already sore throat, especially during winter months.
  • Rest your voice: if your throat pain involves the larynx, talking and whispering both strain the tissue.

For esophageal causes like GERD or pill esophagitis, the treatment shifts to managing the underlying problem: acid-suppressing medications for reflux, proper pill-taking technique to prevent future injury, and dietary changes if eosinophilic esophagitis is involved.

Swallowing Pain in Children

Children get sore throats from infections just like adults, but a couple of additional concerns are worth noting. Young kids, especially those between six months and three years old, have a habit of swallowing things they should not. Foreign body ingestion is common in this age group, and a coin, button battery, or small toy stuck in the esophagus can cause pain, drooling, refusal to eat, and sometimes vomiting.15PubMed Central. Foreign Body Ingestion in Children Button batteries lodged in the esophagus are a genuine emergency because they can cause chemical burns to the esophageal wall within hours. Coins and sharp objects in the esophagus also need removal, ideally within two hours if the child has symptoms and within 24 hours even if the child seems fine.15PubMed Central. Foreign Body Ingestion in Children

If a young child suddenly refuses to eat, drools excessively, or points to their throat in distress without an obvious cold or fever, think about the possibility of a swallowed foreign body, especially if small batteries or coins are accessible in the household. An X-ray can usually confirm or rule it out quickly.

When Pain Lingers After an Illness

Some people notice that swallowing pain persists for days or even weeks after the original infection has cleared. This is not unusual. The mucosal lining of the throat and esophagus is delicate, and once it is inflamed or damaged, it can stay sensitive well after the virus or bacterium is gone. Post-infectious irritation, residual muscle tension from repeated swallowing against pain, and lingering mucosal swelling all contribute. Ongoing acid reflux can also delay healing, because even mild acid exposure to tissue that is already raw keeps the pain cycle going.

If swallowing pain lasts more than a week after your other symptoms have resolved, it is worth considering whether something else is maintaining the inflammation. Are you taking any medications that could be irritating the esophagus? Is reflux a factor, especially at night? Are you clearing your throat or coughing frequently, which mechanically irritates the tissue? Addressing these secondary factors often resolves lingering pain that antibiotics or antivirals cannot.