Stomach pain: causes by location, red flags, and when to worry

Last updated September 3, 2026.

Most stomach pain is a stomach bug, food, or acid, and it passes on its own. The location and the time course do most of the diagnostic work. Sudden severe pain, a rigid belly, vomiting blood, black or bloody stools, fainting, or lower-right pain that keeps worsening are the emergency patterns, and they need an ER, not a wait-and-see.

What does stomach pain in each location usually mean?

When is stomach pain an emergency?

What helps at home?

For mild pain without red flags: small sips of fluid, bland food once you feel like eating, and skipping alcohol, caffeine, fatty meals, and NSAID painkillers like ibuprofen, which irritate the stomach lining. An antacid helps burning upper pain. A heating pad on low eases cramping. Do not take a laxative for undiagnosed pain. Pain that is not clearly improving in a day or two, keeps returning, or wakes you at night is the point to get it checked.

What a Pymander consult looks like

Where exactly is the pain, and is it constant or in waves? Also: any fever, vomiting, or blood in your stool?
All over cramping, waves. I've thrown up twice, no blood, no fever.
Thanks for giving me all this information. Based on what you've said, it looks like you may be experiencing a stomach bug - cramping in waves with vomiting and no fever or blood fits that pattern most of all. Sips of fluid now, bland food later. If the pain fixes in one spot, your belly gets hard and swollen, or you see blood, get seen the same day, because that changes the picture. Here's your care note to share with your care team.
Care note
Cramping stomach pain since this morning
Fits a stomach bug. Plan: fluid sips now, bland food later. Watch: pain fixing in one spot, hard swollen belly, or blood = same-day care.
View care note →

Illustrative example, not a real member's messages.

Common questions

What does stomach pain in each location usually mean?

Location is the first clue. Upper middle pain that burns or gnaws, especially on an empty stomach or after meals, points toward gastritis, an ulcer, or acid reflux. Right upper pain under the ribs, especially after a fatty meal, points toward the gallbladder. Lower right pain that started vaguely near the navel and migrated, with worsening over hours, is the classic appendicitis pattern. Lower left pain with fever or a change in bowel habits suggests diverticulitis in adults over 40. Generalized cramping with diarrhea or vomiting is most often a stomach bug or food poisoning. Crampy pain with bloating and no ability to pass stool or gas raises concern for a blockage. None of these is a diagnosis on its own, but the location plus the time course narrows the field fast.

When is stomach pain an emergency?

Go to an emergency room now for pain that is sudden and severe, pain with a rigid, board-hard belly, pain with vomiting blood or material that looks like coffee grounds, black or bloody stools, fainting or a racing weak pulse, pain with a high fever and shaking chills, pain during pregnancy, or pain in the lower right abdomen that is steadily worsening, especially with fever and loss of appetite. Also go for pain that radiates to the back with vomiting (possible pancreas or aneurysm patterns), and for chest pain you are calling stomach pain, because heart attacks can present as upper abdominal discomfort. These patterns are the bleeding, perforation, blockage, appendicitis, and heart patterns, and they cannot be ruled out over text.

What helps stomach pain at home?

For mild, short-lived pain without red flags: small sips of fluid, bland food once you feel like eating, and skipping alcohol, caffeine, fatty meals, and NSAID painkillers like ibuprofen, which irritate the stomach lining further. An antacid or acid reducer helps burning upper pain. A heating pad on low can ease cramping. Do not take a laxative for undiagnosed pain, and do not eat a big meal to test whether it is better. If mild pain is not clearly improving within a day or two, keeps coming back, or wakes you at night, that is the point to get it checked rather than continue managing it at home.

Can stomach pain be anxiety or stress?

Yes, genuinely. The gut has its own nervous system wired straight into the stress response, so anxiety commonly causes real nausea, cramping, urgency, and appetite loss, and functional gut problems like IBS flare with stress. The trap is assuming stress is the cause without ruling out the physical ones, especially when the pain is new, one-sided, worsening, waking you at night, or paired with weight loss, blood, or fever. A reasonable approach: if your gut symptoms clearly track stress, come and go for months, and move around rather than fixing in one spot, stress or IBS is plausible and worth discussing. If the pattern is new or escalating, get the physical causes looked at first.

When can stomach pain be handled by text or telehealth?

Text triage fits the large middle ground: crampy pain with a likely stomach bug, burning upper pain that sounds like reflux or gastritis, recurrent symptoms you want a plan for, and the 'is this worth a visit' question itself. A careful text history (location, timing, what makes it better or worse, fever, vomiting, stool changes) rules the emergency patterns in or out surprisingly well, because most of those patterns announce themselves in the story. What text cannot do is press on your belly, so pain that is severe, localized and worsening, or paired with the red flags above needs hands on it the same day.

What is the difference between food poisoning and a stomach bug?

Both cause cramping, vomiting, and diarrhea, and you usually cannot prove which you have. Food poisoning classically starts fast, within hours of the meal, and vomiting dominates early; several people who ate the same food getting sick is the giveaway. Viral stomach bugs build over a day, often add body aches or a low fever, and spread through households over days. The treatment for both is the same: fluids in small sips, then bland food, and time, usually one to three days. Antibiotics are not wanted for most cases. Get medical care for blood in vomit or stool, signs of dehydration (barely urinating, dizziness on standing), high fever, or symptoms lasting more than about three days without improvement.

Find answers to your stomach pain

Start a free consult →

Sources

Pymander is not a replacement for a physician and does not provide medical advice, diagnosis, or treatment.