Follow Us

For the latest Health Information and Wellness Tips from PIH Health.

Like us on Facebook Follow us on Twitter Follow us on Instagram

Published on January 12, 2026

Medicines and the Digestive System 

photo of

Medicines taken by mouth can affect the digestive system in different ways. “Most prescription and over-the-counter medications are safe and effective, but some can cause unwanted side effects,” says Preeya Goyal MD, PIH Health Gastroenterologist. “Taking certain medicines together may also lead to interactions that either increase side effects or reduce how well the medicines work. Before starting any new medication, be sure your doctors know about your allergies, sensitivities, and other health conditions.” 

People with food allergies, such as gluten allergy in celiac disease, must be sure medicines don't contain these substances. People who have problems tolerating foods can often have the small amounts of fillers or additives in medicines, but they should check with their doctors if they have concerns. Listed below are some problems related to the digestive system that can happen when taking medicine.

Problem 

What to do 

Irritation of the esophagus  Tips to prevent irritation of the esophagus 

Some people have a hard time when they swallow tablets or capsules or sometimes take medicines without liquid. Tablets or capsules that stay in the esophagus may release chemicals that can irritate the lining of the esophagus. This may cause ulcers, bleeding, perforation, and narrowing of the esophagus. The risk for these types of injuries is higher if you have health problems involving the esophagus. Examples are:

  • Narrowing of the esophagus
  • Hardening of the skin (scleroderma)
  • Irregular muscle activity of the esophagus. This delays the passage of food.
  • Stroke

Certain medicines can also cause ulcers in the esophagus when they become lodged there. These include aspirin, antibiotics such as doxycycline, quinidine, potassium chloride, vitamin C, and iron.

  • Stand or sit when you swallow medicines 
  • Take several swallows of liquid before taking the medicine. Swallow the medicine with an 8-ounce glass of liquid. 
  • Don't lie down right after taking medicine. This is to make sure the pills have passed through the esophagus into the stomach. 
  • Tell your doctor if you have pain when you swallow or feel that the medicine is sticking in your throat 
Esophageal reflux  Tips to prevent reflux 

Some medicines get in the way of the action of the sphincter muscle. This muscle is located between the esophagus and stomach. This muscle allows food to pass into the stomach after you swallow. This can increase the chances of reflux. Or it can back up the stomach's acidic contents into the esophagus. Classes of medicines that may increase the severity of reflux include: 

  • Nonsteroidal anti-inflammatory drugs (NSAIDs)
  • Nitrates
  • Theophylline
  • Calcium channel blockers
  • Oral antibiotics
  • Birth control pills 
  • Stay away from coffee, alcohol, chocolate, and fatty or fried foods. These may make reflux worse. 
  • Quit, or reduce, smoking 
  • Don't lie down right after eating 
Irritation of the stomach  Tips to prevent irritation of the stomach 
One of the most common irritants to the lining of the stomach is NSAIDs. These include medicines such as ibuprofen and other common pain relievers. These medicines make it harder for the stomach lining to resist acid made in the stomach. It can sometimes lead to inflammation of the stomach lining (gastritis), ulcers, bleeding, or a hole in the lining. Older adults are at greater risk from these medicines because they are more likely to take these pain relievers for chronic conditions. People with a history of peptic ulcers and gastritis are also at risk. 
  • Don't drink alcoholic beverages when taking these medicines 
  • Take medicines with food or with a full glass of milk or water. This may reduce irritation 
  • Take the smallest dose needed for your condition for the shortest time possible 
  • If you are already taking aspirin for a health reason, check with your doctor before taking NSAIDs. The combination can make stomach irritation worse
Constipation  Tips to prevent constipation 

A variety of medicines can cause constipation. This happens because these medicines affect the nerve and muscle activity in the colon (large intestine). The result is a slow and difficult passage of stool. Medicines that may cause constipation include: 

  • Blood pressure medicines (antihypertensives)
  • Anticholinergics
  • Cholestyramine
  • Iron
  • Antacids containing mostly aluminum
  • Narcotics or pain medicines
  • Nausea medicines (antiemetics) 
  • Eat a well-balanced diet that includes fruits, vegetables, and whole grains 
  • Increase your daily fiber. Most women should aim for 25 grams of fiber each day. Men should try to get around 38 grams. 
  • Drink plenty of fluids 
  • Exercise regularly 
  • Discuss with your doctor about taking a laxative or stool softener 

Diarrhea 

Tips to prevent diarrhea 

Diarrhea from medicine is most often caused by antibiotics. This is because they affect bacteria normally present in the large intestine. This should go away once you finish taking the medicine. Sometimes these changes in intestinal bacteria allow too much bacteria called C. difficile to grow. This causes more serious diarrhea. C. difficile can cause colitis, resulting in very loose, watery stools. 

This colitis is usually treated with another antibiotic that acts on the C. difficile. Certain medicines may also change the movements or fluid content of the colon without causing colitis. Colchicine and magnesium-containing antacids can both cause diarrhea. Talk with your doctor if the diarrhea continues for several days. 

  • In most cases, preventing diarrhea involves not eating foods known to irritate your stomach 
  • Treatment usually involves replacing lost fluids, stopping the medicine if you can. You will need to take antibiotics if C. difficile colitis is the cause. 
  • Eating foods that are high in lactobacillus, such as yogurt, acidophilus milk, and some cottage cheeses, may help to restore the normal bacteria in the large intestine. But this has not been shown to work for all people. Taking a daily probiotic might help as well. 
  • If you are lactose intolerant, don't eat foods with lactose. This can make the diarrhea worse. 
  • Call your doctor right away if your diarrhea is bad enough to make you dehydrated. Also call if you also have belly pain, fever, or bleeding. These symptoms aren't usual for medicine-induced diarrhea.

Copyright © 2025 The StayWell Company, LLC. except where otherwise noted. 

Photo of Preeya Goyal MD

Preeya Goyal MD

Preeya Goyal MD is a fellowship-trained gastroenterologist with expertise in esophageal and anorectal motility, which focuses on how things move through the gastrointestinal tract. Dr. Goyal was attracted to gastroenterology very early in her medical training. She is a member of the American College of Gastroenterology, American Gastroenterological Association and American Society of Gastrointestinal Endoscopy. Dr. Goyal was born and raised in California and is very happy to have the opportunity to stay close to her large family. She enjoys traveling, tennis, dancing, painting, trying new restaurants and spending time with friends and family in her free time.

View Dr. Goyal's Profile

The information in Healthy Living Online is for educational purposes only.  It is not intended nor implied to be a substitute for professional medical advice.  The reader should always consult his or her healthcare provider to determine the appropriateness of the information for their own situation, or if they have any questions regarding a medical condition or treatment plan.