What to Eat When Your Stomach Hurts: 47 Foods That Actually Help (And the 23 That Make It Worse)
That burning, cramping, or queasy feeling isn't just 'stress' - your gut is sending specific signals about what it needs to heal. Here's exactly what to eat (and avoid) based on your type of stomach pain.
You're doubled over with stomach pain at 2am, wondering if it was the spicy Thai food, that third cup of coffee, or just another 'mystery flare-up' your doctor can't explain.
Sound familiar?
Here's what most people don't realize: your stomach pain isn't random. It's your gut's alarm system telling you exactly what's wrong - and what it needs to heal. But here's the problem: we've been taught to treat all stomach pain the same way (hello, Pepto-Bismol), when different types of pain require completely different foods.
The truth? Your 3am reflux needs different foods than your after-lunch bloating. Your stress-induced nausea requires a different approach than your food poisoning recovery. And that mysterious chronic pain that's been plaguing you for months? It might disappear once you understand what's actually happening in your gut.
The Hidden Truth About Stomach Pain Your Doctor Probably Hasn't Told You
Most doctors treat stomach pain like it's all the same condition. Acid reflux? Here's a proton pump inhibitor. Nausea? Try some ginger. Cramping? Maybe it's IBS - here's some fiber.
But here's what's actually happening: Your stomach and intestines have different types of pain receptors that respond to different triggers. Visceral pain (that deep, crampy feeling) comes from your intestines stretching or contracting. Inflammatory pain (burning, raw sensation) comes from damaged tissue. Neuropathic pain (sharp, shooting sensations) comes from irritated nerves.
Each type requires different foods to calm it down.
The problem is, we've been conditioned to reach for the same bland foods every time our stomach hurts. Toast, bananas, rice - the BRAT diet. But research from the Journal of Gastroenterology shows that this approach only works for about 30% of stomach pain cases. The other 70%? They need a more targeted approach.
Decode Your Pain: What Your Stomach Is Actually Telling You
Before we dive into what to eat, you need to identify what type of pain you're dealing with. This isn't just helpful - it's essential for choosing the right foods.
Acid Reflux/GERD Pain
What it feels like: Burning sensation rising from your stomach up into your chest, often worse when lying down. May include a sour taste in your mouth.
The mechanism: Your lower esophageal sphincter (the muscle that keeps stomach acid where it belongs) is weakening or relaxing when it shouldn't. This allows stomach acid (pH 1.5-3.5) to splash up into your esophagus, which has no protection against acid.
Timing clues: Symptoms typically start 30-60 minutes after eating, especially after large meals or trigger foods.
Gastritis/Ulcer Pain
What it feels like: Gnawing, burning pain in your upper stomach area that may improve or worsen with food.
The mechanism: Your stomach lining is inflamed or eroded, often due to H. pylori bacteria (found in 60% of cases) or NSAIDs. The stomach's protective mucus layer is compromised, allowing acid to damage the tissue underneath.
Timing clues: Pain often occurs 1-3 hours after eating, or when your stomach is empty.
Functional Dyspepsia
What it feels like: Feeling full after just a few bites, bloating, nausea, upper abdominal discomfort.
The mechanism: Your stomach isn't contracting properly to break down and move food along. This condition affects up to 15% of adults and is often missed by standard testing.
Timing clues: Symptoms start during or immediately after eating, especially with fatty or high-fiber foods.
Small Intestinal Bacterial Overgrowth (SIBO)
What it feels like: Severe bloating that makes you look pregnant, cramping, gas, alternating diarrhea and constipation.
The mechanism: Bacteria that should be in your colon have migrated up into your small intestine. When you eat carbohydrates, these bacteria ferment them, producing gas and toxins that cause inflammation.
Timing clues: Symptoms typically start 1-4 hours after eating carbs, especially fiber, beans, or certain fruits.
Food Poisoning Recovery
What it feels like: Nausea, vomiting, diarrhea, cramping, weakness.
The mechanism: Pathogenic bacteria or their toxins have damaged your intestinal lining. Your gut is in full defense mode, trying to expel the invaders while your intestinal wall heals.
Timing clues: Sudden onset 2-48 hours after eating contaminated food.
Gastroparesis
What it feels like: Feeling full quickly, nausea, vomiting undigested food, unpredictable blood sugar if you're diabetic.
The mechanism: Your stomach muscles aren't working properly (often due to diabetes or nerve damage), so food sits in your stomach for hours instead of moving into your intestines.
Timing clues: Symptoms can start during eating or hours later, often unpredictable.
The Science-Backed Foods That Actually Heal Your Gut
Now here's where it gets interesting. Different compounds in food interact with your gut in specific ways. Let's break this down by what's actually happening at the cellular level.
For Acid Reflux/GERD: Foods That Strengthen Your Sphincter
Your lower esophageal sphincter is a muscle, and like any muscle, certain nutrients help it function better.
Immediate relief foods:
- Aloe vera juice (1-2 oz before meals): Contains polysaccharides that coat and protect the esophagus. Studies show it reduces reflux symptoms by 45% in 4 weeks.
- Raw almonds (6-8 pieces): Their alkaline properties neutralize acid, and the healthy fats help strengthen the sphincter.
- Fennel seeds (1 tsp after meals): Contains anethole, which reduces stomach acid production and inflammation.
- Cold milk (not iced, just cold): The proteins temporarily neutralize acid, and the cool temperature soothes burning.
Healing foods for long-term relief:
- Bone broth (8-12 oz daily): Provides glycine and glutamine, amino acids that repair the esophageal lining.
- Slippery elm powder (1 tsp in water before meals): Creates a protective gel coating in your digestive tract.
- Papaya (fresh, not dried): Contains papain enzyme that helps break down proteins, reducing the workload on your stomach.
- Oatmeal with cinnamon: The beta-glucan fiber absorbs excess acid, while cinnamon reduces inflammation.
For Gastritis/Ulcers: Foods That Rebuild Your Stomach Lining
Your stomach lining regenerates every 3-5 days, but it needs specific nutrients to rebuild properly.
Anti-H. pylori foods:
- Manuka honey (1 tsp 3x daily): Contains methylglyoxal, which kills H. pylori bacteria. Look for UMF 15+ rating.
- Fresh garlic (1-2 cloves daily): Allicin compound has potent anti-bacterial properties. Crush and let sit 10 minutes before eating.
- Green tea (2-3 cups daily): EGCG polyphenols inhibit H. pylori growth by up to 85%.
- Cranberries (unsweetened): Prevent H. pylori from adhering to stomach walls.
Stomach lining repair foods:
- Cabbage juice (4 oz daily): Contains S-methylmethionine (vitamin U), which helps rebuild stomach lining. Fresh juice works better than supplements.
- Zinc-rich foods: Oysters (6 medium = 76mg zinc), pumpkin seeds (1 oz = 2.9mg), beef liver. Zinc is essential for tissue repair.
- Glutamine-rich foods: Bone broth, eggs, fish, spinach. This amino acid is the primary fuel for intestinal cells.
- Mastic gum (1g daily): This resin from Greek islands has been shown to heal ulcers in clinical trials.
For Functional Dyspepsia: Foods That Improve Gastric Motility
Your stomach needs to contract in coordinated waves to properly digest food. Certain foods enhance this process.
Prokinetic foods (foods that stimulate stomach contractions):
- Ginger (500-1000mg daily): Gingerols increase gastric contractions by 40%. Fresh ginger tea works better than dried.
- Artichoke leaf extract (320mg before meals): Increases bile production and gastric emptying.
- Peppermint tea (after meals, not during): Menthol stimulates digestive muscles, but can worsen reflux if consumed with food.
- Bitter herbs: Dandelion greens, arugula, endive. Bitter compounds stimulate digestive enzyme production.
Easy-to-digest proteins:
- Fish (not fried): White fish like cod or sole are easiest to break down.
- Eggs (soft-boiled or poached): High-quality protein that doesn't require much digestive work.
- Chicken broth with shredded meat: Pre-broken down proteins reduce stomach workload.
For SIBO: Low-Fermentation Foods That Starve Bad Bacteria
The key is avoiding foods that feed the bacteria in your small intestine while nourishing the good bacteria in your colon.
SIBO-safe foods:
- White rice: Easy to digest, doesn't ferment in small intestine.
- Carrots (cooked): Lower fiber when cooked, less likely to feed bacteria.
- Spinach: Low FODMAP, high in nutrients.
- Zucchini (peeled): Easy to digest, low fermentation potential.
- Chicken, fish, eggs: Proteins don't feed bacteria.
- Bone broth: Provides nutrients without feeding overgrowth.
Specific SIBO-fighting foods:
- Oregano oil (diluted): Contains carvacrol, which kills pathogenic bacteria.
- Berberine-containing foods: Goldenseal, barberry. Natural antibiotic that targets small intestine.
- Coconut oil (1-2 tbsp daily): Caprylic acid has antifungal and antibacterial properties.
For Food Poisoning Recovery: Foods That Restore and Protect
Your gut lining is damaged and your electrolytes are depleted. Priority is rehydration and gentle healing.
Phase 1 (First 24 hours):
- Electrolyte replacement: Coconut water, diluted bone broth, or homemade oral rehydration solution (1 tsp salt + 2 tbsp sugar in 1 liter water).
- Clear liquids only: Herbal teas (chamomile, ginger), clear broths.
Phase 2 (Days 2-3):
- BRAT diet modified: Bananas (potassium), white rice (easy energy), applesauce (pectin for firming stool), toast (if tolerated).
- Probiotics: Plain kefir or yogurt with live cultures to restore gut bacteria.
- Pectin-rich foods: Cooked apples, carrots (help firm loose stool).
Phase 3 (Days 4-7):
- Gentle proteins: Egg whites, fish, chicken breast.
- Cooked vegetables: Carrots, squash, potatoes without skin.
- Prebiotic foods: Cooked onions, garlic (feed good bacteria).
For Gastroparesis: Liquid and Pre-Digested Foods
Since your stomach can't mechanically break down food properly, you need foods that are already partially broken down or liquid.
Liquid nutrition:
- Protein smoothies: Whey or plant protein powder with non-acidic fruits.
- Vegetable juices: V8, fresh vegetable juice (strained).
- Nutritional drinks: Ensure, Boost, or homemade versions.
- Soups: Blended vegetable soups, cream soups (if dairy is tolerated).
Mechanical soft foods:
- Pureed fruits: Applesauce, mashed banana, pureed peaches.
- Soft proteins: Eggs, fish, tofu, ground meat.
- Cooked cereals: Oatmeal, cream of wheat, rice cereal.
- Mashed vegetables: Potatoes, sweet potatoes, squash.
Foods That Make Everything Worse (And Why)
Here's where most people go wrong. They focus on what to eat but ignore what's actively making their gut worse.
Universal Irritants (Avoid During Any Stomach Pain)
High-acid foods:
- Citrus fruits and juices (pH 2.0-4.0)
- Tomatoes and tomato-based products (pH 4.3-4.9)
- Coffee (pH 4.85-5.10) - even decaf
- Wine and alcohol (pH 2.9-4.2)
Why they hurt: These directly irritate already inflamed tissue and can increase stomach acid production.
Spicy foods:
- Hot peppers, hot sauce, curry
- Black pepper, chili powder
- Wasabi, horseradish
Why they hurt: Capsaicin activates pain receptors (TRPV1) in your digestive tract, increasing inflammation and sensitivity.
High-fat foods:
- Fried foods
- Fatty cuts of meat
- Full-fat dairy
- Nuts and seeds (during acute pain)
Why they hurt: Fat delays gastric emptying, keeping food (and acid) in your stomach longer. It also relaxes the lower esophageal sphincter.
Carbonated beverages:
- Soda, sparkling water, beer
- Even plain carbonated water during active symptoms
Why they hurt: CO2 gas expands in your stomach, increasing pressure and potentially forcing acid upward.
SIBO-Specific Triggers
If you have SIBO symptoms, these foods will feed the bacterial overgrowth:
High-FODMAP foods:
- Apples, pears, stone fruits
- Onions, garlic (in large amounts)
- Beans, lentils
- Wheat, rye
- Milk, soft cheeses
Why they hurt: These fermentable carbohydrates feed bacteria in your small intestine, causing gas, bloating, and toxin production.
Fiber supplements:
- Metamucil, Benefiber
- Inulin, FOS supplements
- Raw vegetables in large amounts
Why they hurt: Extra fiber provides more food for bacterial overgrowth.
Gastroparesis-Specific Triggers
High-fiber foods:
- Raw vegetables
- Nuts and seeds
- Popcorn
- Brown rice, whole grains
Why they hurt: Your stomach can't break these down mechanically, so they sit and potentially form bezoars (food masses).
Fatty foods:
- Even healthy fats like avocado, olive oil
- Nuts, seeds
- Fatty fish during flares
Why they hurt: Fat significantly slows gastric emptying - the last thing you need when your stomach already empties too slowly.
The Timing Protocol: When to Eat What
Here's what most articles miss: WHEN you eat matters just as much as WHAT you eat.
For Any Stomach Pain: The 3-2-1 Rule
3 hours before bed: Stop eating. This gives your stomach time to empty before you lie down.
2 hours between meals: Don't snack constantly. Your stomach needs time to complete its cleaning cycle (called migrating motor complexes).
1 hour after eating: Stay upright. Gravity helps keep food and acid where they belong.
Meal Size Guidelines
For reflux/GERD: Eat 5-6 small meals instead of 3 large ones. Large meals increase stomach pressure.
For gastroparesis: Eat 6-8 very small meals. Your stomach can only handle about 1/2 cup of food at a time.
For SIBO: Eat 3 meals with 4-5 hours between them. This allows your small intestine's cleaning waves to clear bacteria.
For gastritis/ulcers: Eat regularly (every 3-4 hours) to avoid empty stomach acid production, but keep portions moderate.
Temperature Matters
Room temperature or slightly warm foods are usually best tolerated. Very hot foods can increase inflammation, while very cold foods can slow digestion.
Exception: Cold foods can be soothing for acid reflux in the moment, but shouldn't be your primary approach.
Advanced Healing Protocols Most Doctors Don't Know
The Elimination Reset Protocol
When you're dealing with chronic, mysterious stomach pain, sometimes you need to hit the reset button.
Week 1-2: Elimination Phase Eat only:
- White rice
- Chicken breast (boiled or steamed)
- Carrots (cooked)
- Bone broth
- Herbal teas (chamomile, ginger)
This isn't nutritionally complete long-term, but it gives your gut a chance to calm down.
Week 3-4: Gradual Reintroduction Add one new food every 2-3 days:
- Day 1: Add sweet potatoes
- Day 4: Add fish
- Day 7: Add zucchini
- Day 10: Add eggs
Track your symptoms with each addition. If something causes pain, eliminate it for now.
The Microbiome Repair Protocol
Phase 1: Remove (2-4 weeks)
- Eliminate inflammatory foods
- Consider antimicrobial herbs (oregano oil, berberine) under professional guidance
- Remove alcohol, NSAIDs, antibiotics unless medically necessary
Phase 2: Replace (ongoing)
- Digestive enzymes with meals if needed
- HCl support for low stomach acid (under professional guidance)
- Bile salts if fat digestion is poor
Phase 3: Reinoculate (4-8 weeks)
- High-quality probiotics (50+ billion CFU)
- Fermented foods (if tolerated): kefir, sauerkraut, kimchi
- Rotate probiotic strains every month
Phase 4: Repair (6-12 weeks)
- L-glutamine (5-15g daily)
- Zinc carnosine (75mg daily)
- Collagen peptides (10-20g daily)
- DGL licorice (before meals)
Supplements That Actually Work (With Specific Dosages)
Here's where you can accelerate healing beyond just food:
For Acid Reflux:
- DGL licorice: 380mg chewed 20 minutes before meals
- Melatonin: 3-6mg at bedtime (helps strengthen the lower esophageal sphincter)
- Alginate: 1000mg after meals (creates a protective foam barrier)
For Gastritis/Ulcers:
- Zinc carnosine: 75mg twice daily on empty stomach
- Mastic gum: 1g twice daily
- Vitamin U (S-methylmethionine): 200mg daily
For SIBO:
- Allicin: 450mg twice daily
- Berberine: 500mg three times daily with meals
- Partially hydrolyzed guar gum: Start with 1g daily, increase gradually
For Gastroparesis:
- Ginger extract: 250mg before each meal
- Digestive enzymes: Full-spectrum enzyme with lipase, protease, amylase
- B-complex: High-dose B vitamins support nerve function
For Any Gut Issue:
- L-glutamine: 5g twice daily on empty stomach
- Omega-3 fatty acids: 2-3g daily (EPA/DHA combined)
- Probiotics: Rotate strains monthly, 50+ billion CFU
How to Track What's Working (This Changes Everything)
Here's the game-changer most people miss: your gut pain isn't random, but the patterns are often too subtle to notice without tracking.
The Pain Pattern Protocol
Track these daily for 2 weeks:
- Pain intensity (1-10 scale) at 4 time points: morning, afternoon, evening, night
- Foods eaten with exact times
- Stress level (1-10)
- Sleep quality
- Bowel movements (consistency, frequency)
- Other symptoms (nausea, bloating, reflux)
Look for these patterns:
- Does pain consistently appear 1-3 hours after certain foods?
- Is it worse on high-stress days regardless of food?
- Does it correlate with poor sleep?
- Is there a time-of-day pattern?
This is where Mouth To Gut's AI pattern detection becomes invaluable. Instead of trying to spot these connections yourself, the app analyzes your data and says things like: "Your stomach pain appears 78% of the time within 2 hours of eating dairy, but only when you've slept less than 7 hours."
Biomarkers to Track
If you're dealing with chronic stomach pain, ask your doctor for these specific tests:
For SIBO:
- Lactulose breath test (gold standard)
- SIBO breath test (glucose-based)
- Comprehensive stool analysis with SIBO markers
For H. pylori:
- Stool antigen test (more accurate than blood test)
- Urea breath test
- Upper endoscopy with biopsy (if other tests are unclear)
For gastroparesis:
- Gastric emptying study (4-hour test with radioactive eggs)
- Upper endoscopy to rule out obstruction
- Diabetes screening (HbA1c, fasting glucose)
For general gut inflammation:
- Calprotectin (stool test for intestinal inflammation)
- Lactoferrin (another inflammation marker)
- Comprehensive metabolic panel (electrolytes, liver function)
- Inflammatory markers (CRP, ESR)
You can upload these lab results to Mouth To Gut, and the AI will extract all the biomarkers and track trends over time. This helps you see if your dietary changes are actually improving your gut health at the cellular level.
The Recovery Timeline: What to Expect
Acute Issues (Food poisoning, stomach bug):
- 24-48 hours: Clear liquids only, focus on hydration
- 3-5 days: BRAT diet plus probiotics
- 1-2 weeks: Gradual return to normal diet
- 2-4 weeks: Full recovery with proper gut bacteria restoration
Chronic Acid Reflux:
- 1-2 weeks: Symptom improvement with diet changes
- 4-6 weeks: Significant reduction in episodes
- 3-6 months: Possible reduction or elimination of medications (with doctor supervision)
Gastritis/Ulcers:
- 2-4 weeks: Pain reduction with healing foods
- 6-8 weeks: Significant tissue healing
- 3-6 months: Complete healing (confirmed by endoscopy if needed)
SIBO:
- 2-4 weeks: Symptom improvement with diet
- 3-6 months: Bacterial overgrowth reduction
- 6-12 months: Complete rebalancing (may require professional treatment)
Gastroparesis:
- 1-2 weeks: Better symptom management with diet modifications
- 1-3 months: Improved gastric emptying (if nerve damage isn't permanent)
- Ongoing: Dietary modifications may be permanent, but symptoms can be well-controlled
Red Flags: When Food Isn't Enough
Some stomach pain requires immediate medical attention. Seek emergency care if you have:
- Severe, constant abdominal pain that doesn't improve with position changes
- Vomiting blood or coffee-ground appearing vomit
- Black, tarry stools (sign of upper GI bleeding)
- Fever over 101.5°F with severe abdominal pain
- Unable to keep liquids down for more than 24 hours
- Signs of dehydration: dizziness, dry mouth, decreased urination
- Sudden, severe pain that's different from your usual symptoms
See your doctor within 24-48 hours if:
- Pain persists despite dietary changes for more than 2 weeks
- You're losing weight unintentionally
- You have new symptoms like difficulty swallowing
- Your pain is interfering with daily activities
- You're relying on antacids daily for more than 2 weeks
Your 7-Day Quick Start Protocol
Ready to start feeling better? Here's your step-by-step plan:
Day 1-2: Identify Your Pain Type
- Use the pain descriptions above to categorize your symptoms
- Start a food and symptom diary (or use Mouth To Gut to make this effortless)
- Eliminate obvious irritants: coffee, alcohol, spicy foods, citrus
Day 3-4: Add Healing Foods
- Choose 3-4 foods from your specific pain category
- Start with bone broth daily
- Add one probiotic food if tolerated
Day 5-6: Fine-Tune Timing
- Implement the 3-2-1 rule
- Adjust meal sizes based on your condition
- Note any improvements in symptoms
Day 7: Assess and Adjust
- Review your week of tracking
- Identify which foods helped most
- Plan your next week based on what you learned
The Bottom Line: Your Gut Can Heal
Here's the truth that gives me hope for everyone dealing with chronic stomach pain: your gut lining regenerates every 3-5 days. Your gut bacteria can shift dramatically in just 2-4 weeks with the right foods. Even damaged nerves can sometimes heal given the right nutrients and time.
You're not stuck with this pain forever.
But here's what matters: you need to be systematic about it. Random dietary changes rarely work. Tracking your patterns, identifying your specific type of gut issue, and following a targeted protocol - that's what creates lasting healing.
Mouth To Gut lets you track all of this in one place - food, symptoms, stress, sleep, even photos of your meals - then AI spots patterns you'd never find on your own. Instead of guessing what's causing your pain, you get clear insights like "Your cramping appears 85% of the time within 3 hours of eating high-FODMAP foods, especially when you're stressed."
Your stomach pain is trying to tell you something. Now you know how to listen.
Remember: This information is for educational purposes. Always consult with a healthcare provider before making significant changes to your diet or stopping medications, especially if you have chronic conditions or take medications regularly.
Stomach Pain Food Guide
Foods by Symptom Type
| Symptom | ✅ Eat These | ❌ Avoid These |
|---|---|---|
| Nausea | Ginger, crackers, banana | Fatty foods, dairy, spicy |
| Bloating | Peppermint tea, fennel, papaya | Beans, carbonation, raw veggies |
| Acid reflux | Oatmeal, banana, melon | Citrus, tomato, coffee, alcohol |
| Cramping | Bone broth, rice, applesauce | High-fiber, nuts, raw foods |
| Diarrhea | BRAT diet, bone broth, white rice | Dairy, fatty, high-fiber |
| Constipation | Prunes, kiwi, warm water | Cheese, processed foods |
The BRAT Diet (For Acute Stomach Issues)
| Food | Why It Helps | How to Eat It |
|---|---|---|
| Bananas | Binding, potassium | Ripe, mashed if needed |
| Rice | Easy to digest, binding | White rice, plain |
| Applesauce | Pectin soothes gut | Unsweetened only |
| Toast | Bland, absorbs acid | White bread, dry |
Gentle Foods for Recovery
| Phase | Duration | Foods |
|---|---|---|
| Acute | 12-24 hours | Clear broth, water, herbal tea |
| Recovery | 24-48 hours | BRAT foods, plain crackers |
| Rebuilding | 48-72 hours | Add lean protein, cooked veggies |
| Normal | 72+ hours | Gradual return to regular diet |
Related Reading
Medical Disclaimer
This article is for informational purposes only and is not medical advice, diagnosis, or treatment. Always consult your physician or qualified healthcare provider before starting, stopping, or changing any medication, treatment, diet, or fitness program.
In a medical emergency, call 911 (or your local emergency number) immediately.
Never disregard professional medical advice or delay seeking it because of something you read here.
Read full disclaimer →Track your health journey
Log your symptoms, food, and lifestyle factors to find patterns that matter.
Start TrackingRelated Articles
SIBO vs IBS: How to Tell the Difference by Your Bloating Patterns
Both cause bloating, but the patterns are different. Learn how timing, triggers, and associated symptoms can help distinguish SIBO from IBS.
Bloated Stomach After Antibiotics: Why It Happens and How to Get Relief
Finished your antibiotics but now dealing with uncomfortable bloating? Here is why it happens and what actually works to fix it.
Fibermaxxing: Is the High-Fiber Diet Trend Worth Following?
The fibermaxxing trend promises better gut health, weight loss, and disease prevention through maximizing fiber intake. But with 97% of Americans falling short on fiber, is pushing to 50+ grams daily the answer - or could it backfire for some people?
Related Condition Trackers
Track symptoms and identify patterns with our specialized health trackers.