What to Do If Your Stomach Hurts: Causes & Relief

Most stomach pain is caused by something temporary, like gas, indigestion, or eating too fast, and it resolves on its own within a few hours. The first steps are simple: stop eating for a bit, sip water or weak tea, and rest in a comfortable position. But where the pain is, how long it lasts, and what other symptoms come with it can tell you a lot about whether you’re dealing with something minor or something that needs attention.

Quick Relief for Common Stomach Pain

If your pain feels like general cramping, bloating, or a dull ache after eating, start by giving your stomach a break. Stop eating solid food for a couple of hours and take small sips of water or clear broth to stay hydrated. Lying on your left side can help move trapped gas through your digestive tract, and a heating pad on your abdomen relaxes the muscles that may be cramping.

Ginger has the strongest evidence among natural remedies for settling an upset stomach. It can help with nausea, heartburn, and that uncomfortable too-full feeling. Fresh ginger tea, made by steeping sliced ginger root in hot water, is a simple option. Peppermint also shows promise for easing abdominal cramping, though it can worsen heartburn in some people, so skip it if acid reflux is part of your problem.

For gas and bloating specifically, an over-the-counter gas relief product containing simethicone can help. The typical adult dose is 60 to 125 mg taken up to four times a day, with a maximum of 500 mg in 24 hours. If your pain feels more like burning or acid creeping up your chest, a calcium carbonate antacid neutralizes stomach acid quickly. For recurring acid pain, acid-reducing medications are more effective than antacids alone.

What the Location of Your Pain Tells You

Where you feel the pain narrows down the list of possible causes significantly. Your abdomen contains many different organs packed closely together, and each one tends to produce pain in a specific zone.

  • Upper right side, under the ribs: This area houses your gallbladder and liver. Pain here, especially after a fatty meal, often points to gallstones or gallbladder inflammation. Kidney stones on the right side can also radiate to this area.
  • Upper left side: Stomach-related problems like gastritis and ulcers tend to land here. This is also where pancreatitis pain shows up, often as a deep ache that worsens after eating. In some cases, upper left pain can be cardiac in origin, particularly if it comes with chest pressure or shortness of breath.
  • Lower right side: The classic location for appendicitis, though the pain typically starts around the belly button first and migrates. Inflammatory bowel conditions, irritable bowel syndrome, and in women, ovarian problems or ectopic pregnancy can also cause pain here.
  • Lower left side: Diverticulitis is one of the most common causes of lower left pain, especially in adults over 40. Irritable bowel syndrome, constipation, and gynecologic conditions also produce pain in this zone.
  • All over or around the belly button: Generalized pain often comes from gas, a stomach virus, food poisoning, or early-stage conditions that haven’t localized yet.

Common Causes That Resolve on Their Own

The vast majority of stomachaches fall into a handful of categories. Indigestion from eating too much, too quickly, or too late at night is probably the most frequent culprit. Greasy, spicy, or acidic foods are common triggers. So are carbonated drinks and alcohol. If pain reliably shows up after meals and fades within a couple hours, your eating habits are the most likely explanation.

Gas pain can be surprisingly intense, sometimes sharp enough to mimic something more serious. It tends to come in waves, shifts location, and improves after passing gas or having a bowel movement. Constipation causes a different kind of discomfort: a crampy, full feeling in the lower abdomen that builds over days.

Gastritis, or inflammation of the stomach lining, produces a gnawing or burning pain in the upper abdomen. The most common triggers are overuse of anti-inflammatory painkillers like ibuprofen or naproxen, heavy alcohol use, and a bacterial infection called H. pylori. If painkillers or alcohol are the cause, stopping them is the first and most important step. Acid-reducing medication can help the lining heal.

How Appendicitis Pain Progresses

Appendicitis is one of the conditions people worry about most, and for good reason. It follows a fairly recognizable pattern. Pain typically begins as a vague ache around your belly button. It may hover there or come and go for several hours. Then nausea and vomiting develop. After the nausea passes, the pain shifts to the lower right side of your abdomen, becomes sharper and more focused, and continues to get worse. The whole progression can unfold over 12 to 24 hours.

Other symptoms include loss of appetite, low-grade fever, swelling in the abdomen, and difficulty passing gas. If you notice pain that started near your belly button and has migrated to the lower right, especially if it’s getting steadily worse, that pattern warrants urgent evaluation.

What to Eat When Your Stomach Hurts

Once you’re ready to eat again, stick to bland, easy-to-digest foods. Good options include bananas, applesauce, plain white rice, toast made from refined flour, broth-based soups, boiled potatoes, eggs, and crackers. Low-fat yogurt and cooked vegetables are also generally well tolerated. Weak tea and popsicles can help with both hydration and comfort.

Avoid anything likely to irritate your stomach further: fried or greasy foods, raw vegetables, whole grains, nuts and seeds, spicy seasonings, caffeine, alcohol, and high-sugar foods. Gas-producing vegetables like broccoli, cabbage, and cauliflower are best saved for when you’re feeling better. Fatty dairy products, dried fruits, and pickled or fermented foods can also make things worse.

This isn’t a long-term diet. It’s a temporary strategy to let your digestive system recover. Most people can return to normal eating within a day or two once symptoms improve.

When Stomach Pain Keeps Coming Back

Recurring stomach pain that follows a pattern deserves a closer look. Irritable bowel syndrome is one of the most common causes of chronic abdominal pain. It’s formally defined as pain occurring at least one day per week for three months, associated with changes in how often you go to the bathroom or changes in stool consistency. Symptoms need to have been present for at least six months before the diagnosis applies. IBS pain often improves or worsens around bowel movements.

Other recurring patterns to pay attention to: pain that reliably follows meals could signal gastritis, an ulcer, or gallbladder problems. Pain tied to your menstrual cycle may point to endometriosis or ovarian cysts. Pain that worsens with stress is common in functional gut disorders, where the gut-brain connection amplifies normal digestive sensations.

When Stomach Pain Needs Emergency Care

Some types of abdominal pain are not safe to wait out. Head to an emergency room if you experience any of the following:

  • Pain so severe it interrupts your ability to function, like walking, sitting upright, or sleeping
  • Vomiting that won’t stop or an inability to keep any liquids down
  • Pain that feels different from past episodes, noticeably more severe or with new symptoms you haven’t had before
  • Complete inability to have a bowel movement combined with severe pain, which can indicate a bowel obstruction
  • Fever with abdominal pain, especially a rapidly rising fever or one above 101°F
  • Vomiting blood or passing black, tarry stools, which indicate bleeding in the digestive tract
  • Abdominal pain after recent surgery, which raises the risk of complications like adhesions or internal bleeding

Upper abdominal pain combined with rapid pulse, nausea, and fever can signal acute pancreatitis, which often starts mild and escalates quickly. Pain that begins after eating and becomes severe and constant fits this pattern. If you’ve had abdominal surgery in the past, your threshold for seeking care should be lower, since scar tissue can cause bowel obstructions that need prompt treatment.

What Happens at the Doctor’s Office

If your stomach pain leads to a medical visit, expect questions about where it hurts, when it started, what makes it better or worse, and whether you’ve had similar pain before. A physical exam will include pressing on different areas of your abdomen to check for tenderness.

Depending on what the exam suggests, you may need blood work to check for signs of infection, inflammation, or organ-specific problems like pancreatic or liver issues. Urine tests can rule out kidney stones or urinary tract infections. For women of childbearing age, a pregnancy test is standard.

Imaging depends on the suspected cause. Ultrasound is the go-to for upper right abdominal pain and suspected gallbladder problems, and it’s also the preferred option for pregnant patients. CT scans with contrast are more commonly used for lower abdominal pain, generalized pain, or when appendicitis is suspected. These tests are quick, widely available, and highly accurate at identifying the cause of acute abdominal pain.