9 Medications and Pills for Stomach Pain

Pills for stomach pain include antidiarrheals, antispasmodics, antacids, and more. Learn about 9 of them in this article.
9 Medications and Pills for Stomach Pain
Mariel Mendoza

Reviewed and approved by the doctor Mariel Mendoza.

Written by Mariel Mendoza

Last update: 30 May, 2022

There are different medications and pills for stomach pain. These all should be prescribed by your general practitioner or gastrointestinal tract specialist (gastroenterologist).

In fact, there are many possible causes of stomach pain. They include the following:

  • Intestinal malabsorption
  • Food poisoning
  • Intestinal infection
  • Intolerance to any food
  • Constipation
  • Gastroesophageal reflux
  • Chronic gastritis
  • Inflammatory bowel disease

Bearing this in mind, in order to refer to the different medications and pills for stomach pain, we will use the classification according to their regular use. These are the nine most commonly used groups.

1. Pills for stomach pain: Antispasmodics

Antispasmodics are used for intestinal disorders because they relax the smooth muscle of the stomach, allowing the interruption or prevention of painful and involuntary contraction (spasms). Thus, they’re useful when the pain is of a colic type.

Overall, the best-known antispasmodics are the following:

  • Butylscopolamine
  • Papaverine hydrochloride
  • Pirenzepine
  • Trimebutin
Pills for stomach pain can help provide relief
Intestinal colic may refer to pain in the stomach that occurs intermittently with high intensity.

2. Anti-inflammatory drugs

Anti-inflammatory drugs inhibit the inflammatory cascade produced by the release of cytokines. They’re indicated when stomach pain is the result of intestinal inflammation, as in the case of inflammatory bowel disease. The most commonly prescribed anti-inflammatory pills for stomach pain are metamizole and mesalazine.

We think you may find this interesting: The Best Natural Remedies for Inflammation

3. Anti-infectives

Anti-infectives are indicated when it’s known that the origin of the gastrointestinal discomfort is due to the presence of an intestinal infection. It may be bacterial, viral, or parasitic. The medication to be used in this case to treat stomach pain will depend on the microorganism in question.

In the case of bacteria, antibiotics are usually indicated. However, when it comes to parasitic infections, antiparasitics are typically prescribed. On the other hand, only general measures to relieve symptoms are usually indicated in viral infections.

The most commonly used antibiotics are ciprofloxacin, doxicillin and metronidazole. Antiparasitics include metronidazole, albendazole, mebendazole, piperazine and nitazoxanide.

Finally, amoxicillin, metronidazole, and clarithromycin are antibiotics used in cases of stomach pain caused by chronic gastritis with suspected or confirmed Helicobacter pylori infection.

4. Pills for stomach pain: Antidiarrheals

Antidiarrheal drugs work like pills for stomach pain by stopping the effects of diarrhea. They inhibit the motility of the intestine, which increases the permanence of feces in the intestinal lumen, favoring its hardening.

They’re not often recommended by doctors, since in case of diarrhea, only general measures are recommended, such as staying hydrated with lots of water, rehydration salts, and home remedies, in addition to an antidiarrheal diet.

However, when a doctor does recommend them, they may recommended one of the following:

  • Loperamide
  • Bismuth subsalicylate
  • Pectin

5. Antiflatulents

Antiflatulents are responsible for inhibiting excess intestinal gas, which is a product of metabolization. Basically, they relieve stomach pain by reducing the accumulation of gas.

  • Among them, we find simethicone and dimethicone.

6. Antacids

Antacids improve stomach pain because they work as gastric protectors. There’re inhibitors of acid production, such as pantoprazole, lansoprazole, and omeprazole. Typically, these drugs are used in gastric ulcers, gastroesophageal reflux, and gastritis.

On the other hand, calcium carbonate, sodium bicarbonate, and magnesium hydroxide work as a chemical plug, reducing stomach acidity by neutralizing acids.

Finally, sucralfate or bismuth salts also work as gastric protectors, but by another route. They generate a protective barrier that prevents acid from coming into direct contact with the stomach organ wall.

7. Stimulants for intestinal motility

These pills for stomach pain are used when the origin of the discomfort is constipation, slowing of gastric emptying (feeling of fullness), or is in the presence of reflux and vomiting.

They accelerate gastrointestinal transit so that the contents remain less time in contact with the gastric and intestinal walls. These medications include domperidone, metoclopramide, and cisapride.

You might find this interesting: Ten Healthy Foods to Regulate Your Digestion

8. Pills for stomach pain: Laxatives

Laxatives act in case of stomach pain due to constipation through different mechanisms. There are thickeners or bulk formers, such as Metamucil, which absorb more liquid in the intestines and increase stool volume.

On the other hand, softeners are responsible for lubricating and softening the formed stool to make it easier to evacuate. Meanwhile, osmotic laxatives (such as milk of magnesia, lactulose, or sorbitol) cause fluid retention in the intestines, which makes the stool softer and easier to pass. However, they should be consumed with plenty of water.

Finally, stimulant laxatives (bisacodyl) generate irritation of the intestinal mucosa, with a consequent increase in intestinal transit, thus accelerating stool emptying.

9. Probiotics

Finally, we have probiotics, which in themselves do not have a mechanism to improve stomach pain. However, they’re full of beneficial microorganisms for the intestinal flora.

In the long term, they help regulate intestinal transit and indirectly soothe discomfort related to abdominal pain due to alterations in the microbiota.

Alimentos probióticos.
Probiotics don’t only exist as drugs. Many foods fulfill the same function naturally. They’re highly recommended if you experience stomach pain or have digestion problems. 

Is it always necessary to take medications and pills for stomach pain?

After an evaluation, it must be your doctor who decides which medications are necessary for your stomach pain. In the case of children, the drugs are the same as for adults, but their doses and presentations vary.

On the other hand, the amount of body water in children is lower, so they’re also more prone to dehydration. Because on this, special caution should be taken when dealing with diarrhea in children.

Many times, stomach pain improves when simple, everyday measures are taken. It’s good to opt for a diet free of processed sugars and high-fat foods, in addition to avoiding alcoholic or carbonated beverages like soft drinks.

Finally, if the discomfort is persistent and does not improve with changes in your eating habits, then it’s important that you consult a doctor.


All cited sources were thoroughly reviewed by our team to ensure their quality, reliability, currency, and validity. The bibliography of this article was considered reliable and of academic or scientific accuracy.



This text is provided for informational purposes only and does not replace consultation with a professional. If in doubt, consult your specialist.