The right medicine for an upset stomach depends on your main symptom. Heartburn, nausea, gas, and diarrhea each respond to different types of over-the-counter treatments, and picking the wrong one can mean waiting hours for relief that never comes. Here’s how to match what you’re feeling to what actually works.
For Heartburn and Acid Reflux
If your upset stomach feels like a burning sensation rising from your chest or upper abdomen, the problem is excess stomach acid. You have three tiers of options, and they differ mainly in how fast they work and how long they last.
Antacids like calcium carbonate (Tums, Rolaids) work the fastest. They neutralize acid that’s already in your stomach, so you’ll typically feel better within minutes. The tradeoff is that relief fades relatively quickly, usually within an hour or two. These are your best bet for occasional heartburn after a heavy meal.
H2 blockers like famotidine (Pepcid) take a different approach. Instead of neutralizing existing acid, they reduce how much acid your stomach produces in the first place. They take longer to kick in, roughly 30 to 60 minutes, but relief lasts significantly longer. If you know a trigger meal is coming, taking one beforehand can prevent symptoms entirely.
Proton pump inhibitors (PPIs) like omeprazole (Prilosec) are the strongest option. They shut down acid production more completely than H2 blockers and are the standard treatment for frequent heartburn. The catch: they can take several days of daily use before you get full relief. Antacids can bridge the gap while you wait. PPIs are designed for a course of treatment, typically around two weeks, not as a quick fix for one bad night. If you’re reaching for heartburn medicine more than twice a week, that pattern itself is worth discussing with a doctor, since chronic reflux can damage the lining of the esophagus over time.
For Nausea and General Stomach Upset
When your stomach is churning but you’re not dealing with one clear symptom like heartburn or diarrhea, bismuth subsalicylate (Pepto-Bismol) is the most versatile choice. It’s FDA-approved for nausea, indigestion, heartburn, diarrhea, and general stomach upset, all in one product. In clinical testing, it provided faster relief than placebo across mild, moderate, and severe symptoms.
Bismuth subsalicylate works through several mechanisms at once. It reduces inflammation in the gut lining, slows excess fluid secretion into the intestines, and has mild antimicrobial properties. It doesn’t disrupt the normal bacteria in your stomach, which is a plus if your digestive system is already struggling. The pink liquid or chewable tablets are especially useful when you’re not sure exactly what’s wrong but your stomach just feels “off.”
One important limitation: bismuth subsalicylate contains a salicylate, the same family of compounds as aspirin. If you take blood thinners, have an aspirin allergy, or are giving medicine to a child, this one is off the table. More on children’s safety below.
For Gas and Bloating
If your main complaint is painful pressure, fullness, or bloating, the problem is likely trapped gas rather than acid. Antacids won’t help much here. What you want is simethicone (Gas-X, Mylanta Gas), which works by breaking large gas bubbles in your digestive tract into smaller ones that are easier to pass. It acts locally in the gut and isn’t absorbed into your bloodstream, making it one of the safest OTC options available.
The typical adult dose is 40 to 125 mg taken up to four times a day, after meals and at bedtime, with a maximum of 500 mg in 24 hours. Relief usually comes within 15 to 30 minutes. Some antacid products combine calcium carbonate with simethicone, which can be helpful if you’re dealing with both acid and gas at the same time.
For Diarrhea
Two OTC medicines treat diarrhea, but one is clearly faster. Loperamide (Imodium) significantly outperformed bismuth subsalicylate in a head-to-head comparison of adults with acute diarrhea. Loperamide reduced the number of unformed bowel movements more effectively, maintained control of symptoms longer after the first dose, and was rated better by patients at the 24-hour mark. It works by slowing the movement of your intestines, giving them more time to absorb water.
Bismuth subsalicylate also helps with diarrhea, but it’s a better fit when diarrhea comes bundled with nausea or stomach cramps, since it addresses multiple symptoms. If diarrhea is your primary problem and you want the fastest resolution, loperamide is the stronger choice.
One caveat: antidiarrheal medicines are generally not helpful when the diarrhea is caused by an active infection, like food poisoning with fever. In those cases, diarrhea is your body’s way of clearing the pathogen, and slowing it down can sometimes prolong illness.
What’s Safe for Children
Children’s stomachs need a more cautious approach. The American Academy of Pediatrics warns against giving children any product containing salicylates, including bismuth subsalicylate, unless directed by a doctor. Salicylates are linked to Reye’s syndrome, a rare but very serious condition that can develop in children with viral illnesses like the flu or chickenpox.
Antidiarrheal medicines are also generally not recommended for kids with infectious diarrhea, as they may prolong the illness rather than help. For children with an upset stomach, the safest first step is usually small sips of clear fluids to prevent dehydration, with any medication decisions guided by a pediatrician. Simethicone drops are available in infant formulations for gas, but always check age-specific dosing on the label.
Interactions to Watch For
Antacids seem harmless, but they can interfere with how your body absorbs other medications. The most significant interactions occur with certain antibiotics (particularly tetracyclines and fluoroquinolones), some anti-inflammatory drugs, and antifungal medications. If you’re taking any prescription medication, spacing your antacid at least two hours before or after your other pills reduces the risk of interference. H2 blockers and PPIs have their own interaction profiles, so checking with a pharmacist before combining them with other prescriptions is a smart habit.
Matching Your Symptoms to the Right Medicine
- Burning in chest or upper stomach: antacid for quick relief, H2 blocker for longer relief, PPI for frequent episodes
- Nausea or vague stomach discomfort: bismuth subsalicylate
- Bloating, pressure, or trapped gas: simethicone
- Diarrhea alone: loperamide
- Diarrhea with nausea or cramps: bismuth subsalicylate
If your symptoms include blood in your stool, severe abdominal pain lasting hours, sudden intense pain, or diarrhea that persists for weeks rather than days, these are signs that OTC treatment isn’t enough. Persistent rectal bleeding in particular can signal conditions ranging from treatable to serious, and shouldn’t be managed at home.

