Most uncomplicated stomach pain resolves within 24 to 48 hours; pain that persists beyond 48 hours, worsens steadily, or arrives with fever, vomiting blood, or a rigid abdomen warrants same-day medical evaluation. Duration alone rarely tells the whole story. The pattern, location, and accompanying symptoms matter as much as the clock.
This explainer walks through what actually generates abdominal pain, how long common causes typically last, which presentations demand urgent care, and where popular assumptions about stomach pain go wrong. The goal is a working model, not a diagnosis.
How the gut generates pain
The stomach and intestines have their own nervous system, the enteric nervous system, sometimes called the second brain. It contains roughly 500 million neurons and can coordinate motility and secretion without input from the central nervous system. This matters for pain because much of what you feel originates locally.
The gut wall has two layers of nerve plexuses: the myenteric plexus, which governs muscle contraction, and the submucosal plexus, which governs blood flow and secretion. When the gut distends, these nerve endings fire. Distension is the single most common mechanical trigger of visceral pain. A balloon inflated inside the bowel produces pain at surprisingly low volumes, which is why gas, constipation, and food volume can hurt out of proportion to their danger.
Visceral pain travels on slow, poorly localized fibers. That is why early appendicitis often feels like vague central pain rather than sharp right-lower-quadrant pain. The pain only localizes when inflammation reaches the parietal peritoneum, which has sharper, better-mapped sensory innervation. This shift from vague to precise is a clinically meaningful sign, not a cosmetic detail.
Chemical irritation works differently. Acid, bile, and inflammatory mediators such as prostaglandins sensitize nerve endings directly, lowering the threshold at which distension becomes painful. This sensitization explains why the same amount of gas hurts more during a flare of gastritis than it does at baseline. The gut is not just sensing stretch; it is sensing how primed its nerves are.
Muscle spasm is a third mechanism. Smooth muscle contracting against a blockage, as in a gallstone lodged in a duct or a bowel obstruction, produces colicky pain that rises and falls in waves. Steady, boring pain suggests inflammation or ischemia instead. The rhythm of the pain is diagnostic information.
Typical durations by cause
Duration expectations vary enormously by cause, and the ranges below describe typical uncomplicated courses, not guarantees. These are general patterns drawn from standard clinical teaching, not individualized predictions.
| Cause | Typical duration | Pain character | Key context |
|---|---|---|---|
| Viral gastroenteritis | 1 to 3 days | Crampy, diffuse | Diarrhea and vomiting often accompany |
| Dyspepsia (indigestion) | Hours to 1 day | Burning, upper abdomen | Relieved or worsened by food |
| Constipation | Days until relieved | Crampy, left lower | Infrequent hard stools precede it |
| Gastritis | Days to weeks if untreated | Burning, gnawing | Worse with acid, empty stomach |
| Peptic ulcer | Weeks to months, relapsing | Burning, night pain | Improves with food, returns later |
| Gallstone colic | 1 to 6 hours per episode | Right upper, radiating to back | Post-fatty-meal onset |
| Appendicitis | Escalates over 12 to 24 hours | Migrates to right lower | Often with low-grade fever |
| Mesenteric ischemia | Hours, severe | Out of proportion to exam | Risk factors: vascular disease |
Viral gastroenteritis is the most common acute cause in adults. Symptoms typically peak within 24 hours and resolve within 1 to 3 days, though loose stools can linger up to a week. The pain is usually crampy and diffuse. It is the diarrhea and vomiting, not the pain itself, that drives dehydration risk.
Dyspepsia is different. It lasts hours to a day and often tracks food intake. Burning or gnawing in the upper abdomen that arrives 30 to 90 minutes after eating points toward acid-related causes rather than infection.
Peptic ulcer pain has a distinctive periodicity. It often wakes people at night, improves briefly with food, and returns hours later. Untreated, episodes can recur over weeks to months. This relapsing pattern is one reason ulcers are often mistaken for something recurring but harmless.
Gallstone colic produces discrete attacks, usually 1 to 6 hours long, often after a fatty meal. The pain sits in the right upper abdomen and may radiate to the right shoulder blade. Between attacks, people are typically pain-free, which is why episodic pain with complete resolution deserves specific attention.
Red flags that override any timeline
Certain features change the calculus entirely. These are not refinements; they reclassify the situation.
Pain with fever above 100.4 F (38 C), especially with chills or a rigid abdomen Vomiting blood or passing black, tarry stools Pain that is severe, unrelenting, and out of proportion to the physical exam Pain that migrates and localizes in the right lower quadrant Inability to keep fluids down for more than 12 hours New pain in someone over 60 with vascular risk factors, or any pain during pregnancy
The counterintuitive caveat: severe pain with a soft, nontender abdomen is more concerning, not less. A rigid, guarding abdomen is obvious. A soft abdomen with excruciating pain can signal early mesenteric ischemia or a retroperitoneal process, where the peritoneum has not yet been irritated. Clinicians call this a discrepancy between symptoms and signs, and it is a reason to escalate rather than reassure.
Another professional caveat: the elderly and people on corticosteroids or immunosuppressants often mount muted responses. Fever may be absent. Pain may be blunted. A normal-looking exam in a high-risk patient carries less reassurance than it does in a healthy young adult.
Common misconceptions about stomach pain
The first misconception is that location equals organ. The abdomen is a shared neighborhood. Pain in the upper middle can come from the stomach, pancreas, gallbladder, or heart. Cardiac ischemia can present as epigastric pain, particularly in women and people with diabetes. This is not a fringe scenario; atypical cardiac presentations are a well-recognized source of delayed care.
The second is that pain that moves is benign. Migration is often the opposite. Appendicitis classically begins centrally and moves to the right lower quadrant over 12 to 24 hours as inflammation reaches the parietal peritoneum. Movement is a feature to report, not dismiss.
The third is that absence of diarrhea means absence of infection. Some bacterial infections, including certain foodborne pathogens, produce pain and fever before diarrhea appears, and some never produce diarrhea at all. Constipation-predominant presentations exist.
The fourth is that a short duration guarantees safety. Early appendicitis, early obstruction, and early ischemia all begin brief and mild. A 6-hour history does not exclude a surgical problem. It simply means the process is early.
When to act, and how
Practical thresholds are more useful than general advice. The steps below are thresholds for seeking care, not treatment instructions.
Track the clock: note onset time, whether pain is steady or colicky, and whether it moves. This history is what clinicians use first. Hydrate in small, frequent sips if vomiting is present. If fluids cannot be kept down for more than 12 hours, seek care. Seek same-day evaluation for pain lasting more than 48 hours without improvement, or for any red-flag feature above. Go to emergency care immediately for severe pain, a rigid abdomen, blood in vomit or stool, or pain with fainting or shortness of breath. Avoid masking symptoms with painkillers before an exam if you are considering emergency care, because analgesia can blunt the exam findings clinicians rely on. Do not self-treat with anti-inflammatory drugs if ulcer or bleeding is possible; these drugs can worsen gastric irritation.
The 48-hour threshold is a practical rule, not a law. It reconciles several overlapping timelines: most viral and dyspeptic causes resolve well within it, while ulcer, gallstone, and structural causes persist or recur beyond it. A single number cannot capture every presentation, so treat it as a prompt to reassess rather than a verdict.
For episodic pain, the pattern matters more than the total duration. Attacks that resolve completely and recur after fatty meals point one direction. Continuous pain that never fully resolves points another. The gap between episodes is itself clinical information.
If pain is mild, improving, and without red flags, home observation with hydration and rest is reasonable for up to 48 hours. If it is stable but not improving at 48 hours, or if any feature from the red-flag list appears at any point, the threshold for evaluation has been crossed regardless of how long it has been.
Limits of what duration can tell you
Duration is one variable among several, and it cannot substitute for examination, vital signs, and focused testing. The same 24-hour pain can represent a self-limited virus or an evolving surgical problem. No timeline in a general article can distinguish them, and none should be read as a personal diagnosis.
Several changing details are deliberately omitted here: current guideline thresholds for specific imaging, drug availability and pricing, and updated treatment recommendations. These evolve and require a clinician and current sources. What remains stable is the mechanistic reasoning: how distension, sensitization, spasm, and localized inflammation generate different pain patterns, and why the pattern, not just the clock, guides the decision to seek care.
If there is one takeaway, it is this: use duration to organize your thinking, use red flags to override it, and let a clinician weigh the pattern against the exam. Stomach pain that is brief, improving, and free of warning signs can usually be watched. Pain that persists, escalates, migrates, or arrives with bleeding, fever, or a rigid abdomen should not wait for a timeline to expire.