A hiatal hernia is a condition in which the upper part of your stomach bulges through an opening in your diaphragm. Your diaphragm is the thin muscle that separates your chest from your abdomen. Your diaphragm helps keep acid from coming up into your esophagus. When you have a hiatal hernia, it's easier for the acid to come up. This leaking of acid from your stomach into your esophagus is called GERD (gastroesophageal reflux disease). GERD may cause symptoms such as
Heartburn
Problems swallowing
A dry cough
Bad breath
Nausea and/or vomiting
Breathing problems
The wearing away of your teeth
Often, the cause of a hiatal hernia is unknown. It may have to do with weakness in the surrounding muscles. Sometimes the cause is an injury or a birth defect. Your risk of getting a hiatal hernia goes up as you age; they are common in people over age 50. You are also at higher risk if you have obesity or smoke.
People usually find out that they have a hiatal hernia when they are getting tests for GERD, heartburn, chest pain, or abdominal pain. The tests may be a chest x-ray, an x-ray with a barium swallow, or an upper endoscopy.
You don't need treatment if your hiatal hernia does not cause any symptoms or problems. If you do have symptoms, some lifestyle changes may help. They include eating small meals, avoiding certain foods, not smoking or drinking alcohol, and losing weight. Your health care provider may recommend antacids or other medicines. If these don't help, you may need surgery.
NIH: National Institute of Diabetes and Digestive and Kidney Diseases