Sharp stomach pain has dozens of possible causes, ranging from a temporary bout of gas to a surgical emergency like appendicitis. Abdominal pain is the single most common reason adults visit the emergency department, accounting for over 6 million treat-and-release ER visits per year in the U.S. alone. Where the pain is, how long it lasts, and what else you’re feeling alongside it are the biggest clues to what’s actually going on.
Gas, Indigestion, and Gastroenteritis
The most likely explanation is also the least dangerous. Acute gastroenteritis, meaning a stomach bug or food-related irritation, accounts for roughly 11% of all abdominal pain diagnoses in the ER. Another 10% of cases get labeled “nonspecific abdominal pain,” which essentially means nothing structurally wrong was found. Together, these two categories make up more than one in five ER visits for belly pain.
Trapped gas can produce surprisingly sharp, stabbing sensations that shift around your abdomen. The pain usually comes in waves, moves or changes when you pass gas or have a bowel movement, and resolves within a few hours. Indigestion from overeating or eating too quickly often hits the upper middle part of your abdomen with a burning or gnawing feeling, especially after meals. These causes are uncomfortable but short-lived.
Appendicitis
Appendicitis follows a recognizable pain pattern. It often starts as a vague, hovering ache around your belly button that comes and goes for several hours. Nausea and vomiting typically develop during this early phase. Then the pain migrates to your lower right abdomen, becomes sharper, and steadily intensifies. At that point it tends to stay constant rather than coming in waves.
Your appendix is a small, finger-sized pouch at the lower right end of your large intestine. Once it becomes inflamed, the area over it grows increasingly tender. Walking, coughing, or pressing on the spot and then releasing makes the pain worse. Appendicitis affects people of all ages but is most common between the ages of 10 and 30. If the pain follows this belly-button-to-lower-right progression, it needs urgent medical evaluation.
Gallbladder Pain
Gallstones cause sharp pain under your right ribcage that can radiate into your right shoulder or back. Episodes often strike shortly after eating, especially after a large or fatty meal. Fats in your small intestine signal the gallbladder to squeeze and release bile, and if a stone is blocking the exit, that contraction produces intense pain. An episode typically lasts anywhere from 20 minutes to a few hours, then fades.
Gallbladder pain accounts for about 4.5% of acute abdominal pain diagnoses. It tends to recur once it starts, with attacks becoming more frequent over time. If the pain lasts longer than a few hours, is accompanied by fever or yellowing skin, or doesn’t let up at all, that can signal a more serious complication like an infected or ruptured gallbladder.
Peptic Ulcers
Standard stomach or duodenal ulcers usually produce a burning, gnawing pain in the upper middle abdomen that worsens after eating. This pain is more of a slow burn than a stab. However, if an ulcer erodes completely through the wall of the stomach or intestine (a perforation), the sensation changes dramatically: you feel sudden, sharp pain that is often described as the worst abdominal pain imaginable. A perforated ulcer is a surgical emergency.
Most ulcers are caused by either a bacterial infection (H. pylori) or long-term use of anti-inflammatory painkillers like ibuprofen or aspirin. If you’ve been taking these regularly and develop persistent upper abdominal pain, that history is an important detail for your doctor.
Diverticulitis
Diverticulitis causes sharp pain in the lower left side of your abdomen, which makes it fairly distinct from appendicitis (lower right) or gallbladder problems (upper right). Small pouches that form in the wall of the large intestine can become inflamed or infected, producing steady, worsening pain that often comes with fever and changes in bowel habits.
This condition is most common in people over 50 and is more likely in those who eat a low-fiber, high-red-meat diet, smoke, are overweight, or don’t exercise regularly. Heavy alcohol use, low vitamin D levels, and regular use of steroids or anti-inflammatory painkillers also raise the risk. Diverticulitis accounts for about 3.8% of acute abdominal pain diagnoses.
Kidney Stones
Kidney stones cause sharp pain that usually starts in your side or back, just below the ribs, and radiates down toward your lower abdomen and groin as the stone moves through the urinary tract. The pain tends to come in severe waves, then eases, then returns. Nausea, vomiting, and blood in the urine are common alongside the pain. Kidney stones (urolithiasis) account for about 4.3% of ER abdominal pain diagnoses, making them nearly as common as gallstones.
Gynecological Causes
For women and people with ovaries, sharp lower abdominal pain has additional possible causes that are easy to overlook. Ovarian torsion, where an ovary twists on its supporting tissue and cuts off its own blood supply, produces sudden, severe pain that most people describe as sharp and stabbing. The pain is usually felt throughout the lower belly, though it can be isolated to one side (more often the right). It frequently spreads to the thighs, flanks, and lower back, and nausea and vomiting are common.
Ovarian torsion is a time-sensitive emergency. If the blood supply stays cut off, the ovarian tissue begins to die, which can cause fever and abnormal bleeding. Ectopic pregnancy, where a fertilized egg implants outside the uterus (usually in a fallopian tube), produces similar sharp, one-sided lower abdominal pain, sometimes with vaginal bleeding and dizziness. Any sudden, severe lower abdominal pain in a person who could be pregnant warrants immediate evaluation.
How Location Helps Narrow It Down
The quadrant of your abdomen where the pain is sharpest is one of the most useful diagnostic clues, and it also determines which imaging tests doctors are likely to order.
- Upper right (under the ribcage): Gallstones, liver problems. Ultrasound is the preferred first imaging test for this area.
- Upper middle: Peptic ulcers, pancreatitis, indigestion.
- Lower right: Appendicitis, ovarian torsion, ectopic pregnancy. CT scan is the recommended first-line imaging test.
- Lower left: Diverticulitis, ovarian torsion. CT scan is also recommended here.
- Flank or side, radiating down: Kidney stones.
- Diffuse or hard to pinpoint: Gastroenteritis, early appendicitis, gas, bowel obstruction.
Signs That Need Emergency Attention
Most sharp abdominal pain resolves on its own or turns out to be something manageable. But certain combinations of symptoms point to an acute abdomen, a term for sudden, severe pain that often requires emergency surgery.
The red flags to watch for: a visibly swollen or distended abdomen, pain that gets dramatically worse when you gently touch the area or even bump into something, rapid heart rate with sweating and confusion (signs of shock), or pain so severe you can’t stand up straight or find any comfortable position. Vomiting blood, passing black or bloody stools, or developing a high fever alongside the pain are also signals that something more serious is happening. About 14% of ER visits for all causes result in hospital admission rather than discharge, and acute abdominal emergencies make up a significant share of that group.

