Microbiology
Gram-Positive vs Gram-Negative Bacteria
Hans Christian Gram's 1884 stain reveals two cell-wall architectures — thick peptidoglycan vs outer membrane + LPS
The Gram stain, devised by the Danish physician Hans Christian Gram in Berlin in 1884, splits almost all bacteria into two cell-envelope architectures. Gram-positive cells have a single cytoplasmic membrane wrapped in a thick (20-80 nm) peptidoglycan layer cross-linked by pentaglycine bridges and decorated with teichoic and lipoteichoic acids; they retain crystal violet through the alcohol decolorization step and stain purple. Gram-negative cells have a thin (~7-8 nm) peptidoglycan in a periplasm between an inner and outer membrane; the outer membrane's outer leaflet is built from lipopolysaccharide (LPS) whose lipid A is the endotoxin behind septic shock. Alcohol washes dye out of the thin Gram-negative wall, and they take up the safranin counterstain to appear pink. The architectural divide explains beta-lactam susceptibility, lysozyme sensitivity, and why Streptococcus pneumoniae is treated very differently from E. coli.
- DevisedHans Christian Gram, 1884
- Gram+ peptidoglycan20-80 nm thick
- Gram− peptidoglycan~7-8 nm thin
- Gram+ extrasWall + lipoteichoic acids
- Gram− extrasOuter membrane, LPS endotoxin
- Color resultPurple vs pink
Interactive visualization
Press play, or step through manually. The visualization is yours to drive — try it before reading on.
Watch the 60-second explainer
A condensed visual walkthrough — narrated, captioned, under a minute.
Why the Gram divide matters
- It is the first triage step in clinical microbiology. A 5-minute Gram stain on cerebrospinal fluid, blood, urine, or pus assigns a patient to one of two pharmacological universes before any culture grows. Empirical antibiotics differ entirely — vancomycin for suspected Gram-positive sepsis, piperacillin-tazobactam or a carbapenem for Gram-negative.
- Beta-lactams penetrate the two envelopes very differently. Penicillin G enters Gram-positive walls easily and reaches the PBPs at micromolar minimum inhibitory concentrations. Gram-negatives force the drug through ~1 nm OmpF/OmpC porins (~600 Da cutoff), so molecules above that size or not negatively charged are excluded.
- LPS endotoxin causes ~250,000 US deaths per year. Lipid A of Gram-negative LPS triggers TLR4 at sub-nanomolar concentrations; the resulting cytokine storm (TNF-alpha, IL-1, IL-6) is the engine of Gram-negative septic shock. Gram-positive sepsis instead runs through TLR2 detection of lipoteichoic acid and peptidoglycan fragments — overlapping but distinct host response.
- Lysozyme works mostly on Gram-positives. Tears, saliva, and innate immune granules secrete lysozyme (~14 kDa), which cleaves the beta-1,4 link between NAM and NAG in peptidoglycan. Gram-positive walls are exposed; Gram-negative peptidoglycan sits behind the outer membrane and is not directly accessible without prior membrane permeabilization.
- Vancomycin is essentially Gram-positive only. The 1.4 kDa glycopeptide is too large to cross the Gram-negative outer membrane through ordinary porins. It binds the D-Ala-D-Ala terminus of the peptidoglycan stem peptide directly, blocking transpeptidation in Gram-positives at clinically achievable doses.
- Differential staining standardized 20th-century microbiology. Before automated identification, Gram morphology (purple cocci in chains = streptococci; pink rods = enterics) plus a half-dozen sugar tests sufficed to identify most clinical isolates. Even with mass spectrometry and 16S sequencing, every starting flowchart still branches at the Gram step.
- Phylogenetically the divide is meaningful. Most Gram-positives are in two phyla (Firmicutes and Actinobacteria); most Gram-negatives are in Proteobacteria, Bacteroidetes, and dozens of others. The two architectures are deep-rooted in bacterial evolution and may reflect a single ancestral split.
Common misconceptions
- Gram-negative means "not stained at all." They take up the safranin counterstain and appear pink. Bacteria that take up no dye on a Gram stain (e.g. Mycobacterium because of its waxy mycolic acid coat, or cell-wall-deficient Mycoplasma) are not Gram-negative; they are Gram-stain-resistant.
- Gram-positive means "lacking outer membrane." Approximately. Some Gram-positive Mycobacterium species effectively have an outer-membrane-like mycolate layer, even though they retain the underlying single-membrane architecture. The Diderm/Monoderm classification (two membranes vs one) is more rigorous than the staining-based divide.
- Stain age doesn't matter. Old Gram-positive cultures lose wall integrity and can stain Gram-negative ("Gram-variable"). Decolorization timing also matters: too long and Gram-positives lose their dye; too short and Gram-negatives keep theirs. Quality control in clinical labs explicitly addresses this with internal positive and negative reference strains every run.
- One drug class fits each side. Beta-lactams cover both with the right structure (third-generation cephalosporins, carbapenems). Aminoglycosides work on Gram-negatives but penetrate Gram-positives only with cell-wall-active synergy. Resistance mechanisms cut across the divide.
- Gram-positives don't have LPS. True, but they have functional analogs — lipoteichoic acid is the dominant TLR2 ligand in Staphylococcal sepsis, with peptidoglycan fragments adding NOD2 signaling. Calling Gram-positives non-immunogenic is a serious clinical error.
- The stain identifies the species. It identifies the architecture. Two cocci in chains can both be Gram-positive but be very different organisms (Streptococcus pyogenes vs Enterococcus faecalis); they need biochemical, antigenic, or molecular tests to separate. Gram morphology is a starting hypothesis, not a diagnosis.
How the two envelopes are built
Both envelopes share a core polymer — peptidoglycan, also called murein. It is a 2D mesh of alternating N-acetylglucosamine (NAG) and N-acetylmuramic acid (NAM) sugars, with short stem peptides (typically L-Ala — D-Glu — meso-DAP or L-Lys — D-Ala — D-Ala) hanging off NAM. Adjacent strands are cross-linked by transpeptidases (the penicillin-binding proteins) that form 4-3 bonds between DAP/Lys and the terminal D-Ala. The mesh is the cell's load-bearing exoskeleton; without it, internal turgor pressure (~3-5 atm in E. coli, up to ~25 atm in some Gram-positives) would burst the membrane.
Gram-positive architecture stacks the mesh thick — 20 to 80 nm of peptidoglycan, sometimes 30 layers deep. Wall teichoic acids (WTAs), polymers of glycerol-phosphate or ribitol-phosphate covalently linked to NAM, thread vertically through the mesh. Lipoteichoic acids (LTAs) anchor to the cytoplasmic membrane via a diacylglycerol tail and reach outward into the wall. Together they make the wall negatively charged, chelate divalent cations near the surface, regulate autolysins, and provide adhesion ligands. Staphylococcus aureus uses pentaglycine bridges (not direct DAP-D-Ala bonds) to cross-link its peptidoglycan, a structural quirk targeted by lysostaphin endopeptidase.
Gram-negative architecture sandwiches a thin peptidoglycan (one or two layers, ~7-8 nm) in a periplasmic space ~25-50 nm wide between the cytoplasmic and outer membranes. The outer membrane is asymmetric: phospholipids on the inner leaflet, LPS on the outer. LPS molecules (~10^6 per E. coli cell) are densely packed and Mg2+-bridged, making the outer leaflet exceptionally impermeable to detergents and hydrophobic antibiotics. Hydrophilic small molecules cross via porin channels — OmpF, OmpC, OmpA in E. coli — with effective size cutoffs around 600 Da. The lipoprotein Braun's lipoprotein (Lpp) covalently tethers peptidoglycan to the outer membrane, fixing the periplasmic distance. The outer membrane is thus a chemical and physical barrier that Gram-positives simply do not have.
Side-by-side comparison
| Feature | Gram-positive | Gram-negative |
|---|---|---|
| Peptidoglycan thickness | 20-80 nm (thick, ~30 layers) | ~7-8 nm (thin, 1-2 layers) |
| Outer membrane | Absent | Present (asymmetric: LPS outer, PL inner) |
| Lipopolysaccharide (LPS) | Absent | Present; lipid A is endotoxin (TLR4) |
| Teichoic / lipoteichoic acids | Present (WTA, LTA — TLR2 ligands) | Absent |
| Periplasmic space | Minimal | Defined ~25-50 nm; contains hydrolases, transport, beta-lactamases |
| Penicillin G susceptibility | Generally high (drug walks in) | Generally low (must cross OM via porins) |
| Lysozyme susceptibility | High (peptidoglycan exposed) | Low (PG protected by OM) |
| Stain color | Purple (retains crystal violet) | Pink (counterstained with safranin) |
| Example pathogens | S. pneumoniae, S. aureus, B. anthracis | E. coli, Salmonella, P. aeruginosa |
Famous case studies
- Streptococcus pneumoniae (Gram+). Gram-positive diplococci in chains; the same organism Frederick Griffith used in the 1928 transforming-principle experiments and the original target of Gram's 1884 staining work. Pentapeptide cross-link uses L-Lys; vancomycin and beta-lactams highly active.
- Staphylococcus aureus (Gram+). Pentaglycine bridge cross-link; this is the bond that lysostaphin (a glycyl-glycine endopeptidase from Staphylococcus simulans) specifically cleaves, killing only S. aureus. Methicillin-resistant S. aureus (MRSA) acquires PBP2a, a transpeptidase with low affinity for beta-lactams.
- Escherichia coli (Gram−). The model Gram-negative. Outer membrane carries ~10^6 LPS molecules per cell with O-antigen polysaccharides defining strain (e.g. O157 in enterohemorrhagic strains). Porins OmpF and OmpC give size-selective access of small hydrophilic molecules; periplasmic AmpC and TEM-1 beta-lactamases inactivate many penicillins.
- Yersinia pestis (Gram−). The plague bacillus; its LPS lipid A is unusually weakly inflammatory at 37 C (mammalian body temperature) — a strategy that delays host detection and contributes to overwhelming bacteremia before the immune system mounts a response.
- Mycobacterium tuberculosis (Gram-stain-resistant). Has a Gram-positive-style single membrane and peptidoglycan, but a thick mycolic-acid layer makes the cell impermeable to most stains. Visualized by Ziehl-Neelsen (acid-fast) staining instead. Highlights why the binary Gram divide doesn't capture every taxon — the modern Diderm/Monoderm framework places M. tuberculosis as a Monoderm with an exceptional outer lipid layer.
Frequently asked questions
Who was Hans Christian Gram and what did he do in 1884?
Hans Christian Joachim Gram was a Danish physician working briefly in Berlin in Carl Friedländer's lab on lung tissue from patients who had died of pneumonia. In 1884 he published a four-step staining protocol — apply crystal violet, fix with iodine (Lugol's), decolorize with alcohol, counterstain with a contrasting dye — that reliably distinguished pneumococci (now Streptococcus pneumoniae) from background tissue. He noted that some bacteria retained the violet color and others were stripped clean by alcohol; he did not yet know why. The two-class outcome turned out to map onto a fundamental architectural division of the bacterial domain, making the Gram stain the single most-used microbiology procedure of the next century.
Why does the stain actually work?
The crystal violet dye binds DNA, RNA, and protein in any cell. The iodine fixative forms a large insoluble crystal-violet-iodine complex that sits in the cytoplasm. The alcohol decolorization step is the diagnostic one. In Gram-positive cells the thick (20-80 nm) peptidoglycan layer is dehydrated by alcohol, the pores tighten, and the dye complex is trapped inside. In Gram-negative cells alcohol dissolves the outer membrane lipids, exposing the much thinner (~7-8 nm) peptidoglycan layer; the dye complex washes out. The safranin counterstain then colors the now-empty Gram-negative cells pink, while Gram-positives stay purple. The mechanism was clarified in the 1960s by Salton and others using ultrathin sections.
What is lipopolysaccharide (LPS) and why is it dangerous?
LPS is the dominant component of the outer leaflet of the Gram-negative outer membrane — roughly 10^6 LPS molecules per E. coli cell, covering ~75% of the surface. Each LPS has three parts: a lipid A anchor embedded in the membrane, a core oligosaccharide, and a strain-specific O-antigen polysaccharide. Lipid A is the endotoxin: when free in the bloodstream it binds the host receptor TLR4-MD2 with sub-nanomolar affinity, triggering massive cytokine release (TNF-alpha, IL-1, IL-6) and the septic shock cascade. As little as 1-10 ng/kg of purified LPS infused into humans induces fever and hypotension. Sepsis from Gram-negative bacteremia kills ~250,000 people per year in the US alone, largely through this LPS-driven cytokine storm.
Why does penicillin work better on Gram-positive bacteria?
Beta-lactam antibiotics (penicillin, cephalosporins, carbapenems) bind and inhibit penicillin-binding proteins (PBPs) — the transpeptidases that cross-link peptidoglycan. The drug must reach the PBPs, which sit on the outside of the cytoplasmic membrane in the periplasm or wall. Gram-positive cells have no outer membrane in the way, so the drug walks right onto its target through the porous peptidoglycan mesh. Gram-negative cells force the drug to cross the outer membrane, typically through narrow porin channels (~600 Da cutoff) and through any LPS-coated regions. The need to cross the outer membrane plus the periplasmic beta-lactamases that hydrolyze beta-lactams in many Gram-negatives is why narrow-spectrum penicillins like benzylpenicillin are essentially Gram-positive-only drugs, while broader-spectrum amoxicillin or ceftriaxone with better porin permeability are needed for Gram-negative coverage.
Are there exceptions to the Gram divide?
Yes. Mycobacterium tuberculosis has a Gram-positive-style single membrane but its peptidoglycan is overlaid by a thick, waxy mycolic-acid layer that resists Gram staining entirely; it is visualized with the Ziehl-Neelsen acid-fast stain instead. Mycoplasma species have no cell wall at all and so cannot be Gram-stained. Many archaea would be Gram-positive by structure but their pseudopeptidoglycan or S-layer behaves variably. Some bacteria that should be Gram-positive (e.g. Bacillus that has lost spore-coat integrity, or aging Gram-positive cultures that have started to lyse) appear Gram-variable. Treponema and other spirochetes are technically Gram-negative but are too thin to visualize by standard light-microscopy Gram staining, and are observed by darkfield or silver impregnation.
What are teichoic and lipoteichoic acids?
Teichoic acids are negatively charged glycopolymers (typically polymers of glycerol-phosphate or ribitol-phosphate) found exclusively in the Gram-positive cell wall. Wall teichoic acids (WTAs) are covalently attached to peptidoglycan; lipoteichoic acids (LTAs) are anchored to the cytoplasmic membrane via a glycolipid tail. They constitute up to 60% of the dry mass of the Gram-positive cell wall in some species. Functions include cation chelation (binding Mg2+ and other divalent cations near the surface), regulation of autolysin activity, surface charge, and adhesion to host tissues. LTAs trigger inflammation through TLR2 (the Gram-positive analog of LPS-TLR4 signaling) and are partly responsible for streptococcal toxic-shock syndrome. The Gram-negative envelope has no teichoic acids — they are a clean diagnostic marker for Gram-positives.