Skip to content
GuideEvergreen guide

When your stomach hurts after you eat, the timing tells a story

Gallbladder, ulcer or food intolerance? Where it hurts and when it starts point in different directions. Here's what to track and when to stop tracking.

By Cal Brennan · Fitness5 min read
When your stomach hurts after you eat, the timing tells a story

Quick answer: Pain under the right ribs an hour or so after a heavy meal points toward the gallbladder. A burning ache in the center of your upper belly, especially on an empty stomach, points toward an ulcer. Bloating, gas and cramps after one particular food point toward intolerance. These are patterns, not diagnoses. A doctor sorts it out.

The steak dinner scene

You eat a big ribeye at 7:00. By 8:15 there's a hard, steady pain under your right ribs, and it's climbing toward your shoulder blade. You sit there for two hours, sweating a little, wondering if you're dying. Then it fades and you feel fine.

You decide it was the steak and move on. Then it happens again in three weeks, after pizza.

That's the classic gallbladder story, and the part people skip is the part that matters: it comes and goes. The pain isn't a stomachache that builds and burns off. It shows up in an episode, holds on, and lets go.

The gallbladder pattern

Your gallbladder is a small pouch under the liver that stores bile and squeezes it out when fat hits your system. If a gallstone blocks the exit, the pouch squeezes against the blockage. That hurts.

What it tends to look like:

  • Pain in the upper right belly or the center just under the breastbone
  • Starts roughly thirty minutes to a few hours after a rich or fatty meal
  • Steady rather than crampy, lasting from half an hour to several hours
  • Sometimes travels to the right shoulder blade or back
  • Nausea alongside it, sometimes vomiting

Gallstones are more common in women, in people over forty, in people with a family history, and after rapid weight loss or pregnancy. But men get them too, and "I'm not the type" is how people sit on this for a year.

Get seen promptly if the pain runs past several hours, if you have a fever or chills, or if your skin or the whites of your eyes turn yellow. Those can mean a stone is stuck or something's infected. That's an emergency room visit, not a wait-and-see.

The usual first step for a suspected gallbladder problem is a simple ultrasound. It's painless and quick.

The ulcer pattern

An ulcer is a sore in the lining of the stomach or the first part of the small intestine. The two big causes are a common stomach bacterium called H. pylori and regular use of anti-inflammatory painkillers such as ibuprofen, naproxen and aspirin.

The feel is different from a gallbladder attack. Think burning or gnawing, centered in the upper belly between your breastbone and navel. The timing is where it gets interesting:

  • With some ulcers, pain eases when you eat and comes back a couple of hours later
  • It can wake you at night
  • With others, eating makes it worse
  • Bloating, early fullness and nausea ride along

If you've been taking ibuprofen daily for a bad back or a sore knee, tell your doctor. That's the detail that changes the whole conversation. Our piece on when to rest a bad back and when to get moving covers ways to handle pain without leaning on that bottle.

Ulcers are very treatable. A breath or stool test can find H. pylori, and a course of medication clears it. Sometimes a doctor will want a camera look, called an endoscopy.

Now the part you don't wait on. Black, tarry stools, vomiting blood or something that looks like coffee grounds, sudden severe belly pain, or feeling faint all mean get medical help right away. Don't drive yourself if you're lightheaded.

The food intolerance pattern

This one's the least dramatic and the most common. Intolerance isn't your immune system going to war. It's your gut not handling something well.

Lactose is the usual suspect. Some people also react to certain fibers and sugar alcohols, or to wheat in ways that have nothing to do with celiac disease.

What gives it away:

  • It's repeatable. Same food, same result.
  • Bloating, gas, cramping, loose stools, mostly in the lower belly
  • Often starts within a couple of hours of eating
  • You feel lousy, not stabbed

A food intolerance is not a food allergy. Hives, swollen lips or tongue, wheezing or trouble breathing after eating is an emergency. Get help immediately.

Celiac disease also deserves a mention. It's an autoimmune condition, and it can look like an intolerance for years. Don't cut out gluten on your own before you've been tested, because going gluten-free first can make the test unreliable. Ask your doctor.

Keep a two-week log

Your doctor is going to ask the same handful of questions no matter which of these it is. Answer them in advance on a note in your phone. After each episode, write down:

  1. What you ate, and roughly how much
  2. How long after eating the pain started
  3. Exactly where it hurt, and whether it moved
  4. How long it lasted, and what (if anything) helped
  5. Any painkillers, supplements or alcohol in the past day

Two weeks of that is worth more than "my stomach just hurts sometimes." It turns you from a vague complaint into a pattern, and patterns get diagnosed faster.

The one that isn't in your stomach

Upper-belly discomfort can be the heart. This is especially true for women, for older men, and for anyone with diabetes, high blood pressure or a smoking history. Pressure or pain that comes with exertion, a cold sweat, shortness of breath, or an ache spreading into the jaw or arm isn't indigestion until a doctor says so. Read what a heart attack actually feels like once, now, while you're calm. If you're in doubt, get medical help right away.

What not to do

Don't treat this with antacids for weeks and call it handled. They can quiet the symptoms while an ulcer keeps going. Don't swear off all fat forever on a hunch. Don't assume that stress is the whole answer either, though it can make a sensitive gut louder, and stress doesn't stay in your head for a reason.

Book an appointment if the pain repeats, if it wakes you up, if you're losing weight without trying, or if you've been medicating it yourself for more than a couple of weeks. Bring the log. Bring your medication list, including the over-the-counter stuff you don't think counts.

Your gut keeps a pretty honest calendar. Your job is to write it down and hand it to somebody who can read it.

Cal Brennan

Fitness

Strength coach. Trains fathers, tradesmen and desk workers, which means programs that survive a bad week.

Watch

Worth an hour of your evening

More from Health.

From channels we rate. Plays on YouTube.

    TODAYFeb 4

    Cancer Screenings by the Decade: Here’s What You Need to Know

    Michigan MedicineOct 23

    What you need to know about cancer screenings

    UT MD Anderson Cancer CenterSep 14

    8 ways to reduce your cancer risk

    Canadian Task Force on Preventive Health CareDec 31

    Cancer Screening