Cephalexin Side Effects

✓ Medically reviewed by Mohamed Magdy Ibrahim, MD, PhD — Assistant Professor of Medicine, Transplant Nephrology, University of Maryland School of Medicine · Board certified in Internal Medicine (ABIM) · Last reviewed: November 2026

Pronounced sef-ah-LEX-in

Brand names: Keflex

Type: Cephalosporin antibiotic · Full Cephalexin guide — what it is for, cautions and kidney note

Cephalexin is a first-generation cephalosporin antibiotic used for skin infections, strep throat, urinary infections and bone infections. It is generally well tolerated — gut upset is its main everyday effect — and its serious risks are the antibiotic-class ones: allergy and severe diarrhoea. This page explains what to expect.

By Dr. Mohamed Ibrahim, MD, PhD — Assistant Professor of Medicine, Transplant Nephrology, University of Maryland School of Medicine · Last reviewed: November 2026

Common side effects

  • Diarrhoea
  • Nausea
  • Stomach upset and indigestion
  • Dizziness
  • Headache
  • Vaginal yeast infection (thrush) in some women

Serious side effects — when to get urgent help

  • A rash with swelling of the lips, tongue or throat, or trouble breathing (allergic reaction) — seek emergency care
  • Severe, watery or bloody diarrhoea during or after the course — possible bowel infection (C. difficile)
  • Blistering or peeling skin, or sores in the mouth — a rare severe skin reaction
  • Unusual bruising, bleeding or severe tiredness
  • Yellowing of the skin or eyes (rare liver effect)

If you have any of these, seek urgent medical care and tell the team that you take cephalexin.

Why these side effects happen

Cephalexin kills bacteria by breaking their cell walls. The gut upset happens because it also disturbs the normal bacteria of the bowel — the same disturbance that, rarely, lets a toxin-producing germ called C. difficile take over. Allergic reactions are immune responses to the drug molecule; cephalosporins are cousins of penicillins, which is why a serious penicillin allergy history matters.

What usually helps

  • Take it with food if it upsets your stomach — follow your label
  • Finish the full course even when the infection feels better
  • Keep fluids up if you have diarrhoea, and report severe or bloody diarrhoea promptly
  • Tell every care team about any previous antibiotic allergy before starting
  • Probiotic foods are popular for antibiotic diarrhoea, but ask your team first if your immune system is weakened

◆ Kidney note — who should be extra careful

Cephalexin is cleared from the body by the kidneys, so the dose is given less often when kidney function is significantly reduced — otherwise it can accumulate. It does not usually damage the kidneys itself. Kidney patients should make sure their prescriber knows their kidney function when any antibiotic is chosen.

Who else should be extra careful

  • People with a serious penicillin allergy — discuss alternatives first, as related reactions are possible
  • People with significantly reduced kidney function — the dosing interval changes
  • People who have had C. difficile bowel infection before
  • People taking metformin — cephalexin can raise its levels slightly; your team may monitor
  • Anyone whose infection is not improving after a few days — the choice of antibiotic may need review

Frequently asked questions

If I am allergic to penicillin, can I take cephalexin?

Often yes, but it depends on the reaction. Cephalosporins are related to penicillins, and people with a history of severe penicillin reactions (anaphylaxis, blistering rash) are usually given an alternative. Tell your prescriber exactly what happened — the details decide.

Why do I need to finish the course?

Stopping early lets the toughest bacteria survive, so the infection can return and become harder to treat. If side effects are the problem, contact your care team — there is usually an alternative antibiotic rather than simply stopping.

Can cephalexin cause thrush?

Yes — by disturbing normal bacteria it can let yeast overgrow, causing vaginal or oral thrush. It is treatable; mention it to your care team or pharmacist rather than suffering in silence.

Does kidney function change how cephalexin is taken?

Yes. The kidneys clear it, so when they work significantly less well the same dose is given less often. Your prescriber uses your kidney blood tests to set the schedule.

Condition guides on MedicalVideos.com

Sources

Please note: This page is a patient-education summary, not medical advice, and it deliberately contains no doses. Medicines affect everyone differently — always follow your own prescription and talk to your doctor or pharmacist before starting, stopping or changing any medicine. Never stop a prescribed medicine without talking to the prescriber — for some medicines, stopping suddenly is itself dangerous.