Constipation on antibiotics

Published 12 March 2026 ·Last reviewed 12 March 2026 by the editorial team ·How we create our content

At a glance

Constipation is a common but often unexpected side effect of antibiotics. Most people associate antibiotics with diarrhoea, so constipation can catch them off guard. It happens because antibiotics disrupt the balance of bacteria in the gut, which can slow digestion and change stool consistency.

This is usually temporary and manageable. This page covers why it happens, what people commonly try, and when to seek medical input.

Why antibiotics can cause constipation

Antibiotics are designed to kill bacteria causing an infection. But they also affect the beneficial bacteria that live in your gut and play a role in digestion. When this balance is disrupted:

  • Digestion can slow down — gut bacteria help break down food and keep things moving. Fewer of them means slower transit
  • Stool consistency can change — the gut absorbs more water when transit is slower, leading to harder, drier stools
  • The gut environment shifts — changes in bacterial populations can affect how the intestines contract and move stool along

Not everyone experiences this. Some people have no digestive side effects from antibiotics. Others experience diarrhoea rather than constipation. The response depends on the type of antibiotic, the duration of the course, and individual factors.

Which antibiotics are more likely to cause it

While any antibiotic can potentially affect digestion, some are more commonly associated with gut disruption. People report constipation more frequently with:

  • Certain pain-related prescriptions that are sometimes co-prescribed with antibiotics (such as codeine-based pain relief)
  • Courses that are longer or use broad-spectrum antibiotics
  • Situations where multiple antibiotics are used together

The specific antibiotic matters less than the overall disruption to gut bacteria. If you are experiencing constipation during an antibiotic course, it is worth mentioning to your doctor regardless of which one you are taking.

Managing constipation during an antibiotic course

People commonly try several approaches, many of which are the same strategies used for constipation generally:

Hydration

Drinking more water is one of the simplest and most commonly recommended steps. Antibiotics and the resulting gut disruption can increase the need for fluids. People describe aiming for consistent water intake throughout the day rather than large amounts at once.

Dietary adjustments

  • Fibre-rich foods — fruits, vegetables, whole grains, and legumes can help keep things moving. Increasing fibre gradually rather than suddenly tends to cause fewer problems
  • Prunes and prune juice — frequently mentioned as helpful for antibiotic-related constipation specifically
  • Fermented foods — yoghurt, kefir, sauerkraut, and kimchi may help support gut bacteria during and after the antibiotic course
  • Avoiding processed and low-fibre foods — reducing foods that slow digestion can help offset the antibiotic’s effects

Movement

Regular physical activity — even daily walks — supports bowel motility. People who maintained their usual activity levels during antibiotic courses describe fewer digestive side effects.

Stool softeners

Over-the-counter stool softeners can help prevent stools from becoming hard and difficult to pass. Some people start these at the same time as the antibiotic course, especially if they have a history of constipation. Ask your pharmacist or doctor whether this is appropriate for your situation.

Probiotics

Some people take probiotics during or after antibiotic courses to support the recovery of gut bacteria. The evidence is mixed, but many people report finding them helpful. If taking probiotics alongside antibiotics, spacing them apart by a few hours is commonly suggested — though your pharmacist can advise on the best approach.

What tends to make things worse

  • Not drinking enough water during the antibiotic course
  • Reducing food intake due to feeling unwell, which also reduces fibre
  • Ignoring early signs of constipation rather than addressing them promptly
  • Co-prescribed medications that also cause constipation, such as codeine-based pain relief
  • Bed rest or reduced activity during illness

After the antibiotic course

For most people, constipation resolves within days to two weeks after completing the antibiotic course as the gut bacteria begin to recover. Supporting this recovery:

  • Continue with good hydration and a fibre-rich diet
  • Consider fermented foods or probiotics to support bacterial recovery
  • Resume normal activity levels as soon as health allows
  • Be patient — full gut recovery can take several weeks after a course of antibiotics

If constipation persists beyond two weeks after finishing antibiotics, or if new symptoms develop, it is worth discussing with your doctor.

The colorectal connection

For people who already have colorectal conditions — fissures, hemorrhoids, or other concerns — antibiotic-related constipation carries additional risk. Hard stools and straining can aggravate existing conditions or trigger new problems.

If you have a colorectal condition and are prescribed antibiotics:

  • Mention your colorectal history to the prescribing doctor
  • Consider starting stool softeners proactively (with medical guidance)
  • Maintain your existing bowel management routine with extra attention to hydration and fibre
  • Contact your doctor if constipation develops, rather than waiting for it to resolve on its own

When to contact your doctor

Seek medical advice if:

  • Constipation lasts more than a week without improvement despite self-care measures
  • You notice rectal bleeding — always worth getting checked
  • You have severe abdominal pain
  • You notice blood in your stool
  • Constipation is accompanied by fever, vomiting, or inability to pass gas
  • You have a pre-existing colorectal condition that may be affected

Seek prompt medical attention if you experience: significant bleeding that will not stop, severe abdominal pain, fever with digestive symptoms, or any symptoms that concern you. These may indicate something that needs urgent assessment. Do not stop your antibiotics without medical advice.

Common questions

Why do antibiotics cause constipation?

Antibiotics work by killing bacteria, but they do not distinguish between harmful bacteria and the beneficial bacteria in your gut. This disruption to the gut microbiome can slow digestion and alter stool consistency, leading to constipation in some people. Not all antibiotics affect everyone the same way.

How long does antibiotic-related constipation usually last?

For most people, constipation resolves within a few days to two weeks after finishing the antibiotic course. If it persists beyond two weeks, or is accompanied by other symptoms, it is worth discussing with your doctor.

Should I take probiotics while on antibiotics?

Some people find probiotics helpful during and after antibiotic courses. Research is mixed on which strains are most beneficial. If you are considering probiotics, discuss the timing and type with your doctor or pharmacist, as some should be taken at a different time from the antibiotic.

Can I stop my antibiotics if they are causing constipation?

Do not stop or adjust your antibiotic course without speaking to your prescribing doctor. Incomplete courses can lead to antibiotic resistance and incomplete treatment of the infection. Your doctor can advise on managing side effects while completing treatment.

When to seek care Heavy bleeding or feeling faint? Get emergency help now. Emergency: 911

Not sure how urgent it is? Get help today.

  1. Emergency

    Heavy bleeding, black tarry stools, feeling faint, severe pain or trouble breathing.

    Call 911 or go to the ER.

  2. Today

    Fever, pain getting worse, a hot swollen lump, or trouble passing urine.

    Call your doctor or go to urgent care.

  3. Soon

    Bleeding or bowel changes nobody has checked, or anything lasting 3 weeks.

    Book a doctor’s appointment.

Feeling overwhelmed? Call or text 988, any time.

See all the signs

For this topic, get medical advice if you notice:

  • Rectal bleeding — always worth getting checked
  • Severe abdominal pain
  • Constipation lasting more than a week without improvement
  • Blood in stool

Recording how you feel is not the same as being checked. These are the signs that need a doctor’s attention.

Call 911 or go to the emergency room now if you have:

  • bleeding that will not stop, a lot of blood (the toilet water turns red, or you pass large clots), or any bleeding with feeling faint or dizzy
  • fainting, a racing heart or trouble breathing
  • confusion or slurred speech, extreme shivering, no urine in a day, or blotchy skin
  • sudden severe belly pain, or a swollen, hard belly with vomiting or not passing stool or gas
  • you cannot pass urine at all, or your bladder feels full and painful and you can’t empty it
  • redness, swelling or severe pain spreading quickly around your anus, genitals or groin, especially with a fever or feeling very ill
  • a fever with a painful swelling near your anus if you have diabetes or a weakened immune system (for example, from chemotherapy or transplant medicines)
  • black, tarry stools

Call your doctor or go to urgent care today (or the ER if you can’t be seen today) if you have:

  • a temperature of 100.4°F (38°C) or higher, chills, vomiting, or feeling generally unwell
  • pain that is getting worse over days, or severe pain that stops you sitting or sleeping
  • a hot, swollen or very tender lump near your anus or at the top of the crease between your buttocks, or foul-smelling discharge
  • trouble urinating
  • bleeding that is getting heavier or more frequent, or blood mixed into your stool
  • feeling much more tired than usual, looking pale, or getting out of breath more easily than you used to
  • not passing stool for several days, or new belly pain

Make an appointment with your doctor if:

  • you have never had these symptoms checked by a doctor or nurse — whatever your age
  • you have had rectal bleeding for more than 3 weeks
  • your bowel movements have been looser, thinner or more frequent than usual for 3 weeks or more, or you have lost weight without trying
  • symptoms have not settled after a week or so, or keep coming back
  • you notice a new lump near your anus, between your buttocks or in your belly, or an itch or discharge that does not clear
  • you have new leakage or trouble controlling your bowels
  • you are 45 or over, or have a family history of bowel cancer or inflammatory bowel disease, and any of these symptoms are new for you

If you are unsure, it is always reasonable to ask. If things feel overwhelming, call or text 988 (Suicide & Crisis Lifeline) or chat at 988lifeline.org, any time. If you don’t feel safe, call 911.

Showing US care routes. Change region at the foot of the page.

Discreet symptom tracking

Symptoms that come and go? Keep track, day by day.

For hemorrhoids, fissures, fistulas and other anal and rectal problems. A short, discreet email asks how things have been, and saves each answer, so you can look back at every flare and every good week in your own words. If you haven’t had your symptoms checked, see your doctor first.

  • About ten seconds a check-in. No app, no password.
  • Nothing in the subject or preview says what it’s about.
  • Each Sunday, a link to your week, ready for your next appointment.

Your notes

Your check-in

Takes about ten seconds.

20:00
Example. Nothing on the lock screen hints at symptoms or conditions.

Explore more