Stomach Pain and Nausea: Causes and Warning Signs

Stomach pain paired with nausea has dozens of possible causes, ranging from a mild stomach bug that clears in a day or two to conditions that need prompt medical attention. The most common culprits are viral infections, food poisoning, medication irritation, and stress-related digestive issues. Less common but important possibilities include gallstones, appendicitis, ulcers, and chronic conditions like irritable bowel syndrome.

Viral Gastroenteritis (Stomach Flu)

The single most common reason for sudden stomach pain and nausea is a viral infection of the gut, often called the “stomach flu” even though it has nothing to do with influenza. Norovirus is the leading cause in adults, spreading rapidly through families, workplaces, and cruise ships. Rotavirus is the top cause in young children. Symptoms usually resolve in one to two days, though they can occasionally linger for up to two weeks.

What sets a stomach virus apart from other causes is the combination of watery diarrhea, cramping, and vomiting that comes on suddenly and affects multiple people in the same household around the same time. Fever and body aches often tag along. The main risk is dehydration, especially in children and older adults, so replacing fluids matters more than any medication during recovery.

Food Poisoning

Food poisoning can look almost identical to a stomach virus, but there are timing clues. Different bacteria have different incubation windows. Salmonella symptoms appear anywhere from 6 hours to 6 days after eating contaminated food and include diarrhea (sometimes bloody), fever, and stomach cramps. Campylobacter takes 2 to 5 days to cause symptoms. E. coli typically hits 3 to 4 days later with severe cramps, bloody diarrhea, and vomiting.

If your symptoms began within hours of a specific meal, or if other people who ate the same food are also sick, food poisoning is the likely explanation. Most cases resolve on their own within a few days, but bloody diarrhea, a fever above 101.5°F, or an inability to keep fluids down for more than 24 hours warrants medical evaluation.

Pain Medications and NSAIDs

Over-the-counter painkillers like ibuprofen and aspirin are a surprisingly common cause of stomach pain and nausea that people overlook. These drugs damage the stomach lining through direct contact. They strip away the protective coating that shields your stomach wall from its own acid, reduce blood flow to the tissue, and weaken cells at the energy level. The result is irritation that can progress to erosions or full ulcers with regular use.

This damage can happen even at standard doses, especially if you take these medications on an empty stomach or use them frequently over weeks or months. About 1 in 5 peptic ulcers used to be blamed on a bacterial infection called H. pylori, but current data shows NSAID use actually accounts for most ulcers. If your stomach pain tends to flare after taking painkillers, switching to a different type of pain relief or taking the medication with food can make a significant difference.

Peptic Ulcers and H. Pylori

A peptic ulcer is an open sore on the lining of your stomach or the upper part of your small intestine. The hallmark symptom is a burning or gnawing pain in the upper abdomen that often gets worse when your stomach is empty and improves temporarily after eating. Nausea is a frequent companion, and some people notice dark or tarry stools if the ulcer bleeds.

H. pylori, a bacterium that burrows into the stomach lining, is responsible for roughly one-fourth of ulcers in the upper small intestine and about one-sixth of stomach ulcers. The rest are primarily caused by NSAID use. H. pylori infection is treatable with a course of antibiotics, and ulcers from either cause generally heal well once the underlying trigger is addressed.

Gallstones and Pancreas Problems

Gallstone pain typically shows up as an ache on the right side of your abdomen, just under the rib cage, and tends to hit after eating, particularly after fatty meals. Nausea is common during these episodes, which can last anywhere from 30 minutes to several hours before easing on their own.

If a gallstone gets stuck and blocks the duct leading to the pancreas, it can trigger pancreatitis. That pain feels different: severe, located on the upper left side or center of the abdomen, sometimes sharp, sometimes like a squeezing sensation. It can radiate to your chest, shoulder, or back. Pancreatitis pain doesn’t come and go the way gallstone attacks do. It’s persistent and often accompanied by vomiting. This is a condition that needs hospital treatment.

Irritable Bowel Syndrome

If your stomach pain and nausea keep returning over months without a clear trigger, irritable bowel syndrome (IBS) is one of the more common explanations. IBS is diagnosed when you’ve had recurring abdominal pain at least one day per week for three months, and that pain is connected to bowel movements, changes in how often you go, or changes in stool consistency. Symptoms must have started at least six months before a diagnosis is made.

IBS doesn’t cause visible damage to the digestive tract, which can be frustrating when tests come back normal. Stress, certain foods, hormonal changes, and disrupted sleep are common triggers. Treatment focuses on identifying your personal triggers, dietary adjustments (many people benefit from reducing fermentable carbohydrates), and managing stress.

Functional Dyspepsia and Gastroparesis

Some people experience chronic nausea and upper stomach pain that doesn’t fit neatly into any of the categories above. Two conditions that account for many of these cases are functional dyspepsia and gastroparesis.

Gastroparesis means the stomach empties food into the small intestine too slowly. It causes nausea, vomiting, bloating, and pain after meals. Functional dyspepsia produces the same symptoms, but stomach emptying tests come back normal. Research from Johns Hopkins has found that the distinction between these two conditions may be less meaningful than previously thought. Patients can flip between normal and abnormal test results depending on the day, and tissue samples from both groups show strikingly similar damage. In practical terms, what matters most is that chronic, unexplained nausea with stomach pain is a real, recognized condition regardless of what a single test shows.

Appendicitis

Appendicitis follows a distinctive pain pattern worth knowing. It typically starts as vague discomfort around your belly button that hovers or comes and goes for several hours. Then nausea and vomiting develop. After that, the nausea eases but the pain migrates to the lower right side of your abdomen, becomes sharper, and keeps getting worse. The area becomes tender to touch.

This is always an emergency. A burst appendix can spill bacteria into your abdominal cavity, leading to a dangerous widespread infection. Surgeons typically remove the appendix within 24 hours of diagnosis because rupture can happen within 36 hours of the first symptoms. If you notice worsening right-sided abdominal pain with nausea and possibly a fever, get to an emergency department.

Warning Signs That Need Urgent Attention

Most stomach pain and nausea resolves on its own or with simple treatment. But certain symptoms signal something more serious is happening:

  • Vomiting blood or bile (bright red, dark brown, or green vomit)
  • Black or tarry stools, which suggest bleeding in the digestive tract
  • Severe, worsening pain that doesn’t improve, especially with a rigid or distended abdomen
  • High fever alongside abdominal pain
  • Fainting or lightheadedness with abdominal symptoms
  • Abdominal pain during pregnancy, which can indicate an ectopic pregnancy

For anyone over 50, new or unusual abdominal pain with back or flank pain deserves prompt evaluation, as it can occasionally point to a problem with the aorta, the body’s main artery. And if you take blood thinners, even mild abdominal pain should be evaluated sooner rather than later, since internal bleeding can develop without obvious external signs.