Antibiotics are best known for causing loose stools, but some people end up with the opposite problem. Antibiotics thin out the gut bacteria that help move food along, so the bowel can slow down for a while. Constipation that is painful, comes with fever, or lasts after the course ends is a reason to call a doctor rather than wait it out.
Quick Steps to Get Your Bowels Moving
The first recommended treatment for constipation is changing daily habits, not taking medicine.1PubMed Central. Magnesium Sulfate-Rich Natural Mineral Waters in the Treatment of Functional Constipation–A Review That means drinking about 1.5 to 2 liters of water a day, roughly 6 to 8 glasses.1PubMed Central. Magnesium Sulfate-Rich Natural Mineral Waters in the Treatment of Functional Constipation–A Review It also means building fiber up gradually toward 15 to 40 grams a day.1PubMed Central. Magnesium Sulfate-Rich Natural Mineral Waters in the Treatment of Functional Constipation–A Review Adding fiber too quickly can cause gas and bloating, especially when your gut is already unsettled. Physical activity helps too, since it speeds the movement of stool through the colon and increases how often you go.1PubMed Central. Magnesium Sulfate-Rich Natural Mineral Waters in the Treatment of Functional Constipation–A Review
A simple plan for the first three days: on day one, sip water steadily through the day and add one fiber food, such as prunes, oats or pears. Take a 10 to 20 minute walk, especially after meals. Sit on the toilet at the same time each morning, when the bowel is naturally most active, even if nothing happens at first. If there is still no movement by day three, try a gentle laxative.
Very large servings of bran can bloat an already sluggish gut, so hold off on those for now. Fiber also works only with enough fluid; without it, stools can get harder.
When habits aren’t enough, magnesium can help. Magnesium and sulfate both act as laxatives by pulling water into the bowel, because the gut absorbs them poorly.1PubMed Central. Magnesium Sulfate-Rich Natural Mineral Waters in the Treatment of Functional Constipation–A Review So mineral waters rich in magnesium sulfate, or a magnesium supplement, can soften stools. Over-the-counter laxatives that draw water into the bowel work the same way. Polyethylene glycol (Miralax) is a common one and is generally gentle for short-term use.
Polyethylene glycol is usually mixed into a glass of water or juice and taken once a day. It does not work instantly, so don’t take extra doses to hurry it along. Follow the package directions and stop once stools are soft and regular, rather than staying on it for the whole antibiotic course out of habit. Loose stools or cramping mean the dose is too much, so skip a day or lower it. If you still haven’t gone after a few days on the laxative, call a pharmacist or doctor rather than adding more products.
One catch with magnesium: it can bind to some antibiotics, including doxycycline and ciprofloxacin, so take them at least 2 hours apart. A pharmacist can tell you which laxative suits your particular antibiotic.
Stopping the antibiotic to fix constipation is a bad trade. Quitting early can leave the infection only partly treated, and constipation can usually be managed alongside the drug. If the side effects feel intolerable, call the prescriber, who may switch you to a different antibiotic.
Why Antibiotics Can Slow Your Gut
Gut bacteria break down fiber into substances that help the bowel’s nerves keep things moving.2PubMed Central. Effect of the gut microbiota and their metabolites on postoperative intestinal motility and its underlying mechanisms When the bacteria change, that breakdown falls off, and the bowel can slow down.2PubMed Central. Effect of the gut microbiota and their metabolites on postoperative intestinal motility and its underlying mechanisms In mice, wiping out gut bacteria with antibiotics lowered serotonin in the colon, a chemical messenger that signals the bowel to contract.3PubMed Central. Antibiotics-induced depletion of mice microbiota induces changes in host serotonin biosynthesis and intestinal motility
Your large bowel is home to trillions of bacteria, and an antibiotic aimed at a sinus or urinary infection reaches them too, since the drug travels through your whole body. Antibiotics cannot tell harmful bacteria from helpful ones, so some of the helpful species that support normal bowel rhythm are reduced along the way. The change begins within days of the first doses, which is why constipation can show up in the middle of a course rather than only after it. Once the drug is cleared, the remaining bacteria slowly regrow, and bowel habits tend to recover.
Constipation is listed as a possible side effect for several common antibiotics, though it is less common than diarrhea. Timing is one clue: if your bowels were regular before the first dose and slowed after it, the antibiotic is a reasonable suspect, though other causes can overlap.
How much an antibiotic disturbs the gut depends on its type, its dose and how the body clears it.4PubMed Central. Antibiotics, gut microbiota, and irritable bowel syndrome: What are the relations? Antibiotics cleared through bile, such as clindamycin and macrolides like azithromycin, cause especially large changes.4PubMed Central. Antibiotics, gut microbiota, and irritable bowel syndrome: What are the relations? For levofloxacin, about 4% of users in drug trials stopped because of gut problems, and constipation was nearly as common as diarrhea.5Enemeez. Can Antibiotics Cause Constipation? Older adults have at least twice the rate of drug side effects, and often take other constipating medicines as well.
Different bacteria are lost in different people, and your starting gut bacteria and diet shape the response. That is partly why some people get diarrhea and others constipation.
The infection itself may also be part of the story. Being ill often means eating less, drinking less and lying down more, all of which slow the bowel. Other medicines can add to the problem: painkillers containing codeine, and iron or calcium supplements, are common culprits. Cough medicines and some antihistamines can also slow the gut.
Do Probiotics and Yogurt Help
Probiotics are live bacteria taken as capsules or found in foods, meant to support the gut. In adults with ongoing constipation, probiotics added about 1.3 bowel movements a week.6PubMed. The effect of probiotics on functional constipation in adults: a systematic review and meta-analysis of randomized controlled trials They moved food through the gut about 12 hours faster and softened stools.6PubMed. The effect of probiotics on functional constipation in adults: a systematic review and meta-analysis of randomized controlled trials The benefit was clear for Bifidobacterium lactis but not for Lactobacillus casei Shirota, the strain found in Yakult.6PubMed. The effect of probiotics on functional constipation in adults: a systematic review and meta-analysis of randomized controlled trials So check the label for the strain, not just the word probiotic.
Check that the label lists the number of live organisms at the end of shelf life, not only at manufacture. Some products need refrigeration to keep the bacteria alive, so follow the storage directions.
After a course of antibiotics, beneficial Bifidobacterium species can stay low for weeks.7PubMed Central. Improved gut microbiome recovery following drug therapy is linked to abundance and replication of probiotic strains In mice recovering from antibiotics, probiotics reshaped which bacteria returned, even without settling in the gut permanently.8PubMed Central. Impact of probiotic supplements on microbiome diversity following antibiotic treatment of mice A yogurt containing probiotics and prebiotics also eased antibiotic-related constipation in mice.9PubMed. Specially designed yogurt supplemented with combination of pro- and prebiotics relieved constipation in mice and humans Evidence in people is still limited, but yogurt or kefir is a low-risk thing to try.
Yogurt and kefir rarely tell you which strains or how many live bacteria you are getting, so the effect is less predictable than a labeled capsule. Look for the words “live and active cultures,” because some yogurts are heat-treated after fermenting, which kills the bacteria. Sweetened versions can carry a lot of sugar, so plain yogurt with fruit stirred in is a better choice.
Timing matters with capsules. Take them at least 2 hours apart from the antibiotic so the drug doesn’t kill them right away, and continue for a few weeks after the course ends, while the gut is recovering. Any benefit builds over days, not hours.
You can also feed the bacteria you already have. Onions, garlic, leeks, bananas and oats nourish helpful bacteria. Add them slowly to avoid gas, and pair them with fermented foods such as yogurt, kefir or sauerkraut.
People with weakened immune systems, people with a central line or who are seriously ill in hospital, and infants and premature babies should ask a doctor before taking probiotics.
Abdominal Massage and Exercise
Across many studies, abdominal massage reliably increased how often people went.10PubMed Central. Analysis of the efficacy of abdominal massage on functional constipation: A meta-analysis In one trial, massage raised bowel movement frequency by about 70%, compared with 43% for a sham version.11PubMed. Abdominal Massage in Functional Chronic Constipation: A Randomized Placebo-Controlled Trial Constipation severity fell by about 70% with real massage, compared with 28% with the sham.11PubMed. Abdominal Massage in Functional Chronic Constipation: A Randomized Placebo-Controlled Trial Adding aerobic exercise such as brisk walking to massage gave better results than massage alone.12PubMed Central. Effects of Aerobic Exercise Training Combined with Abdominal Massage in Functional Constipation: A Randomized Controlled Study Massage adds to other steps rather than replacing them, so use it alongside fluids and fiber.
To do it yourself, lie on your back with your knees bent. Use flat fingers to make slow clockwise circles, starting low on the right side, going up, across, and down the left. Spend 10 to 15 minutes, once or twice a day, and stop if it causes sharp pain.
Press firmly enough to feel the belly move beneath your fingers, but never so hard that it hurts. Morning or after a meal is a good time, when the bowel is naturally more active, and ideally before you sit on the toilet. Breathe slowly, because holding your breath tightens the abdomen and works against you.
Exercise doesn’t have to be strenuous while you’re recovering. Gentle walking counts, and short walks after meals take advantage of the gut’s natural reflex to move after eating. Avoid hard workouts while you have a fever.
How Long Antibiotic Constipation Lasts
Bowel habits often settle within days to a couple of weeks after stopping antibiotics. As the drug leaves your system, the bacteria that remain start to regrow. Stools gradually soften and come more often, and bloating usually eases first. Fewer than 3 bowel movements a week is the usual line for constipation, so that is a useful number to watch. Keep up your water, fiber and walking after the last tablet.
Gut bacteria run on a slower schedule than your bowels. Changes in gut bacteria lasted up to 12 months after clindamycin.4PubMed Central. Antibiotics, gut microbiota, and irritable bowel syndrome: What are the relations? Most people need nothing special, since the community tends to rebuild with a normal varied diet. Vegetables, beans, whole grains and fruit give the returning bacteria more to feed on.
In children, a new course of antibiotics brought constipation back in some who had already improved.13PubMed Central. A Randomized, Double-Blind, and Placebo-Controlled Trial of Chinese Herbal Medicine in the Treatment of Childhood Constipation If your child has had constipation before, watch for it to return during antibiotics.
If you need antibiotics again, tell the prescriber that you had constipation last time. Start your water and fiber habits on day one, and keep a gentle laxative at home in case you need it.
When Constipation Needs a Doctor
Call a doctor if you notice any of these:
- Severe or worsening belly pain
- A new or rising fever
- Vomiting, or being unable to pass any gas
- A hard, swollen belly
- Blood in the stool or black stools
- Constipation that hasn’t improved a week or so after the antibiotics end
Ordinary constipation causes cramping and fullness that eases after passing stool or gas. Pain that keeps getting worse, becomes constant, or is sharp enough to stop you from moving normally suggests something else may be going on. A hard, bloated belly you cannot get comfortable with, especially with vomiting, may point to a blockage. If you are unsure whether your pain is ordinary, it is fair to call a doctor or a nurse advice line.
Doctors check whether stool has become stuck and hard to pass, whether a medicine is to blame, and whether another condition is behind it.14PubMed. Evaluation and treatment of colonic symptoms One possibility is C. diff, a bacterial gut infection that can follow antibiotics. It usually causes diarrhea but can rarely show up as constipation and a swollen belly. Bacterial overgrowth in the small intestine can also follow some medicines and cause bloating; doctors usually treat it with an antibiotic.15PubMed Central. Treatment of Small Intestinal Bacterial Overgrowth (SIBO) in Gastrointestinal, Hepatic, Endocrine, Neurological, and Postoperative Diseases: A Comprehensive Narrative Review
With these signs, avoid repeated stimulant laxatives or enemas. They can make a blockage worse, and pain together with fever needs a doctor to examine you first.
At the appointment, name the antibiotic, the dose and the start date. Say when your last bowel movement was and what it looked like, and list every other medicine and supplement you take, including laxatives you’ve tried.
The doctor will ask about your symptoms and bowel pattern, usually press on your belly, and may do a rectal exam to check whether hard stool is stuck. Depending on what they find, they may order blood tests or an X-ray, though many people need only an exam and a conversation. Treatment depends on the cause, from a stronger laxative plan to treating an infection or changing a medicine.

