Rifaximin: what it treats, how to take it, side effects
Last updated September 3, 2026.
Rifaximin is an antibiotic that stays in the gut - it stops the growth of bacteria there without being absorbed into the body in any meaningful amount. You may know it as Xifaxan. That gut-local action is why its job list is all digestive, and why its side-effect list is unusually short.
What does it treat?
Traveler's diarrhea caused by certain bacteria - but not diarrhea that is bloody or comes with fever, which needs different care; irritable bowel syndrome with diarrhea; and hepatic encephalopathy - the thinking, behavior, and mood changes that come when a failing liver cannot clear toxins - by reducing the gut bacteria that produce those toxins. Like every antibiotic, it does nothing for colds, flu, or viruses, and unnecessary antibiotic use breeds resistance.
How do you take it?
A tablet two to three times a day for 3 to 14 days depending on the condition, with or without food, same times daily - and the full course, exactly as directed. Traveler's diarrhea should improve within 24 to 48 hours; if it does not, worsens, or fever or bloody stools appear, call your doctor. If IBS symptoms return after a finished course, call rather than self-repeating - retreatment is a prescriber decision. Missed dose: take it when you remember unless the next one is close; never double up.
Side effects to know
- Common: nausea and stomach pain - the list is short because the drug barely leaves the gut.
- Serious - call your doctor immediately: watery or bloody diarrhea with stomach cramps and fever during treatment or up to 2 months after - the C. difficile pattern every antibiotic carries; and allergic signs - hives, rash, itching, trouble breathing or swallowing, swelling of the face, throat, tongue, lips, eyes, hands, feet, ankles, or lower legs, or hoarseness.
Who should not take it?
Anyone with bloody diarrhea or fever - the drug is explicitly not for that presentation - and anyone with a past allergic reaction to rifaximin or its rifamycin cousins. Severe liver disease changes the picture, so the prescriber weighs it. If you become pregnant, call your doctor.
When is it an emergency?
Trouble breathing, throat or facial swelling, or severe bloody diarrhea with fever is urgent care. For an overdose, call Poison Control at 1-800-222-1222. Pymander's escalation routing is built and tested specifically for this class of decision; see the safety architecture working paper.
What a Pymander AI doctor consult looks like
Illustrative example, not a real member's messages.
Common questions
Why is rifaximin not used for bloody diarrhea or diarrhea with fever?
Blood and fever signal invasive bacteria - the kind that burrow into the intestinal wall and can spread - and rifaximin barely leaves the gut lumen, so it cannot reach tissue infection. MedlinePlus states the exclusion plainly. That presentation needs a different evaluation, often different antibiotics, and sometimes stool testing first. Rifaximin is for the non-invasive cases.
How can an antibiotic help IBS?
A meaningful slice of IBS-with-diarrhea tracks back to bacterial overgrowth or imbalance in the small intestine - rifaximin reduces that bacterial load right where it lives, and because it barely absorbs, it does the job without systemic antibiotic exposure. Symptoms returning after the course is common enough that MedlinePlus names it: call your doctor, because retreatment is a deliberate decision, not an automatic refill.
Why does a liver patient take a gut antibiotic?
Hepatic encephalopathy: when the liver fails, toxins made by gut bacteria - ammonia chief among them - bypass it and fog the brain: confusion, personality change, poor sleep, shaking hands. Rifaximin cuts the toxin production at the source, in the gut. It is one of the stranger, smarter loops in medicine: treating the brain by treating the intestine.
Why is the side-effect list so short?
Site of action. Most antibiotics absorb into the bloodstream and drag systemic effects with them; rifaximin works inside the intestine and passes through. What is left is mostly local: nausea and stomach pain. The two serious entries are the ones every antibiotic carries - the delayed C. difficile diarrhea pattern (up to 2 months later) and allergy - not a long systemic list.
Why do I still have to finish the course if I feel fine?
Same rule as every antibiotic: symptoms fade when the bacterial population collapses, not when it is gone - the survivors are the hardiest ones, and stopping early breeds them back, sometimes harder to treat. MedlinePlus carries the resistance warning on this page too: unnecessary or incomplete antibiotic use invites infections that resist treatment later. Finish the tablets.
What happens if I miss a dose of rifaximin?
Take it as soon as you remember, unless it is almost time for the next one - then skip it and never double up. Antibiotics work by holding a steady pressure on the bacteria; steady timing is the contribution you control.
