For most everyday stomach pain, an over-the-counter remedy can help within 30 minutes to an hour. The right choice depends on what’s causing the discomfort: acid, gas, cramping, or nausea each respond to different products. Here’s a practical breakdown of what works for what.
Acid-Related Pain: Heartburn, Indigestion, and Reflux
If your stomach pain feels like burning in your upper abdomen or chest, or it gets worse after eating, excess acid is the likely culprit. Three classes of medication target this, and they differ mainly in how fast they work and how long the relief lasts.
Antacids (Tums, Rolaids, Maalox) neutralize acid that’s already in your stomach. They work the fastest, often within minutes, but the relief is short-lived. They’re best for occasional, mild heartburn after a big meal.
H2 blockers (famotidine, sold as Pepcid AC and Zantac 360°) reduce the amount of acid your stomach produces. They take longer to kick in than antacids but provide relief for several hours. H2 blockers are a good fit for occasional heartburn, nighttime symptoms, or mild reflux that antacids aren’t handling well enough.
Proton pump inhibitors, or PPIs (omeprazole, sold as Prilosec; esomeprazole, sold as Nexium), are the strongest option. They shut down acid production more completely than H2 blockers and are meant for more persistent problems like frequent heartburn or erosion of the esophagus. For best results, take them 30 to 60 minutes before a meal. The FDA recommends limiting OTC use to 4 to 8 weeks. If you still need one after that, it’s worth talking to a doctor about what’s going on.
Nausea, Diarrhea, and General Upset
When your stomach just feels “off,” with queasiness, loose stools, or that vague churning discomfort, bismuth subsalicylate (Pepto-Bismol) is the classic choice. It treats diarrhea, heartburn, indigestion, and nausea in adults and teenagers. The standard dose is two tablets (or two tablespoons of the liquid) every 30 minutes to an hour as needed, up to 16 tablets or 16 tablespoons of regular-strength liquid in 24 hours.
One important note for parents: bismuth subsalicylate contains a compound related to aspirin. Products containing aspirin or aspirin-like ingredients should not be given to children under 16 who have a fever or viral symptoms, because of the risk of Reye syndrome, a rare but serious illness affecting the brain and liver.
Gas and Bloating
If the pain feels more like pressure, fullness, or sharp twinges that move around your abdomen, trapped gas is a common cause. Simethicone (sold as Gas-X and Mylicon) works by merging small gas bubbles in your gut into larger ones, making it easier for trapped air to pass through naturally. It typically starts working within 30 minutes and has virtually no side effects since it isn’t absorbed into your bloodstream.
Cramping and Spasms
Stomach pain that comes in waves, especially if you’ve been diagnosed with irritable bowel syndrome, often involves the muscles of the intestinal wall contracting too forcefully. Peppermint oil capsules are one of the better-studied natural options for this type of pain. A meta-analysis published in the American Journal of Gastroenterology found that people taking peppermint oil were roughly 59% more likely to see meaningful improvement in abdominal pain compared to those taking a placebo. Look for enteric-coated capsules, which dissolve in the intestine rather than the stomach, reducing the chance of heartburn from the peppermint itself.
Ginger is another option, particularly for nausea-dominant stomach discomfort. Clinical studies have used doses around 1,000 mg per day in divided doses. Preliminary findings suggest it’s well tolerated, though the evidence is stronger for nausea than for pain specifically.
What to Avoid When Your Stomach Hurts
It’s tempting to reach for ibuprofen (Advil, Motrin) or aspirin when you’re in pain, but these are among the worst choices for stomach pain specifically. These drugs work by blocking the production of compounds called prostaglandins, which play a double role in your body. They contribute to pain and inflammation elsewhere, but in your stomach, they’re essential for maintaining the protective mucus lining. When you suppress them, you leave the stomach wall exposed to its own acid. This can worsen existing pain and, with regular use, even cause ulcers.
If you need a pain reliever while dealing with stomach issues, acetaminophen (Tylenol) is generally the safer choice because it doesn’t affect the stomach lining the same way.
Signs That Need Urgent Attention
Most stomach pain is temporary and manageable at home, but certain patterns signal something more serious. According to the American College of Emergency Physicians, you should seek emergency care if pain is sudden and severe, or if it doesn’t ease within 30 minutes. Continuous severe pain accompanied by nonstop vomiting may indicate a life-threatening condition.
Specific warning signs include:
- Lower right abdominal pain with nausea, vomiting, loss of appetite, or fever, which may point to appendicitis
- Upper middle abdominal pain that lasts for days, worsens after eating, and comes with a swollen or tender belly, which can indicate pancreatitis
- Severe abdominal pain with vaginal bleeding, which may signal an ectopic pregnancy
Matching the Remedy to the Problem
The most common mistake people make is grabbing whatever’s in the medicine cabinet without thinking about the type of pain. An antacid won’t do much for gas. Simethicone won’t touch heartburn. And ibuprofen can make almost any stomach problem worse. Spend a moment identifying what you’re actually feeling: burning suggests acid, pressure and fullness suggest gas, wave-like cramping suggests spasm, and general queasiness points toward bismuth subsalicylate or ginger.
If you find yourself reaching for the same remedy multiple times a week, that’s a signal the problem has moved beyond “something you can take” and into territory worth investigating. Persistent stomach pain that keeps returning, even if each individual episode is mild, can reflect conditions like ulcers, gallbladder problems, or food intolerances that respond much better to a correct diagnosis than to repeated doses of OTC medication.

