Before Doctorby dhananjaytech

Tummy pain

Tummy pain has many causes. Linking it to food, time of day, stress or your cycle is one of the most useful things you can bring to a doctor.

Below are the usual patterns. Read them, then watch yours for a week or two: when it happens, what came just before, and how long it lasts.

Tummy 8 patterns

Which one sounds like you?

Oily foodTummy pain
Oily foodSee a doctor soon

Pain under the right ribs after oily food

Gallstone pain (biliary colic)

When
Within an hour or so of a rich, oily or fried meal, often in the evening or night
How to spot it
Steady, strong pain in the upper middle or upper right tummy, sometimes going to the right shoulder blade, lasting from 30 minutes to several hours, often with feeling sick.
Why
After fatty food the gallbladder squeezes to release bile. If a stone blocks its outlet, the squeeze causes pain until the stone falls back.
How common
Gallstones are common, though many cause no symptoms
Should I worry?
See a doctor; pain over 30 minutes needs urgent advice, and fever or yellow eyes is an emergency.
MilkTummy pain
MilkUsually harmless

Cramps, gas and loose motions after milk

Lactose intolerance

When
Minutes to a few hours after milk, chai with lots of milk, ice cream, paneer or milkshakes
How to spot it
Rumbling, bloating, wind and loose stools after dairy, but not on dairy-free days. Curd and aged cheese are often better tolerated.
Why
The gut makes too little of the enzyme lactase, so milk sugar is not digested. Gut bacteria ferment it, making gas and drawing water in.
How common
Common
Should I worry?
Not dangerous; see a doctor if it keeps coming back or with weight loss or blood in stools.
HungerTummy pain
HungerSee a doctor soon

Burning upper tummy pain on an empty stomach

Possible stomach or duodenal ulcer

When
Mid-morning, 2 to 3 hours after meals, or waking you at night
How to spot it
A burning or gnawing pain in the upper middle tummy that eases for a while after eating or antacids, then comes back. More likely with frequent painkillers like ibuprofen.
Why
An ulcer is a raw sore in the lining of the stomach or gut. Acid irritates it when there is no food to buffer it. Common causes are H. pylori infection and painkillers called NSAIDs.
How common
Fairly common
Should I worry?
Ulcers are treatable but can bleed; black stools or vomiting blood is an emergency.
StressTummy pain
StressWorth a check

Cramps that come with stress and ease after the toilet

Irritable bowel syndrome (IBS)

When
Before exams, travel, work deadlines; often after meals
How to spot it
Cramping pain with bloating and loose stools or constipation (or both), worse after eating and better after passing stool. Symptoms come and go over months.
Why
The gut and brain are wired closely. In IBS the gut nerves are extra sensitive and gut movements are less steady, and stress turns up the volume.
How common
Common
Should I worry?
See a doctor if it lasts over 4 weeks, to confirm IBS and rule out other causes.
WheatTummy pain
WheatWorth a check

Pain and bloating after wheat, onions or beans

FODMAP sensitivity or coeliac disease

When
After roti, bread, pasta, onions, garlic, rajma, chole
How to spot it
Bloating, wind and cramps a few hours after certain foods. With coeliac disease there may also be loose stools, tiredness and weight loss.
Why
Some carbohydrates (FODMAPs) are poorly absorbed and are fermented by gut bacteria into gas. In coeliac disease, gluten in wheat damages the gut lining through the immune system.
How common
Common (coeliac disease itself is less common)
Should I worry?
Ask a doctor before cutting out wheat, because a coeliac test works best while you still eat it.
PeriodsTummy pain
PeriodsUsually harmless

One-sided lower tummy pain in the middle of the cycle

Ovulation pain (mittelschmerz)

When
About 14 days before the next period
How to spot it
A dull or sharp ache low on one side, lasting minutes to 1 to 2 days, sometimes switching sides month to month.
Why
When an egg is released, a little fluid or blood from the ovary can irritate the lining of the tummy.
How common
Common
Should I worry?
Usually harmless; get advice if severe, if painkillers do not help, or if you could be pregnant.
PeriodsTummy pain
PeriodsSee a doctor soon

Severe period pain that stops daily life

Possible endometriosis

When
Around periods, sometimes also with sex, passing stool or urine
How to spot it
Period pain bad enough to miss school or work, heavy periods, deep pain in the lower tummy or back, and extreme tiredness.
Why
Tissue like the womb lining grows outside the womb. It bleeds each month with nowhere to go, causing inflammation and pain.
How common
Common, but often diagnosed late
Should I worry?
Pain that stops normal life is not 'normal period pain' and deserves a proper check.

Keep a diary for 1–2 weeks

Every time it happens, note:

  • Time of pain and how long it lasted
  • Where exactly (upper right, upper middle, lower right, lower left, all over)
  • What you ate in the 6 hours before (oily, dairy, wheat, onion, beans, spicy)
  • Stools: loose, hard, colour, any blood or black colour
  • Stress level and sleep
  • Painkillers taken (ibuprofen, aspirin)
  • For women: day of the period cycle
Write my doctor note

See a doctor soon if

  • Tummy pain that keeps coming back for more than 4 weeks
  • Pain with weight loss you cannot explain, or loss of appetite
  • Pain that wakes you at night
  • Pain with change in bowel habit lasting 3 weeks, or blood in stools
  • Period pain that stops normal activities

Don't wait if

  • Sudden, severe tummy pain, or pain that keeps getting worse over hours
  • Vomiting blood or material like coffee grounds, or black sticky stools
  • Tummy pain with yellow skin or eyes, or high fever with shivering
  • Severe pain in someone who could be pregnant

Call 112 or 108. All warning signs

More in Tummy

Sources

  1. Gallstones · NHS
  2. Biliary colic · Harvard Health Publishing
  3. Lactose intolerance · NHS
  4. Peptic Ulcer Disease · MSD Manual Professional Edition
  5. Irritable bowel syndrome (IBS): symptoms · NHS
  6. Ovulation pain · NHS
  7. Endometriosis · NHS
  8. Appendicitis · NHS

Checked in November 2026. Health advice changes; if a source says something different now, trust the source and your doctor.