med study partner

Articles & Guides › Articles › Infectious Diseases

Penicillins, cephalosporins, carbapenems and vancomycin

How beta-lactams block cell wall cross-linking and how the penicillin groups and beta-lactamase inhibitors differ in spectrum, what each cephalosporin generation, the carbapenems and aztreonam cover and how to manage penicillin allergy, and how vancomycin, daptomycin and polymyxins work and harm.

Infectious Diseases · 6 min read · Reviewed 2026-11-10

The bacterial cell wall is the perfect antibiotic target: bacteria need it to survive their own internal pressure, and human cells have nothing like it. Most drugs in this topic stop bacteria from building the peptidoglycan mesh, so they kill growing bacteria and are generally safe, although allergy is common. The beta-lactams (penicillins, cephalosporins, carbapenems and aztreonam) all block the same enzymes, and what separates them is spectrum: which organisms each can reach and which bacterial enzymes can destroy it. Vancomycin attacks the same wall from a different angle, while daptomycin and the polymyxins attack membranes.

Key points

  • Beta-lactams bind penicillin-binding proteins and block peptidoglycan cross-linking; they kill dividing bacteria.
  • Nafcillin, oxacillin and cefazolin treat methicillin-susceptible S. aureus better than vancomycin; ampicillin adds Listeria and enterococci; piperacillin-tazobactam adds Pseudomonas and anaerobes.
  • Cephalosporins never cover Listeria, atypical organisms, MRSA (except ceftaroline) or enterococci; ceftriaxone treats meningitis and gonorrhea, and ceftazidime and cefepime cover Pseudomonas.
  • Carbapenems have the broadest beta-lactam spectrum and are kept for resistant organisms; aztreonam covers only gram-negatives and is safe in severe penicillin allergy.
  • Vancomycin binds D-Ala-D-Ala and covers only gram-positives; its infusion reaction is not an allergy; daptomycin cannot treat pneumonia because surfactant inactivates it.

Penicillins and beta-lactamase inhibitors

How beta-lactams kill

Beta-lactams bind the transpeptidases that cross-link peptidoglycan, also called penicillin-binding proteins. Without cross-links, the wall weakens, the cell's own wall-remodeling enzymes keep cutting, and the bacterium bursts[1]. Because they act on the building process, beta-lactams kill actively dividing bacteria best.

Bacteria defend themselves mainly with beta-lactamases, enzymes that open the beta-lactam ring. Each penicillin group is defined by how well it resists these enzymes and how well it crosses the gram-negative outer membrane[2].

The penicillin groups

GroupExamplesSpectrumKey uses
Natural penicillinsPenicillin G (intravenous), penicillin V (oral), benzathine penicillin (long-acting injection)Streptococci, N. meningitidis, Treponema pallidum, Clostridium, ActinomycesSyphilis, strep throat, group B strep prevention in labor, rheumatic fever prevention
AntistaphylococcalNafcillin, oxacillin, dicloxacillinMethicillin-susceptible S. aureus and streptococci; no gram-negativesSerious MSSA infection; a bulky side chain blocks staphylococcal penicillinase
AminopenicillinsAmpicillin, amoxicillinAdds some gram-negatives (H. influenzae, E. coli), *Listeria and enterococci*Listeria meningitis, ear and sinus infections, enterococcal infection
AntipseudomonalPiperacillinAdds *Pseudomonas* and more gram-negative rodsAlways paired with tazobactam for hospital infections

Beta-lactamase inhibitors (clavulanate, sulbactam, tazobactam and avibactam) have little antibacterial effect alone, but they bind the destructive enzymes and protect their partner. Amoxicillin-clavulanate covers animal bites and sinus infections; piperacillin-tazobactam covers a broad range including Pseudomonas and anaerobes.

For methicillin-susceptible S. aureus bacteremia, nafcillin, oxacillin or cefazolin work better than vancomycin, so treatment is narrowed once susceptibility is known. Aminopenicillins cause a characteristic rash in people with Epstein-Barr virus infection.

Toxicity

Penicillins can cause hypersensitivity, from rash to anaphylaxis, although true IgE-mediated allergy is far less common than reported. They can also cause interstitial nephritis (classically nafcillin), immune hemolytic anemia with a positive direct Coombs test, seizures at very high doses or in kidney failure, and C. difficile colitis[3].

Cephalosporins, carbapenems and aztreonam

Cephalosporin generations

Cephalosporins resist more beta-lactamases than penicillins. As a class they do not cover the "LAME" organisms: *Listeria, atypicals such as Mycoplasma and Chlamydia, MRSA (except ceftaroline) and e*nterococci.

GenerationExamplesSpectrum highlights
FirstCefazolin, cephalexinStreptococci, MSSA, Proteus, E. coli, Klebsiella; cefazolin is the standard surgical prophylaxis
SecondCefuroxime, cefoxitin, cefotetanAdds H. influenzae and more gram-negatives; cefoxitin and cefotetan cover anaerobes
ThirdCeftriaxone, cefotaxime, ceftazidimeSerious gram-negative infection; enter the CSF, so they treat meningitis; ceftriaxone treats gonorrhea; ceftazidime covers *Pseudomonas*
FourthCefepimeBroad gram-negative cover including Pseudomonas, plus gram-positives; used in neutropenic fever
FifthCeftarolineThe only beta-lactam that covers MRSA, because it binds the altered PBP2a

Ceftriaxone is avoided in newborns because it displaces bilirubin from albumin and can precipitate with calcium in intravenous fluids. For bacterial meningitis in an older adult, ceftriaxone and vancomycin are combined with ampicillin, because no cephalosporin covers Listeria.

Carbapenems

Carbapenems (meropenem, imipenem, ertapenem) have the broadest beta-lactam spectrum: gram-positives, gram-negatives including Pseudomonas (except ertapenem) and anaerobes. Imipenem is given with cilastatin, which stops a kidney enzyme from breaking it down. Carbapenems are kept for multidrug-resistant organisms such as ESBL producers. They can cause seizures, especially imipenem, and they still miss MRSA, E. faecium and atypical organisms.

Aztreonam and penicillin allergy

Aztreonam is a monobactam that binds a penicillin-binding protein found only in gram-negative bacteria, so it covers gram-negatives including Pseudomonas but no gram-positives or anaerobes. Its special value is that it has essentially no cross-reactivity with penicillins.

In practice, a mild rash with penicillin does not rule out a cephalosporin, because cross-reactivity is low and mostly limited to drugs with similar side chains[4]. After anaphylaxis, options include aztreonam, vancomycin and drugs from other classes, or desensitization when penicillin is essential, as for syphilis in pregnancy.

Vancomycin, daptomycin and polymyxins

Vancomycin

Vancomycin is a large glycopeptide that binds the D-Ala-D-Ala end of new peptidoglycan building blocks, blocking their assembly. It is too big to cross the gram-negative outer membrane, so it covers gram-positive organisms only: MRSA, resistant pneumococci and empiric treatment of meningitis and catheter infections[5]. Oral vancomycin is not absorbed, so it acts only in the gut and treats C. difficile.

Its toxicities are kidney injury (worse with other nephrotoxic drugs), hearing damage, and the vancomycin infusion reaction: flushing and itching of the face, neck and upper body when it is infused quickly. This is direct mast cell release of histamine, not an allergy, and it is prevented by infusing slowly and giving an antihistamine. Vancomycin-resistant enterococci change D-Ala-D-Ala to D-Ala-D-Lac and are treated with linezolid or daptomycin.

Daptomycin

Daptomycin inserts into the gram-positive cell membrane and depolarizes it[6]. It treats MRSA bacteremia and endocarditis and VRE. It is inactivated by lung surfactant, so it must not be used for pneumonia. It can damage muscle, so creatine kinase is monitored and statins are often paused.

Polymyxins and linezolid

Polymyxin B and colistin act like detergents on the gram-negative outer membrane. They are last-resort drugs for carbapenem-resistant gram-negative infections and cause kidney and nerve toxicity[7]. Linezolid, a protein synthesis inhibitor that also covers MRSA and VRE, can lower platelets, damage the optic and peripheral nerves and cause serotonin syndrome with serotonergic drugs.

Common confusions

  • Nafcillin versus amoxicillin-clavulanate: nafcillin resists staphylococcal penicillinase but covers no gram-negatives; amoxicillin-clavulanate covers more gram-negatives and anaerobes but not MRSA.
  • Ceftriaxone versus ceftazidime and cefepime: ceftriaxone does not cover Pseudomonas; the other two do.
  • Vancomycin infusion reaction versus allergy: slow the infusion for the first; stop the drug for true anaphylaxis.
  • Daptomycin for pneumonia: never, because surfactant inactivates it.

References

  1. Kohanski MA, Dwyer DJ, Collins JJ. How antibiotics kill bacteria: from targets to networks. Nat Rev Microbiol. 2010;8(6):423-435. doi:10.1038/nrmicro2333 Link ↩
  2. Bush K, Bradford PA. β-Lactams and β-lactamase inhibitors: an overview. Cold Spring Harb Perspect Med. 2016;6(8):a025247. doi:10.1101/cshperspect.a025247 Link ↩
  3. Vanderah TW, ed. Katzung's Basic and Clinical Pharmacology. 16th ed. McGraw Hill; 2024. ↩
  4. Shenoy ES, Macy E, Rowe T, Blumenthal KG. Evaluation and management of penicillin allergy: a review. JAMA. 2019;321(2):188-199. doi:10.1001/jama.2018.19283 Link ↩
  5. Rybak MJ, Le J, Lodise TP, et al. Therapeutic monitoring of vancomycin for serious methicillin-resistant Staphylococcus aureus infections: a revised consensus guideline and review by the American Society of Health-System Pharmacists, the Infectious Diseases Society of America, the Pediatric Infectious Diseases Society, and the Society of Infectious Diseases Pharmacists. Am J Health Syst Pharm. 2020;77(11):835-864. doi:10.1093/ajhp/zxaa036 Link ↩
  6. Steenbergen JN, Alder J, Thorne GM, Tally FP. Daptomycin: a lipopeptide antibiotic for the treatment of serious Gram-positive infections. J Antimicrob Chemother. 2005;55(3):283-288. doi:10.1093/jac/dkh546 Link ↩
  7. Nation RL, Li J. Colistin in the 21st century. Curr Opin Infect Dis. 2009;22(6):535-543. doi:10.1097/QCO.0b013e328332e672 Link ↩

Test yourself in the Question Bank · Listen to the podcasts