Cephalexin
Cephalexin is a cephalosporin. It is acid stable, blocks bacterial cell-wall building and kills the bacteria. The kidneys clear it: studies showed that over 90% left unchanged in the urine within 8 hours. Its label lists it for respiratory tract infections, otitis media, and skin, bone and genitourinary tract infections, each caused by susceptible isolates of the bacteria it names.
- Acts on
- Bacterial cell-wall building (synthesis)
- Where
- Bacteria; cleared by the kidneys
- Medicine type
- Small molecule
- Used for
- Infections
- Drug class
- Antibiotics, Cephalosporins
Key terms in this drawing
- PBP
- Penicillin-binding protein. A bacterial enzyme that builds the cell wall; beta-lactam antibiotics, such as penicillins and cephalosporins, bind it.
How it works
Stable in acid. Cephalexin is acid stable; taken by mouth, it reaches peak blood levels at about 1 hour.1
Blocks cell-wall building. Cephalexin, a cephalosporin, acts by inhibiting bacterial cell-wall synthesis.1
The bacterium dies. It is a bactericidal agent: the bacteria die.1
Leaves unchanged in urine. The kidneys excrete cephalexin by glomerular filtration and tubular secretion: studies showed that over 90% left unchanged in the urine within 8 hours.1
For teachers: download this drawing.
See also
Condition pages: skin and soft-tissue infections; and urinary tract infections.
Other antibiotics: amoxicillin; amoxicillin and clavulanate; azithromycin; bedaquiline; ceftazidime and avibactam; ceftriaxone; ciprofloxacin; clindamycin; and 14 more.
Body system: infections.
Sources
- 1Cephalexin capsules: FDA label1 Indications and Usage; 12.1 Mechanism of Action; 12.3 Pharmacokinetics; 12.4 Microbiology
- 2ChEMBL CHEMBL1727Target and action classification: Bacterial penicillin-binding protein inhibitor
Also used for the drawing
The drawing names the wall-building enzymes that the medicine blocks, the penicillin-binding proteins. These sources support that part; the steps above come from the sources listed above. The penicillin-binding protein outline is traced from the crystal structure below.
- 3The penicillin-binding proteins: structure and role in peptidoglycan biosynthesisSauvage E et al., FEMS Microbiol Rev 2008 (abstract)
- 4Structural and kinetic analysis of the monofunctional Staphylococcus aureus PBP1Bon CG et al., J Struct Biol 2024 (abstract)
- 5Streptococcus pneumoniae penicillin-binding protein 2x acyl-enzyme complexPDB 1QMF; Gordon, E.J. et al. J.Mol.Biol. 2000; 299:501
Spotted a mistake? Report an error (hello@openmechanism.com). Since launch, every published error we fix is listed on the corrections page.
Notes and limits
- A schematic teaching drawing: not to scale, not exact structures, binding poses or a complete pathway, and not a guide to dosing, treatment or how a person will respond.
- The steps are in the order that explains them; one step is said to cause the next only where the source says so.
All recorded limits are on the evidence page, and notes that apply to every page are on How to read a page. Version 1.0.1, medically reviewed by Daniel Tran, PharmD, on 6 November 2026.
Cite this page
Tran D. Cephalexin [Internet]. OpenMechanism; 2026 [updated 2026 Nov 6; cited 2026 Nov 6]. Available from: https://openmechanism.com/medicines/cephalexin