What Over-the-Counter Medicine Is Good for an Upset Stomach?

Several categories of over-the-counter medicine can help with an upset stomach, but the best choice depends on what kind of discomfort you’re dealing with. Acid-related burning responds to antacids or H2 blockers, nausea and diarrhea respond to bismuth subsalicylate, bloating from gas responds to simethicone, and general nausea from motion or other triggers responds to antihistamine-based medicines. Because “upset stomach” is a vague umbrella covering at least half a dozen distinct problems, picking the right product means figuring out your main symptom first.

Antacids for Acid-Related Discomfort

If your primary complaint is a burning or sour feeling in your upper stomach or chest, antacids are the fastest option on the shelf. Products based on calcium carbonate, magnesium hydroxide, or aluminum hydroxide work by partially neutralizing stomach acid and inhibiting pepsin, the enzyme that breaks down protein in your stomach. They kick in within about one to five minutes, which is faster than any other OTC stomach medicine.1PubMed Central. Empowering Pharmacists in Heartburn Management: Practical Insights for OTC Treatment and Self-Care

The trade-off is that antacids wear off quickly. In a controlled trial comparing calcium carbonate to famotidine (an H2 blocker), the antacid neutralized acid rapidly in the first 30 minutes but lasted only about 60 minutes total.2PubMed. Comparison of the effects of over-the-counter famotidine and calcium carbonate antacid on postprandial gastric acid. A randomized controlled trial That makes antacids ideal for occasional, short-lived heartburn or the sour stomach you get after a big meal. If you find yourself chewing antacid tablets every day, that’s a sign something else is going on and a longer-acting medicine or a doctor’s visit is warranted.

Antacids also come with a few practical quirks. Calcium-based versions can cause constipation with regular use, while magnesium-based versions tend to have the opposite effect. Aluminum-based formulas lean toward constipation as well. Many products combine magnesium and aluminum to balance each other out, which is why you’ll see combination ingredients on the label.

H2 Blockers for Longer-Lasting Relief

Famotidine (sold as Pepcid) is the most widely available OTC H2 blocker. Unlike antacids, which neutralize acid that’s already been secreted, H2 blockers reduce acid production at the source by blocking histamine receptors on the cells lining your stomach. The practical result is a much longer window of relief. In the same head-to-head trial mentioned above, famotidine took about 90 minutes to start working but then kept acid levels low for at least nine hours.3JAMA. Comparison of the Effects of Over-the-counter Famotidine and Calcium Carbonate Antacid on Postprandial Gastric Acid: A Randomized Controlled Trial

This makes H2 blockers a better fit for predictable problems. If you know you get heartburn every night, or you’re about to eat a meal that always disagrees with you, taking famotidine beforehand can prevent symptoms rather than just treating them after they start. Research comparing antacids and low-dose H2 blockers found that antacids were better at fast pain relief, while H2 blockers were better at preventing symptoms that haven’t started yet, like nighttime heartburn.4PubMed. Comparison of the effect of the antacid Rennie versus low-dose H2-receptor antagonists (ranitidine, famotidine) on intragastric acidity

You can combine an antacid with an H2 blocker if you need quick relief now and sustained protection over the next several hours. The two work by different mechanisms and don’t interfere with each other. This is actually a common approach pharmacists suggest for people with recurring heartburn who want the best of both worlds.

Proton Pump Inhibitors

Omeprazole (Prilosec OTC) and esomeprazole (Nexium 24HR) are proton pump inhibitors, often called PPIs. They suppress acid production more powerfully than H2 blockers, but they’re designed for a 14-day course rather than one-off use. If you take one expecting the same immediate relief as an antacid, you’ll be disappointed. PPIs take one to four days to reach their full effect because they work by permanently disabling acid-producing pumps in the stomach lining, and the body needs time to cycle through enough pumps for the effect to be noticeable.

PPIs are the strongest OTC option for frequent heartburn, defined as two or more episodes per week. They’re not meant for the occasional sour stomach after a spicy meal. The packaging typically recommends one 14-day course, and if symptoms return, waiting at least four months before repeating. That recommendation exists partly because long-term PPI use has been linked in observational studies to a range of concerns, including kidney problems, bone fractures, certain infections, and nutrient deficiencies such as magnesium and vitamin B12.5PubMed Central. Adverse Effects Associated with Long-Term Use of Proton Pump Inhibitors Stopping PPIs after extended use can also trigger rebound acid overproduction, where your stomach temporarily makes more acid than it did before you started the drug, potentially trapping you in a cycle of continued use.6PubMed Central. Safety of the long-term use of proton pump inhibitors

None of this means PPIs are dangerous for a single 14-day course. The concerning data comes from people using them daily for months or years, often without medical supervision. But it’s worth knowing that a casual attitude toward long-term use isn’t warranted, and if you find yourself buying PPIs regularly, a conversation with your doctor is overdue.

Bismuth Subsalicylate for Nausea, Diarrhea, and General Upset

Bismuth subsalicylate, the active ingredient in Pepto-Bismol and generic equivalents, is the closest thing to an all-purpose upset stomach medicine. It can help with nausea, diarrhea, heartburn, indigestion, and that hard-to-describe queasiness people just call “upset stomach.” It works through several pathways at once: coating the stomach lining, reducing inflammation, and acting as a mild antimicrobial. When the bacterium Helicobacter pylori is involved, bismuth has been shown to suppress the organism, though it doesn’t eliminate it on its own.7ScienceDirect (Gastroenterology). Bismuth therapy in gastrointestinal diseases

Bismuth subsalicylate is also one of the better-studied OTC options for traveler’s diarrhea, both as treatment and as prevention when taken before potential exposure. For general diarrhea, it’s milder than loperamide and works differently, calming the irritated gut lining rather than slowing intestinal contractions.

A few things to be aware of: bismuth turns your tongue and stool black, which looks alarming but is harmless and temporary. More importantly, the “subsalicylate” part is chemically related to aspirin. If you’re allergic to aspirin, on blood thinners, or taking other salicylate-containing drugs, bismuth subsalicylate isn’t a good choice. It’s also not routinely recommended for children due to concerns about Reye syndrome, a rare but serious condition linked to salicylates in young people with viral infections.8PubMed Central. Bismuth salicylate for diarrhea in children

Simethicone for Gas and Bloating

If your “upset stomach” is really about bloating, pressure, and trapped gas, simethicone (Gas-X, Mylicon) is the targeted option. It doesn’t reduce gas production. Instead, it works as a physical defoaming agent: it breaks up clusters of tiny gas bubbles into larger ones that are easier for your body to pass naturally. The mechanism involves draining liquid from foam films in the gut and rupturing those films so trapped air can escape.9PubMed. Mechanism of antifoaming action of simethicone

Simethicone is extremely well tolerated because it isn’t absorbed into the bloodstream at all. It passes through the gut unchanged and comes out the other end. That makes it one of the safest OTC options, safe enough to be used in infant formulations for colic. The flip side is that its effect is modest. If your bloating is caused by something other than trapped gas, like fluid retention or a motility problem, simethicone won’t help.

For people who get bloating specifically from beans, lentils, broccoli, and similar high-fiber foods, an enzyme supplement containing alpha-galactosidase (Beano) can reduce gas at the source. A double-blind crossover study found that taking this enzyme before a meal significantly reduced the number of gas episodes over the following hours compared to a placebo.10PubMed. Does Beano prevent gas? A double-blind crossover study of oral alpha-galactosidase to treat dietary oligosaccharide intolerance The enzyme breaks down complex sugars before your gut bacteria get the chance to ferment them, which is where the gas comes from in the first place. The catch is that you have to take it with the first bite of the triggering food, not after symptoms appear.

Loperamide for Diarrhea

Loperamide (Imodium) is the go-to OTC drug when diarrhea is the dominant symptom. It slows the muscle contractions of the intestinal wall, which gives your gut more time to absorb water and firms up stool. It’s effective and fast-acting, typically reducing the frequency of loose stools within a couple of hours.

A clinical trial in patients with bacterial dysentery found that adding loperamide to antibiotic treatment cut the median duration of diarrhea roughly in half and reduced the number of diarrheal stools from about six or seven down to two, compared to the antibiotic alone.11Annals of Internal Medicine. Ciprofloxacin and loperamide in the treatment of bacillary dysentery That study looked at loperamide alongside an antibiotic, not on its own, but it illustrates how effectively loperamide controls symptoms.

There are situations where you should not take loperamide. If you have a high fever with bloody diarrhea, slowing your gut down can actually make things worse by keeping a bacterial toxin inside you longer. Loperamide is meant for watery, non-bloody diarrhea from common stomach bugs, food intolerance, or stress. If diarrhea persists beyond two days despite loperamide or if you notice blood in your stool, stop the medicine and see a doctor.

OTC Antihistamines for Nausea and Motion Sickness

If nausea is your main issue, especially nausea related to motion, the most effective OTC medicines are first-generation antihistamines. Dimenhydrinate (Dramamine) and meclizine (Bonine, Dramamine Less Drowsy) are both widely available. They work by blocking histamine receptors in the brain’s vomiting center and, in many cases, also have an anticholinergic effect that dampens the signals from the inner ear that trigger motion sickness.12PubMed Central. Motion sickness: an overview

The main downside is drowsiness. Dimenhydrinate is more sedating than meclizine, which is why meclizine is often marketed as the “less drowsy” option. For motion sickness specifically, these drugs work best when taken 30 to 60 minutes before travel. Once you’re already green and miserable, they help less. Diphenhydramine (Benadryl) also has anti-nausea properties through the same mechanism, but it’s so sedating that it’s a poor choice if you need to be functional.

For nausea that isn’t motion-related, like the queasiness that comes with a stomach virus, OTC options are more limited. Bismuth subsalicylate can take the edge off mild nausea, and some people find relief from ginger supplements or peppermint oil capsules. Controlled studies support peppermint oil for functional digestive complaints including nausea, though the evidence is stronger for conditions like irritable bowel syndrome and functional dyspepsia than for acute viral nausea.13PubMed Central. Review article: The physiologic effects and safety of Peppermint Oil and its efficacy in irritable bowel syndrome and other functional disorders

Drug Interactions You Might Not Expect

One thing people rarely think about when grabbing a stomach medicine off the shelf is how it might interfere with other drugs they’re taking. Antacids are the biggest offenders here. The minerals in antacids, particularly calcium, magnesium, and aluminum, can bind to certain medications in your stomach and prevent them from being absorbed. They can also raise stomach pH enough to change how other drugs dissolve.14PubMed. Clinically significant drug interactions with antacids: an update This matters for antibiotics like tetracycline and ciprofloxacin, thyroid medications, certain antifungal drugs, and many others.

The scope of these interactions is broader than most people realize. A systematic review found that over 120 medications have clinically meaningful interactions with acid-reducing agents, and the mechanisms aren’t limited to pH changes. They also include effects on drug-metabolizing enzymes, transport proteins, and mineral chelation.15PubMed Central. A Systematic Review of Gastric Acid-Reducing Agent-Mediated Drug-Drug Interactions with Orally Administered Medications The simple rule of thumb: if you take prescription medications, space your antacid or acid reducer at least two hours apart from other drugs, and mention your OTC stomach medicine to your pharmacist so they can flag any specific conflicts.

Stomach Medicine During Pregnancy

Heartburn and nausea during pregnancy are extremely common, and the question of what’s safe to take comes up constantly. The good news is that antacids and H2 blockers like famotidine have been studied in pregnant women with no evidence of harm to the fetus.16PubMed Central. Treatment of heartburn and acid reflux associated with nausea and vomiting during pregnancy Antacids are generally considered the first line of defense because they aren’t absorbed into the bloodstream in significant amounts, which means they have minimal exposure to the developing baby.17PubMed. Treating gastro-oesophageal reflux disease during pregnancy and lactation: what are the safest therapy options?

Bismuth subsalicylate, on the other hand, is generally avoided during pregnancy because of the salicylate component. Loperamide is considered low-risk but is usually recommended only when diarrhea is severe enough to risk dehydration. For nausea related to morning sickness, the OTC antihistamine doxylamine (found in Unisom SleepTabs) combined with vitamin B6 is the standard first-step treatment and has extensive safety data in pregnancy. That combination is also available as the prescription drug Diclegis.

Choosing a Medicine for Children

Pediatric dosing of OTC stomach medicines is trickier than simply cutting an adult dose in half. Children differ from adults in how they metabolize drugs, what formulations they can safely swallow, and what side effects they’re vulnerable to.18American Academy of Pediatrics (Pediatrics). Pediatric Drug Formulations: A Review of Challenges and Progress Many adult stomach medicines are used off-label in children because pediatric-specific versions don’t exist for every drug.

A few general guidelines: simethicone is safe for infants (it’s the active ingredient in many colic drops). Antacids can be used in older children at adjusted doses but shouldn’t be given routinely to very young children without a pediatrician’s guidance. Bismuth subsalicylate is typically avoided in anyone under 12 because of the Reye syndrome risk. Loperamide is not recommended for children under 6 in most guidelines, and under 2 it’s potentially dangerous because young children are more susceptible to the drug’s effects on the central nervous system. When in doubt, oral rehydration solution is the safest and most important intervention for a child with a stomach bug, and a call to the pediatrician before reaching for medicine is always a reasonable move.

The Surprisingly Strong Placebo Response in Gut Problems

Here’s something worth knowing if you’ve ever wondered whether your stomach medicine is “really working” or if you’re just feeling better on your own: gut symptoms have one of the highest placebo response rates in all of medicine. Studies on placebo effects in gastrointestinal conditions have found that a substantial proportion of patients improve on sugar pills alone, and this isn’t limited to “imaginary” problems. The placebo response rate appears to be similar whether the underlying condition is functional, like irritable bowel syndrome, or organic, like a duodenal ulcer.19PubMed Central. Placebo responses in patients with gastrointestinal disorders

This doesn’t mean OTC stomach medicines don’t work. They do, and the mechanisms are well established. But it does mean that the ritual of taking something, the expectation of relief, and the body’s own recovery processes all contribute to how quickly you feel better. It also means that mild stomach complaints often resolve on their own with a bit of time. If your upset stomach is a one-off episode without severe symptoms, sometimes the best medicine is a glass of water, a bland snack, and a little patience. Save the pharmacy trip for when symptoms are persistent, recurrent, or severe enough to genuinely interfere with your day.

Probiotics and Gut Recovery

Probiotic supplements occupy an increasingly large section of the stomach-remedy aisle, and the question of whether they help with an upset stomach has a complicated answer. For acute gastroenteritis, meaning a stomach bug that causes diarrhea and cramping, some evidence suggests that certain probiotic formulations can speed up recovery. An observational study of patients with acute gastroenteritis found that over 93 percent of those given a multi-strain probiotic achieved diarrhea resolution, with stool frequency dropping by roughly two-thirds from baseline to follow-up.20PubMed Central. Evaluation of Streptococcus faecalis, Clostridium butyricum, Bacillus mesentericus, Lactobacillus sporogenes, Saccharomyces Boulardi multistrain probiotic formulation in acute gastroenteritis: a real-world observational study (MAESTRO) That sounds impressive, but observational studies without a control group can’t separate the probiotic’s effect from the natural course of the illness. Most stomach bugs resolve on their own within a few days regardless of treatment.

Where probiotics have somewhat clearer utility is in antibiotic-associated diarrhea. If you’re taking antibiotics and develop loose stools as a side effect, a probiotic containing Saccharomyces boulardii or certain Lactobacillus strains may help restore balance. For a generic one-off upset stomach, though, the evidence isn’t strong enough to recommend rushing out for probiotics. They’re generally safe, but they’re also expensive relative to proven OTC options, and “probiotic” is a broad label that covers hundreds of different strains with very different properties. A product that helps with antibiotic diarrhea may do nothing for bloating, and vice versa. If you want to try a probiotic, look for one with research behind the specific strain it contains rather than picking whichever jar has the most appealing label.