Medicine · Cephalosporin Antibacterial · Cephalosporins
Cephalexin
Cephalexin is ampicillin's side chain on a cephalosporin core - the oral one that survived
What it is
Cephalexin is a first-generation cephalosporin, a beta-lactam antibiotic that kills bacteria by stopping them from building a cell wall, and it comes as a capsule, tablet or liquid. The molecule is a hybrid: the D-phenylglycine side chain that had already made ampicillin survive the stomach, welded onto the cephalosporin nucleus that Eli Lilly could only inject. That graft is why an injection-only class became a capsule. It is not metabolised at all, and more than 90 per cent of a dose leaves in urine within eight hours, unchanged; the 30- to 60-minute half-life is why the schedule is four doses a day rather than one.
What it does
Cephalexin is swallowed and crosses the wall of the small intestine on PEPT1, the transporter that normally carries dipeptides in from digested protein; the body mistakes the drug for a fragment of lunch. That is the trick that turns an injectable class into a capsule, and it is why stomach acid does not destroy it and a meal changes little. Peak blood levels arrive about an hour after a dose - roughly 9, 18 and 32 micrograms per millilitre after 250 mg, 500 mg and 1 g - and only 10 to 15 per cent of the drug is bound to plasma protein, so most of it is free to leave the blood. The liver does nothing to it. The kidney filters it and then secretes more of it into the tubule, and over 90 per cent of the dose leaves in urine within eight hours, unchanged. Urine concentrations after those same doses reach about 1,000, 2,200 and 5,000 micrograms per millilitre, orders of magnitude above what blood ever sees. That is the practical consequence: bladder, kidney and prostate infections sit in the one compartment where cephalexin is most concentrated, and the same rapid clearance is why the drug is dosed four times a day and why a failing kidney needs a smaller dose rather than a longer one.
How it works
The target is a bacterial enzyme, not a human one. Penicillin-binding proteins are transpeptidases: they sit on the outer face of the bacterial membrane and rivet new peptidoglycan strands together, using a D-alanyl-D-alanine end as the handle. Cephalexin ends in exactly that shape. The enzyme grips the drug as if it were the substrate, its active-site serine attacks the strained beta-lactam ring, and the ring opens and stays covalently attached. The rivet gun fires once and is welded shut. Think of a bricklayer whose trowel is glued to the first brick: the wall goes up course by course but nothing is bonded, and the next bit of growth splits it. That is roughly what happens. Cross-linking stops, the wall loses tensile strength while the cell keeps expanding, autolysins chew at the unprotected peptidoglycan, and water pressure finishes the job. The cell bursts. Because the kill depends on a process that only runs in a growing bacterium, cephalexin is bactericidal against dividing cells and indifferent to dormant ones - the reason a course is finished rather than abandoned when symptoms lift, and the reason the fraction of the dosing interval spent above the minimum inhibitory concentration predicts success. The side chain decides where this works. D-phenylglycine makes the molecule a zwitterion, which is the shape the intestinal peptide transporter accepts, and its bulk shields the beta-lactam ring from some bacterial enzymes. The spectrum is still first-generation: streptococci and methicillin-susceptible staphylococci first, with Escherichia coli, Proteus mirabilis, Klebsiella and Moraxella behind them. Resistance arrives by three routes - beta-lactamases that hydrolyse the ring before it reaches a target, the low-affinity PBP2a of MRSA, and the intrinsically low-affinity PBP5 of enterococci, which is why neither organism responds however high the dose.
Step by step
- Cephalexin binds penicillin-binding proteins — The beta-lactam ring is read as a D-alanyl-D-alanine mimic and acylates the active-site serine of the transpeptidase, which cannot cross-link while the drug stays attached.
- Peptidoglycan cross-linking stops — Fresh glycan strands are still exported but never riveted to their neighbours, so the wall thins as the bacterium elongates.
- The cell ruptures — Autolysins and turgor pressure break the weakened wall, which kills only bacteria that are actively dividing.
- Resistance blocks the binding step — Beta-lactamases hydrolyse the ring, MRSA presents the low-affinity PBP2a, and enterococci rely on the low-affinity PBP5.
- The kidney clears the intact molecule — Glomerular filtration plus tubular secretion puts more than 90 per cent of the dose into urine within eight hours, unchanged.
What it is used for
- Skin and soft-tissue infection (cellulitis)
- Urinary tract infection and acute prostatitis
- Streptococcal pharyngitis
- Otitis media
- Bone infection (osteomyelitis)
- Prevention of heart-valve infection before dental or upper-airway procedures
Dosing as the label states it
The label states 250 mg every 6 hours, or 500 mg every 12 hours, for 7 to 14 days, with up to 4 g daily in two to four divided doses for severe infections, and reduced regimens once creatinine clearance falls below 30 mL/min.
What to watch for
- Diarrhoea
- Nausea, vomiting, indigestion and abdominal pain
- Rash or hives
- Anaphylaxis, angioedema, or blistering reactions such as Stevens-Johnson syndrome and toxic epidermal necrolysis
- Clostridioides difficile diarrhoea, which can begin up to two months after the antibiotic stops
- Vaginal candidiasis, genital itching or discharge
- Seizures, particularly when the dose was not reduced for kidney impairment
- Anaemia with a positive direct Coombs test, occasionally with intravascular haemolysis
Interactions
- Zinc supplements — Zinc binds cephalexin in the gut before it can be absorbed. In a crossover study of 12 volunteers, 250 mg of zinc sulfate taken with a 500 mg dose cut peak concentration by 31 per cent, total exposure by 27 per cent and time above the MIC by 22 per cent; zinc taken three hours before the antibiotic still cut exposure by 18 per cent, while zinc three hours after changed nothing.
- Metformin — Metformin leaves the body through the proximal tubule's organic cation transporters - OCT2 on the blood side, MATE1 and MATE2-K on the urine side - and cephalexin competes for that secretory route. The label records the result of single 500 mg doses of each: metformin peak up 34 per cent, total exposure up 24 per cent, renal clearance down 14 per cent, with advice to watch for hypoglycaemia.
- Probenecid — Probenecid blocks the tubular secretion that removes cephalexin, so the antibiotic's levels rise and linger; the label calls for avoiding the combination. The same mechanism is now being repurposed deliberately - a 2026 systematic review of nine studies and more than 1,600 participants examined probenecid-boosted cefazolin as a narrower alternative to ceftriaxone.
- Warfarin — The label warns that cephalosporins can prolong prothrombin time, and lists anticoagulant therapy among the risks. The mechanism is not the one that makes cefoperazone notorious: that drug's NMTT side chain interferes with vitamin K metabolism, and cephalexin has no such side chain. Cephalosporins nonetheless raise INR without touching cytochrome P450 2C9, which points at vitamin K from gut flora…
- Cimetidine, ranitidine and omeprazole — Acid suppression does not meaningfully change how much cephalexin is absorbed - a 1989 study found ranitidine had no effect on bioavailability - but it delays absorption. A 2004 crossover study found peak time significantly prolonged with ranitidine or omeprazole and, for some drug-and-pathogen combinations, a shorter fraction of the dosing interval spent above the MIC.
- Urine glucose tests — Cephalexin can produce a false-positive reading with Benedict's or Fehling's solution, so the label points to glucose-oxidase strips instead. This is a laboratory artefact, not a metabolic effect.
Avoid if
- Documented immediate penicillin allergy - anaphylaxis, angioedema or a blistering rash - because cross-reactivity with beta-lactams is documented in up to 10 per cent of penicillin-allergic patients.
- Documented hypersensitivity to cephalexin or another cephalosporin, which is the label's stated contraindication.
- Creatinine clearance below 30 mL/min without a reduced regimen, because accumulation is linked to seizures.
- Known or likely MRSA or enterococcal infection, because PBP2a and PBP5 bind the drug too weakly for it to work.
- Active Clostridioides difficile colitis, which cephalexin can aggravate by further disturbing the colonic flora.
How it was discovered
Cephalosporins begin in a sewer. In 1948 Giuseppe Brotzu, a hygiene professor in Cagliari, filtered water from a Sardinian sewage outfall and found a mould, Acremonium strictum, whose broth killed Salmonella typhi - a bacterium that had learned to dismantle penicillin. Guy Newton and Edward Abraham at Oxford isolated cephalosporin C from it, and its nucleus, 7-ACA, proved the chemical cousin of penicillin's 6-APA. But the first drug built on that nucleus, cefalotin, had to be injected: the gut would not let it through. The obstacle was absorption, not potency. Lilly's chemists answered it by attaching D-phenylglycine - the side chain that had already made ampicillin survive the stomach - to the cephalosporin core. Cephalexin, made in 1967, was not the first oral cephalosporin; cephaloglycin, sold as Kafocin, reached the market first and was withdrawn. Cephalexin is the one that stayed.
Approval history
Eli Lilly marketed the molecule as Keflex in 1969, while ChEMBL's curated record dates first approval to 1971; the two figures are quoted side by side and nothing reconciles them. What is not in doubt is the commercial shape. For two decades Keflex was the oral cephalosporin, prescribed for the strep throats, ear infections and cellulitis that filled general practice, with siblings Keflet, Keftab and Panixine DisperDose following it. All four now carry a MedlinePlus footnote saying the branded product is no longer marketed, the generics having taken the ground. The approval mattered less for novelty than for logistics: a hospital-only class became something a patient could finish at home.
Impact
WHO lists cephalexin among essential medicines and classifies it as highly important to human medicine - a designation about stewardship, not prestige. The scale is ordinary and enormous: more than seven million prescriptions in the United States in 2023, 86th on the national list; the fifth most-used antibiotic in Canada in 2013; a top-ten prescription in Australia in every year from 2017 to 2023. The scaffold reproduced too - cefadroxil is cephalexin with a hydroxyl added to its phenyl ring, and it inherited the same oral route and the same niche. In cellulitis trials published in 2023 and 2026, cephalexin is still the arm that new schedules are measured against.
What the research shows
Cephalexin is rarely the question in a trial; it is the floor other treatments are measured from. ClinicalTrials.gov holds 121 registered studies that mention it, and the largest by far is PADIT, a cluster-randomised crossover across 28 centres and 19,603 device procedures, which added two days of oral cephalexin, a vancomycin infusion and a bacitracin pocket wash to standard cefazolin prophylaxis: infection fell from 1.03 to 0.78 per cent, an odds ratio of 0.77 whose confidence interval crossed 1. Cellulitis is where it is most actively tested, with a 66-patient pilot comparing 1,000 mg with 500 mg four times daily, and a 2026 multicentre cohort of 300 adults finding 1,000 mg three times daily indistinguishable from 500 mg four times daily. The rest of the literature is pharmacokinetics - how zinc, acid suppression and kidney function move the curve - because after fifty years of use the efficacy question is settled by custom rather than by a modern placebo-controlled trial.
Key findings
- Adding two days of oral cephalexin, plus vancomycin and a bacitracin pocket wash, to standard cefazolin prophylaxis did not significantly reduce cardiac device infection: 1.03 per cent with conventional treatment versus 0.78 per cent with the incremental regimen (odds ratio 0.77, 95 per cent CI 0.56-1.05).
- In uncomplicated lower-extremity cellulitis, 1,000 mg three times daily produced treatment failure in 5.3 per cent of patients versus 6.7 per cent with 500 mg four times daily, with no difference in revisits or hospitalisation.
- Zinc sulfate 250 mg taken with a 500 mg cephalexin dose reduced peak concentration by 31 per cent, total exposure by 27 per cent and time above the MIC by 22 per cent; staggering zinc three hours after the dose avoided the effect.
- Single 500 mg doses of cephalexin and metformin raised metformin peak concentration by 34 per cent and total exposure by 24 per cent, and lowered metformin renal clearance by 14 per cent.
- High-dose cephalexin (1,000 mg four times daily) produced treatment failure in 1 of 33 patients versus 4 of 33 on standard dose, with more minor adverse effects in the high-dose arm.
What is still unsettled
The label's metformin figures come from single 500 mg doses of each drug; whether repeated cephalexin dosing compounds that 14 per cent fall in renal clearance has not been measured. Whether the absorption delay from acid suppression changes clinical outcomes, rather than just the time-above-MIC curve, is untested. And the INR rise associated with cephalosporins has never been separated cleanly from the illness and poor nutrition that accompany the infections they treat.
Open questions
- Does the 14 per cent fall in metformin clearance matter at steady state, or in people whose kidneys are already filtering poorly?
- Does the three-hour zinc separation that worked in twelve volunteers hold in ordinary use, where supplements are often taken with breakfast?
- Why does a drug with a 30- to 60-minute half-life do as well in cellulitis as its tissue concentrations alone would predict - is post-antibiotic effect or protein binding doing unseen work?
- Is the prothrombin-time rise with cephalexin a real drug effect or a marker of the patient who needs the drug?
Drug class
Related
Sources
- DailyMed label: cephalexin capsules (Aurobindo)
- MedlinePlus: Cephalexin
- ChEMBL compound report card: CEPHALEXIN (CHEMBL1200544)
- Wikipedia: Cefalexin
- ClinicalTrials.gov: studies mentioning cephalexin
- PADIT: incremental antibiotics including oral cephalexin for device infection (2018)
- Zinc sulfate and oral cephalexin pharmacokinetics, randomised crossover (2012)
RNAWiki is a reference directory, not medical advice. Check any decision with a pharmacist or clinician.