Most stomach pain from common causes like a stomach bug or something you ate resolves within a few hours to three days. How long it actually lasts depends entirely on what’s causing it, and the duration itself is one of the best clues to figuring that out. Short-lived pain that fades on its own rarely signals anything serious, while pain that persists for days or keeps coming back over weeks deserves a closer look.
Pain That Resolves in Hours
The most common forms of stomach pain are also the shortest. Eating too much, eating too fast, or eating something that doesn’t agree with you can cause cramping, bloating, and nausea that typically passes within a few hours as your digestive system works through whatever triggered it. Gas pain follows a similar pattern, sometimes intense enough to mimic something serious but usually gone within an hour or two once the gas moves through.
Food poisoning from bacterial toxins (the kind you get from food that sat out too long) tends to hit fast, often within a few hours of eating, and usually clears within 24 hours. The pain comes in waves alongside nausea, vomiting, or diarrhea, then fades as your body expels what it needs to.
Gallbladder attacks fall into this window too, though they feel very different from indigestion. The pain is typically steady and intense, located in your upper right abdomen or between your shoulder blades. A single episode lasts anywhere from 20 minutes to a few hours. The pain resolves when the gallstone shifts and bile can flow again. These attacks tend to recur, though, often after fatty meals.
Pain That Lasts 1 to 3 Days
Viral gastroenteritis, commonly called the stomach flu, is the most frequent cause of stomach pain lasting more than a day. Most people with norovirus, the most common culprit, get better within one to three days. The pain is usually crampy and comes alongside vomiting, diarrhea, or both. You can still spread the virus for a few days after you feel better, so hand hygiene matters even once symptoms fade.
Mild cases of food poisoning from bacteria like salmonella or campylobacter can take longer than toxin-based food poisoning, sometimes stretching to three or four days. If diarrhea or vomiting makes it hard to keep fluids down, dehydration becomes the bigger concern, especially for young children and older adults.
Pain That Builds Over 12 to 24 Hours
Some causes of stomach pain don’t just linger. They get progressively worse over hours, and that pattern matters. Appendicitis is the classic example. It typically starts as vague discomfort around the belly button, sometimes coming and going for several hours. Nausea and vomiting often develop next. Then, over the course of 12 to 24 hours, the pain sharpens and migrates to the lower right side of the abdomen. This progression, from dull and central to sharp and localized, is one of the most recognizable patterns in medicine.
Pancreatitis follows a different but equally distinctive pattern. The pain is severe, centered in the upper abdomen, and often radiates straight through to the back. It tends to worsen after eating and can last for days without treatment. Both appendicitis and pancreatitis require medical evaluation and should not be waited out at home.
Recurring Pain Over Weeks
Peptic ulcers cause a burning or gnawing pain in the upper stomach that follows a distinctive cycle. Eating food or taking an antacid temporarily relieves the pain, but it typically returns two to three hours later as stomach acid builds back up. This pattern can repeat one or more times a day over a period of one to several weeks, then sometimes disappear on its own, only to return later. Ulcers are caused by either a bacterial infection or long-term use of anti-inflammatory painkillers like ibuprofen, and both causes are treatable.
Diverticulitis, an inflammation of small pouches in the colon wall, causes pain that’s usually felt in the lower left abdomen. Mild, uncomplicated cases take about a week to recover from, sometimes resolving on their own, though antibiotics are often needed. The pain tends to be constant rather than crampy and may come with fever or changes in bowel habits.
Chronic Pain Lasting Months
When stomach pain keeps coming back for three months or longer, it crosses into chronic territory. Two conditions account for most of these cases.
Irritable bowel syndrome (IBS) is diagnosed when you’ve had recurring abdominal pain at least one day per week for three months, with symptoms that started at least six months before diagnosis. The pain is tied to bowel movements, meaning it either gets better or worse when you go, and it’s usually accompanied by changes in how often you go or what your stool looks like. IBS pain tends to come in flares lasting hours to days, separated by stretches of feeling fine.
Functional dyspepsia is essentially chronic indigestion with no identifiable structural cause. It’s diagnosed after symptoms have persisted for at least three months and testing hasn’t revealed an ulcer, infection, or other explanation. The main symptoms are pain or burning in the upper stomach, feeling uncomfortably full after eating, or feeling full too quickly when eating. These symptoms can be sporadic, flaring for days or weeks and then easing, but the overall pattern stretches on for months.
When the Duration Points to an Emergency
The length of stomach pain matters less than how it behaves. Pain that steadily worsens over hours rather than fading is more concerning than pain that’s been mild for days. A few specific situations call for emergency evaluation: pain so severe you can’t get comfortable, pain paired with vomiting that won’t stop or an inability to keep any liquids down, complete inability to have a bowel movement combined with worsening pain, or pain that resembles a previous episode but is noticeably more severe or different in character.
If you’ve had recent abdominal surgery and develop new pain, that also warrants prompt evaluation. Abdominal pain with fever, bloody stool, or vomiting blood needs same-day medical attention regardless of how long it’s been present.
Using Duration as a Diagnostic Clue
Tracking exactly how long your pain lasts, when it started, whether it comes and goes or stays constant, and what makes it better or worse gives your doctor more useful information than almost anything else you can report. A few practical distinctions to pay attention to:
- Crampy and wave-like pain usually involves the intestines or stomach contracting, as with gas, food poisoning, or IBS.
- Steady, unrelenting pain is more typical of inflammation or organ problems like appendicitis, pancreatitis, or gallbladder disease.
- Pain that improves with eating suggests a duodenal ulcer, while pain that worsens with eating points toward a stomach ulcer, gallbladder issue, or functional dyspepsia.
- Pain lasting under 24 hours that fully resolves and doesn’t return is rarely something to worry about.
- Pain that recurs in a predictable pattern over weeks, even if each episode is short, suggests an underlying condition worth diagnosing.
Most stomach pain falls on the mild, self-limiting end of the spectrum. Your digestive system encounters irritants constantly and is well-equipped to handle them. The key is recognizing the patterns that fall outside normal: pain that escalates, pain that won’t break, and pain that keeps coming back.

