What you should take for stomach pain depends on what’s causing it. A burning sensation after eating calls for something very different than cramping with bloating or pain that comes with diarrhea. Most stomach pain responds well to over-the-counter options, but picking the right one makes the difference between fast relief and wasting your money.
Burning or Acidic Pain
If your pain feels like a burning sensation in your upper stomach or chest, especially after meals, the problem is almost certainly excess acid. You have three tiers of relief to choose from, and they work in different ways.
Antacids (like Tums or Maalox) are the fastest option. They neutralize acid that’s already in your stomach, so relief can come within minutes. The tradeoff is that they wear off quickly, typically within an hour or two. They’re best for occasional, mild flare-ups. One important note: antacids can interfere with the absorption of several common medications, including certain antibiotics, anti-inflammatory drugs, and antifungal medications. If you take other medications regularly, space them at least two hours apart from an antacid dose.
H2 blockers (like famotidine, sold as Pepcid) take longer to kick in, usually 30 to 60 minutes, but they last significantly longer because they reduce the amount of acid your stomach produces in the first place. These work well for predictable pain, like heartburn that shows up every night.
Proton pump inhibitors, or PPIs (like omeprazole, sold as Prilosec), are the strongest option. They shut down acid production more completely by deactivating the pumps in your stomach lining that release acid. PPIs don’t provide instant relief. They build up over several days and are designed for persistent problems like frequent heartburn or ulcers, not one-off episodes. Timing matters with PPIs: take them 20 to 30 minutes before breakfast for the best results, since they work most effectively when your stomach is gearing up to produce acid for a meal. Morning dosing outperforms evening dosing.
If you find yourself reaching for PPIs for more than two weeks, it’s worth knowing that long-term use (two years or more) has been linked to reduced absorption of vitamin B12, magnesium, calcium, and iron. Some studies also show a modestly increased risk of bone fractures, with a relative risk around 1.28. These risks don’t mean PPIs are dangerous for short courses, but they’re not meant to be taken indefinitely without a reason.
Gas and Bloating Pain
Pain from trapped gas often feels like pressure or sharp, shifting pains that move around your abdomen. Simethicone (found in Gas-X and Mylanta Gas) is the standard over-the-counter fix. It works as a surfactant, lowering the surface tension of gas bubbles in your digestive tract so they merge together and pass more easily as burping or flatulence. It doesn’t stop gas from forming, but it helps your body clear it faster. Adults can take 40 to 125 mg up to four times daily after meals, with a maximum of 500 mg per day. Simethicone isn’t absorbed into your bloodstream, which makes it one of the safest OTC options available.
Cramping and Spasms
Cramping pain, the kind that comes in waves and makes you want to curl up, usually involves the muscles of your intestinal wall contracting too forcefully. In the U.S., enteric-coated peppermint oil capsules are the only over-the-counter antispasmodic available. They relax the smooth muscle in your gut directly, and the clinical evidence behind them is solid. In trials on people with irritable bowel syndrome, 75% of those taking peppermint oil saw their symptom scores drop by more than half within four weeks, compared to 38% on placebo. Other trials found that peppermint oil significantly reduced the duration, frequency, and severity of abdominal pain.
The enteric coating matters. It prevents the capsule from dissolving in your stomach (which can cause heartburn) and delivers the oil to your intestines where it’s needed. Chamomile tea is a milder alternative that may help calm intestinal or menstrual cramps, though its effects are less pronounced.
Diarrhea With Stomach Pain
When stomach pain comes alongside loose or frequent stools, treating the diarrhea often resolves the pain. Two main OTC options exist, and they’re not interchangeable.
Loperamide (Imodium) slows down intestinal contractions, giving your gut more time to absorb water. In a head-to-head comparison with bismuth subsalicylate (Pepto-Bismol), loperamide provided faster, more complete control of acute diarrhea. Subjects rated their overall relief significantly higher with loperamide after 24 hours. It’s the better pick for non-infectious diarrhea, like the kind caused by stress, dietary changes, or mild food intolerance.
Bismuth subsalicylate (Pepto-Bismol) works differently. It has mild anti-inflammatory and antimicrobial properties, which makes it a reasonable choice when you suspect a mild stomach bug, especially the kind you might pick up while traveling. It also helps with nausea. One caution: bismuth subsalicylate contains a compound related to aspirin and carries a risk of Reye’s syndrome in children and teenagers, so it should not be given to anyone under 18, particularly during or after a viral illness.
Nausea-Related Stomach Pain
Ginger has a long reputation as a nausea remedy, and there’s some physiological basis for it. It appears to speed up gastric emptying, meaning food moves out of your stomach faster. One small study found that the stomach cleared its contents in about 2 minutes with ginger versus 16 minutes with placebo. That said, clinical trials testing ginger specifically for abdominal pain and discomfort have been disappointing. In one IBS trial, ginger actually performed worse than placebo. If nausea is your main issue, ginger tea or ginger chews are worth trying. If pain is the primary complaint, you’ll likely get more from one of the targeted options above.
Choosing the Right Option
The fastest way to pick the right remedy is to pay attention to what your pain feels like:
- Burning, especially after eating or when lying down: antacid for quick relief, H2 blocker or PPI for recurring episodes
- Pressure or shifting sharp pains with bloating: simethicone
- Wave-like cramping: peppermint oil capsules
- Pain with frequent loose stools: loperamide for non-infectious causes, bismuth subsalicylate if you suspect a mild bug
- General queasiness with mild discomfort: ginger or bismuth subsalicylate
If your symptoms overlap, combination products exist. Pepto-Bismol, for example, addresses nausea, mild pain, and diarrhea simultaneously, which is why it remains a medicine cabinet staple despite being outperformed by more targeted options in each individual category.
Pain That Needs More Than OTC Relief
Most stomach pain is temporary and harmless, but certain patterns signal something that needs professional evaluation. Pain that gets worse when you move, get bumped, or hit a pothole in the car suggests irritation of the abdominal lining. Fever alongside abdominal pain points toward infection or inflammation. Blood in your stool or vomit, dark tarry stools, yellowing of your skin or eyes, or pain concentrated in your lower right abdomen all warrant prompt medical attention. Sudden, severe pain that comes on within minutes, especially with vomiting, is the kind of situation that belongs in an emergency room rather than the pharmacy aisle.

