The Best and Worst Foods to Eat if You Have a Hernia

Hernia got you down? While your diet can’t cure it, knowing which foods to eat and which foods to avoid if you have a hernia may help keep symptoms at bay.
A hernia forms when there is a weakness or hole in a portion of muscle tissue near an organ, and part of that organ bulges or pushes through the hole, according to MedlinePlus. Hernias do not usually get better on their own, which is why most people need surgery to repair them, according to the American Academy of Family Physicians (AAFP).
But experts say tailoring your diet can, in some cases, prevent a hernia from getting bigger and more painful. Here are the best foods to eat or avoid with different types of hernias.
Inguinal and Umbilical Hernias
Most hernias happen in the lower or upper abdominal area and cause a lump under the skin, according to the AAFP. Inguinal hernias develop in the lower abdominal wall around the groin area. Umbilical hernias form around the belly button and are particularly common in infants (though adults can develop them, too).
Umbilical hernias, in particular, can cause a bulge near the navel or a ruptured-looking belly button, especially in babies. And any abdominal hernia can mimic digestive problems like belly pain, vomiting, or constipation, given their location.
Digestive issues like bloating and constipation can aggravate abdominal hernias by putting extra strain on the area, says Mary Ann Hopkins, MD, a general surgeon at NYU Langone Health and an associate professor of surgery at NYU’s Grossman School of Medicine in New York City.
Accordingly, Dr. Hopkins says to avoid foods that trigger these symptoms to avoid potentially pushing the intestinal tissue further into the abdominal wall and causing more discomfort. Although there are no foods that can cure a hernia, here are some tips to optimize your inguinal or umbilical hernia diet plan.
Foods to Eat
Fibrous foods are your best bet to help stave off constipation (and the hernia pain that can come with it), according to the National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Avoiding constipation is also preventive, as chronic constipation can increase the risk of developing a hernia in the first place, MedlinePlus reports.
To fight constipation, the NIDDK recommends eating more high-fiber foods like:
- Fruits
- Vegetables
- Whole grains like spelt and buckwheat
- Legumes like lentils, peas, and beans
However, eating too many high-fiber foods too fast may lead to excess bloating, which can aggravate hernia symptoms in the first place, according to the Mayo Clinic. That’s why it’s important to gradually introduce them into your diet to allow your body time to adjust, as suggested by the International Foundation for Gastrointestinal Disorders.
Foods to Limit or Avoid
While eating plenty of fiber can help you avoid constipation, certain fibrous foods may cause more gas and bloating than others, including:
- Cruciferous vegetables like cabbage and broccoli
- Mushrooms
- Onions and garlic
- Certain fruits, including apples, pears, cherries, and dried fruit
The Mayo Clinic also says that other potentially gas-inducing foods to limit or avoid include:
- Dairy products like milk and cheese
- Beer and other carbonated drinks
- Chewing gum
- Hard candy
It’s equally important to eat and drink non-gassy foods slowly and thoroughly to avoid swallowing a lot of air — a common consequence of gulping down your meals that can add to bloat, according to the Mayo Clinic.
Hiatal Hernias
With a hiatal hernia, the upper part of the stomach protrudes through the diaphragm (the muscle that separates the abdomen from the chest), allowing stomach acid to easily enter the esophagus, according to the Cleveland Clinic. As a result, these hernias are often accompanied by digestive tract issues that resemble chronic acid reflux, including:
- Heartburn
- Regurgitation
- Difficulty swallowing
Here are some foods to eat or avoid with a hiatal hernia to prevent these issues.
Foods to Eat
The Cleveland Clinic says that you may be able to control the pain and discomfort of a hiatal hernia with your diet in the same way you would tame acid reflux. Try snacking on fibrous, low-acidic foods like:
- Bananas
- Melons
- Green vegetables like spinach and kale
- Oatmeal
- Yogurt
Foods to Limit or Avoid
On the flip side, the Cleveland Clinic also recommends limiting or avoiding foods that contribute to acid reflux symptoms. Here are the acid-inducing foods to steer clear of:
- Acidic foods like tomato sauce and citrus fruits and juices
- Fried and fatty foods
- Peppermint
- Carbonated beverages
- Alcoholic beverages
- Coffee and other sources of caffeine, like certain teas or energy drinks
- Ketchup and mustard
- Vinegar
- Spicy foods
Other Ways to Manage Hernias
Your diet isn’t the only tool to help ease or prevent hernia discomfort. Here are tips from Johns Hopkins Medicine and the Cleveland Clinic that may also help keep symptoms at bay:
- Drink plenty of water
- Exercise regularly
- Go to the bathroom when you feel the urge
- Quit smoking
- Limit wearing tight clothing around your abdomen
- Avoid lying down soon after eating
- MedlinePlus: Hernia
- American Academy of Family Physicians: Hernia
- National Institute of Diabetes and Digestive and Kidney Diseases: Eating, Diet, & Nutrition for Constipation
- Mayo Clinic: Belching, Gas and Bloating: Tips for Reducing Them
- International Foundation for Gastrointestinal Disorders: Dietary Fiber — Is It Good for IBS?
- Cleveland Clinic: Hiatal Hernia
- Johns Hopkins Medicine: Inguinal Hernia

Waseem Ahmed, MD
Medical Reviewer
Waseem Ahmed, MD, is an assistant professor of medicine in the Karsh Division of Gastroenterology and Hepatology at Cedars-Sinai Medical Center in Los Angeles and serves as Director, Advanced Inflammatory Bowel Disease Fellowship and Education within the F. Widjaja Inflammatory Bowel Disease Institute.
He received his undergraduate degree from the University of Michigan and attended medical school at Indiana University. He then completed an internal medicine residency at New York University, followed by a fellowship in gastroenterology and hepatology at Indiana University, and an advanced fellowship in inflammatory bowel disease at the Jill Roberts Center for Inflammatory Bowel Disease at New York-Presbyterian Hospital/Weill Cornell Medicine. Prior to his current role, Dr. Ahmed served as an assistant professor of medicine within the Crohn’s and Colitis Center at the University of Colorado from 2021-2024.
Dr. Ahmed is passionate about providing innovative, comprehensive, and compassionate care for all patients with inflammatory bowel disease (IBD). His research interests include IBD medical education for patients, providers, and trainees; clinical trials; acute severe ulcerative colitis; and the use of combined advanced targeted therapy in high-risk IBD.
He enjoys spending time with his wife and dog, is an avid follower of professional tennis, and enjoys fine dining.