Heartburn occurs when stomach acid backs up into your esophagus. When you swallow food, it travels through a tube called the esophagus. The esophagus leads into the stomach through an opening in a sheet of muscle called the diaphragm. At the bottom of your esophagus, there is a muscular valve called the lower esophageal sphincter. The valve relaxes when you swallow, allowing food to pass into your stomach. The esophageal sphincter is designed to close tightly after you swallow so that nothing comes back into your esophagus. Your diaphragm also is meant to squeeze securely around the esophagus, closing off the opening to your stomach. This prevents the passage of food and acid from your stomach into your esophagus. If the lower esophageal sphincter relaxes abnormally or weakens, stomach acid may back up into your esophagus. This is called acid reflux. Frequent acid reflux can irritate and inflame the lining of your esophagus, causing heartburn. Frequent acid reflux is called gastroesophageal reflux disease, or GERD. When muscle tissue surrounding the esophageal sphincter weakens, it can cause the upper part of your stomach to bulge up through the diaphragm into your chest cavity. This is called hiatal hernia.

From Mayo Clinic to your inbox

Sign up for free and stay up to date on research advancements, health tips, current health topics, and expertise on managing health. Click here for an email preview.

We use the data you provide to deliver you the content you requested. To provide you with the most relevant and helpful information, we may combine your email and website data with other information we have about you. If you are a Mayo Clinic patient, we will only use your protected health information as outlined in our Notice of Privacy Practices. You may opt out of email communications at any time by clicking on the unsubscribe link in the email.

Oct. 12, 2023