Constipation on antibiotics

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.

When to seek care

If you experience any of the following, seek urgent medical care:

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

Explore more

Want personalized guidance? The AI experience navigator draws from all our experiences and guides.