The best medicine for an upset stomach depends on what’s actually bothering you. “Upset stomach” can mean nausea, heartburn, gas, bloating, or diarrhea, and each symptom responds to a different type of over-the-counter treatment. Most people find relief within 30 minutes to an hour with the right pick.
Antacids for Heartburn and Acid Discomfort
If your upset stomach feels like a burning sensation in your chest or upper abdomen, antacids are the fastest option. Products containing calcium, magnesium, or aluminum salts work by directly neutralizing the acid already sitting in your stomach. They also quiet down pepsin, a digestive enzyme that can irritate your stomach lining when acid levels are high. Most people feel relief within minutes.
Antacids work well for occasional flare-ups after a heavy meal or spicy food. The trade-off is that the relief doesn’t last very long, typically a few hours at most. Timing matters: taking them after symptoms start (rather than preventively) gets the best results. Chewable tablets and liquid forms tend to work slightly faster than swallowed tablets because they disperse through your stomach more quickly.
Acid Reducers for Lasting Relief
When antacids aren’t cutting it or your heartburn keeps coming back, acid reducers take a different approach. Instead of neutralizing acid after it’s produced, they reduce how much acid your stomach makes in the first place. There are two types available over the counter, and they work on very different timelines.
H2 blockers (like famotidine) start working within about an hour and last roughly 12 hours. Taking one 15 to 60 minutes before a meal can prevent heartburn from developing at all. This makes them a good choice when you know a trigger is coming, like a late dinner or a food you’re sensitive to.
Proton pump inhibitors, or PPIs (like omeprazole), are stronger but slower. They block the final step in acid production, which means more complete suppression, but it can take one to four days before you feel the full effect. Some people notice partial relief within 24 hours. PPIs are designed for frequent heartburn that happens two or more days per week, not for occasional discomfort. They’re meant to be taken as a short course, usually 14 days at a time.
Bismuth Subsalicylate for General Stomach Upset
If your stomach is upset in a more general way (nausea, some loose stools, a queasy feeling), bismuth subsalicylate is the closest thing to a multi-symptom stomach medicine. It treats diarrhea, heartburn, and general stomach discomfort all at once. It coats and soothes the stomach lining while also having mild antimicrobial properties that can help with traveler’s diarrhea and similar issues.
One important limitation: bismuth subsalicylate contains a compound related to aspirin, so it’s not appropriate for children or teenagers with flu-like symptoms, vomiting, or signs of dehydration. Adults should also avoid it if they have an aspirin allergy. Expect your tongue or stool to turn temporarily black, which is harmless and goes away on its own.
Simethicone for Gas and Bloating
When your upset stomach is really about pressure, fullness, and trapped gas, simethicone is the go-to. It works as a surfactant, meaning it breaks the surface tension of gas bubbles in your digestive tract so they merge into larger bubbles that are easier to pass through belching or flatulence. It doesn’t get absorbed into your bloodstream at all, which makes it one of the safest over-the-counter options available.
Adults can take 40 to 125 mg up to four times daily after meals and at bedtime, with a daily maximum of 500 mg. It’s also safe for infants and children at lower doses. Relief is usually quick because the problem is mechanical (trapped gas) rather than chemical.
Loperamide for Diarrhea
If your upset stomach centers on frequent, watery bowel movements, loperamide slows down the movement of your intestines so your body has more time to absorb water. The standard approach is a 4 mg starting dose, then 2 mg after each loose stool, up to 8 mg total per day for over-the-counter use.
There’s an important exception: you should not take loperamide if your diarrhea is bloody or accompanied by a high fever. These signs suggest a bacterial infection, and slowing your gut down in that situation can make things worse by trapping the bacteria inside. Loperamide is also not for children under age 2.
Options for Nausea Specifically
Nausea without heartburn or diarrhea can be trickier to treat over the counter. Phosphorated carbohydrate solutions (sold under names like Emetrol) contain a concentrated sugar solution with phosphoric acid that helps calm the stomach. The key instruction is to avoid diluting it or drinking any fluids right before or after taking it, since that reduces its effectiveness.
Ginger is one of the better-studied natural options for nausea. It has evidence supporting its use for motion sickness, morning sickness, postoperative nausea, and chemotherapy-related queasiness. Ginger capsules, ginger chews, and even ginger tea can help, though standardized capsules deliver a more consistent dose. Look for products that list the gingerol content, since that’s the active compound doing the work.
Peppermint Oil for Cramping and Spasms
If your stomach discomfort involves cramping or spasms, especially in the lower abdomen, enteric-coated peppermint oil capsules can help. The active ingredient, menthol, blocks calcium channels in the smooth muscle of your digestive tract, which relaxes the muscle and reduces spasms. The enteric coating is important because it keeps the capsule intact until it reaches your small intestine, which both improves effectiveness and reduces the chance of peppermint-triggered heartburn. This option has the strongest evidence for people with irritable bowel syndrome, but the muscle-relaxing effect can help anyone dealing with intestinal cramping.
Matching Your Symptom to the Right Medicine
- Burning or acid taste: Antacids for quick relief, H2 blockers or PPIs for recurring problems
- General queasiness or nausea: Bismuth subsalicylate, phosphorated carbohydrate solution, or ginger
- Gas, bloating, or pressure: Simethicone
- Loose or watery stools: Loperamide or bismuth subsalicylate
- Cramping or spasms: Enteric-coated peppermint oil
Signs That Need More Than OTC Medicine
Most upset stomachs resolve on their own or with the options above. But certain patterns signal something more serious. Sudden, severe abdominal pain that doesn’t ease within 30 minutes warrants emergency care, as it can indicate a perforated ulcer, appendicitis, or pancreatitis. The same goes for stomach pain paired with continuous vomiting, fever with a rapid pulse, or a swollen and tender abdomen.
Pain that starts mild but steadily worsens over hours, especially if it settles in the lower right side of your abdomen, is the classic pattern of appendicitis. Severe abdominal pain with vaginal bleeding can indicate an ectopic pregnancy. In any of these situations, over-the-counter medicine won’t address the underlying problem, and delaying care can be dangerous.

