What Causes Heartburn and Indigestion?

Heartburn and indigestion share a common origin: stomach acid ending up where it shouldn’t or the stomach struggling to process what you’ve eaten. About 825 million people worldwide deal with chronic acid reflux, and millions more experience recurring indigestion without a clear structural cause. Though the two problems overlap, they arise from slightly different mechanisms, and understanding what triggers each one helps you figure out what’s actually going on in your body.

Heartburn vs. Indigestion: What’s Actually Happening

Heartburn is the burning sensation behind your breastbone that occurs when stomach acid washes back into your esophagus. At the bottom of your esophagus sits a ring of muscle called the lower esophageal sphincter (LES) that normally stays closed after food passes through. When that muscle relaxes at the wrong time or doesn’t close tightly enough, acid escapes upward. The esophagus has no protective lining against acid the way your stomach does, so even brief contact causes that familiar burn.

Indigestion, or dyspepsia, centers in the upper abdomen. It shows up as pain, bloating, uncomfortable fullness, or a burning sensation in the stomach area. Some people feel stuffed after eating only a small amount. Others get a gnawing ache between meals. Only a fraction of people with these symptoms turn out to have a clear cause like an ulcer or acid reflux. The rest have what’s called functional dyspepsia, where the stomach’s nerves and muscles aren’t coordinating properly even though nothing looks structurally wrong.

The two conditions can occur together, and many triggers overlap. But heartburn is fundamentally about acid going the wrong direction, while indigestion is more about how your stomach handles its contents.

How Food Triggers Symptoms

Fat is the single biggest dietary driver of heartburn. When fat reaches your small intestine, it triggers a hormonal signal that directly relaxes the lower esophageal sphincter. Research on this mechanism found that a high-fat meal measurably drops the pressure in that sphincter muscle, and fat delivered directly to the small intestine produces even greater pressure drops. This is why greasy or fried foods are so reliably associated with reflux: they physically weaken the barrier that keeps acid in your stomach.

Fat also slows gastric emptying, meaning food sits in your stomach longer. A fuller stomach produces more acid and creates more pressure pushing contents upward. This double effect (weaker valve plus fuller stomach) is why a heavy meal can trigger both heartburn and indigestion at the same time.

Caffeine, alcohol, chocolate, mint, garlic, and onions can all relax the LES in higher doses, making reflux more likely. Alcohol goes further by making the stomach more acidic and slowing digestion. Acidic foods like citrus and tomatoes don’t necessarily cause reflux on their own, but they irritate esophageal tissue that’s already inflamed from previous acid exposure, which is why they sting more when you’re already having a bad stretch.

The Role of Body Weight

Carrying extra weight, especially around the midsection, increases the pressure inside your abdomen. That pressure pushes up on the stomach and can force acid past the LES. A large meta-analysis found that people with a BMI between 25 and 30 had 43% higher odds of reflux symptoms compared to people at a normal weight. For those with a BMI above 30, the odds nearly doubled.

Interestingly, BMI alone doesn’t tell the full story. A study of over 770 patients found that waist-to-hip ratio may predict acid exposure in the esophagus better than overall body weight. In other words, where you carry fat matters more than how much you weigh. Abdominal fat directly compresses the stomach and can push part of it upward through the diaphragm, creating or worsening a hiatal hernia.

Hiatal Hernias and Structural Changes

Your diaphragm normally wraps around the bottom of the esophagus and helps the LES stay shut. A hiatal hernia occurs when the junction between your esophagus and stomach slides upward through the diaphragm. This pulls the surrounding muscles out of position so they can no longer squeeze the esophagus closed effectively. The hernia also traps a pocket of acid at the top of the stomach that can’t drain back down, keeping acid in constant contact with the lower esophagus.

Hiatal hernias are extremely common, and many people have small ones without symptoms. But larger hernias are a reliable source of chronic heartburn that doesn’t respond well to diet changes alone.

Medications That Irritate the Stomach

Over-the-counter pain relievers like ibuprofen, naproxen, and aspirin are among the most common medication-related causes of indigestion. These drugs work by blocking an enzyme involved in inflammation, but that same enzyme is responsible for producing protective compounds that shield your stomach lining from its own acid. When those protective compounds drop, the lining becomes vulnerable to erosion and irritation. This effect is dose-dependent: the more frequently you take these medications, the more protection you lose. Even doses too low to noticeably reduce stomach acid still strip away the stomach’s natural defenses against injury.

Bacterial Infection in the Stomach

A bacterium called H. pylori lives in the mucus layer coating the stomach and is found in 30 to 50% of people with unexplained indigestion. It survives the acidic environment by producing large amounts of an enzyme that neutralizes the acid immediately surrounding it. Over time, the infection triggers chronic inflammation of the stomach lining, which disrupts normal digestion and can cause persistent upper abdominal pain, nausea, and bloating. H. pylori is also the primary cause of stomach ulcers. A simple breath test or stool test can detect it, and a course of antibiotics clears the infection in most cases.

Pregnancy and Hormonal Shifts

Heartburn affects the majority of pregnant women, particularly in the second and third trimesters. Progesterone, which rises steadily throughout pregnancy, relaxes smooth muscle throughout the body. That includes the lower esophageal sphincter. With a weaker seal at the top of the stomach and a growing uterus compressing the abdomen from below, acid has both an easier path upward and more pressure pushing it there. Progesterone also slows the entire digestive process, keeping food in the stomach longer and increasing the window for reflux to occur.

Timing, Posture, and Nighttime Symptoms

Gravity is one of the most effective barriers against reflux. When you’re upright, acid has to travel upward against gravity to reach the esophagus. Lying down removes that advantage entirely, which is why heartburn often worsens at night. Eating within three hours of bedtime is one of the most consistent triggers for nighttime symptoms because your stomach hasn’t had enough time to empty before you go horizontal.

Large meals matter too, regardless of timing. A stomach stretched with food produces more acid and puts more pressure on the LES. Eating smaller, more frequent meals reduces both the volume and the pressure, giving the sphincter less to contend with. Tight clothing and bending over after eating can have a similar compressive effect, particularly if you’re already prone to reflux.

Stress and Nervous System Sensitivity

Stress doesn’t directly increase stomach acid production in most people, but it amplifies how you perceive the symptoms. The gut and brain share an extensive nerve network, and when your nervous system is on high alert, signals from the stomach get turned up. People under chronic stress report more frequent and more severe heartburn and indigestion even when objective acid measurements haven’t changed. This is especially relevant in functional dyspepsia, where the stomach’s nerve sensitivity appears to be a core part of the problem rather than a side effect.

Smoking and Alcohol Together

Both tobacco and alcohol independently weaken the LES, increase stomach acidity, and slow digestion. Used together, their effects compound. Smoking also reduces saliva production, and saliva is mildly alkaline. Every time you swallow, saliva helps neutralize small amounts of acid that creep into the esophagus. With less saliva, those small exposures linger longer and do more damage to the esophageal lining over time.