learndrugs
Immune / Anti-infective

Cephalosporins

High-yield Verified · Oct 2026

Prototype: cephalexin

Cephalosporins are a class of medications used for surgical prophylaxis and gram-positive skin/soft-tissue and respiratory infections.

β-lactams (stem cef-/ceph-) with the same cell-wall mechanism as penicillins, but more β-lactamase-stable. Learn the 1st–5th generation spectrum shift and a few agent-specific traps.

How it works in the body

The system involved, what goes wrong, and how the drug and body interact.

01 Same β-lactam attack, more staying power

Cephalosporins are β-lactams, so their mechanism is identical to the penicillins’: they bind penicillin-binding proteins (PBPs) and block the cross-linking of peptidoglycan, killing the bacterium by wall failure — bactericidal, and selective because human cells have no wall. What sets them apart is durability: their molecular structure makes them more stable against many β-lactamases, so they hold up against bacteria that would inactivate a plain penicillin.

Because that stability and spectrum improved step-by-step as chemists modified the molecule, cephalosporins are learned by generation — and there is one rule to anchor everything: as you go up the generations, coverage shifts from gram-positive toward broader gram-negative, and later agents penetrate the central nervous system better. The gram-positive strength narrows through the 3rd generation, then the 5th generation swings back to add MRSA coverage.

Same PBP/cell-wall mechanism as penicillins, but more β-lactamase-stable — and organized by generation.

02 The five generations — the spectrum shift in practice

1st generation (cefazolin, cephalexin): best gram-positive cocci — cefazolin is the workhorse for surgical prophylaxis. 2nd generation (cefuroxime, plus the cephamycins cefoxitin/cefotetan): more gram-negatives and some anaerobes. 3rd generation (ceftriaxone, cefotaxime, ceftazidime, cefdinir): broad gram-negative reach, and two standouts — ceftriaxone crosses into the CNS (a mainstay for bacterial meningitis and, per CDC, first-line for gonorrhea), while ceftazidime is antipseudomonal.

4th generation (cefepime): broad coverage including Pseudomonas, stable against many β-lactamases. 5th generation (ceftaroline): the only cephalosporin generation with MRSA activity (but it does not cover Pseudomonas). Two teaching cautions worth carrying: antipseudomonal activity is drug-specific, not generation-wide (ceftazidime and cefepime yes; ceftriaxone no), and the β-lactamase stability is a trend, not an absolute — many older cephalosporins are still hydrolyzed by ESBLs.

Generations 1→5: gram-positive narrows, gram-negative/CNS broadens, then MRSA returns at the 5th.

03 The agent-specific traps to memorize

Beyond the shared β-lactam allergy story (same side-chain-driven cross-reactivity with penicillins, and the same C. difficile risk from broad flora disruption), a few cephalosporin-specific dangers show up on exams and at the bedside. Ceftriaxone must never be combined with IV calcium in a neonate — the two form fatal crystalline precipitates in the lungs and kidneys, so it is contraindicated in neonates receiving calcium-containing IV fluids; ceftriaxone can also cause reversible biliary sludging. Cefotetan (and other agents bearing the NMTT side chain) causes a disulfiram-like reaction with alcohol (flushing, nausea, tachycardia) and hypoprothrombinemia/bleeding — so patients avoid alcohol during and for ~72 hours after, and PT/INR is watched. (Note: cefazolin carries a different side chain (MTD), not NMTT — yet its label also warns of a possible fall in prothrombin activity.)

The last trap is cefepime neurotoxicity: because it is renally cleared, in renal impairment without dose adjustment it accumulates and is thought to cross into the CNS and block GABA signaling, causing encephalopathy, myoclonus, and nonconvulsive seizures. The remedy is simple and is pure nursing: adjust the dose for renal function. Reassuringly, like the penicillins, cephalosporins carry no class-wide boxed warning — the ceftriaxone-calcium rule is a contraindication, not a boxed warning.

Three agent-specific traps: ceftriaxone + neonatal calcium, cefotetan + alcohol/bleeding, cefepime + renal accumulation.

Drug names

Generic Brand
cefazolin —
cephalexin —
cefuroxime —
ceftriaxone —
ceftazidime Tazicef
cefepime —
ceftaroline Teflaro

Indications

  • Surgical prophylaxis (cefazolin) and gram-positive skin/soft-tissue & respiratory infections
  • UTIs and gram-negative infections (coverage broadens by generation)
  • Bacterial meningitis and gonorrhea (ceftriaxone); Pseudomonas (ceftazidime, cefepime); MRSA (ceftaroline)

Mechanism of action

Cephalosporins are β-lactam antibiotics that bind penicillin-binding proteins and inhibit the transpeptidation cross-linking of peptidoglycan, producing a defective cell wall and bactericidal lysis — the same mechanism as penicillins, but with greater stability against many β-lactamases. Successive generations were engineered for progressively broader gram-negative coverage (with better CNS penetration in the 3rd generation onward), and the 5th generation regains anti-MRSA activity.

In plain terms
They kill bacteria the same way penicillins do — by wrecking the cell wall — but they’re tougher against the enzymes bacteria use to fight back.

Therapeutic effects — what you'll see working

Success is eradication of the infection appropriate to the chosen generation. Match the generation to the likely organism and site (e.g., ceftriaxone for meningitis because it reaches the CNS), and complete the course.

Bacterial eradication (spectrum by generation) Surgical-site infection prevention CNS-penetrant treatment (3rd generation)
Bacterial eradication (spectrum by generation)
Killing the susceptible organism clears the infection — with the spectrum chosen by generation. Judged by resolving fever and symptoms, normalizing white counts, and negative follow-up cultures.
Surgical-site infection prevention
A first-generation agent (cefazolin) given before incision covers the gram-positive skin flora that cause most surgical-site infections — the standard prophylaxis, judged by the absence of postoperative infection.
CNS-penetrant treatment (3rd generation)
Ceftriaxone/cefotaxime cross the blood-brain barrier well enough to treat bacterial meningitis — a therapeutic advantage that earlier generations lack.

Adverse effects

The class effects mirror penicillins (allergy, C. difficile); layer on the agent-specific traps — ceftriaxone-calcium in neonates, cefotetan-alcohol/bleeding, and cefepime neurotoxicity in renal impairment. No class-wide boxed warning.

Caution: Common
Nausea, vomiting, diarrhea, abdominal pain, rash/itching.
GI effects follow flora disruption and are usually mild. May be taken with food if GI upset occurs (oral agents).
Warning: Serious Report immediately
Hypersensitivity/anaphylaxis (side-chain cross-reactivity with penicillins); C. difficile colitis; ceftriaxone-calcium precipitation (neonates) + biliary sludge; cefotetan disulfiram-like reaction + hypoprothrombinemia/bleeding; cefepime neurotoxicity/seizures in renal impairment; nephrotoxicity (esp. with aminoglycosides).
Screen the allergy history and watch for anaphylaxis and C. difficile as with penicillins. Never co-administer ceftriaxone with IV calcium in a neonate. With cefotetan, counsel no alcohol (during and ~72 h after) and monitor PT/INR. Adjust cefepime for renal function to avoid encephalopathy and seizures.

Interactions

Alcohol (with cefotetan & other NMTT-side-chain agents) drug
The NMTT side chain causes a disulfiram-like reaction (flushing, nausea, tachycardia) and hypoprothrombinemia/bleeding — avoid alcohol during and ~72 h after, and monitor PT/INR. (Cefazolin carries an MTD rather than NMTT side chain, but its label also warns of a fall in prothrombin activity.)
IV calcium-containing solutions (ceftriaxone, neonates) drug
Ceftriaxone + IV calcium form fatal crystalline precipitates in the lungs/kidneys — contraindicated in neonates receiving calcium-containing IV fluids.

Contraindications

The firm bars are a prior severe β-lactam reaction, the ceftriaxone neonate rules (IV calcium; prematurity up to 41 weeks postmenstrual age; hyperbilirubinemia), and cefotetan after a cephalosporin-associated hemolytic anemia; the cefotetan-alcohol and cefepime-renal cautions are what nursing actively manages.

Prior severe/anaphylactic reaction to any cephalosporin — or, for cefazolin, cefepime, and oral cefuroxime, to a penicillin or other β-lactam
Labeled contraindication: every cephalosporin label contraindicates prior cephalosporin hypersensitivity, and the cefazolin, cefepime, and oral cefuroxime (cefuroxime axetil) labels add hypersensitivity to penicillins or other β-lactams. Otherwise cross-reactivity is side-chain-driven, so many penicillin-allergic patients can still receive a dissimilar-side-chain cephalosporin.
Ceftriaxone in neonates receiving (or expected to receive) IV calcium-containing solutions
Ceftriaxone-calcium precipitates can be fatal in the lungs and kidneys of neonates — an absolute contraindication.
Ceftriaxone in premature neonates up to 41 weeks postmenstrual age, or in neonates with hyperbilirubinemia
Labeled contraindications — ceftriaxone displaces bilirubin from albumin, risking bilirubin encephalopathy.
Cefotetan after a cephalosporin-associated hemolytic anemia
Labeled contraindication — cefotetan has caused severe, sometimes fatal immune hemolytic anemia, at least 3 times as often as other cephalosporins.
Alcohol with cefotetan (and other NMTT-side-chain agents), during and ~72 hours after use caution
The NMTT side chain causes a disulfiram-like reaction (flushing, nausea, tachycardia) and interferes with vitamin-K-dependent clotting.
Cefepime in renal impairment without dose adjustment use caution
Accumulation causes neurotoxicity — encephalopathy, myoclonus, and nonconvulsive seizures; reduce the dose for renal function.
Agent-specific safety checks before giving a cephalosporin.

Nursing considerations

The RN-specific layer — each action paired with the reason it matters.

Allergy & administration
Assess the β-lactam allergy history and ask specifically about the penicillin reaction type; observe for anaphylaxis after dosing.
Why: Cross-reactivity is real but side-chain-dependent; a known cephalosporin hypersensitivity is a labeled contraindication, while many penicillin-allergic patients can receive a dissimilar-side-chain cephalosporin — and anaphylaxis can be immediate.
Never mix or co-administer ceftriaxone with calcium-containing IV solutions in neonates; complete the full course.
Why: Ceftriaxone-calcium precipitates are fatal in neonates, and finishing the course prevents relapse and resistance.
Agent-specific monitoring
With cefotetan, counsel to avoid alcohol (during and ~72 h after) and monitor PT/INR, giving vitamin K if indicated.
Why: The NMTT side chain causes a disulfiram-like reaction and hypoprothrombinemia/bleeding.
During cefotetan courses, watch for signs of hemolytic anemia and check blood counts as ordered.
Why: Severe, sometimes fatal hemolytic anemia is more common with cefotetan than other cephalosporins; the label calls for periodic monitoring.
Adjust cefepime for renal function and watch for confusion, myoclonus, or seizures; monitor for C. difficile across the class.
Why: Cefepime accumulates in renal impairment and causes neurotoxicity, and broad-spectrum therapy can trigger C. difficile colitis.
Patient teaching
Finish the entire course, report rash or diarrhea, and (cefotetan) avoid alcohol.
Why: Completing therapy prevents resistance; rash/diarrhea flag hypersensitivity or C. difficile; alcohol triggers the cefotetan reaction.
If breastfeeding, know that cephalosporins are generally considered acceptable — only low amounts reach breast milk — but watch the infant for diarrhea or thrush.
Why: Occasional reports describe disruption of the infant’s gut flora; the labels weigh the benefits of breastfeeding against the mother’s need for the drug. (Open RN’s nursing pharmacology text, citing that flora effect, says use during breastfeeding is often discouraged — the current labels and StatPearls consider it generally acceptable.)

Common questions

What are Cephalosporins used for?
Cephalosporins are used for surgical prophylaxis and gram-positive skin/soft-tissue and respiratory infections, UTIs and gram-negative infections, and bacterial meningitis and gonorrhea.
How do Cephalosporins work?
They kill bacteria the same way penicillins do — by wrecking the cell wall — but they’re tougher against the enzymes bacteria use to fight back.
What are the serious side effects of Cephalosporins?
Watch for hypersensitivity/anaphylaxis (side-chain cross-reactivity with penicillins); C. difficile colitis; ceftriaxone-calcium precipitation (neonates) + biliary sludge; cefotetan disulfiram-like reaction + hypoprothrombinemia/bleeding; cefepime neurotoxicity/seizures in renal impairment; nephrotoxicity (esp. with aminoglycosides).

Conditions treated

Appendicitis & Peritonitis
Patho · Digestive / GI

The peri-operative and empiric workhorse. A single pre-incision dose within 60 minutes — cefotetan or cefoxitin alone, or cefazolin + metronidazole — covers the enteric flora for appendectomy, and no postoperative antibiotics are needed for uncomplicated disease (WSES 2020, Strong). For perforation with peritonitis, a third-generation cephalosporin (ceftriaxone, cefotaxime) + metronidazole covers aerobic gram-negatives plus anaerobes for a short (2–3-day) postoperative course in complicated disease (WSES 2025).

Cellulitis & Necrotizing Fasciitis
Patho · Integumentary

Cephalexin is the sourced first-line for mild nonpurulent cellulitis — 500 mg every 6 hours, for at least 5 days. The disorder-side reason is a coverage argument rather than a habit: mild nonpurulent cellulitis needs streptococcal and methicillin-sensitive S. aureus cover, and the chapter asks for "antibiotics effective against streptococcal species," with MSSA also considered. MRSA cover is for purulent infection or MRSA risk, so reaching for it in a simple case is overtreatment. When the patient is systemically unwell but has no MRSA risk, the escalation stays within the class: "intravenous cefazolin, then switch to oral cephalexin." On duration, two sourced figures differ by audience and should be given honestly: the clinical chapters say at least 5 days, extended if improvement does not occur, while NHS patient information describes antibiotic tablets "usually for a week" for mild cellulitis. The number that decides between them is the reassessment: improvement is expected within 48 hours. Generation-by-generation spectrum and cross-reactivity belong to the class page.

Cholecystitis & Cholelithiasis
Patho · Digestive / GI

The empiric gram-negative and anaerobic biliary coverage when antibiotics are indicated — complicated cholecystitis, cholangitis, sepsis, and perioperative prophylaxis for early laparoscopy. TG18 regimens (as reported by J Clin Med 2023) pair a cephalosporin with metronidazole for mild-to-moderate community-acquired cholecystitis and use a third-generation cephalosporin (cefotaxime or ceftriaxone) ± an anaerobic agent for non-severe cholangitis; cefepime + vancomycin ± metronidazole, piperacillin-tazobactam or a carbapenem cover severe or healthcare-associated infection. Antibiotics are not for every uncomplicated case, and after cholecystectomy with adequate source control they are withdrawn within 24 h (≈ 4 days for complicated disease; 4–7 days after successful drainage for cholangitis). One irony: ceftriaxone itself causes biliary sludge that can mimic cholecystitis.

Infective Endocarditis
Patho · Cardiovascular

Ceftriaxone covers penicillin-susceptible streptococci with once-daily dosing that suits home OPAT, is preferred for HACEK and other gram-negatives because beta-lactamase production is common, and partners ampicillin against E. faecalis. Cefazolin is the MSSA alternative to nafcillin (both run 6 weeks). For dental prophylaxis, an oral cephalosporin or penicillin is preferred over clindamycin because of C. difficile risk.

Meningitis & Encephalitis
Patho · Nervous

The empiric backbone: ceftriaxone + vancomycin, fast — started for every suspected bacterial meningitis, before the LP if the patient is severely ill, because a 3–6 hour treatment delay is associated with increased mortality. Ceftriaxone (or cefotaxime) is also first-line for meningococcal disease; after neurosurgery or head trauma the regimen switches to vancomycin + ceftazidime or cefepime for MRSA and Pseudomonas coverage.

Osteomyelitis
Patho · Musculoskeletal

Part of empiric therapy (e.g., ceftriaxone with vancomycin); cefazolin is an alternative for susceptible staphylococci and, with cefuroxime, the surgical prophylaxis given 30 minutes before incision to prevent post-operative osteomyelitis.

Pneumonia
Patho · Respiratory

The classic inpatient β-lactam backbone: third-generation ceftriaxone or cefotaxime paired with a macrolide (or doxycycline). IDSA’s CAP clinical pathway doses it for a hospitalized adult as ceftriaxone 1–2 g IV every 24 hours (2 g if over 80 kg, and 2 g in severe CAP) or cefotaxime 1–2 g IV every 8 hours, plus azithromycin 500 mg IV or PO every 24 hours — clarithromycin 500 mg every 12 hours, or doxycycline 100 mg every 12 hours when a macrolide is not tolerated or the QTc is prolonged; with benzylpenicillin, targeted therapy for S. pneumoniae. The anti-pseudomonal generations — cefepime, ceftazidime — cover HAP/VAP and P. aeruginosa.

Postpartum Infection
Patho · Reproductive & OB

Cefazolin before cesarean skin incision; cephalexin for mild wound infection or mastitis. StatPearls: "Weight-based IV cefazolin should be given within 60 minutes before the skin incision." WHO: "a single dose of first generation cephalosporin or penicillin should be used in preference to other classes of antibiotics." StatPearls: "In the absence of purulent drainage, a first-generation cephalosporin, eg, cephalexin, provides effective coverage."

Sepsis & Septic Shock
Patho · Foundations

Third-generation agents bring broad-spectrum, predominantly gram-negative activity with beta-lactamase stability — indicated in gram-negative sepsis and empiric therapy of serious infections (meningitis, pneumonia, GU, bone/joint) when the suspected source points their way.

STIs & PID
Patho · Reproductive & OB

Ceftriaxone is the backbone of both gonorrhea and pelvic inflammatory disease treatment — those are the two infections the first-line chip on this class refers to — and its dose is weight-dependent in two different places. The rule is an administration rule, and it holds wherever ceftriaxone is given in this treatment context: "Ceftriaxone 500 mg IM in a single dose" for persons weighing under 150 kg, and "1 g of ceftriaxone should be administered" for persons weighing 150 kg or more. Both the number and the weight threshold changed from older teaching, and both are tested. In the outpatient PID regimen it is 500 mg IM as a single dose, rising to 1 g for persons above 150 kg with documented gonorrhea. In parenteral PID regimen 1 it is 1 g intravenously every 24 hours. Other cephalosporins occupy specific niches rather than being interchangeable — cefoxitin and cefotetan in the parenteral pelvic inflammatory disease regimens, cefixime when ceftriaxone is unavailable, and ceftriaxone again as a penicillin-allergy option in primary and secondary syphilis. Those alternative regimens and their doses belong to the class page; what belongs here is that ceftriaxone is the backbone and that its dose is weight-dependent. Note what is no longer part of the gonorrhea regimen: routine azithromycin. Doxycycline is added only when chlamydia has not been excluded. Cephalosporin generations, spectrum and cross-reactivity belong to the class page.

See also

Sources

Reviewed by Hae Suk Lee, RN

Educational summary for nursing students. Always verify against current prescribing information and your institution's protocols before administering. Not medical advice.

Bookmark LearnDrugs.com?

Your saved pages are kept in this browser. Add LearnDrugs.com to your browser’s bookmarks to get back to them in one click.

Drag this link to your bookmarks bar: LearnDrugs.com

Or press Ctrl + D to bookmark the page you’re on.