# Gram-Positive vs Gram-Negative Bacteria

> What is the difference between gram-positive and gram-negative bacteria?

The structural difference behind the Gram stain, a 16-organism reference table, and the vignette clues that name the bug before the culture returns.

Gram-positive bacteria have a thick peptidoglycan cell wall that traps crystal violet and stains purple; gram-negative bacteria have thin peptidoglycan plus an outer membrane containing LPS, so they decolorize and stain pink with safranin. That outer membrane blocks large drugs like vancomycin and releases endotoxin, which is why the stain drives antibiotic choice.

## What is the difference between gram-positive and gram-negative bacteria?

The Gram stain runs in four steps: **crystal violet**, **iodine** (mordant), **alcohol** (decolorizer), and **safranin** (counterstain). Gram-positive organisms hold the crystal violet-iodine complex in thick peptidoglycan and appear **purple**. Gram-negative organisms have thin peptidoglycan between an inner and an **outer membrane**; alcohol dissolves that lipid-rich layer, the dye washes out, and safranin turns them **pink**.

Antibiotic choice follows that split: the outer membrane is a permeability barrier whose porins admit only small hydrophilic drugs. See [antibiotic mechanisms and coverage](/blog/antibiotic-mechanisms-coverage-usmle) for drug-by-drug logic and the [Infectious Disease](/topics/infectious-disease) hub for organism-specific pages.

## The master organism table

| Organism | Gram stain | Morphology | Key virulence factor | Classic disease | First-line drug |
| --- | --- | --- | --- | --- | --- |
| *Staphylococcus aureus* | Positive | Cocci in clusters, coagulase + | Protein A | Endocarditis, osteomyelitis, abscess | Nafcillin; vancomycin if MRSA |
| *Staphylococcus epidermidis* | Positive | Cocci in clusters, coagulase − | Biofilm | Prosthetic valve, line infection | Vancomycin |
| *Streptococcus pneumoniae* | Positive | Lancet diplococci, optochin sensitive | Capsule, IgA protease | Lobar pneumonia, adult meningitis, otitis media | Ceftriaxone |
| *Streptococcus pyogenes* | Positive | Chains, β-hemolytic, bacitracin sensitive | M protein | Pharyngitis, necrotizing fasciitis, rheumatic fever | Penicillin |
| *Streptococcus agalactiae* | Positive | Chains, CAMP test + | Capsule | Neonatal sepsis and meningitis | Ampicillin |
| *Enterococcus faecalis* | Positive | Chains, grows in bile | Bile-salt tolerance | UTI, biliary sepsis, subacute endocarditis | Ampicillin; linezolid for VRE |
| *Listeria monocytogenes* | Positive | Tumbling motile rods | Listeriolysin O | Neonatal, pregnancy and elderly meningitis | Ampicillin |
| *Clostridioides difficile* | Positive | Spore-forming anaerobic rods | Toxins A and B | Pseudomembranous colitis | Oral vancomycin or fidaxomicin |
| *Clostridium perfringens* | Positive | Anaerobic spore-forming rods | Alpha toxin (lecithinase) | Gas gangrene | Penicillin plus clindamycin |
| *Escherichia coli* | Negative | Rods, lactose fermenter | Endotoxin, fimbriae | UTI, sepsis, neonatal meningitis | Nitrofurantoin or ceftriaxone |
| *Klebsiella pneumoniae* | Negative | Encapsulated mucoid rods | Thick capsule | Currant-jelly sputum aspiration pneumonia | Third-generation cephalosporin |
| *Pseudomonas aeruginosa* | Negative | Rods, oxidase +, pyocyanin | Exotoxin A | Burn wounds, CF pneumonia, otitis externa | Piperacillin-tazobactam or cefepime |
| *Neisseria meningitidis* | Negative | Diplococci, ferments maltose | Capsule, LOS endotoxin | Meningitis, Waterhouse-Friderichsen | Ceftriaxone |
| *Neisseria gonorrhoeae* | Negative | Diplococci inside neutrophils | Pilus antigenic variation | Urethritis, PID, septic arthritis | Ceftriaxone |
| *Haemophilus influenzae* | Negative | Coccobacilli on chocolate agar | Type b capsule | Epiglottitis, meningitis if unvaccinated | Ceftriaxone |
| *Bacteroides fragilis* | Negative | Anaerobic rods | Abscess-forming capsule | Intra-abdominal abscess | Metronidazole |

## High-yield gram-positive organisms

Sort gram-positives by two questions: cocci or rods, catalase-positive or negative. **Staphylococci** are catalase-positive clusters, split by coagulase into *S. aureus* and coagulase-negative species. **Streptococci** are catalase-negative chains or pairs split by hemolysis: α-hemolytic *S. pneumoniae*, β-hemolytic *S. pyogenes* and *S. agalactiae*. **Enterococci** tolerate bile and salt, seeding valves after GI or GU procedures. **Listeria** is the one gram-positive rod routinely causing meningitis. **Clostridia** are anaerobic spore-formers: *C. difficile* colitis, *C. perfringens* myonecrosis, *C. tetani* and *C. botulinum* acting through neurotoxins alone.

## High-yield gram-negative organisms

Gram-negative rods sort on lactose fermentation and oxidase. **Lactose fermenters** (*E. coli*, *Klebsiella*) turn MacConkey agar pink; *Klebsiella* adds a huge capsule and aspiration pneumonia in alcohol use disorder or diabetes. An oxidase-positive **non-fermenter** points to *Pseudomonas*, the blue-green, grape-smelling organism of burns, cystic fibrosis, and hot-tub folliculitis. Both **gram-negative diplococci** are *Neisseria*: meningitidis ferments **m**altose and has a capsule and a vaccine, gonorrhoeae has neither. ***Haemophilus influenzae*** needs factors V and X, growing on chocolate agar or satelliting around *S. aureus*. ***Bacteroides fragilis*** dominates colonic anaerobes, so abdominal regimens include metronidazole.

## Organisms that stain poorly or need special stains

Several board favorites are invisible on a routine Gram stain, which is the tested point.

- **Mycobacteria** -- mycolic-acid-rich walls resist decolorization; use an **acid-fast (Ziehl-Neelsen) stain**. The wall is gram-positive-type, not gram-negative.
- **Mycoplasma pneumoniae** -- has **no cell wall**, so it is unstainable and resistant to every β-lactam; treat with a macrolide or doxycycline.
- **Treponema pallidum** -- too thin for light microscopy; seen on **dark-field microscopy**, treated with penicillin G.
- **Rickettsia and Chlamydia** -- obligate intracellular, shown with **Giemsa** stain; doxycycline treats both.
- **Legionella pneumophila** -- a faint gram-negative rod shown by **silver stain**, grown on charcoal yeast extract with cysteine and iron; urine antigen confirms.

## Narrowing the organism from the vignette

Age plus exposure setting narrows the answer before lab data arrives, which matters most in [meningitis vignettes](/blog/meningitis-bacterial-viral-fungal-usmle), where coverage is age-dependent.

> **10-second exam strategy:** Neonate -> group B *Strep*, *E. coli*, *Listeria*. Unvaccinated toddler drooling with stridor -> *H. influenzae* b. College dorm or military recruit -> *N. meningitidis*. Pregnancy after deli meat -> *Listeria*. Cystic fibrosis, burn, or ventilator -> *Pseudomonas*. Hospitalized patient on antibiotics with diarrhea -> *C. difficile*.

## Why the outer membrane matters

The gram-negative outer membrane carries **lipopolysaccharide**, whose **lipid A** component is **endotoxin**. Endotoxin is heat-stable, released during lysis rather than secreted, and drives macrophage TNF-α, IL-1, and IL-6 plus complement and coagulation activation -- the fever, hypotension, and DIC of gram-negative sepsis.

That membrane also explains a favorite drug fact: **vancomycin cannot treat gram-negative infections** -- the glycopeptide is too large to cross the outer membrane through porins to its D-Ala-D-Ala target.

## How this is tested on the exam

- **Stem:** coagulase-positive gram-positive cocci in clusters, in a patient who injects drugs with tricuspid regurgitation. **Answer:** *S. aureus* endocarditis; cover MRSA with vancomycin.
- **Stem:** CSF gram-negative diplococci in a healthy 19-year-old with petechiae and hypotension. **Answer:** *N. meningitidis*; ceftriaxone plus close-contact prophylaxis.
- **Stem:** atypical pneumonia with cold agglutinins fails amoxicillin. **Answer:** *Mycoplasma* -- no cell wall, so β-lactams have no target.

## Common wrong-answer traps

- **Trap: covering meningitis with vancomycin and a cephalosporin alone.** *Listeria* is intrinsically cephalosporin-resistant; neonates, adults over 50, and immunocompromised patients need added **ampicillin**.
- **Trap: calling mycobacteria gram-negative because they are not purple.** They are **acid-fast**, and poor staining is not the same as gram-negative.
- **Trap: choosing metronidazole first for *C. difficile*.** Current guidance makes **oral vancomycin or fidaxomicin** first-line.
- **Trap: assuming only gram-negatives cause septic shock.** Gram-positive lipoteichoic acid and superantigens drive the same cytokine storm.

## Sources

- [CDC -- Antibiotic Prescribing and Use](https://www.cdc.gov/antibiotic-use/)
- [IDSA Practice Guidelines](https://www.idsociety.org/practice-guideline/practice-guidelines/)
- [CDC -- Meningitis](https://www.cdc.gov/meningitis/index.html)

Gram stain recognition becomes automatic only after these clusters, chains, and pink rods appear in hundreds of stems. [Practice microbiology identification questions on StepGenie](https://dashboard.stepgenie.app/sign-up) and work vignettes connecting stain to drug.

## Frequently asked questions

### Why do gram-positive bacteria stain purple and gram-negative bacteria stain pink?

Gram-positive bacteria have a thick, multilayered peptidoglycan wall that traps the crystal violet-iodine complex, so alcohol cannot wash the dye out and the cell stays purple. Gram-negative bacteria have only thin peptidoglycan under a lipid-rich outer membrane; alcohol dissolves that membrane, the dye escapes, and the safranin counterstain colors the cell pink.

### Why does vancomycin not work against gram-negative bacteria?

Vancomycin is a large glycopeptide that binds D-Ala-D-Ala on peptidoglycan precursors. In gram-negative organisms, that target sits beneath an outer membrane whose porin channels are too small for the drug to cross, so it never reaches the cell wall. Gram-positive organisms have no outer membrane, leaving their peptidoglycan directly accessible, which is why vancomycin is a gram-positive drug.

### Which high-yield organisms do not show up on a Gram stain?

Mycobacteria need an acid-fast stain because mycolic acids resist decolorization. Mycoplasma has no cell wall at all, so nothing stains and beta-lactams are useless. Treponema pallidum is too thin for light microscopy and requires dark-field. Rickettsia and Chlamydia are obligate intracellular organisms seen with Giemsa. Legionella stains faintly and is demonstrated with silver stain or urine antigen.

### What is the difference between endotoxin and exotoxin?

Endotoxin is lipid A within the lipopolysaccharide of the gram-negative outer membrane. It is heat-stable, released when bacteria lyse rather than secreted, and triggers TNF-alpha, IL-1 and IL-6, producing fever, hypotension and DIC. Exotoxins are secreted proteins made by both gram-positive and gram-negative organisms, are usually heat-labile, and cause specific syndromes such as tetanus or diphtheria.

### Which gram-positive organism is missed by ceftriaxone in meningitis?

Listeria monocytogenes is intrinsically resistant to all cephalosporins, so ceftriaxone plus vancomycin leaves it uncovered. Add ampicillin whenever the patient is a neonate, older than 50, pregnant, or immunocompromised. Listeria is a gram-positive rod with tumbling motility that spreads cell to cell using actin rockets, and it is classically acquired from deli meats, soft cheeses, or unpasteurized milk.

---

Canonical page: [Gram-Positive vs Gram-Negative Bacteria](https://www.stepgenie.app/blog/gram-positive-vs-gram-negative-bacteria-usmle)
Topic hub: [Infectious Disease](https://www.stepgenie.app/topics/infectious-disease)
