Pain on the right side of your chest when you swallow almost always traces back to the esophagus, the muscular tube that carries food from your throat to your stomach. The esophagus sits in the center and slightly right side of the chest for much of its length, so inflammation, injury, or obstruction along its wall can produce pain that feels distinctly right-sided. The causes range from something as mundane as a pill that got stuck to conditions that need urgent medical attention, and the specific pattern of your pain, what triggers it, and what makes it go away can help narrow down what is going on.
Why the Esophagus Produces Right-Sided Chest Pain
Your esophagus is about 25 centimeters long and runs just behind the trachea and heart. It curves slightly to the right in the upper and middle chest before passing through the diaphragm to meet the stomach. Three natural narrowing points exist along the way: at the throat entrance, where the esophagus crosses behind the aortic arch, and where it passes through the diaphragm. These narrow zones are exactly where pills, food, and foreign objects are most likely to get stuck. When the esophageal wall is irritated or inflamed at any point along its right-sided course, the pain can feel like it is coming from the right chest rather than dead center.
The esophagus shares nerve pathways with the heart, which is why esophageal pain is frequently mistaken for a cardiac problem. Patients with an impacted foreign body in the esophagus, for example, have undergone extensive cardiac workups before the true cause was found.1PubMed Central. An unusual cause of chest pain: foreign body in the oesophagus Gastroesophageal reflux disease, motility disorders, and esophageal hypersensitivity are among the most common non-cardiac explanations for chest pain, and all of them can flare specifically when you swallow.2PubMed Central. Diagnosis and management of esophageal chest pain
Pill-Induced Esophagitis
One of the most common and underrecognized causes of swallowing-related chest pain is a pill that gets lodged against the esophageal wall. If you have ever taken a medication with too little water or while lying down, you may have felt a burning or sharp ache that persisted for hours. That is because certain medications can cause inflammation, erosion, and even ulceration of the esophageal lining when they sit in one spot for too long, even in people with a perfectly healthy esophagus.3PubMed Central. Chest pain from pill-induced esophagitis: A rare side effect of ascorbic acid The narrow zones mentioned earlier are the usual trouble spots.
Common culprits include certain antibiotics (doxycycline and tetracycline especially), anti-inflammatory drugs like ibuprofen and aspirin, potassium supplements, bisphosphonates used for osteoporosis, and even large vitamin C tablets. The pain tends to be sharp, located in the mid or right chest, and it gets worse every time you swallow. Prevention is straightforward: take pills with a full glass of water and remain upright for at least 30 minutes afterward. If you suspect a pill caused the damage, the injury usually heals within days to a couple of weeks once you stop the offending medication and let the lining recover.
Acid Reflux and Esophageal Ulcers
Gastroesophageal reflux disease is the single most common esophageal cause of non-cardiac chest pain.4PubMed Central. The role of oesophageal physiological testing in the assessment of noncardiac chest pain When stomach acid repeatedly washes up into the lower esophagus, the lining becomes inflamed. In mild cases, you feel heartburn. In more severe cases, actual ulcers develop, and swallowing food or liquid across that raw tissue produces a stabbing or burning pain.
Severe esophageal ulceration can provoke sharp chest pain that gets worse when food passes over the damaged area, closely mimicking a heart attack.2PubMed Central. Diagnosis and management of esophageal chest pain The pain is often worse after eating, when lying flat, or during the night. If reflux is the culprit, you might also notice a sour taste in the back of your throat, hoarseness in the morning, or a chronic cough. Over-the-counter antacids or acid-reducing medications will usually improve the pain within a few days, which itself can be a useful diagnostic clue.
Something Stuck in the Esophagus
A piece of poorly chewed food, a fish or poultry bone, or an accidentally swallowed object can lodge in the esophagus and cause immediate right-sided chest pain. One case report describes an elderly woman whose chest pain turned out to be caused by an ingested duck bone, initially suspected to be a cardiac event because of her history of heart disease.5PubMed Central. Perforation of the esophagus: an overlooked cause of chest pain as a complication of esophageal foreign bodies In another case, a woman who swallowed a spoon while trying to induce vomiting presented with severe chest pain and drooling.6PubMed. Unusual Foreign Body, a Spoon, in the Esophagus of a Middle-Aged Female: A Case Report and Review of the Literature
Foreign body impaction deserves attention because it is often missed. The typical scenario involves someone who initially seems to have a cardiac problem: they arrive at an emergency department with chest pain, undergo heart-related testing, and only later does imaging reveal the real cause.1PubMed Central. An unusual cause of chest pain: foreign body in the oesophagus If your pain started suddenly during or right after eating and you cannot swallow your own saliva, that pattern strongly suggests something is stuck. This is a situation that requires prompt medical evaluation because a sharp object can perforate the esophageal wall.
Infections of the Esophagus
Infections can inflame the esophageal lining enough to make swallowing painful. Fungal infections, particularly from Candida species, are the most common type. Viral infections caused by cytomegalovirus or herpes simplex virus also occur.7Gastroenterology Review. Etiology, diagnosis and treatment of infectious esophagitis The hallmark symptoms are difficulty swallowing and pain with swallowing, often with a relatively sudden onset.
Infectious esophagitis is far more common in people with weakened immune systems, such as those undergoing chemotherapy, taking immunosuppressive drugs after an organ transplant, or living with advanced HIV. In people with healthy immune systems, it still happens but is less frequent and often tied to a specific trigger, like recent antibiotic use disrupting the normal balance of organisms in the throat and esophagus.8PubMed. Infectious Esophagitis If you have risk factors and develop new swallowing pain, your doctor may start antifungal treatment even before confirming the diagnosis with endoscopy, because Candida is overwhelmingly the most likely culprit in that population.
Eosinophilic Esophagitis
Eosinophilic esophagitis is an increasingly recognized cause of swallowing problems and chest pain. It is an inflammatory condition driven by an immune reaction to food or environmental triggers. The esophageal wall becomes infiltrated with eosinophils, a type of white blood cell associated with allergic responses. Over time, this inflammation causes swelling, rings, and strictures that narrow the esophagus.9PubMed. Overview of eosinophilic oesophagitis
The typical patient is a younger adult, often with a history of allergies, asthma, or eczema. Symptoms include a chronic sensation of food moving slowly through the chest, episodes where food gets completely stuck (a food bolus impaction that sometimes needs emergency removal), and chest pain. The tricky part is that the esophagus can look fairly normal on a standard endoscopy. Diagnosis requires biopsies taken from multiple levels of the esophagus, even when the surface appears unremarkable.9PubMed. Overview of eosinophilic oesophagitis If you have recurring food impactions or long-standing swallowing difficulty with chest pain and a history of allergic conditions, this diagnosis is worth raising with your doctor.
Esophageal Motility Disorders
Sometimes the pain is not about the lining of the esophagus at all but about how the muscle of the esophagus contracts. In a healthy swallow, coordinated waves of muscle contraction push food smoothly downward. When that coordination breaks down, the result can be spasm, excessively powerful contractions, or a failure of the lower valve to relax.
Esophageal spasm produces intense, squeezing chest pain that often occurs during or immediately after swallowing. It can be severe enough that people rush to the emergency department thinking they are having a heart attack. In achalasia, a condition where the lower esophageal sphincter fails to open properly, food backs up and the esophagus stretches, causing chest pain in roughly 40% of affected individuals.10ABCD. Arquivos Brasileiros de Cirurgia Digestiva. Evaluation of esophageal achalasia: from symptoms to the Chicago classification These motility disorders are diagnosed with specialized pressure-sensing tests. Treatment for spasm-related chest pain has included botulinum toxin injections at the lower esophageal junction, which reduced chest pain scores by about 79% in patients who responded to the treatment.11PubMed. Treatment of chest pain in patients with noncardiac, nonreflux, nonachalasia spastic esophageal motor disorders using botulinum toxin injection into the gastroesophageal junction
Structural and Vascular Causes
Less commonly, the anatomy surrounding the esophagus is the problem. Blood vessels or other structures can press on the esophagus from the outside, creating a narrowing that makes swallowing difficult and painful.
An aberrant right subclavian artery, a congenital vascular variant found in less than 1% of people, can compress the esophagus from behind and cause difficulty swallowing solids, a condition known as dysphagia lusoria.12PubMed Central. Aberrant Right Subclavian Artery Causing Dysphagia: A Case Report of Dysphagia Lusoria A similar scenario can occur with a right-sided aortic arch, where an aberrant vessel on the opposite side forms a ring around the esophagus and trachea, squeezing the esophagus enough to cause progressive chest discomfort and difficulty swallowing. In one reported case, a woman developed worsening symptoms over several years before imaging revealed a vascular ring compressing her esophagus.13Annals of Vascular Surgery – Brief Reports and Innovations. Unusual cause of chest pain and dysphagia in a middle-aged woman with right aortic arch and aberrant left subclavian artery
Esophageal diverticula, small outpouchings of the esophageal wall, can also produce right-sided symptoms. Epiphrenic diverticula, which form near the bottom of the esophagus just above the diaphragm, arise from the right side of the esophagus more than twice as often as the left. In a study of 27 patients, 19 had right-sided diverticula, and the majority experienced symptoms like difficulty swallowing and reflux.14PubMed. Epiphrenic diverticulum: clinical and radiographic findings in 27 patients Food and debris can collect inside these pouches, causing irritation, regurgitation, and a sense of food getting stuck. Many diverticula are discovered incidentally and produce no symptoms, but larger ones can be a source of persistent discomfort.
Mediastinal Conditions That Mimic Esophageal Problems
The esophagus sits in the mediastinum, the central compartment of the chest that also houses the heart, major blood vessels, and lymph nodes. Conditions that cause swelling or scarring in this space can squeeze the esophagus from the outside. Fibrosing mediastinitis, an uncommon condition where excessive collagen forms in the mediastinum after an infection or inflammatory trigger, can compress the esophagus and other structures, leading to chest pain and trouble breathing.15Journal of General Internal Medicine. Fibrosing mediastinitis: an unusual cause of pulmonary symptoms Enlarged lymph nodes from infection or malignancy can do the same thing. These causes are rare, but they are worth knowing about because the pain tends to get progressively worse over weeks to months rather than appearing suddenly.
When to Treat It as an Emergency
Most causes of right-sided chest pain with swallowing are uncomfortable but not immediately dangerous. A few, however, require urgent care.
Spontaneous esophageal perforation, known as Boerhaave syndrome, occurs when a sudden increase in pressure tears through the esophageal wall. It typically follows forceful vomiting but can also occur after severe retching, straining, or coughing. The classic presentation is severe lower chest or upper abdominal pain combined with both gastrointestinal and respiratory symptoms like shortness of breath.16PubMed Central. Spontaneous esophageal perforation (Boerhaave syndrome): Diagnosis with CT-esophagography This is a surgical emergency. Perforation can also result from a sharp foreign body working its way through the esophageal wall, which is why a bone or other sharp object that was swallowed needs prompt attention.5PubMed Central. Perforation of the esophagus: an overlooked cause of chest pain as a complication of esophageal foreign bodies
Beyond perforation, any chest pain with swallowing accompanied by unexplained weight loss, vomiting blood, black stools, or a rapidly worsening ability to swallow warrants urgent medical evaluation. These combinations raise concern for esophageal cancer or a deep ulcer eroding into a blood vessel.
How Doctors Figure Out the Cause
Because so many conditions can produce the same symptom, doctors usually follow a stepwise approach. The first priority is ruling out a cardiac problem, especially if you have risk factors for heart disease. Once the heart is cleared, attention turns to the esophagus.
An upper endoscopy is typically the first esophageal test. It allows the doctor to directly visualize the lining of the esophagus and stomach, spot ulcers, strictures, webs, diverticula, or tumors, and take biopsies. Even if the esophagus looks normal through the camera, biopsies are important because eosinophilic esophagitis can only be diagnosed under a microscope.4PubMed Central. The role of oesophageal physiological testing in the assessment of noncardiac chest pain
If endoscopy does not reveal the answer, additional testing can include ambulatory pH monitoring, which measures acid exposure in the esophagus over 24 hours to detect reflux that might be causing the pain. High-resolution manometry measures the pressure and coordination of esophageal contractions and can identify motility disorders like spasm, hypercontractile esophagus, or achalasia.4PubMed Central. The role of oesophageal physiological testing in the assessment of noncardiac chest pain A barium swallow, where you drink a chalky liquid while X-rays are taken, is useful for revealing structural problems like diverticula, strictures, or external compression from a vascular anomaly.17Diseases of the Esophagus. Clinical usefulness of endoscopy, barium fluoroscopy, and chest computed tomography for the correct diagnosis of achalasia CT scans of the chest round out the toolkit when vascular or mediastinal causes are suspected.
When Every Test Comes Back Normal
A frustrating scenario for both patients and doctors is persistent chest pain with swallowing that endoscopy, pH testing, and manometry all fail to explain. This is more common than you might expect. The emerging understanding is that some people develop visceral hyperalgesia, a state in which the nerves of the esophagus become oversensitive and register normal events, like food passing through or the esophagus gently stretching, as painful.18PubMed. Functional chest pain: nociception and visceral hyperalgesia
This kind of functional esophageal pain was once dismissed as purely psychological. Research has since shown that it involves a real disturbance in how pain signals are processed between the esophagus and the brain. Whether the problem starts in the esophageal nerves themselves or in the brain’s processing centers is still debated. Balloon distension testing, where a small balloon is gently inflated inside the esophagus to measure pain thresholds, can help identify this hypersensitivity.18PubMed. Functional chest pain: nociception and visceral hyperalgesia Treatment typically involves low-dose antidepressants that modulate pain signaling, stress management, and sometimes cognitive behavioral therapy. The condition is not dangerous, but it can be persistent and genuinely disruptive to daily life.
Practical Steps Before You See a Doctor
While you are figuring out what is going on, a few observations can help your doctor narrow the field faster. Pay attention to whether the pain happens with every swallow or only with solids, only with liquids, or only with certain foods. Pain that occurs exclusively with solids points toward a structural narrowing or impaction. Pain with both solids and liquids suggests a motility disorder or mucosal inflammation. Notice whether lying down, eating large meals, or taking specific medications makes things worse, all of which hint at reflux or pill esophagitis.
Keep track of whether the pain is constant or only triggered by swallowing. Constant chest pain that simply worsens with swallowing could involve a deeper process like an ulcer, infection, or mediastinal compression. Pain that appears only at the moment of swallowing and resolves between swallows is more consistent with a motility issue or a localized mucosal injury. Sharing these details with your doctor saves time and can help determine which tests are needed first.