Gastrointestinal gas and bloating can, in certain people, trigger episodes of atrial fibrillation or other heart rhythm disturbances. The connection runs through the vagus nerve, a major communication highway between the gut and the heart, and is sometimes dramatic enough that treating the digestive problem resolves the arrhythmia entirely. The relationship is more nuanced than a simple cause-and-effect, though, and understanding how your gut can influence your heart rhythm has practical implications for both diagnosis and management.
How Gas and Bloating Reach the Heart
Your stomach and heart are separated by only the thin muscular sheet of the diaphragm, and they share a critical nerve supply: the vagus nerve. When intestinal gas or bloating pushes the stomach upward against the diaphragm, it can stimulate vagal nerve fibers that directly influence heart rate and rhythm. This is the core of what is formally called Roemheld syndrome, or gastrocardiac syndrome. A 2024 review in Encyclopedia described it as a gut-brain-heart triad in which pressure from the intestines pushes the stomach into the diaphragm, activates the vagus nerve, and alters heart rate in ways that mimic cardiac disease.1Encyclopedia. Understanding the Gut-Heart Axis in Roemheld Syndrome: Mechanisms and Clinical Insights
The vagus nerve is part of the parasympathetic nervous system, meaning it generally slows heart rate and relaxes smooth muscle. When it fires strongly in response to abdominal distension, it can slow the heart enough to create an electrical environment where atrial fibrillation (AFib) is more likely to start. People who experience this often notice palpitations, a racing or irregular heartbeat, chest pressure, or even brief lightheadedness that comes on after eating, during a bout of bloating, or when lying down with a full stomach.
At least one published case report documented a young patient whose AFib episodes were preceded by abdominal flatulence and who responded well to treatment with simethicone, a common over-the-counter gas remedy.2International Journal of Cardiology. International Journal of Cardiology That case is a vivid example of how directly gas can provoke an arrhythmia in the right person, though it is far from the norm.
Vagal AFib and Its Distinctive Pattern
Not all AFib is alike. Cardiologists recognize a subtype called vagal paroxysmal atrial fibrillation, in which episodes are provoked by situations that ramp up vagal nerve activity rather than by adrenaline or exertion. A study of patients with vagal AFib and no structural heart disease found that the most common triggers were sleep and the postprandial period (after eating), each reported by over 96% of patients. Late post-exercise recovery was another trigger in about half of cases, and a smaller fraction reported cold stimuli or coughing.3PubMed. Vagal paroxysmal atrial fibrillation: prevalence and ablation outcome in patients without structural heart disease
The Euro Heart Survey, a large European registry, categorized AFib patients by trigger pattern into adrenergic (exercise- or emotion-related), vagal (postprandial or nighttime), and mixed types.4European Heart Journal. Autonomic trigger patterns and anti-arrhythmic treatment of paroxysmal atrial fibrillation: data from the Euro Heart Survey People whose AFib follows the vagal pattern often notice that episodes happen after large meals, at rest in the evening, or when they are bloated, and rarely during exercise. This is the group most likely to feel a direct gut-to-heart connection.
If your AFib episodes consistently appear after eating or during digestive discomfort rather than during physical activity or stress, that pattern is worth mentioning to your cardiologist. It can influence which medications or interventions are most appropriate, because drugs that work well for adrenergic AFib can sometimes worsen vagally triggered episodes.
The GERD Connection
Gas and bloating are not the only gastrointestinal issues linked to AFib. Gastroesophageal reflux disease (GERD) has its own substantial body of evidence connecting it to atrial fibrillation. The lower esophagus sits directly behind the left atrium, and when acid repeatedly irritates the esophageal lining, three things can happen that promote AFib: the vagus nerve gets stimulated, local inflammation develops in tissue very close to the heart’s electrical system, and the swollen esophagus can physically press against the left atrium.5PubMed Central. Association of atrial fibrillation and gastroesophageal reflux disease: Natural and therapeutic linkage of the two common diseases
A large population-based study from Taiwan tracked tens of thousands of people and found that GERD was independently associated with a roughly 31% increased risk of developing AFib over a three-year follow-up period.6PLoS ONE. Gastroesophageal Reflux Disease and Atrial Fibrillation: A Nationwide Population-Based Study A Mendelian randomization study, which uses genetic data to test whether the relationship is likely causal, estimated that GERD increased the odds of AFib by about a third.7International Journal of Medical Sciences. Gastroesophageal reflux disease and atrial fibrillation: a bidirectional Mendelian randomization study
The picture is not perfectly consistent, though. A study from Olmsted County in the United States found that GERD symptoms alone were not associated with AFib risk after adjusting for other factors. However, when actual inflammation of the esophagus (esophagitis) was present, the risk of AFib nearly doubled.8EP Europace. Atrial fibrillation and gastroesophageal reflux disease: the cardiogastric interaction That distinction matters: it suggests that the physical and inflammatory consequences of reflux, not just the symptom of heartburn, drive the cardiac risk. People who have reflux severe enough to cause visible esophageal damage likely face higher risk than those with occasional heartburn.
Hiatal Hernias and Mechanical Compression
A hiatal hernia, where part of the stomach pushes up through the diaphragm into the chest cavity, creates an especially favorable setup for gut-triggered arrhythmias. The displaced stomach can directly compress the left atrium or irritate the pericardium (the sac around the heart), and it amplifies vagal stimulation by changing the mechanical relationship between the organs. Reported cardiac abnormalities linked to hiatal hernias include atrial fibrillation, atrial flutter, other forms of rapid heart rhythm, and even abnormally slow heart rates.9PubMed Central. A large hiatal hernia causing frequent premature ventricular contractions with bigeminy: A case report and review of literature
One illustrative case involved a patient whose palpitations worsened with food intake and who was found to have a high burden of premature ventricular contractions along with a hiatal hernia and GERD. After cardiac causes were thoroughly ruled out, surgical repair of the hernia resolved the arrhythmia entirely.10PubMed Central. Rare and unusual presentation of gastrocardiac syndrome Cases like this underline the importance of considering gastrointestinal anatomy when arrhythmias resist standard cardiac treatment.
Large hiatal hernias are particularly relevant because the greater the volume of stomach sitting in the chest, the more mechanical compression and vagal activation occurs, especially after meals when the stomach fills and expands. This is why people with large hiatal hernias sometimes describe their worst palpitations happening shortly after eating, when lying flat, or when bending over.
Cold Drinks, Swallowing, and Other Unexpected Triggers
Gas and reflux are the most discussed gut-related AFib triggers, but they are not the only ones. The esophagus runs directly behind the left atrium, and anything that changes its temperature, stretch, or nerve activity can potentially affect heart rhythm in susceptible people.
A case report described a 39-year-old man with recurrent paroxysmal AFib that was triggered almost exclusively by swallowing ice-cold liquids and foods. He had no structural heart disease, and his cardiac studies were otherwise normal. The authors attributed the effect to either a vagally mediated mechanism or a direct thermal effect on the left atrium from the adjacent esophagus.11PubMed Central. A Case Report of Cold Drinks and Food as a Trigger of Paroxysmal Atrial Fibrillation This is a niche scenario, but it demonstrates how intimately connected the esophagus and the heart’s electrical system can be.
Even medical procedures that involve the upper GI tract can provoke rhythm changes. During upper gastrointestinal endoscopy, where the scope passes through the esophagus and inflates the stomach with air, transient heart rhythm disturbances have been documented. One older study noted that clinically meaningful rhythm changes during endoscopy were uncommon but did occur, including a case of conversion to atrial flutter.12PubMed Central. Cardiac response to upper gastrointestinal endoscopy Modern endoscopy is quite safe, but this observation reinforces the principle that physically distending or stimulating the upper gut can have cardiac consequences.
When Fixing the Gut Fixes the Rhythm
One of the most compelling pieces of evidence that GI problems can drive arrhythmias comes from cases where treating the gut condition eliminates the heart rhythm abnormality. A 2025 systematic review examined the available literature on hiatal hernia repair and GERD treatment as interventions for arrhythmias. Across multiple case reports and case series, hiatal hernia repair and proton pump inhibitors resolved arrhythmias, and in some patients, anti-arrhythmic medications were able to be stopped entirely.13PubMed. Exploring the Link-Hiatal Hernia Repair and GERD Treatments for Managing Arrhythmias: A Systematic Review
The evidence here is mostly from case-level data rather than large randomized trials, so it would be overstepping to say that hernia repair is a reliable cure for AFib. But the pattern is consistent enough that many cardiologists and gastroenterologists now consider GI evaluation when a patient has AFib that does not respond to conventional treatment, particularly if the episodes follow meals or are associated with bloating and reflux symptoms.
For people with milder symptoms, managing gas and reflux through dietary changes, eating smaller meals, avoiding lying down after eating, and using over-the-counter remedies like simethicone or antacids may reduce the frequency of gut-triggered palpitations. These are low-risk strategies that can be tried alongside any cardiac management plan.
A Medication Complication Worth Knowing About
Proton pump inhibitors (PPIs) like omeprazole and esomeprazole are the most commonly prescribed medications for GERD, and they are often the first-line treatment for people with reflux-related arrhythmia symptoms. There is an ironic wrinkle, though: long-term PPI use can lower magnesium levels by impairing how the gut absorbs this mineral. Low magnesium is itself a known trigger for arrhythmias, including AFib.14PubMed Central. Proton pump inhibitor-induced hypomagnesemia: A new challenge
This does not mean PPIs are dangerous or should be avoided. For most people, the benefit of controlling acid reflux far outweighs the small risk of magnesium depletion. But if you are on long-term PPI therapy and experiencing persistent palpitations or arrhythmias, it is reasonable to ask your doctor to check your magnesium level. The fix, when magnesium is low, is usually straightforward supplementation or switching to a different class of acid-suppressing medication.
Why the Diagnosis Can Be Tricky
One of the frustrating aspects of gastrocardiac syndrome is that it often gets missed or dismissed. The symptoms overlap heavily with primary cardiac conditions: palpitations, chest tightness, shortness of breath, and lightheadedness can all come from either a cardiac or a gastrointestinal source. When someone shows up in an emergency room with AFib, the standard workup focuses on the heart, thyroid, and electrolytes. Gastrointestinal causes are rarely at the top of the list.
Adding to the confusion, GERD and AFib share several common risk factors, including obesity, older age, alcohol use, and obstructive sleep apnea. This overlap means the two conditions frequently coexist, and untangling which one is driving which can be difficult.15PubMed Central. Gastroesophageal Reflux and Its Association With Atrial Fibrillation: A Traditional Review A comprehensive review in World Journal of Gastroenterology acknowledged that the mechanisms linking GERD to AFib remain only partially understood, with inflammation and vagal stimulation considered the most plausible pathways.16PubMed Central. Atrial fibrillation in patients with gastroesophageal reflux disease: a comprehensive review
If you suspect a gut-heart connection in your own symptoms, keeping a log of when episodes occur relative to meals, specific foods, bloating, and body position can give your physician valuable information. The pattern often tells the story more clearly than any single test.
The Gut Microbiome and AFib
Beyond mechanical and nerve-mediated effects, researchers are exploring whether the broader gut environment, including the trillions of bacteria living in the intestines, might influence AFib risk. A 2023 review proposed a “gut-immune-heart” axis in which shifts in gut microbiome composition could promote systemic inflammation that ultimately affects the heart’s electrical stability.17PubMed Central. The correlation between gut microbiome and atrial fibrillation: pathophysiology and therapeutic perspectives
This line of research is still in its early stages, and no one is recommending specific probiotics to prevent AFib. But it is worth noting because it suggests the gut’s influence on heart rhythm extends beyond simple mechanical pressure and nerve reflexes. Conditions that disrupt the normal gut bacterial balance, such as small intestinal bacterial overgrowth (SIBO), are associated with excessive gas production and bloating, and SIBO has been linked to a wide range of systemic conditions including heart failure.18PubMed Central. Epidemiology of small intestinal bacterial overgrowth Whether treating SIBO or other gut microbial imbalances can reduce AFib risk remains an open question, but the theoretical links are strong enough that researchers expect clinical trials in the coming years.
Practical Steps If You Suspect a Gut-Heart Link
If your palpitations or irregular heartbeat tend to follow meals, occur during bouts of gas or bloating, or worsen when you lie down on a full stomach, a gastrointestinal contribution is worth investigating. A few practical measures can help clarify the picture and potentially reduce episodes:
- Symptom diary: Record when episodes occur, what you ate or drank beforehand, your body position, and any associated bloating or heartburn. Even two weeks of data can reveal a clear pattern.
- Smaller meals: Large meals distend the stomach more, increasing both vagal stimulation and the chance of reflux. Eating smaller, more frequent meals is one of the simplest interventions.
- Upright after eating: Staying upright for at least two to three hours after a meal reduces reflux and limits the stomach’s upward pressure on the diaphragm.
- Gas-reducing strategies: Simethicone can break up gas bubbles, and avoiding carbonated drinks, chewing gum, and high-FODMAP foods may reduce intestinal gas production.
- GI evaluation: If the pattern is suggestive, ask about testing for GERD, hiatal hernia, or SIBO. An upper endoscopy or pH monitoring study can reveal problems that are treatable.
- Electrolyte check: If you take PPIs regularly, a blood test for magnesium is a simple and cheap screen for a correctable arrhythmia contributor.
None of these replace a proper cardiac evaluation. AFib carries real risks, including stroke, and needs to be managed on its own terms regardless of what is triggering it. But when the gut is part of the problem, addressing it can make cardiac treatment work better and sometimes reduce the need for aggressive interventions. The gut and the heart are closer neighbors than most people realize, and what happens in one does not always stay there.