Symptoms and conditions
Stomach pain: causes by location, and when to worry
The place where abdominal pain is felt is the first clue to its cause. Pain in the upper middle abdomen usually comes from the stomach or the food pipe, the upper right from the gallbladder, the lower right from the appendix, and the lower left from the large intestine. Pain that is sudden and severe, that comes with fever, vomiting, a hard abdomen or bleeding, or that keeps getting worse over hours is an emergency. Location is a guide and not a diagnosis, which needs an examination.
Go to an emergency department now if you have
- Sudden, severe pain, or pain that is steadily worsening over a few hours
- A hard, board-like abdomen, or pain that is worse with any movement
- Pain with fever and repeated vomiting
- Vomiting blood, or black or bloody stools
- A swollen abdomen with no passage of stool or wind
- Pain with yellow eyes and fever
- Pain in the upper abdomen with chest pressure, sweating or breathlessness
- Abdominal pain in pregnancy, or with fainting
- Sudden pain in a testicle
In short
- Location narrows the possibilities. It does not make the diagnosis.
- Pain that comes in waves usually arises from a tube that is squeezing: the bowel, the bile duct or the ureter.
- Constant pain that is worse on movement suggests inflammation.
- Pain that has come and gone for months, without warning signs, is most often a functional disorder such as IBS or functional dyspepsia.
What does the location of the pain suggest?
A map of the abdomen. Each numbered area is matched with its common causes, and the table below sets them out in full. Right and left are your own right and left. Location is a guide and not a diagnosis.
| Where it hurts | Common causes | What usually goes with it |
|---|---|---|
| Upper middle, below the breastbone | Gastritis or ulcer, reflux, functional dyspepsia, pancreatitis. The heart can also cause pain here. | Burning, fullness after meals, nausea. Pancreatitis causes severe pain that goes through to the back. |
| Upper right, under the ribs | Gallstones, inflammation of the gallbladder, liver conditions | Pain after a fatty meal, spreading to the right shoulder or back, lasting 30 minutes to a few hours |
| Upper left | Stomach conditions, trapped gas at the bend of the colon, rarely the spleen or pancreas | Sharp pain that eases with a belch or with passing wind |
| Around the navel | Early appendicitis, gastroenteritis, the small intestine | In appendicitis the pain moves to the lower right within a day |
| Lower right | Appendicitis. In women, also the ovary or an ectopic pregnancy. | Fever, loss of appetite, pain on walking or coughing |
| Lower left | Constipation, diverticulitis, IBS. In women, also the ovary. | Diverticulitis brings fever and tenderness, mostly after the age of 40 |
| Lower middle | Bladder infection, period pain and other pelvic causes, IBS | Burning on passing urine, or a link with the menstrual cycle |
| Side or back, moving to the groin | Kidney stone, kidney infection | Severe pain in waves, blood in the urine, restlessness |
| All over | Gastroenteritis, IBS, bowel obstruction, peritonitis | Loose stools and cramps in the first; a swollen or rigid abdomen in the last two |
See appendicitis, gallbladder stones, gastritis, diverticulitis and intestinal obstruction.
What does the type of pain tell a doctor?
Burning
Acid on an inflamed lining: reflux, gastritis or an ulcer. It is often related to meals and eased by an antacid.
Cramping, in waves
A hollow organ squeezing against resistance. Bowel cramps ease after passing stool or wind. Gallbladder and kidney pain is more severe and makes it hard to keep still.
Constant and sharp, worse on movement
Inflammation that has reached the lining of the abdomen, as in appendicitis. People lie still and avoid coughing.
Pain with bloating, eased by passing stool
The pattern of IBS, particularly when it has been present for months and the bowel habit changes with it.
Pain that can be pressed with one finger
Often from the muscles of the abdominal wall, especially when it is worse on tensing the abdomen or sitting up.
Which tests are usually needed?
The examination decides the tests. Common first steps are:
- Blood and urine tests, including a pregnancy test where it applies
- Ultrasound, the first scan for pain in the upper right abdomen and for pelvic pain
- A CT scan when appendicitis, diverticulitis, obstruction or pancreatitis is suspected and the diagnosis is not clear
- Endoscopy for upper abdominal pain with warning signs or pain that returns after treatment
- An ECG when upper abdominal pain could be from the heart
Older people often have milder pain and less fever than the same disease causes in younger people, so the threshold for tests is lower.
What can I do at home for mild pain?
- Rest, sip fluids and eat light food, such as rice, curd, khichdi or idli.
- Use an antacid for burning in the upper abdomen.
- Use ORS if there are loose stools.
- A warm compress eases cramps from periods or from the bowel.
Avoid these:
- Repeated painkillers. Anti-inflammatory painkillers irritate the stomach and can mask a condition that is getting worse.
- Laxatives or enemas when the pain is severe or the abdomen is swollen.
- Leftover antibiotics.
- Waiting more than a day with pain that is not improving.
What causes pain that keeps coming back?
Pain that has returned for months is rarely an emergency, but it deserves a diagnosis. The common causes are functional dyspepsia, IBS, gallstones, constipation and, less often, an ulcer, coeliac disease, colitis or a long-standing inflammation of the pancreas.
A consultation, a few well-chosen tests and sometimes an endoscopy or ultrasound sort these out. See when your reports are normal but you still feel unwell.
Questions patients ask me
How do I know whether stomach pain is serious?
Treat it as serious if it is sudden and severe, getting worse over hours, or comes with fever, repeated vomiting, a hard or swollen abdomen, bleeding, yellow eyes or fainting. Pain that wakes you from sleep, and pain with weight loss, also need a doctor.
Is pain on the right side always appendicitis?
No. Gallbladder pain is felt in the upper right, and kidney stones, constipation and, in women, the ovary cause pain in the lower right. Appendicitis usually begins near the navel and moves to the lower right with fever and loss of appetite.
Why do I have stomach pain with loose motions?
Usually gastroenteritis from food or water, which settles in two to three days. Cramps before each stool are typical. High fever, blood in the stool or severe pain between stools need a doctor.
Why does my stomach hurt after eating?
Pain soon after meals suggests the stomach or the gallbladder. Pain with bloating an hour or two later suggests the intestine. The timing, the type of meal and what relieves the pain help to tell these apart.
Which painkiller can I take for stomach pain?
Avoid anti-inflammatory painkillers, which irritate the stomach lining. Ask a doctor or pharmacist what is suitable for you, and do not take any painkiller repeatedly for abdominal pain without a diagnosis.
Can gas cause severe stomach pain?
Trapped gas can cause sharp pain that moves and eases with passing wind. Pain that is fixed in one place, steadily worsening or accompanied by fever or vomiting is not gas.
Sources
This page is written for patients and is based on the guidelines and studies below. It is for education and does not replace a consultation.
- Review of the evaluation of acute abdominal pain in adults. Cartwright SL, Knudson MP. Am Fam Physician. 2008. PubMed 18441863
- World Society of Emergency Surgery (Jerusalem) guidelines on acute appendicitis. Di Saverio S et al. World J Emerg Surg. 2020. PubMed 32295644
- European Association for the Study of the Liver guideline on gallstones. EASL. J Hepatol. 2016. PubMed 27085810
- American College of Gastroenterology guideline on acute pancreatitis. Tenner S et al. Am J Gastroenterol. 2024. PubMed 38857482
- American Gastroenterological Association update on the medical management of colonic diverticulitis. Peery AF et al. Gastroenterology. 2021. PubMed 33279517
- American and Canadian guideline on the management of dyspepsia. Moayyedi P et al. Am J Gastroenterol. 2017. PubMed 28631728
- American College of Gastroenterology guideline on irritable bowel syndrome. Lacy BE et al. Am J Gastroenterol. 2021. doi:10.14309/ajg.0000000000001036