Most stomach pain is temporary and responds well to simple measures you can start at home: applying heat, sipping fluids, avoiding irritating foods, and resting your digestive system for a few hours. The key is matching your response to the type of pain you’re experiencing, because a dull ache after a heavy meal calls for a very different approach than sharp, sudden pain that wakes you up at night.
Quick Relief You Can Try Right Now
A heating pad or warm compress placed on your abdomen for 15 to 20 minutes relaxes the muscles around your stomach and intestines, which eases cramping. If you don’t have a heating pad, a warm towel or a hot water bottle works fine. You can repeat this every hour or so as needed.
Sip warm water, clear broth, or an electrolyte drink slowly rather than gulping large amounts. If you’re nauseous, small frequent sips are far easier to keep down than a full glass. Avoid ice-cold drinks, which can tighten up an already irritated stomach.
Lie down in a comfortable position. Many people find that lying on their left side or curling slightly into a fetal position takes pressure off the abdomen and helps with gas pain. Try to avoid lying completely flat on your back if you’re also dealing with heartburn or acid reflux, since that lets stomach acid travel upward more easily.
What to Eat (and What to Avoid)
You’ve probably heard of the BRAT diet: bananas, rice, applesauce, and toast. It’s fine for a day or two when your stomach is truly upset, but there’s no clinical evidence that it works better than a broader bland diet. Harvard Health recommends expanding beyond those four foods to include brothy soups, oatmeal, boiled potatoes, crackers, and unsweetened dry cereal, all of which are gentle on digestion.
Once the worst has passed, add back more nutritious options like cooked carrots, sweet potatoes without skin, avocado, skinless chicken or turkey, fish, and eggs. These are still easy to digest but give your body the protein and nutrients it needs to recover, rather than leaving you running on empty.
While your stomach is bothering you, steer clear of these common triggers:
- Spicy foods, fried foods, and anything high in fat
- Coffee, tea, and other caffeinated drinks
- Citrus fruits and tomatoes
- Carbonated drinks and alcohol
- Chocolate
- Pain relievers like ibuprofen and aspirin, which irritate the stomach lining directly
If you notice that certain vegetables like broccoli, cauliflower, cabbage, Brussels sprouts, beans, or onions consistently give you trouble, you may be sensitive to a group of carbohydrates that ferment in the gut and produce gas. Cutting back on these foods often makes a noticeable difference for people with recurring bloating and cramping.
Over-the-Counter Options
The right product depends on what’s causing your discomfort. Antacids neutralize stomach acid and work quickly for heartburn or that burning feeling in your upper abdomen. Products containing simethicone break up gas bubbles and help with bloating. Bismuth subsalicylate (the active ingredient in Pepto-Bismol) can calm nausea, mild diarrhea, and general upset.
Peppermint oil capsules are approved for relieving abdominal cramps, minor spasms, and flatulence, particularly in people with irritable bowel syndrome. They work by relaxing the smooth muscle in your digestive tract. If your pain is specifically crampy or spasm-like, peppermint oil is worth trying.
One important note: avoid ibuprofen, aspirin, and similar anti-inflammatory painkillers for stomach pain. They can worsen gastritis, irritate ulcers, and make things significantly worse. If you need a pain reliever, acetaminophen (Tylenol) is gentler on the stomach.
Where It Hurts Matters
The location of your pain offers real clues about what’s going on. Your abdomen contains many organs, and different areas point toward different causes.
Pain in the upper right side, near or below your ribs, is the classic location for gallbladder problems, including gallstones. This pain often flares after fatty meals. Upper left pain is more commonly linked to the stomach itself (gastritis, ulcers) or the pancreas. Pain right in the center of your upper abdomen is often acid reflux or indigestion.
Lower right pain that starts near your belly button and migrates downward is the textbook pattern for appendicitis, especially if it gets steadily worse over several hours. Lower left pain in adults is frequently related to diverticulitis, a condition where small pouches in the colon become inflamed. General lower abdominal discomfort can stem from bladder issues, inflammatory bowel conditions, or menstrual cramps.
Pain that’s hard to pinpoint or that moves around is more likely related to gas, a stomach virus, or food-related irritation. These causes are the most common and the most likely to resolve on their own.
When Stomach Pain Needs Medical Attention
Most stomach aches pass within a few hours. But certain patterns signal something that shouldn’t wait. Seek immediate care if you experience any of the following:
- Sudden, severe pain that hits all at once, especially if you feel generally unwell
- Pain that wakes you from sleep
- Bloody stool or vomiting blood
- Fever combined with abdominal pain
- A rapid heart rate, fast breathing, or feeling faint
- A rigid, tender abdomen that hurts more when you press and release
If your pain doesn’t require emergency care but lingers, a good rule of thumb is to get checked if it worsens, if you develop new vomiting or fever, or if it persists beyond 8 to 12 hours without improving.
Recurring Pain That Keeps Coming Back
Stomach pain that comes and goes over weeks or months is a different situation from a single bad episode. Medically, abdominal pain is considered chronic once it has lasted at least six months, whether it’s constant or intermittent. At that point, the goal shifts from riding it out to identifying a cause.
Pay attention to patterns. Does the pain come after eating certain foods? Does stress make it worse? Is it always in the same spot? Tracking these details, even informally, gives your doctor far more to work with than “my stomach hurts sometimes.” Warning signs that a chronic pattern has shifted into something more urgent include unexplained weight loss, loss of appetite, difficulty swallowing, jaundice (yellowing of your skin or eyes), or swelling in your abdomen or legs. Any of these alongside ongoing pain warrants prompt evaluation.

