We’re looking for volunteer reviewers in pharmacy, medicine and pharmacology. How to volunteerWe’re looking for volunteer reviewers.

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
Schematic drawing of how cephalexin works: 1, stable in acid; 2, blocks cell-wall building; 3, the bacterium dies; 4, leaves unchanged in urine.
How cephalexin works. Schematic, not to scale. Penicillin-binding protein outline from pneumococcal PBP2x, as an example. License CC BY-NC 4.0.

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

  1. Stable in acid. Cephalexin is acid stable; taken by mouth, it reaches peak blood levels at about 1 hour.1

  2. Blocks cell-wall building. Cephalexin, a cephalosporin, acts by inhibiting bacterial cell-wall synthesis.1

  3. The bacterium dies. It is a bactericidal agent: the bacteria die.1

  4. 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

Sources

  1. 1
    Cephalexin capsules: FDA label1 Indications and Usage; 12.1 Mechanism of Action; 12.3 Pharmacokinetics; 12.4 Microbiology
  2. 2
    ChEMBL 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.

  1. 3
    The penicillin-binding proteins: structure and role in peptidoglycan biosynthesisSauvage E et al., FEMS Microbiol Rev 2008 (abstract)
  2. 4
    Structural and kinetic analysis of the monofunctional Staphylococcus aureus PBP1Bon CG et al., J Struct Biol 2024 (abstract)
  3. 5
    Streptococcus 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