Why Does Heartburn Hurt So Bad? The Science Behind It

Heartburn hurts as badly as it does because your esophagus is fundamentally unequipped to handle stomach acid. Your stomach has a thick, specialized lining designed to withstand a highly corrosive environment. Your esophagus does not. When acid escapes upward, it’s essentially a chemical burn happening inside your chest, activating the same pain receptors that fire when you touch something scalding hot.

Your Esophagus Has Almost No Defense Against Acid

The stomach is lined with a single layer of columnar cells that produce a protective mucus barrier. The esophagus, by contrast, is lined with flat, thin squamous cells, similar to the inside of your cheek. This tissue isn’t built to resist acid. It has no mucus shield. When stomach acid (which has a pH between 1.5 and 3.5) washes up past the valve at the top of your stomach, it contacts tissue that has essentially zero chemical protection.

To make things worse, stomach acid doesn’t travel alone. It carries pepsin, a digestive enzyme that breaks down proteins. Pepsin and acid together cause significantly more damage than acid by itself. Research has shown that when pepsin is active at a low pH, it can produce irreversible tissue damage within 15 minutes, while acid alone at the same exposure level causes damage the tissue can still repair. Pepsin breaks open the seals between esophageal cells, which then lets even more acid seep deeper into the tissue. This is the mechanism that can push mild irritation into full-blown inflammation and erosion.

Bile salts from the small intestine sometimes join the mix as well. When acidified bile contacts the esophageal lining, it triggers the release of inflammatory signals that attract immune cells to the area, compounding the irritation and swelling.

The Pain Receptors Involved Are Intense

Your esophagus is packed with sensory nerve endings that contain a receptor called TRPV1. This is the same receptor that makes chili peppers burn your mouth. TRPV1 is activated by heat, by capsaicin, and critically, by protons (the hydrogen ions that make acid acidic). When stomach acid hits the esophageal lining, it directly activates these receptors on vagal nerve endings. The signal travels up the vagus nerve to your brain, which interprets it as a deep, burning pain in the center of your chest.

Because TRPV1 responds to both heat and acid through the same channel, your brain processes the sensation similarly to a thermal burn. That’s why heartburn doesn’t feel like a stomachache or a cramp. It feels like something is on fire inside your chest.

Why Some People Feel It More Than Others

Not everyone with the same amount of acid reflux experiences the same level of pain. Some people develop what’s called visceral hypersensitivity, where the nerves in the esophagus become increasingly reactive over time. After repeated acid exposure, the nerve endings can become sensitized, meaning they fire more easily and send stronger pain signals in response to even small amounts of acid or normal pressure changes during swallowing.

Stress and anxiety amplify this effect. The brain’s pain-processing centers can become hypervigilant, turning up the volume on signals from the esophagus. This is one reason why some people experience severe heartburn even when tests show minimal acid reflux. Their tissue may look normal, but their nervous system is responding as if the threat is much larger. This condition, sometimes called functional heartburn, can be frustratingly resistant to standard acid-reducing medications precisely because the problem isn’t the amount of acid but how the nerves interpret it.

Why It Gets Worse at Night

If your worst heartburn hits when you lie down, there are several overlapping reasons. Gravity is the obvious one: when you’re upright, gravity helps keep stomach contents where they belong. Lying flat removes that advantage and repositions the gas bubble in your stomach away from the valve at the top, making it easier for liquid to escape upward.

But the deeper problem is what happens to your body’s cleanup system during sleep. Normally, when acid reaches your esophagus, you swallow saliva that neutralizes it, and the muscular contractions of swallowing push the acid back down. During sleep, you swallow far less frequently because saliva production drops and swallowing depends on brief arousals from sleep. Studies have confirmed that this reduced saliva transport leads to prolonged acid exposure in GERD patients, meaning the acid sits on the esophageal lining longer before being cleared.

Your stomach also works against you on timing. Gastric acid output increases significantly in the late evening hours, peaking before it drops off in the early morning. So you’re producing more acid at exactly the time your body is least equipped to deal with reflux.

Foods That Make It Worse

Certain foods trigger heartburn not just by being acidic themselves, but by weakening the valve (the lower esophageal sphincter) that’s supposed to keep stomach contents from rising. Fatty foods lower the pressure on this valve and slow stomach emptying, giving acid more time and opportunity to reflux. Coffee, alcohol, chocolate, and mint all relax this same valve. Spicy foods containing capsaicin can directly irritate the esophageal lining, activating those same TRPV1 receptors that acid triggers.

Some medications have the same valve-relaxing effect, including certain blood pressure medications, some pain relievers like aspirin, and iron supplements. If you’ve noticed heartburn getting worse after starting a new medication, this may be why.

How Fast Relief Can Work

Antacids (the chewable tablets or liquid forms) work by chemically neutralizing acid that’s already in your esophagus and stomach. In clinical trials, the median time to symptom relief with antacids was about 19 minutes. They’re fast but short-lived. Stronger acid-suppressing medications work differently: they reduce the amount of acid your stomach produces in the first place, but they take longer to kick in, typically reaching peak effect two to three hours after you take them. This is why they’re better as a daily preventive strategy than as a rescue for pain that’s already happening.

When Chronic Heartburn Changes the Tissue

Persistent acid exposure doesn’t just cause pain. Over time, it can physically remodel the esophageal lining. In a condition called Barrett’s esophagus, the thin, flat cells of the esophagus are gradually replaced by thicker, tougher cells that more closely resemble the stomach’s lining. This is the body’s attempt to protect itself from ongoing acid damage. The tissue becomes visibly different: thickened and red instead of smooth and pink.

Barrett’s esophagus can develop whether or not you feel symptoms. Some people with long-standing reflux actually notice their heartburn improving as the tissue changes, which can create a false sense that the problem has resolved. Barrett’s is associated with an increased risk of esophageal cancer, which is why persistent reflux that lasts weeks or months warrants investigation even if the pain seems manageable.

Heartburn Pain vs. Heart Attack Pain

The location of heartburn, right behind the breastbone, overlaps with where heart attack symptoms occur. The two feel different in important ways. Heartburn is typically a burning sensation that may travel upward toward the throat. A heart attack is more commonly described as pressure, tightness, or squeezing, like someone sitting on your chest. Heart attack discomfort often radiates to the left shoulder, arm, or neck.

A few practical distinctions: if the pain improves quickly with antacids, heartburn is the more likely cause. If the discomfort covers a broad area (roughly the size of a closed fist) and doesn’t respond to antacids, that’s more concerning for a cardiac event. Pain that lasts more than 15 minutes and isn’t relieved by rest, or an escalating pattern of chest discomfort with less and less physical exertion over recent weeks, both warrant a call to emergency services. Sharp, pinpoint pain you can locate with one finger is typically not a heart attack, though it could signal something else that needs attention.