What Medicine Helps Stomach Pain by Symptom?

The right medicine for stomach pain depends on what’s causing it. A burning feeling after eating calls for something completely different than cramping or bloating. Most stomach pain responds well to over-the-counter options, but matching the medication to the type of pain is what makes the difference between fast relief and wasted money.

Burning or Acidic Pain

If your stomach pain feels like burning in your upper abdomen or chest, especially after meals, excess stomach acid is the likely culprit. Three categories of medication target this problem, and they work at different speeds.

Antacids like calcium carbonate (Tums, Rolaids) neutralize acid that’s already in your stomach. They work within minutes, making them ideal for occasional heartburn or that sour feeling after a heavy meal. The tradeoff is that relief fades relatively quickly, usually within an hour or two.

H2 blockers like famotidine (Pepcid) take a different approach. Instead of neutralizing existing acid, they block one of the chemical signals that tells your stomach to produce acid in the first place. They kick in faster than stronger prescription-style options and work well on an as-needed basis. If you know a spicy dinner is coming, taking one beforehand can prevent the burn.

Proton pump inhibitors (PPIs) like omeprazole (Prilosec) are the most powerful acid reducers available. They permanently shut down the tiny acid-producing pumps in your stomach lining, so your body has to build new ones before acid production returns to normal. The catch: they need to be taken daily for 4 to 8 weeks to reach full effect, because not all acid-producing cells are active at the same time. Taking a PPI once when you have heartburn won’t do much. These are designed for persistent problems like frequent heartburn or gastroesophageal reflux, not one-off discomfort.

For occasional acid pain, start with an antacid for immediate relief. If you’re reaching for antacids several times a week, an H2 blocker is a better fit. PPIs are reserved for when the problem is ongoing.

Nausea and General Upset

Bismuth subsalicylate, the active ingredient in Pepto-Bismol and Kaopectate, is one of the most versatile stomach medicines on the shelf. It helps with nausea, indigestion, and diarrhea all at once by coating the stomach lining and reducing inflammation.

There are important safety limits, though. Bismuth subsalicylate contains a compound related to aspirin. If you’re sensitive to aspirin, take blood thinners, or already use other aspirin-containing products, you risk overdose by stacking them together. It should not be used in children under 12, and children or teenagers recovering from the flu or chickenpox should avoid it entirely due to the risk of Reye’s syndrome, a rare but serious condition. It’s also not safe while breastfeeding.

Gas and Bloating

When stomach pain feels more like pressure, fullness, or sharp twinges that move around your abdomen, trapped gas is often the problem. Simethicone (Gas-X, Mylanta Gas) works by merging small gas bubbles in your gut into larger ones, making it easier for your body to pass the air naturally. It doesn’t get absorbed into your bloodstream, which makes it one of the safest over-the-counter options available. Relief typically comes within 15 to 30 minutes.

Simethicone won’t help with acid-related burning or cramping. It’s specifically for that bloated, too-full feeling where you know gas is the issue.

Cramping and Spasms

Stomach pain that comes in waves, tightens like a fist, then releases is usually caused by muscle spasms in the digestive tract. This type of pain is common with irritable bowel syndrome (IBS), functional dyspepsia, and menstrual-related abdominal pain.

Over-the-counter options are limited here. Peppermint oil capsules (coated to dissolve in the intestines, not the stomach) can help relax smooth muscle in the gut. For stronger relief, prescription antispasmodic medications like dicyclomine and hyoscyamine work by blocking the nerve signals that cause your digestive muscles to contract too forcefully. These are commonly prescribed for IBS, colon spasms, gallbladder pain, and functional dyspepsia.

Antispasmodics can cause dry mouth, blurred vision, and drowsiness because they affect nerve signaling beyond the gut. They’re not a first-line choice for simple stomach aches, but they make a real difference when cramping is the dominant symptom.

Diarrhea-Related Pain

When stomach pain comes with frequent, watery bowel movements, the pain often improves once the diarrhea is controlled. Loperamide (Imodium) slows down gut movement, giving your intestines more time to absorb water. The maximum over-the-counter dose for adults is 8 mg per day. The prescription limit is 16 mg per day.

Loperamide is meant for short-term use. If diarrhea lasts more than two days, contains blood, or comes with a high fever, it’s a sign of something that needs medical attention rather than symptom management.

Choosing the Right Option

Matching your symptoms to the right medicine is straightforward once you identify the type of pain:

  • Burning, sour, or acidic feeling: antacids for quick relief, H2 blockers for longer coverage, PPIs for chronic issues
  • General nausea and upset: bismuth subsalicylate
  • Pressure, bloating, or fullness: simethicone
  • Cramping or spasming: peppermint oil capsules over the counter, prescription antispasmodics for persistent problems
  • Pain with diarrhea: loperamide

Many people grab whatever is in the medicine cabinet without thinking about what type of stomach pain they actually have. An antacid won’t touch gas pain. Simethicone won’t help acid reflux. Taking a moment to identify whether your pain is burning, cramping, bloating, or tied to diarrhea points you toward the medicine that will actually work.

When Over-the-Counter Medicine Isn’t Enough

Stomach pain that keeps coming back despite the right over-the-counter treatment may need a different approach. For ulcers, prescription medications can form a protective barrier over the damaged area, allowing it to heal while shielding it from acid. Persistent acid problems may require a full course of PPIs rather than occasional use. Chronic cramping may need prescription antispasmodics.

Some stomach pain signals something more urgent. Pain severe enough to prevent you from functioning normally, vomiting that won’t stop or prevents you from keeping liquids down, inability to have a bowel movement combined with worsening pain, or pain that feels different or more intense than episodes you’ve had before all warrant prompt medical evaluation rather than another dose of something from the drugstore.