← Drug Library
First-Generation Cephalosporin Antibiotic

Cephalexin

Keflex, Zartan

Skin and soft tissue infections (cellulitis, impetigo, wound infections), UTI, strep throat, ear infections (otitis media), bone infections (osteomyelitis), respiratory tract infections

Recalls on record

17 recalls since 2006, 10 of them since 2021. A recall takes specific batches off the market, not the drug itself. The most serious was graded Class II. Reason given: cgmp deviations; there is a possibility that some bottles in these lots may have the active ingredient above and/or below specification limits.

From the FDA's recall, shortage and REMS databases, none of which appear on a package insert.

Take this to your appointment

I recently completed a course of cephalexin and I'm concerned about the effect on my gut microbiome, specifically GABA-producing bacteria. I have a [seizure disorder / history of seizures] and I want to discuss what gut-rebuilding support is appropriate after this course and whether a probiotic or dietary approach is recommended. I also want to confirm that the prescribed dose was appropriate for my kidney function.

In Plain Language

Cephalexin (Keflex) is a first-generation cephalosporin antibiotic prescribed for skin infections, urinary tract infections, strep throat, ear infections, and bone infections. It is one of the workhorses of outpatient antibiotic treatment and is generally considered safer than fluoroquinolones or clindamycin, with one important exception that frequently goes unaddressed.

The old teaching that cephalosporins have 10% cross-reactivity with penicillin allergy is outdated. Current evidence puts true IgE-mediated cross-reactivity at 1–2%, concentrated in patients with allergy specifically to aminopenicillins like amoxicillin due to a shared molecular side chain. If you have a penicillin allergy on your chart, it is worth clarifying whether it was a true allergic reaction or a GI side effect, because refusing cephalexin based on outdated cross-reactivity figures can mean getting a more dangerous antibiotic instead.

What is less well known: cephalexin accumulates in patients with kidney impairment (it is 90% renally excreted) and can reach neurotoxic concentrations in elderly patients given standard doses without kidney function adjustment. Cephalosporin-induced neurotoxicity (toxic effects on the nervous system) (encephalopathy (brain dysfunction), confusion, altered consciousness), muscle twitching, seizures, in elderly hospitalized patients is a well-documented phenomenon that is frequently attributed to other causes.

C. difficile risk exists with cephalexin, though it is lower than with clindamycin or broad-spectrum penicillins. Gut microbiome disruption and Candida overgrowth follow the same pattern as with other antibiotics. Probiotic support and fermented foods during and after the course meaningfully reduce these downstream effects.

Side Effects

Serious Adverse Reactions Documented With This Drug Class

These reactions have been reported in medical literature. Know your emergency protocol and discuss with your prescribing physician.

  • Anaphylaxis: throat swelling, difficulty breathing, hives, drop in blood pressure within minutes
  • C. difficile colitis, severe or bloody diarrhea with fever and abdominal cramping
  • Stevens-Johnson syndrome, painful rash beginning on face or trunk, skin peeling or blistering

All reported side effects, most serious first

  • ⚠️ SEIZURE RISK WITH RENAL IMPAIRMENT: beta-lactam antibiotics including cephalosporins can lower seizure threshold by inhibiting GABA-A receptors. The beta-lactam ring structure has structural similarity to GABA and can act as a competitive GABA antagonist at the synapse. At therapeutic doses in patients with normal renal function this effect is usually subthreshold. In patients with renal impairment (CKD, acute kidney injury, elderly), cephalexin accumulates because it is 90% renally excreted, standard doses can reach neurotoxic concentrations. Cephalosporin-induced neurotoxicity (toxic effects on the nervous system) presents as: encephalopathy (brain dysfunction: confusion, altered consciousness), myoclonus (especially facial and upper limb), seizures, and nonconvulsive status epilepticus. This is a well-documented but frequently missed phenomenon in elderly patients given standard doses without renal dose adjustment.
  • ⚠️ PATIENTS WITH SEIZURE DISORDERS: the beta-lactam GABA antagonism mechanism is clinically relevant for any patient with a lowered seizure threshold. Even at doses that would not trigger seizures in a healthy person, a patient with existing epilepsy or reduced seizure resilience may experience breakthrough seizure activity. The prescriber should be informed of any prior seizure history before a cephalosporin course.
  • ⚠️ Stevens-Johnson syndrome (SJS), toxic epidermal necrolysis (TEN), and DRESS, potentially fatal skin and systemic reactions; the FDA label lists SJS and TEN alongside anaphylaxis and angioedema as reported hypersensitivity reactions to cephalexin; stop the drug and seek emergency care if rash, blisters, or skin peeling appear.
  • Gastrointestinal: nausea, vomiting, diarrhea, abdominal cramping (most common side effects; take with food)
  • C. difficile colitis: watery or bloody diarrhea with fever and cramping; can develop during or weeks after the course
  • Allergic reactions (rash, urticaria (hives), raised, itchy skin welts); anaphylaxis (a severe, potentially fatal allergic reaction) is rare but possible, especially in patients with penicillin allergy
  • Cross-reactivity with penicillin: historical figure of 10% cross-reactivity is now considered an overestimate; current evidence suggests 1–2%, concentrated in patients with allergy to aminopenicillins (amoxicillin, ampicillin) due to shared R1 side chain. Allergy evaluation before prescribing is appropriate if penicillin allergy is in the chart.
  • Vaginal yeast infection (Candida): broad-spectrum antibiotic effect disrupts vaginal flora
  • Elevated liver enzymes: transient; monitor with prolonged use
  • Hemolytic anemia (anemia caused by red blood cell destruction), rare; positive Coombs test (drug-induced antibody formation)
  • Interstitial nephritis (kidney inflammation): rare hypersensitivity reaction affecting the kidneys

What people report to the FDA

These are the most frequent complaints in FAERS, the FDA's adverse event reporting system, out of 21,512 reports naming this drug. Anyone can file one: a patient, a doctor, a lawyer, the manufacturer.

Read these as reports, not as findings. Nobody verified that the drug caused what is described, so a number here is a count of reports rather than of people harmed, and no rate can be worked out from it because there is no way to know how many people took the drug. A widely used or much publicised drug collects more reports than a rare one at the same level of risk, so these totals cannot be compared between drugs. A report also lists every drug the person was taking, and there is no way to tell from this data which one the reporter blamed, so a drug that is commonly taken alongside others collects reports that are not about it. What the data is good for is the other direction: something reported often here and absent from the label is worth asking about.

  • 2,157Chronic Kidney Disease
  • 1,558Renal Failure
  • 1,550Acute Kidney Injury
  • 1,405Diarrhoea
  • 1,397Pain
  • 1,303Fatigue
  • 1,297Nausea
  • 1,215Dyspnoea
  • 1,154Anxiety
  • 1,154Headache
  • 1,140Rash
  • 874Dizziness

Aftermath & Withdrawal

What can happen after extended use, or when the drug is stopped

  • Gut microbiome disruption (cephalexin has significant broad-spectrum activity including against Lactobacillus and Bifidobacterium species), the primary GABA-producing bacteria in the gut. A single course can reduce gut bacterial diversity by 25–35%. Recovery without deliberate support may take months to years. For patients with seizure disorders, this is not a minor digestive side effect; it is a depletion of the gut-based component of GABA production.
  • Vaginal Candida overgrowth: often follows the course
  • Opportunistic gut dysbiosis: Candida, Clostridium overgrowth
  • Temporary reduction in vitamin K2 production: gut bacteria synthesize vitamin K2; antibiotic courses reduce this for weeks after completing the course; relevant for patients on warfarin or with clotting concerns

Interactions

Drug to drug

Other medications that interact, combinations to flag with your prescriber

  • Warfarin: cephalosporins can potentiate anticoagulant effect, increasing bleeding risk; INR monitoring required
  • Metformin: cephalexin inhibits renal tubular secretion of metformin (via organic cation transporter OCT2), which can increase metformin levels and lactic acidosis risk; monitor in patients on metformin, especially with renal impairment
  • Probenecid: blocks renal tubular secretion of cephalexin, increasing cephalexin levels and half-life (sometimes used intentionally)
  • Valproate: some reports of cephalosporins increasing valproate levels; particularly relevant for seizure patients; monitor valproate levels during and after a cephalosporin course
  • NSAIDs (ibuprofen, naproxen), combined with beta-lactams may increase seizure risk, particularly at high doses or with renal impairment
  • Cholestyramine and antacids: may reduce absorption if taken simultaneously; separate by 2 hours

Supplements, herbs and food

Supplements, herbs and foods that interact with this drug

  • Probiotics: most important post-course supplementation; GABA-producing species (Lactobacillus rhamnosus, L. reuteri, Bifidobacterium species) are preferentially destroyed by cephalosporins; begin probiotic-rich fermented foods after completing course
  • Vitamin K from whole food sources: gut bacteria produce K2; antibiotic disrupts this production; restore with fermented vegetables (natto highest), aged cheese, organ meats, and grass-fed dairy after course (source: Gaby/Healthnotes)
  • Zinc: food-source zinc (oysters, red meat, pumpkin seeds) supports immune recovery after antibiotic course
  • No iron, calcium, or magnesium supplements required to be separated from cephalexin during the course (unlike fluoroquinolones or tetracyclines); these do not significantly chelate cephalosporins

Nutrients this drug depletes

What the drug takes from the body over time. Depletion is slow and is rarely connected back to the medication, which is why it belongs in the conversation rather than in hindsight.

  • Magnesium: not depleted by cephalexin directly, but broad microbiome disruption reduces magnesium-absorbing gut bacteria; support with food sources after course; whole food sources: pumpkin seeds, dark leafy greens, almonds, black beans

Where this comes from

Drug-induced nutrient depletion is compiled in two standard reference works: Pelton and LaValle, Drug-Induced Nutrient Depletion Handbook (Lexi-Comp), and Gaby, A to Z Guide to Drug-Herb-Vitamin Interactions (Healthnotes). Some depletions also carry a regulatory citation of their own, such as the FDA's 2011 drug safety communication on proton pump inhibitors and low magnesium. Where an item above names its source, that source is given inline. To see the primary literature for this drug, search PubMed for Cephalexin and the nutrient.

Depletion evidence varies in strength. Some, such as metformin and B12, are on the drug label. Others rest on mechanism and observation rather than trials. Ask which kind you are looking at.

Body Support and the Prescriber Conversation

Never stop, reduce, or change any medication without your prescribing physician. The information below is for supporting your body and opening a conversation with your doctor: not for self-directed changes.

Nutritional & Lifestyle Support

Food comes first. Any supplement or herb named here can interact with your other medications and herbs, so check each one against your whole list with your prescriber or pharmacist before adding it.

  • Raw fermented foods, sauerkraut (refrigerated, not shelf-stable), kimchi, kefir from pasture dairy: the highest practical source of Lactobacillus and Bifidobacterium species for microbiome reseeding, if well-tolerated
  • Bone broth from pasture-raised animals: gut mucosal support post-antibiotic, if well-tolerated
  • Vitamin K2 from food: natto, hard cheese, grass-fed butter, egg yolk from pastured hens, supports coagulation and bone calcium regulation depleted by gut flora loss, if well-tolerated
  • Zinc-rich foods: oysters, red meat, pumpkin seeds, immune recovery, if well-tolerated
  • Avoid sugar and refined carbohydrates during and after course, feeds Candida overgrowth
  • Avoid taking antibiotics with food containing high sugar content, worsens dysbiosis

Starting the Conversation with Your Doctor

I recently completed a course of cephalexin and I'm concerned about the effect on my gut microbiome, specifically GABA-producing bacteria. I have a [seizure disorder / history of seizures] and I want to discuss what gut-rebuilding support is appropriate after this course and whether a probiotic or dietary approach is recommended. I also want to confirm that the prescribed dose was appropriate for my kidney function.

Notes

Discuss the timing of any medication review or transition with your prescribing practitioner.

Excipients (Inactive Ingredients)

Fillers, binders, dyes and coatings. These vary by manufacturer and dose strength. Verify your dispensed product at dailymed.nlm.nih.gov.

  • Active: Cephalexin monohydrate: first-generation cephalosporin; beta-lactam ring structure
  • Keflex capsules (Shionogi/Advancis): magnesium stearate, microcrystalline cellulose, D&C Yellow No. 10 (dye: seizure-relevant), FD&C Blue No. 1 (dye (seizure-relevant), gelatin, titanium dioxide (TiO₂), EFSA banned 2021 as potentially genotoxic)
  • Generic capsules: inactive ingredients vary by manufacturer; common: magnesium stearate, microcrystalline cellulose, silica, check specific product at dailymed.nlm.nih.gov for current formulation
  • Oral suspension (reconstituted): FD&C Yellow No. 6 (artificial dye (seizure-relevant), sucrose (high sugar content), relevant for Candida risk and glucose-sensitive patients), artificial flavor, methylparaben, propylparaben (parabens, endocrine-disrupting preservatives)
  • Note: the oral suspension contains significant artificial dyes and sugar, relevant for children with seizure disorders; generic alternatives may have different dye and sweetener profiles; always check specific formulation

What these ingredients are

A label lists substances by name and assumes you know what they are. This explains the ones in the list above: what each substance is, why it is in the product, and what is documented about it.

Titanium dioxide

Also listed as: E171, CI 77891

What it isA brilliant white mineral pigment, the same compound used in paint, sunscreen and toothpaste. In a tablet it is what makes the coating opaque and white.

Why it is in thereAppearance and light protection. It hides the color of the drug inside, shields light-sensitive ingredients, and gives a uniform look across a batch.

What is documentedThe European Food Safety Authority concluded in 2021 that titanium dioxide could no longer be considered safe as a food additive, because genotoxicity, meaning damage to genetic material, could not be ruled out. The EU banned it in food from August 2022. European regulators kept it in medicines while alternatives are developed, and it remains permitted in both food and medicines in the United States.
What the safety data sheet requiresNIOSH considers titanium dioxide a potential occupational carcinogen by inhalation and sets recommended exposure limits of 2.4 milligrams per cubic metre for fine particles and 0.3 for ultrafine, the lower limit reflecting the greater concern about the smallest particles. Those limits describe breathing the powder in a factory, not swallowing a coated tablet, and the distinction matters in both directions.
Worth knowingIt is in the product for appearance, not for effect. That is a different calculation when it is a coating you swallow daily for years.
Where else it appearsThis substance is in 178 other entries in this library, including Sertraline, Escitalopram, Citalopram, Paroxetine and others. Exposure is counted per product, and nobody adds it up across the products a person actually receives.

Synthetic color additives

Also listed as: FD&C Red No. 3 (erythrosine), Red No. 40, Yellow No. 5 (tartrazine), Yellow No. 6, Blue No. 1, Blue No. 2, D&C lakes

What it isSynthetic dyes derived from petroleum, identified on labels by number rather than by name. A lake is the same dye bound to a mineral base so it does not bleed.

Why it is in thereColor coding and recognition. Different strengths of the same drug are given different colors so they can be told apart at a glance, and brands use color for identity.

What is documentedFD&C Red No. 3 is the significant one. In January 2025 the FDA revoked its authorization for use in food and in ingested drugs, acting under the Delaney Clause, which prohibits any additive shown to cause cancer in animals; it produced thyroid tumors in male rats. Manufacturers have until January 2027 for food and January 2028 for ingested medicines, so products containing it are still on shelves and still being dispensed. FD&C Yellow No. 5 (tartrazine) must be declared by name on US labels because of hypersensitivity reactions, particularly in people sensitive to aspirin.
Worth knowingA dye does nothing for the drug. Where a dye-free version of the same medicine exists, a pharmacist can tell you, and that is a reasonable request rather than a fussy one.
Where else it appearsThis substance is in 170 other entries in this library, including Sertraline, Fluoxetine, Escitalopram, Paroxetine and others. Exposure is counted per product, and nobody adds it up across the products a person actually receives.

Gelatin

Also listed as: hydrolyzed porcine gelatin

What it isA protein derived from animal collagen, usually porcine.

Why it is in thereIn a capsule it is the shell itself, the part you swallow the powder inside. In a vaccine or a freeze-dried product it is a stabilizer that protects the active ingredient from heat and drying damage.

What is documentedGelatin is a documented cause of anaphylaxis to vaccines, particularly in people with alpha-gal syndrome or an existing gelatin allergy. It is also a religious dietary question for some families, and the porcine source is not always stated on patient-facing material.
Where else it appearsThis substance is in 135 other entries in this library, including Fluoxetine, Venlafaxine, Ziprasidone, Progesterone (Bioidentical) and others. Exposure is counted per product, and nobody adds it up across the products a person actually receives.

Sugars and sugar alcohols

Also listed as: sucrose, sorbitol, mannitol, trehalose

What it isSimple sugars and their alcohol forms.

Why it is in thereThey do several jobs depending on the product: bulk and sweetness in a chewable or a liquid, and protection of the active ingredient through freezing and drying in anything freeze-dried.

What is documentedAmounts are usually small, but a chewable or liquid formulation can carry meaningfully more sugar than a plain tablet, which is worth knowing if you are managing blood sugar or giving it to a child several times a day. Sorbitol and mannitol draw water into the bowel and loosen stools at higher amounts, and sorbitol matters specifically for anyone with hereditary fructose intolerance.
Where else it appearsThis substance is in 158 other entries in this library, including Fluoxetine, Levothyroxine, Lisinopril, Ciprofloxacin and others. Exposure is counted per product, and nobody adds it up across the products a person actually receives.

Magnesium stearate and stearic acid

What it isA soap-like compound made from stearic acid, a saturated fat found in beef and cocoa butter, bound to magnesium. One of the most common ingredients in tablets and capsules.

Why it is in thereA lubricant. Without it, powder sticks to the tablet press and tablets will not form or release cleanly.

What is documentedA claim circulates online that magnesium stearate suppresses immune function. It traces to a 1990 laboratory study in which stearic acid affected mouse T cells in a dish, using isolated cells and an exposure with no relationship to swallowing a tablet, and it has not been shown as a human effect. The honest position is that the alarm is not supported by the study it rests on, which is not the same as saying the question has been studied exhaustively.
Where else it appearsThis substance is in 322 other entries in this library, including Sertraline, Escitalopram, Citalopram, Paroxetine and others. Exposure is counted per product, and nobody adds it up across the products a person actually receives.

Cellulose and its derivatives

Also listed as: microcrystalline cellulose, hypromellose, hydroxypropyl methylcellulose, croscarmellose sodium, carboxymethylcellulose, ethylcellulose

What it isPurified plant fibre and its chemical modifications. Microcrystalline cellulose is wood pulp milled to a fine powder; hypromellose is cellulose modified to form films and gels.

Why it is in thereBulk, binding, coating and controlled release. Hypromellose is also what a vegetarian capsule shell is made from, in place of gelatin.

What is documentedThese are among the most inert ingredients on any label and pass through largely undigested. If gelatin is a problem for you on dietary or religious grounds, a hypromellose capsule is the alternative to ask about by name.
Where else it appearsThis substance is in 303 other entries in this library, including Sertraline, Fluoxetine, Escitalopram, Citalopram and others. Exposure is counted per product, and nobody adds it up across the products a person actually receives.

Brand vs. Generic

Keflex (Shionogi) is the reference brand; generic cephalexin capsules are FDA-rated therapeutically equivalent (AB rating) and are the most commonly dispensed form. The oral suspension (Keflex brand) contains FD&C Yellow No. 6 and sucrose: parents of children with seizure disorders or dye sensitivity should request a generic suspension with a different inactive ingredient profile and confirm at dailymed.nlm.nih.gov before dispensing. Zartan is another brand name. All formulations are immediate-release, no extended-release form exists for cephalexin.

Sources and Resources

Bravo et al. (2011) PNAS: Lactobacillus rhamnosus JB-1 modulates GABA receptor expression via vagus nerve | theundoctored.com/seizures.html: Antibiotics in Food trigger card

Words on this card

Adverse event: Any harmful event that happens after a medicine or vaccine, whether or not it was caused by it.

Anaphylaxis: A severe, whole-body allergic reaction that can cause throat swelling, trouble breathing and a dangerous drop in blood pressure. It is a medical emergency.

Angioedema: Swelling deep under the skin, often of the lips, eyes, tongue or throat. Throat swelling can block breathing.

Antibody: A protein the immune system makes to recognize and attach to a specific germ or substance.

Encephalopathy: Any disease or damage that changes how the brain works, often seen as confusion, drowsiness or personality change.

Hypersensitivity: An exaggerated immune reaction to a substance, including allergic reactions.

Preservative: An ingredient added to stop germs from growing in the product, especially in multi-dose vials.

Seizure: A burst of abnormal electrical activity in the brain that can cause shaking, staring spells or loss of consciousness.

Stevens-Johnson syndrome: A rare, severe reaction in which the skin and moist linings of the body blister and peel. It is a medical emergency.

Toxic epidermal necrolysis: The most severe form of Stevens-Johnson syndrome, with large areas of skin peeling away.

Urticaria: Hives: raised, itchy welts on the skin.