The best over-the-counter medicine for stomach pain depends on what’s causing it. Heartburn, gas, cramping, and diarrhea each respond to different active ingredients, so picking the right one starts with identifying your main symptom. Here’s a breakdown of what works for what.
Heartburn and Acid-Related Pain
If your stomach pain feels like burning in your upper abdomen or chest, especially after eating, you’re likely dealing with excess stomach acid. Three types of OTC medications target this problem, and they differ mainly in how fast they work and how long they last.
Antacids (calcium carbonate, magnesium hydroxide) neutralize acid that’s already in your stomach. They work within minutes, making them the fastest option for occasional heartburn. The tradeoff is that relief fades relatively quickly. If you use calcium carbonate antacids, keep your total intake under 8 to 10 grams per day for short-term use. That upper limit matters because 1,000 mg of calcium carbonate delivers about 400 mg of elemental calcium, and exceeding safe calcium levels can cause its own problems.
H2 blockers (famotidine) reduce the amount of acid your stomach produces. They take longer to kick in than antacids but provide longer-lasting relief. One downside: your body can develop tolerance to H2 blockers over time, which reduces their effectiveness with regular use.
Proton pump inhibitors (omeprazole, esomeprazole) are the strongest OTC acid reducers. They block the final step of acid production entirely, creating more complete and longer-lasting suppression than H2 blockers. In studies of acid-related damage to the esophagus, PPIs healed tissue at roughly twice the rate of H2 blockers at every time point measured. The standard OTC course is 20 mg daily for up to four weeks, and you should use the lowest effective dose for the shortest time possible. PPIs aren’t designed for immediate relief of a single episode. They’re better suited for frequent heartburn that keeps coming back.
Gas and Bloating
Simethicone is the go-to OTC ingredient for gas pain. 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 belching or flatulence. It doesn’t stop your body from producing gas. It just helps the gas that’s already there move out instead of sitting in pockets that cause pressure and pain.
The adult dose is 40 to 125 mg up to four times daily, taken after meals and at bedtime, with a maximum of 500 mg per day. Simethicone isn’t absorbed into your bloodstream, which makes it one of the gentlest OTC stomach options available.
Nausea, Diarrhea, and General Upset
Bismuth subsalicylate is uniquely versatile. It’s FDA-approved for diarrhea, heartburn, indigestion, nausea, and general stomach upset, covering more symptom categories than most single OTC ingredients.
When you swallow it, it breaks down into two components. The bismuth portion stays in your gut and has antibacterial properties, preventing bacteria from attaching to your stomach lining. The salicylate portion gets absorbed into your bloodstream and reduces inflammation and the chemical signals that drive intestinal cramping and fluid loss. Together, these actions slow diarrhea by calming gut motility, reducing inflammation, and helping your intestines reabsorb fluid.
Two side effects catch people off guard: it can temporarily turn your tongue and stool dark or black. This is harmless and goes away after you stop taking it. The more important thing to know is the salicylate component. Because it’s chemically related to aspirin, bismuth subsalicylate raises the same interaction concerns. If you take blood thinners, antiplatelet drugs, or other NSAIDs, combining them with bismuth subsalicylate can increase your bleeding risk. People on methotrexate or gout medications like probenecid should also be cautious, as salicylates can interfere with how those drugs work.
Abdominal Cramping
Cramping pain comes from the smooth muscle in your intestinal walls contracting too forcefully. Antispasmodic medications counter this by relaxing that muscle. In the United States, the OTC antispasmodic options are more limited than in other countries. Peppermint oil capsules are one accessible choice. They work by blocking calcium channels in gut smooth muscle, which prevents the muscle from contracting as intensely. This is the same basic principle behind prescription antispasmodics, just achieved through a different pathway.
If your cramping accompanies diarrhea specifically, loperamide (the active ingredient in many anti-diarrheal products) slows gut motility and can reduce cramping that way. It won’t help with cramps that aren’t related to diarrhea.
When Pain Relievers Are the Problem
If your stomach pain started after taking ibuprofen, naproxen, or aspirin, the medication itself may be the cause. NSAIDs are among the most commonly used drugs worldwide, and they’re well known for damaging the stomach lining. Effects range from mild discomfort to erosions and ulcers.
Reaching for an antacid might seem logical, but antacids are not effective protectors against NSAID-related stomach damage. One study found that people taking antacids alongside naproxen actually developed more stomach erosions than those taking a placebo. If you need to keep taking an NSAID and want to protect your stomach, a proton pump inhibitor is the most effective OTC option. Omeprazole at 20 mg daily has been shown to prevent NSAID-related ulcers more effectively than H2 blockers. Acetaminophen is an alternative pain reliever that works through a different mechanism and doesn’t carry the same risk of stomach damage.
Interactions With Other Medications
All acid-reducing medications, whether antacids, H2 blockers, or PPIs, change the pH of your stomach. This can alter how well your body absorbs certain other drugs. Antifungal medications, some antibiotics, thyroid medications like levothyroxine, and certain cancer drugs all depend on normal stomach acidity to be absorbed properly. If you take any of these, spacing them several hours apart from your antacid or acid reducer can often minimize the issue, but the specific timing depends on the medication.
Antacids have an additional wrinkle: the calcium or magnesium they contain can physically bind to certain drugs in your stomach, including tetracycline antibiotics and fluoroquinolone antibiotics, blocking their absorption entirely. Again, separating doses by a few hours usually solves this.
Signs Your Pain Needs More Than OTC Treatment
OTC stomach medications are designed for mild, short-lived, or intermittent symptoms. Certain patterns signal something more serious: vomiting that won’t stop or prevents you from keeping liquids down, severe pain that’s worse than anything you’ve experienced before, pain with fever and a rapid pulse (which can indicate pancreatitis), or constipation paired with bloating and intense pain, especially if you’ve had prior abdominal surgery. Loss of appetite combined with nausea, fever, and abdominal swelling can point to appendicitis. Any of these warrant medical evaluation rather than another dose of OTC medication.

