What Is the Best Over-the-Counter Medicine for Stomach Pain?

There is no single best over-the-counter medicine for stomach pain because “stomach pain” is not a single condition. The right OTC choice depends almost entirely on what is causing the pain: acid creeping up from the stomach, cramping in the intestines, bloating from a food you cannot digest well, or constipation that has been building for days. Picking the wrong category of drug can leave you no better off, and in some cases actually make things worse. The real skill is matching the medicine to the symptom.

When the Problem Is Acid

If your pain is a burning sensation in the upper abdomen or chest, especially after eating or when lying down, the culprit is almost always excess stomach acid irritating the lining of the esophagus or stomach. Three tiers of OTC medicines target acid, and they work at different speeds and durations.

Antacids like calcium carbonate (Tums) and aluminum-magnesium hydroxide (Maalox, Mylanta) are the fastest option. They chemically neutralize acid that is already sitting in your stomach, so relief can start within minutes. In a head-to-head comparison, an aluminum/magnesium hydroxide formulation worked faster than calcium carbonate in most subjects, and its effect in the esophagus lasted about 82 minutes compared with 60 minutes for calcium carbonate.1PubMed. Effects of Aluminum/Magnesium Hydroxide and Calcium Carbonate on Esophageal and Gastric pH in Subjects with Heartburn That makes antacids ideal for occasional, predictable heartburn: you take one after a heavy meal, it works quickly, and it wears off in an hour or two.

H2 blockers like famotidine (Pepcid) take longer to kick in, typically 30 to 60 minutes, but they suppress acid production for several hours. If you know a trigger meal is coming, taking famotidine beforehand can head off the burn. Many people keep these on hand for nights when heartburn disrupts sleep, since the longer duration covers more of the overnight hours.

Proton pump inhibitors (PPIs) like omeprazole (Prilosec OTC) are the strongest acid suppressors available without a prescription. They do not provide instant relief; the full effect builds over a few days of daily use. They are designed for people with frequent heartburn, meaning two or more episodes per week. Research on OTC omeprazole found that consumers generally selected the product appropriately and followed the recommended 14-day course, seeking a doctor if symptoms persisted beyond that window.2PubMed. Self-selection and use patterns of over-the-counter omeprazole for frequent heartburn The key limitation is that PPIs are not meant for indefinite self-treatment. If you find yourself reaching for them month after month, that is your signal to see a gastroenterologist.

Cramping and Intestinal Spasms

Stomach pain that comes in waves, feels like squeezing, and is concentrated in the lower abdomen often has nothing to do with acid. It is typically caused by spasms in the intestinal muscles, the kind of pain people with irritable bowel syndrome know well but that can hit anyone after a bad meal or during a stressful week.

In many countries outside the United States, hyoscine butylbromide (sold as Buscopan) is the go-to OTC antispasmodic. A real-world comparison of three common self-treatments for abdominal cramps found that hyoscine butylbromide, hyoscine combined with acetaminophen, and peppermint oil capsules all reduced symptoms and their interference with daily activities by roughly half, with no clear winner among them.3PubMed Central. Self-Medication for the Treatment of Abdominal Cramps and Pain-A Real-Life Comparison of Three Frequently Used Preparations That result is worth noting: enteric-coated peppermint oil capsules performed comparably to a pharmaceutical antispasmodic. If you prefer something closer to a natural product, peppermint oil capsules are a reasonable option for cramp-type pain.

In the US, hyoscine butylbromide is not available OTC, so simethicone (Gas-X) and peppermint oil are the main non-prescription choices for cramping and bloating. Simethicone works by breaking up gas bubbles rather than relaxing muscle, so it helps most when the pain is pressure-related rather than true spasm. For genuine cramping, peppermint oil capsules are the stronger bet among US OTC options.

Nausea, Diarrhea, and General Upset

When your stomach pain comes bundled with nausea, loose stools, or the vague misery of food that disagreed with you, bismuth subsalicylate (Pepto-Bismol) is the classic choice. It works through several mechanisms at once. Lab research has shown that bismuth subsalicylate protects stomach lining cells against chemical damage in a dose-dependent way, reducing oxidative stress and DNA damage caused by irritants.4PubMed. Mechanism of gastroprotection by bismuth subsalicylate against chemically induced oxidative stress in cultured human gastric mucosal cells In practical terms, it coats and calms an irritated stomach while also having mild antibacterial and anti-diarrheal effects.

There are a few cautions. Bismuth subsalicylate turns your tongue and stool black, which is harmless but alarming if you are not expecting it. It contains a salicylate (chemically related to aspirin), so people who are allergic to aspirin, taking blood thinners, or giving it to children recovering from a viral illness should avoid it. And like any anti-diarrheal, it is not the right choice if your symptoms suggest food poisoning that your body is trying to clear quickly; in that case, staying hydrated is more important than stopping the diarrhea.

Constipation That Hurts

A surprising amount of abdominal pain, especially dull, persistent discomfort in the lower abdomen with a sense of fullness, turns out to be constipation. The pain often resolves once the backup clears, which means the right “pain medicine” is actually a laxative.

Polyethylene glycol (MiraLAX) is the most studied OTC osmotic laxative. A meta-analysis found that it increased bowel movements by about two extra stools per week compared with placebo, and outperformed lactulose (another osmotic laxative) by about one additional stool per week.5Wiley Online Library. Systematic review and meta analysis: polyethylene glycol in adults with non-organic constipation It works by drawing water into the intestine to soften stool, and because it is not absorbed into the bloodstream, side effects are minimal. It takes a day or two to work, so it is not a quick fix for tonight’s pain, but for recurring constipation-related discomfort it is one of the most effective OTC tools available.

Stimulant laxatives like bisacodyl (Dulcolax) and senna work faster but can cause more cramping. They are fine for occasional use but not recommended as a daily habit. Fiber supplements like psyllium (Metamucil) are the gentlest long-term approach, though they can temporarily increase bloating before things improve.

Why Ibuprofen and Aspirin Can Make Stomach Pain Worse

When people are in pain, the instinct is to reach for a painkiller. For stomach pain, this instinct can backfire badly if the painkiller is a nonsteroidal anti-inflammatory drug like ibuprofen (Advil) or aspirin. NSAIDs damage the stomach lining through multiple pathways: they irritate the surface directly, suppress the prostaglandins that normally protect the mucosa, reduce blood flow to the stomach lining, and interfere with the repair of superficial injuries.6Best Practice & Research Clinical Gastroenterology. How do NSAIDs cause ulcer disease? Prostaglandins are central to nearly every layer of the stomach’s self-defense, and blocking their production with an NSAID leaves the lining vulnerable.7PubMed. Prostaglandins, NSAIDs, and gastric mucosal protection: why doesn’t the stomach digest itself?

If you have abdominal pain and also need a pain reliever for something else, like a headache or sore muscles, acetaminophen (Tylenol) is the safer stomach-friendly alternative. It has long been considered virtually free of the ulcer-causing effects seen with NSAIDs.8PubMed. Gastrointestinal safety of paracetamol: is there any cause for concern? It will not treat the underlying cause of your stomach pain, but at least it will not make it worse. The caveat with acetaminophen is liver safety: stick to the recommended dose, and avoid it if you drink alcohol heavily.

Enzyme Supplements for Food-Triggered Pain

Some stomach pain follows a predictable pattern: it strikes after dairy, after beans, or after specific foods every single time. If that describes you, the problem may be an enzyme deficiency rather than a disease, and the fix is surprisingly targeted.

For lactose intolerance, OTC lactase enzyme supplements (Lactaid) taken just before eating dairy can reduce the amount of undigested lactose reaching the colon. A study measuring hydrogen breath excretion, the standard marker of lactose malabsorption, found that oral lactase significantly reduced hydrogen levels in some patients, though the response varied considerably from person to person. About a fifth of participants saw their breath test normalize completely, while a larger group showed partial improvement or no change.9PubMed Central. Effects of exogenous lactase administration on hydrogen breath excretion and intestinal symptoms in patients presenting lactose malabsorption and intolerance The practical takeaway: lactase supplements help many people, but they are not a guarantee. You may still need to limit portion sizes of dairy even with the pill.

For gas and bloating from beans, lentils, and certain vegetables, alpha-galactosidase (Beano) breaks down the complex sugars that gut bacteria would otherwise ferment into gas. Research showed that a sufficient dose significantly reduced both gas production and the severity of flatulence-related symptoms after a meal rich in fermentable carbohydrates.10PubMed. The effect of oral alpha-galactosidase on intestinal gas production and gas-related symptoms The timing matters: you take the enzyme with the first bite of the offending food, not after symptoms have already started.

Ginger for Nausea and Sluggish Digestion

Ginger has a longer track record in traditional medicine than almost any other stomach remedy, and there is lab evidence to back up at least part of its reputation. Animal studies have shown that ginger extracts can reverse drug-induced delays in gastric emptying, the rate at which food moves out of the stomach and into the intestines.11PubMed. Reversal of pyrogallol-induced delay in gastric emptying in rats by ginger (Zingiber officinale) In one study, ginger juice reversed delayed stomach emptying as effectively as ondansetron, a prescription anti-nausea drug.12PubMed. Reversal of cisplatin-induced delay in gastric emptying in rats by ginger (Zingiber officinale)

The human evidence for ginger is strongest for nausea, particularly pregnancy-related and post-surgical nausea, and weaker for abdominal pain specifically. Still, if your stomach pain is accompanied by that heavy, food-sitting-like-a-brick feeling, ginger tea or standardized ginger capsules are a low-risk option worth trying. The main side effect is mild heartburn in some people, which is ironic but not dangerous.

Probiotics and Gut Pain

Probiotics occupy an awkward middle ground in stomach pain treatment: there is enough evidence to keep researchers interested but not enough to make firm recommendations about specific strains and doses. A Cochrane systematic review of probiotics for functional abdominal pain in children found that about half of the children receiving probiotics reported treatment success, compared with a third on placebo. The evidence was rated low-certainty, and the researchers could not draw meaningful conclusions about whether probiotics reduced pain severity or frequency because the results varied too widely across studies.13PubMed Central. Probiotics for management of functional abdominal pain disorders in children

In adults with IBS, a narrative review found that supplementing with Bifidobacterium and lactic acid bacteria significantly reduced abdominal pain in several studies, with improvements appearing in as few as four weeks.14Topics in Clinical Nutrition. A Narrative Review of the Effectiveness of Oral Bifidobacterium or Lactic Acid Probiotic Supplementation on IBS Symptom Relief And animal research on Bifidobacterium infantis 35624 showed that it significantly reduced visceral hypersensitivity, meaning the heightened pain signaling from the gut that is a hallmark of IBS.15PubMed. Effects of Bifidobacterium infantis 35624 on post-inflammatory visceral hypersensitivity in the rat

The honest assessment: probiotics are not a reliable standalone treatment for stomach pain in the way that an antacid reliably treats heartburn. But for people with recurring functional gut pain, especially IBS-type symptoms, trying a well-studied strain like Bifidobacterium infantis for a month is a reasonable experiment. If it does not help by then, it probably will not.

Stomach Pain During Pregnancy

Pregnancy limits your OTC options for almost everything, but stomach pain is one area where the restrictions are less severe than people assume. A review in Canadian Family Physician concluded that antacids, H2 blockers, and proton pump inhibitors can all be used safely during pregnancy, with large studies showing no evidence of harm to the fetus.16PubMed Central. Treatment of heartburn and acid reflux associated with nausea and vomiting during pregnancy Calcium carbonate antacids (Tums) are typically the first recommendation because they also provide extra calcium, and famotidine is a common step-up option if antacids alone are not enough.

Bismuth subsalicylate is the major exception: it is not recommended during pregnancy, particularly in the third trimester, because of the salicylate component. NSAIDs are also best avoided during pregnancy, especially after 20 weeks. If you are pregnant and your stomach pain is not clearly heartburn or acid-related, talk to your provider before self-treating.

The Rebound Problem With PPIs

PPIs are so effective at shutting down acid production that your body compensates by ramping up the hormonal signals that stimulate acid. When you stop the drug, that compensatory machinery does not switch off immediately. The result is rebound acid hypersecretion: a temporary surge of acid production that can make symptoms worse than they were before you started the PPI. Studies in healthy volunteers found that this rebound caused new gastrointestinal symptoms in roughly 40 to 50 percent of people after stopping PPI therapy, compared with those who had been taking a placebo.17PubMed Central. Rebound Acid Hypersecretion after Withdrawal of Long-Term Proton Pump Inhibitor (PPI) Treatment-Are PPIs Addictive?

The good news is that rebound appears to be less of an issue with short-term or on-demand use. In patients with mild reflux disease who took PPIs as needed, the hormonal markers of acid overproduction normalized within about two weeks of stopping, and overall symptom severity did not worsen, though about a third of patients did report a temporary increase in symptoms.18PubMed. Clinical and pathophysiological consequences of on-demand treatment with PPI in endoscopy-negative reflux disease. Is rebound hypersecretion of acid a problem? The practical lesson: if you use OTC omeprazole for a 14-day course as directed, rebound is unlikely to trap you. If you have been taking it daily for months, tapering gradually rather than stopping abruptly is the smarter strategy.

The Placebo Effect Is Unusually Strong in Gut Pain

One reason so many different stomach remedies “work” is that the gut is exceptionally responsive to placebo. A meta-analysis of pharmacological trials in IBS found that about 27 percent of patients on placebo reported global improvement, and over a third reported less abdominal pain, even though they received no active drug.19PubMed. The placebo response rate in pharmacological trials in patients with irritable bowel syndrome: a systematic review and meta-analysis Another analysis put the placebo response rate as high as 37.5 percent, which is comparable to placebo response rates seen in post-surgical pain studies decades ago.20Journal of Neurogastroenterology and Motility. Placebo Effect in Clinical Trial Design for Irritable Bowel Syndrome

This does not mean your pain is imaginary. The gut-brain axis is a real bidirectional communication system, and expectation, reassurance, and the simple act of doing something about your symptoms genuinely alter pain signaling in the intestines. It does mean you should be skeptical of any product that claims dramatic success for vague abdominal pain, especially if the testimonials sound too good. A substantial fraction of that improvement would happen with a sugar pill. When evaluating whether an OTC remedy is actually working for you, the honest test is whether it consistently outperforms doing nothing over multiple episodes, not whether you felt better once after taking it.

When OTC Is Not Enough

Self-treatment with OTC medicines is reasonable for occasional, mild to moderate stomach pain that fits a recognizable pattern. It stops being reasonable under specific circumstances that people tend to underestimate. Pain that wakes you from sleep, unintentional weight loss, blood in your stool or vomit, difficulty swallowing, and pain that steadily worsens over days rather than fluctuating all warrant a doctor’s visit rather than another trip to the pharmacy. The same applies if you have been rotating through multiple OTC products for the same recurring symptom without a clear diagnosis. At that point, the problem is not finding the right over-the-counter medicine. The problem is that you do not yet know what you are treating.

Age matters, too. New-onset stomach pain in someone over 50 who has never had similar symptoms deserves more caution than the same pain in a 25-year-old with a long history of stress-related flare-ups. And anyone taking prescription medications should check for interactions before adding OTC stomach drugs. PPIs, for instance, can reduce the absorption of certain medications including some antifungals and HIV drugs. Antacids can interfere with antibiotic absorption if taken at the same time. A pharmacist can flag these issues in about two minutes, and that quick conversation is worth more than reading the back of the box.