Pharmacology · Cell wall synthesis inhibitors

Cephalosporins

Beta-lactam antibiotics grouped into five generations, with gram-negative coverage broadly widening from the first generation onward.

Quick revision

Cephalosporins are bactericidal beta-lactams sorted into five generations; as a rough rule gram-negative cover widens from the first generation onward, with ceftazidime and cefepime reaching Pseudomonas and only the fifth generation touching MRSA.

  • Five generations, defined by spectrum against gram-positive and gram-negative bacteria and by when they were discovered. (1)
  • First generation (cefazolin, cephalexin) covers most gram-positive cocci with minimal gram-negative activity; cefazolin is the preferred agent for surgical prophylaxis. (1)
  • Ceftazidime and cefepime carry Pseudomonas aeruginosa activity; ceftaroline does not. (1)
  • Only the fifth generation — ceftaroline and ceftobiprole — covers MRSA. (1)
  • Ceftriaxone, cefotaxime, ceftazidime and cefepime penetrate the blood-brain barrier and are therefore options in meningitis. (1)
  • Mechanism is identical to the penicillins: the beta-lactam ring binds penicillin-binding proteins and blocks cell-wall synthesis. (1) (2)
  • Penicillin cross-reactivity is highest with first- and second-generation agents; third-generation and beyond show minimal cross-reactivity. (1)

Overview

Cephalosporins are beta-lactam antimicrobials used against infections caused by both gram-positive and gram-negative bacteria. They are categorised into five generations based on their spectrum of coverage and on when they were discovered. (1)

Across those generations the class treats skin and soft-tissue infections, pneumonia, meningitis and a range of other infections. The generation framework is worth learning properly, because it is the fastest way to predict which organisms a given cephalosporin is likely to reach. (1)

Newer agents continue to extend the class. Cefiderocol is a siderophore cephalosporin that exploits bacterial iron transporters to reach the periplasm, and it retains stability against beta-lactamases including some carbapenemases. (1)

Classification and drug examples

Five generations, distinguished by spectrum. The pattern to hold onto: gram-positive cover is strongest early, gram-negative cover broadens later, antipseudomonal activity is limited to specific agents, and MRSA cover arrives only at the end.

First generation

Covers most gram-positive cocci such as staphylococci and streptococci, with some gram-negative activity against Escherichia coli, Proteus mirabilis and Klebsiella pneumoniae. (1)

  • Cefazolin · IV/IM — Preferred agent for surgical prophylaxis. (1)
  • Cephalexin (Cefalexin) · Oral — Oral agent used for infections including urinary tract infections, pneumonia and other chest infections. (3)
  • Cefadroxil · Oral — Oral first-generation agent. (1)
  • Cephradine · Oral — First-generation agent. (1)

Second generation

Enhanced gram-negative coverage including Haemophilus influenzae, Moraxella catarrhalis and Bacteroides species. The cephamycins form a subgroup within this generation. (1)

  • Cefuroxime · Oral/IV — Standard second-generation agent used in respiratory infections. (1)
  • Cefprozil · Oral — Standard second-generation agent. (1)
  • Cefoxitin · IV — Cephamycin subgroup. (1)
  • Cefotetan · IV — Cephamycin subgroup; one of the two cephalosporins most likely to cause drug-induced immune haemolytic anaemia. (1)
  • Cefmetazole · IV — Cephamycin subgroup. (1)

Third generation

Extended gram-negative spectrum. Ceftazidime is the member with Pseudomonas aeruginosa coverage; ceftriaxone and cefotaxime are the agents used where blood-brain barrier penetration is needed. (1)

  • Ceftriaxone · IV/IM — Penetrates the blood-brain barrier; used in meningitis. Contraindicated in neonates with hyperbilirubinaemia. (1)
  • Cefotaxime · IV — Penetrates the blood-brain barrier; used in meningitis. (1)
  • Ceftazidime · IV — The third-generation agent with Pseudomonas aeruginosa coverage. (1)
  • Cefdinir · Oral — Oral third-generation agent. (1)
  • Cefpodoxime · Oral — Oral third-generation agent. (1)
  • Cefixime · Oral — Oral third-generation agent. (1)
  • Cefoperazone · IV — Third-generation agent; associated with disulfiram-like reactions. (1)

Fourth generation

Broad-spectrum cover across gram-positive and gram-negative organisms, including Pseudomonas aeruginosa and beta-lactamase producers, with blood-brain barrier penetration. (1)

  • Cefepime · IV — Neurotoxicity — seizures and encephalopathy — is reported in overdose and in unadjusted renal impairment. (1)

Fifth generation

The generation that reaches methicillin-resistant Staphylococcus aureus and penicillin-resistant Streptococcus pneumoniae. (1)

  • Ceftaroline · IV — Covers MRSA but does not cover Pseudomonas aeruginosa. (1)
  • Ceftobiprole · IV — Fifth-generation agent with MRSA activity. (1)

Mechanism of action

Cephalosporins are bactericidal beta-lactams: the beta-lactam ring binds penicillin-binding proteins and inhibits their normal activity, preventing cell-wall synthesis and killing the organism.

Molecular target
Penicillin-binding proteins (bacterial transpeptidases)
Killing effect
bactericidal
Kill kinetics
time-dependent
  1. The beta-lactam ring engages its target

    The drug binds penicillin-binding proteins and inhibits their normal activity. (1)

  2. Cell-wall synthesis is blocked

    With the transpeptidases inactivated, peptidoglycan cross-linking cannot be completed and the wall cannot be finished. (1) (2)

  3. The organism dies

    Loss of a competent cell wall leads to loss of viability and lysis — the class is bactericidal rather than merely growth-arresting. (1) (2)

  4. Some agents get in by a different door

    Cefiderocol is recognised by bacterial iron transporters, which carries it efficiently into the periplasm where it binds penicillin-binding proteins strongly. (1)

Spectrum of activity

Learn the class as a shifting spectrum rather than a widening one. Gram-positive activity is strongest early, gram-negative reach grows later, and specific agents rather than whole generations carry antipseudomonal and anti-MRSA activity.

Spectrum by subclass
SubclassGram-positiveGram-negativeAnaerobesAtypicalsNotable gaps
first-generationMost gram-positive cocci: staphylococci, streptococciEscherichia coli, Proteus mirabilis, Klebsiella pneumoniaeMRSA, Pseudomonas aeruginosa (1)
second-generationGram-positive cocciHaemophilus influenzae, Moraxella catarrhalisBacteroides species (cephamycins)MRSA, Pseudomonas aeruginosa (1)
third-generationReduced relative to the first generationExtended gram-negative spectrum, Pseudomonas aeruginosa (ceftazidime only)MRSA (1)
fourth-generationGram-positive organismsBroad gram-negative cover including Pseudomonas aeruginosa and beta-lactamase producersMRSA (1)
fifth-generationMRSA, Penicillin-resistant Streptococcus pneumoniaeGram-negative coverPseudomonas aeruginosa (ceftaroline) (1)

Major clinical uses

Read each row as drug → organism → indication. Therapy is always directed by local susceptibility data and the treating clinician.

DrugOrganismIndicationRoleNote
CefazolinGram-positive skin floraSurgical prophylaxispreferredThe first-generation agent named as preferred for this indication. (1)
CephalexinSusceptible gram-positive and gram-negative organismsUrinary tract infection, pneumonia and other chest infectionsfirst-lineOral first-generation option. (3)
CefuroximeHaemophilus influenzae, Moraxella catarrhalisRespiratory infectionsfirst-lineStandard second-generation agent. (1)
CeftriaxoneSusceptible meningeal pathogensMeningitisfirst-lineOne of the agents that effectively penetrates the blood-brain barrier. (1)
CeftazidimePseudomonas aeruginosaSerious infection where Pseudomonas is a concerntargetedThe third-generation agent carrying antipseudomonal activity. (1)
CeftarolineMRSA, penicillin-resistant Streptococcus pneumoniaeInfection caused by resistant gram-positive organismstargetedDoes not cover Pseudomonas aeruginosa. (1)

Pharmacokinetics

DrugRouteAbsorptionCSF penetrationMetabolismEliminationHalf-lifeAdjust in
CefazolinIV/IMNot orally administeredPoorLimitedRenalShortRenal impairment (1)
CephalexinOralOrally absorbedPoorLimitedRenalShortRenal impairment (3)
CeftriaxoneIV/IMNot orally administeredEffectiveLimitedRenal and biliaryLong enough for once-daily useSee prescribing reference (1)
CefepimeIVNot orally administeredEffectiveLimitedRenalShortRenal impairment — neurotoxicity risk if unadjusted (1)
  • Ceftriaxone, cefotaxime, ceftazidime and cefepime are the members that effectively penetrate the blood-brain barrier, which is what makes them usable in meningitis. (1)
  • This page gives no dose regimens by design. Doses depend on indication, organism, renal function, age and weight, and belong in a prescribing reference used by the treating clinician.

Adverse effects

Common

  • Hypersensitivity reactions: Rash, hives and swelling; reported more commonly with first- and second-generation agents. (1)
  • Gastrointestinal upset: Diarrhoea and related gastrointestinal symptoms. (3)

Serious adverse effects

  • Pseudomembranous colitis: Reported commonly with third-generation agents. Seek urgent medical assessment for severe or persistent diarrhoea. (1)
  • Drug-induced immune haemolytic anaemia: Cefotetan and ceftriaxone are the two cephalosporins most likely to cause it. Requires prompt recognition and specialist management. (1)
  • Cefepime neurotoxicity: Seizures and encephalopathy, particularly in overdose or unadjusted renal impairment. Adjust dose for renal function and review promptly if neurological features appear. (1)
  • Hypoprothrombinaemia from vitamin K deficiency: Not a class-wide effect. It is tied to the cephalosporins carrying an N-methylthiotetrazole side chain — cefotetan, cefamandole, cefmetazole, cefoperazone and moxalactam — whose structure interferes with vitamin K metabolism and so with synthesis of clotting factors. Prothrombin time or INR is monitored where one of those agents is used, particularly alongside warfarin. (1)

Drug-specific effects

  • Cefamandole, cefoperazone, moxalactam: The cephalosporins most commonly associated with disulfiram-like reactions. (1)
  • Cefotetan and ceftriaxone: The two agents most likely to cause drug-induced immune haemolytic anaemia. (1)

Contraindications, precautions and interactions

Contraindications

  • Allergy to cephalosporins, or anaphylaxis to penicillin or other beta-lactams. (1)
  • Ceftriaxone in neonates with hyperbilirubinaemia, and in infants under 28 days old expected to receive calcium-containing products, because of precipitation risk. (1)

Precautions

  • Renal impairment, where dose adjustment is required — cefepime neurotoxicity is the clearest consequence of getting this wrong. (1)
  • A reported but unverified penicillin allergy. Cross-reactivity is driven by R-group similarity and is minimal from the third generation onward, and fewer than 1% of patients carrying a penicillin allergy label are truly allergic on evaluation. (1) (4)

Drug interactions

  • Alcohol: Disulfiram-like reactions are reported with cefamandole, cefoperazone and moxalactam. (1)
  • Calcium-containing intravenous products: Precipitation risk with ceftriaxone in neonates and young infants. (1)

Resistance mechanisms

Modified penicillin-binding protein

Bacteria acquire a gene encoding an altered penicillin-binding protein, which stops the cephalosporin's beta-lactam ring from inactivating it. This is the MRSA mechanism. (1)

Examples: MRSA

Fifth-generation agents (ceftaroline, ceftobiprole) are the cephalosporins that reach MRSA.

Beta-lactamase production

The enzyme cleaves the beta-lactam ring so the drug can no longer attach to penicillin-binding proteins. (1) (2)

Examples: Extended-spectrum beta-lactamase producers

Agents with greater beta-lactamase stability, guided by susceptibility testing.

Reduced penetration and efflux

Beta-lactam resistance also arises from decreased penetration to the target site and from efflux pumping. (2) (1)

Selection guided by susceptibility testing; cefiderocol's iron-transporter route is one way around a permeability barrier.

Because the mechanisms differ, an organism resistant to one cephalosporin is not automatically resistant to all of them. Therapy is directed by local susceptibility data.

Comparison tables

The five generations compared

Representative agents and the distinguishing feature of each generation. Spectrum statements are general; local susceptibility data governs actual therapy.

GenerationExamplesDistinguishing featurePseudomonasMRSA
FirstCefazolin, cephalexin, cefadroxil, cephradineMost gram-positive cocci; limited gram-negativeNoNo (1)
SecondCefuroxime, cefprozil; cephamycins cefoxitin, cefotetan, cefmetazoleAdds H. influenzae, M. catarrhalis, BacteroidesNoNo (1)
ThirdCeftriaxone, cefotaxime, ceftazidime, cefdinir, cefpodoxime, cefiximeExtended gram-negative; CNS penetration (ceftriaxone, cefotaxime)Ceftazidime onlyNo (1)
FourthCefepimeBroad gram-positive and gram-negative, beta-lactamase producers, CNS penetrationYesNo (1)
FifthCeftaroline, ceftobiproleReaches MRSA and penicillin-resistant S. pneumoniaeNo (ceftaroline)Yes (1)

High-yield exam pearls

  • Cefazolin is the go-to first-generation agent for surgical prophylaxis. (1) It covers the gram-positive skin flora that cause most surgical site infections and is the preferred agent named for this indication.
  • Ceftazidime is the third-generation cephalosporin with antipseudomonal activity. (1) Third-generation agents broadly extend gram-negative reach, but Pseudomonas aeruginosa coverage within that generation is specifically ceftazidime's.
  • MRSA cover arrives only at the fifth generation. (1) Ceftaroline and ceftobiprole bind the modified penicillin-binding protein that makes MRSA resistant to earlier beta-lactams.
  • The cephamycins — cefoxitin, cefotetan, cefmetazole — sit inside the second generation and add Bacteroides cover. (1) Second-generation coverage extends to Haemophilus influenzae, Moraxella catarrhalis and Bacteroides species.
  • Ceftriaxone is contraindicated in neonates with hyperbilirubinaemia, and in infants under 28 days expected to receive calcium-containing products. (1) Ceftriaxone-calcium precipitation is the reason, and this is a classic exam contraindication.
  • Cefepime causes neurotoxicity — seizures and encephalopathy — in overdose or unadjusted renal impairment. (1) It is the cephalosporin most associated with this effect, which is why renal dose adjustment matters.

Common exam traps

  • Trap: "Each generation simply covers more than the one before it." Actually: Gram-negative cover broadly widens, but gram-positive activity is strongest in the first generation and MRSA cover appears only in the fifth. It is a shift in spectrum, not a straight expansion. (1)
  • Trap: "All third-generation cephalosporins cover Pseudomonas." Actually: Within the third generation, ceftazidime is the agent with Pseudomonas aeruginosa coverage — not the generation as a whole. (1)
  • Trap: "Any penicillin allergy rules out every cephalosporin." Actually: Cross-reactivity is driven by R-group similarity and is more common with first- and second-generation agents; third-generation and beyond show minimal cross-reactivity. A reported penicillin allergy also deserves evaluation, since under 1% of labelled patients are truly allergic. (1) (4)
  • Trap: "Fifth-generation means broadest of all." Actually: Ceftaroline adds MRSA and penicillin-resistant pneumococcal cover but does not cover Pseudomonas aeruginosa. (1)

Self-test questions

Answers are hidden until you open them. These questions are written from this page's cited content and are for study only — they are not clinical guidance.

  1. On what basis are cephalosporins divided into their five generations?

    • Route of administration and duration of action
    • Spectrum of coverage against gram-positive and gram-negative organisms, together with when each agent was discovered
    • Degree of renal versus biliary elimination
    • Chemical modification of the beta-lactam ring itself
    Show answer

    Answer: Spectrum of coverage against gram-positive and gram-negative organisms, together with when each agent was discovered

    The generation label is a shorthand for two things at once: which organisms an agent reaches across the gram-positive and gram-negative divide, and the historical order in which the drugs appeared. It is not a statement about how a drug is given or cleared. (1)

  2. Which cephalosporin is named as the preferred agent for surgical prophylaxis, and why?

    • Ceftriaxone, because its long half-life allows once-daily administration
    • Cefepime, because of its broad gram-negative reach
    • Ceftaroline, because it reaches methicillin-resistant staphylococci
    • Cefazolin, because it covers the gram-positive skin flora responsible for most surgical site infections
    Show answer

    Answer: Cefazolin, because it covers the gram-positive skin flora responsible for most surgical site infections

    The organisms that seed most post-operative wound infections are gram-positive skin residents, and the first-generation agent cefazolin is the one specifically preferred to cover them before surgery. Broader later-generation agents are not the answer here. (1)

  3. A candidate writes that 'third-generation cephalosporins cover Pseudomonas aeruginosa.' What is the correct refinement?

    • Only ceftazidime carries that activity within the third generation
    • Only ceftriaxone carries that activity within the third generation
    • The whole generation covers it, but only when a beta-lactamase inhibitor is added
    • No third-generation agent has any gram-negative activity
    Show answer

    Answer: Only ceftazidime carries that activity within the third generation

    Antipseudomonal reach is a property of a single member rather than the whole tier. Ceftazidime is the third-generation drug that covers this organism; its stablemates such as ceftriaxone and cefotaxime extend gram-negative range but do not. Cefepime in the fourth generation also reaches Pseudomonas. (1)

  4. Which statement about ceftaroline is correct?

    • It is the broadest cephalosporin, covering every organism the earlier generations reach
    • It has no activity against gram-positive organisms
    • It covers MRSA and penicillin-resistant pneumococci but has no Pseudomonas aeruginosa activity
    • It belongs to the fourth generation and is used mainly for meningitis
    Show answer

    Answer: It covers MRSA and penicillin-resistant pneumococci but has no Pseudomonas aeruginosa activity

    Being newest does not mean widest. This fifth-generation agent adds two things the earlier tiers lack — methicillin-resistant Staphylococcus aureus and penicillin-resistant Streptococcus pneumoniae — while leaving Pseudomonas aeruginosa uncovered, which is a listed gap for it. (1)

  5. Seizures and encephalopathy in a patient with unadjusted renal impairment should raise suspicion of which cephalosporin?

    • Cefazolin
    • Cefoxitin
    • Cephalexin
    • Cefepime
    Show answer

    Answer: Cefepime

    Neurotoxic effects of this pattern are the signature problem of the fourth-generation agent cefepime, and they surface in overdose or when the dose has not been scaled to reduced renal clearance. That link is precisely why renal function governs how this drug is used. (1)

  6. Why is ceftriaxone contraindicated in neonates with hyperbilirubinaemia and in infants under 28 days old expected to receive calcium-containing products?

    • Because ceftriaxone and calcium can precipitate together
    • Because ceftriaxone is not absorbed in neonates
    • Because ceftriaxone induces neonatal seizures through calcium depletion
    • Because calcium blocks ceftriaxone binding to penicillin-binding proteins
    Show answer

    Answer: Because ceftriaxone and calcium can precipitate together

    The problem is a physical one: the drug and calcium can come out of solution together, and that precipitation risk is why this agent is barred in jaundiced newborns and in very young infants who are due calcium-containing intravenous products. It is a frequently examined contraindication. (1)

  7. Which group of cephalosporins is described as penetrating the blood-brain barrier effectively, making them usable in meningitis?

    • Cefazolin and cephalexin
    • Cefoxitin, cefotetan and cefmetazole
    • Ceftriaxone, cefotaxime, ceftazidime and cefepime
    • Ceftaroline and ceftobiprole
    Show answer

    Answer: Ceftriaxone, cefotaxime, ceftazidime and cefepime

    Four members of the class cross into the central nervous system well enough to be treatment options for meningeal infection, and they span the third and fourth generations. The first-generation agents penetrate the cerebrospinal fluid poorly, so they are not alternatives here. (1)

  8. How does cephalosporin cross-reactivity in a patient labelled penicillin-allergic vary across the generations?

    • Cross-reactivity is uniform across all five generations
    • It is greatest with first- and second-generation agents and minimal from the third generation onward
    • It is absent in the early generations and appears only in the fifth
    • It rises steadily with each successive generation
    Show answer

    Answer: It is greatest with first- and second-generation agents and minimal from the third generation onward

    Shared R-group chemistry, not the beta-lactam ring alone, drives the overlap, so the risk clusters in the earlier agents and falls away in the later ones. A separate point worth remembering is that the allergy label itself is often wrong, since fewer than one percent of labelled patients prove truly allergic on assessment. Anaphylaxis to a beta-lactam nonetheless remains an absolute bar. (1) (4)

Frequently asked questions

What do the cephalosporin generations actually mean?

They group the drugs by their spectrum of coverage against gram-positive and gram-negative bacteria, and by the order in which they were discovered. They are a learning and prescribing shorthand for what a given agent is likely to reach. (1)

Which cephalosporins work against Pseudomonas aeruginosa?

Ceftazidime in the third generation and cefepime in the fourth. Ceftaroline, despite being fifth generation, does not cover Pseudomonas. (1)

Which cephalosporins are used in meningitis?

Ceftriaxone, cefotaxime, ceftazidime and cefepime all penetrate the blood-brain barrier effectively, which is what makes them treatment options for meningitis. (1)

Can someone with a penicillin allergy receive a cephalosporin?

It depends on the reaction and the agent. Anaphylaxis to a beta-lactam is a contraindication. Otherwise cross-reactivity tracks R-group similarity — higher with first- and second-generation agents, minimal from the third generation onward — and a reported penicillin allergy is itself worth evaluating, since under 1% of labelled patients are truly allergic. (1) (4)

Why is cefazolin used for surgical prophylaxis?

It covers the gram-positive cocci responsible for most surgical site infections, and it is the first-generation agent specifically preferred for this purpose. (1)

References

  1. Cephalosporins (StatPearls) StatPearls Publishing / NCBI Bookshelf, 2024
  2. Beta-Lactam Antibiotics (StatPearls) StatPearls Publishing / NCBI Bookshelf, 2023
  3. Cefalexin (brand name: Keflex) NHS, 2025
  4. Clinical Features of Penicillin Allergy Centers for Disease Control and Prevention, 2025