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.
Video: Heartburn and hiatal hernia
Last Updated: 11-02-2018
© 1998-2020 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. A single copy of these materials may be reprinted for noncommercial personal use only. "Mayo," "Mayo Clinic," "MayoClinic.com," "Mayo Clinic Health Information," "Reliable information for a healthier life" and the triple-shield Mayo logo are trademarks of Mayo Foundation for Medical Education and Research.