That burning feeling in your chest is almost always caused by stomach acid washing up into your esophagus, a tube that wasn’t built to handle it. Your stomach has a thick protective lining that keeps acid from doing damage, but your esophagus does not. When acid escapes upward, it irritates the delicate tissue and activates pain-sensing nerve endings, producing the sensation most people call heartburn. It has nothing to do with your heart, though the two can feel alarmingly similar.
What Happens Inside Your Chest
At the bottom of your esophagus sits a ring of muscle called the lower esophageal sphincter (LES). It opens to let food into your stomach, then closes to keep acid where it belongs. When that muscle relaxes at the wrong time or doesn’t close tightly enough, acidic stomach contents flow backward into the esophagus.
Once acid reaches the esophageal lining, it can widen the tiny gaps between cells, exposing nerve endings that sit just beneath the surface. Those nerve endings have receptors that respond to acid the same way they respond to the heat in chili peppers. When activated, they fire pain signals to the brain, and you feel a burn that can radiate from your upper stomach to your throat. Some people also notice a sour taste in the mouth or a small amount of liquid rising into the back of the throat.
Common Triggers
Certain foods cause the LES to relax more than it should and slow digestion, keeping food in the stomach longer and giving acid more opportunity to escape. The biggest offenders are foods high in fat, salt, or spice: fried food, fast food, pizza, bacon, sausage, cheese, and processed snacks like potato chips. Large meals are worse than small ones because they stretch the stomach and put more pressure on that valve.
Timing matters too. Eating within two or three hours of lying down is one of the most reliable ways to trigger heartburn, because gravity is no longer helping keep acid in your stomach. Bending over after a meal has the same effect. Alcohol, coffee, chocolate, citrus, and tomato-based foods are also common personal triggers, though sensitivity varies from person to person.
Why Some People Get It More Than Others
A hiatal hernia is one of the most common structural reasons for chronic heartburn. Normally, the LES sits right where the esophagus passes through the diaphragm, and the pressure from your abdominal muscles helps keep it shut. With a hiatal hernia, part of the stomach pushes up through the diaphragm into the chest cavity. This moves the LES into a low-pressure zone where it can’t function as effectively, and it changes the angle between the stomach and esophagus in a way that makes reflux more likely.
Pregnancy is another well-known cause. Rising progesterone levels relax the LES throughout pregnancy, reducing its resting pressure and allowing acid to escape more easily. Interestingly, research published in the American Journal of Obstetrics & Gynecology found that it’s the hormonal change, not the physical pressure of a growing uterus, that’s primarily responsible for pregnancy heartburn.
Excess body weight, smoking, and certain medications (particularly anti-inflammatory painkillers, some blood pressure drugs, and sedatives) can also weaken the LES or increase acid production.
Heartburn vs. Heart Attack
The burning from acid reflux and the pain of a heart attack can feel similar enough to fool even experienced doctors. Heartburn typically produces a burning sensation in the chest that shows up after eating, gets worse when lying down, and improves with antacids. It may come with a sour taste or regurgitation but generally doesn’t cause shortness of breath, dizziness, or cold sweats.
A heart attack more often feels like pressure, tightness, or squeezing in the chest or arms, and that sensation can spread to the neck, jaw, or back. It’s frequently accompanied by shortness of breath, lightheadedness, cold sweat, or sudden fatigue. Women are more likely than men to experience the less obvious symptoms like jaw pain, back pain, or nausea without the classic crushing chest pain. If you’re unsure which you’re dealing with, especially if the sensation is new, intense, or accompanied by any of those additional symptoms, treat it as a heart attack until proven otherwise.
Lifestyle Changes That Help
Simple adjustments can make a noticeable difference. Eating smaller meals, finishing dinner at least three hours before bed, and avoiding your personal trigger foods are the foundation. If you carry extra weight, even modest weight loss reduces pressure on the LES.
Sleep position is surprisingly important. Elevating the head of your bed by six to twelve inches, typically with a wedge pillow angled at 30 to 45 degrees, uses gravity to keep acid in the stomach overnight. Stacking regular pillows doesn’t work as well because it bends you at the waist rather than elevating your entire upper body. Sleeping on your left side also helps, because it positions the stomach below the esophagus and keeps the LES above the level of stomach acid.
Loose-fitting clothing around the waist, quitting smoking, and not lying down or bending over right after eating are small changes that reduce reflux episodes over time.
Over-the-Counter Relief Options
Three main classes of medication target heartburn, and they work on different timelines. Antacids (the chewable tablets like calcium carbonate) neutralize acid that’s already in your stomach and provide relief within minutes, but the effect wears off in an hour or two. They’re best for occasional, mild episodes.
H2 blockers reduce the amount of acid your stomach produces. They take a bit longer to kick in but provide relief for roughly eight hours, making them useful when you anticipate heartburn, like before a large meal. Proton pump inhibitors (PPIs) are the strongest option and suppress acid production for 15 to 21 hours a day, but they can take up to four days to reach full effectiveness. For best results, PPIs should be taken 30 to 60 minutes before a meal rather than after symptoms start.
When Heartburn Becomes a Bigger Problem
Occasional heartburn is incredibly common and rarely signals anything serious. But when it happens twice a week or more, persists for weeks, or doesn’t respond to over-the-counter treatments, it may have crossed into gastroesophageal reflux disease (GERD), which can damage the esophageal lining over time.
Chronic acid exposure can eventually cause the cells lining the lower esophagus to change into a different type of tissue, a condition called Barrett’s esophagus. Barrett’s slightly increases the risk of esophageal cancer, though the absolute risk remains low. A large population-based study published in the Journal of the National Cancer Institute found that the annual risk of cancer progression in Barrett’s patients was about 0.12% to 0.38% per year depending on what the biopsy shows, with higher risk in men and in people over 60.
Certain warning signs suggest you should get evaluated promptly rather than continuing to self-treat: difficulty swallowing or pain when swallowing, unexplained weight loss, vomiting blood or material that looks like coffee grounds, black or bloody stools, signs of anemia, or new onset of reflux symptoms after age 50. These may prompt your doctor to recommend an endoscopy to look directly at the esophageal lining.
Long-term Use of Acid-Suppressing Medications
PPIs are safe and effective for most people in the short term, but using them for months or years has raised questions. Because they reduce stomach acid so effectively, they can interfere with the absorption of certain nutrients. Vitamin B12, calcium, and magnesium all depend partly on stomach acid for proper absorption, and long-term deficiencies in these nutrients have been linked to issues like bone fractures and low magnesium levels.
There’s also been concern about kidney health. Current evidence suggests that acute kidney inflammation from PPIs is an unpredictable, individual reaction rather than a dose-dependent problem. For people without pre-existing kidney disease, routine kidney monitoring isn’t necessary. Similarly, people without existing risk factors for bone disease or B12 deficiency don’t need extra supplements or screening just because they take a PPI. The key is using the lowest effective dose for the shortest time that controls your symptoms, and revisiting the need for the medication periodically with your doctor.