Articles & Guides › Articles › Infectious Diseases
Bacterial structure, genetics and laboratory diagnosis
How the gram-positive and gram-negative cell envelopes differ and which organisms the Gram stain misses, how bacteria swap genes by transformation, conjugation, transduction and transposition, and how oxygen needs, spores, special stains and culture media help identify them.
Infectious Diseases · 6 min read · Reviewed 2026-11-10
Much of clinical microbiology comes down to two questions: what is the bacterium's wall made of, and how does it share genes? The wall decides how the organism stains, which drugs can reach their targets and whether it releases endotoxin. Gene sharing explains how a harmless strain can suddenly make a toxin, and how resistance spreads between species within weeks. A few laboratory tools, including stains, growth conditions and selective culture media, then turn these properties into a diagnosis.
Key points
- Gram-positive bacteria have a thick peptidoglycan wall and stain purple; gram-negative bacteria have a thin wall plus an outer membrane containing lipopolysaccharide and stain pink.
- The outer membrane keeps large drugs such as vancomycin out, which is why vancomycin works only against gram-positive organisms.
- Transformation takes up free DNA, conjugation passes plasmids through a pilus, and transduction uses a phage; lysogenic phages carry the genes for several major toxins.
- Spores of Bacillus and Clostridium survive heat and alcohol, so C. difficile control needs soap and water and bleach.
- Mycobacteria need an acid-fast stain, Haemophilus needs factors X and V on chocolate agar, and Neisseria is grown on selective Thayer-Martin medium.
Cell envelope and the Gram stain
Two wall designs
| Feature | Gram-positive | Gram-negative |
|---|---|---|
| Peptidoglycan | Thick, many layers | Thin, in the space between two membranes |
| Outer membrane | None | Present, containing lipopolysaccharide (endotoxin) |
| Teichoic acids | Present; trigger inflammatory cytokines | Absent |
| Periplasmic space | Minimal | Present; holds beta-lactamases |
| Gram stain | Purple: keeps the crystal violet | Pink: decolorized, then counterstained |
How the stain works
The Gram stain has four steps. Crystal violet stains every cell purple, and iodine locks the dye into a large complex. An alcohol or acetone wash then dissolves the outer membrane of gram-negative cells, and their thin peptidoglycan cannot hold the complex, so they lose the purple color. The thick, dehydrated wall of gram-positive cells traps it. Finally, a red counterstain (safranin) colors the decolorized gram-negative cells pink. Shape adds the next clue: cocci or rods, in pairs, chains or clusters.
Peptidoglycan
Peptidoglycan is a mesh of sugar chains cross-linked by short peptides that end in D-alanine-D-alanine[1]. Enzymes called transpeptidases, also known as penicillin-binding proteins, form the cross-links. Beta-lactam antibiotics block these enzymes, while vancomycin binds the D-Ala-D-Ala ends directly. Because human cells have no peptidoglycan, it is an ideal drug target[2].
The outer membrane of gram-negative bacteria is a barrier. Small drugs enter through protein channels called porins, but large molecules such as vancomycin cannot cross, so vancomycin has no effect on gram-negative organisms.
Organisms the Gram stain misses
| Organism | Why | Use instead |
|---|---|---|
| Treponema | Too thin to see | Dark-field microscopy, serology |
| Mycobacteria | A waxy wall rich in mycolic acid | Acid-fast stain |
| Mycoplasma | No cell wall | Serology, PCR |
| Legionella | Lives mostly inside cells | Silver stain, urine antigen |
| Rickettsia, Chlamydia | Live only inside cells | Serology, PCR |
The waxy mycolic acids of mycobacteria hold the red dye even when washed with acid-alcohol, which is what "acid-fast" means. Nocardia is weakly acid-fast, and so are the oocysts of Cryptosporidium.
Bacterial genetics and gene transfer
Moving genes between bacteria
Bacteria pass genes to their daughter cells, but they also pass them sideways to other bacteria, even other species. This horizontal transfer is how toxin genes and resistance spread so quickly[3].
| Process | What moves | How | Example |
|---|---|---|---|
| Transformation | Free DNA from the surroundings | A "competent" bacterium takes it up; destroyed by DNase | S. pneumoniae, H. influenzae and Neisseria acquire capsule and resistance genes |
| Conjugation | A plasmid | Direct contact through a sex pilus; not affected by DNase | Spread of multidrug-resistance plasmids, such as those carrying ESBL and carbapenemase genes, among gram-negative rods |
| Generalized transduction | Any bacterial DNA | A virus of bacteria (a phage) packages host DNA by mistake | |
| Specialized transduction (lysogenic conversion) | Genes beside the phage's insertion site | A temperate phage integrates into the chromosome and brings new genes | Toxins of botulism (some types), cholera, diphtheria, scarlet fever and Shiga-like toxin |
| Transposition | A transposon, a "jumping gene" | Moves between chromosome and plasmids within one cell | The vancomycin resistance gene of enterococci |
Lysogenic conversion explains a striking fact: the bacteria that cause diphtheria, cholera and scarlet fever are only dangerous when infected by a phage carrying the toxin gene. A memory aid lists the toxins as ABCDE: botulinum (some types), cholera, diphtheria, erythrogenic toxin and Shiga-like toxin. Plasmids and transposons, by contrast, are the main vehicles of antibiotic resistance[4].
Growth, spores, special stains and culture media
Oxygen
| Group | Examples | Clues |
|---|---|---|
| Obligate aerobes | Mycobacterium tuberculosis, Pseudomonas, Nocardia, Bordetella | Favor oxygen-rich sites such as the lung apex |
| Obligate anaerobes | Clostridium, Bacteroides, Fusobacterium, Actinomyces | Foul-smelling abscesses and gas in tissue; lack the enzymes that detoxify oxygen; aminoglycosides do not work, because they need oxygen-dependent transport to enter |
| Facultative anaerobes | Most others, including staphylococci, streptococci and enteric rods |
Spores
Spores are dormant, highly resistant forms made by two groups of gram-positive rods: *Bacillus and Clostridium. Their core contains dipicolinic acid and calcium, which makes them resistant to heat, drying and many disinfectants, including alcohol*[5]. Killing them requires autoclaving (steam under pressure). In hospitals, *Clostridioides difficile spores survive alcohol-based hand rubs, so staff wash with soap and water and rooms are cleaned with bleach*[6].
Culture media and special stains
| Organism | Medium |
|---|---|
| Haemophilus influenzae | Chocolate agar with factor X (hemin) and factor V (NAD); also grows around S. aureus, which supplies factor V |
| Neisseria gonorrhoeae, N. meningitidis | Thayer-Martin, chocolate agar with antibiotics that suppress normal flora |
| Bordetella pertussis | Bordet-Gengou or Regan-Lowe |
| Corynebacterium diphtheriae | Tellurite agar, Loeffler medium |
| Mycobacterium tuberculosis | Löwenstein-Jensen |
| Legionella | Buffered charcoal yeast extract with iron and cysteine |
| Lactose fermenters (E. coli, Klebsiella) | MacConkey agar, where they form pink colonies |
| Fungi | Sabouraud agar |
Culture remains the reference method because it yields a live organism whose drug susceptibilities can be tested. For organisms that grow slowly or not at all in the laboratory, nucleic acid amplification tests such as PCR and antigen tests now do much of the diagnostic work.
Special stains include Giemsa (Borrelia, malaria parasites, trypanosomes and chlamydial inclusions), PAS (Tropheryma whipplei), India ink (the capsule of Cryptococcus) and silver (Legionella, Pneumocystis and fungi).
Common confusions
- Thick wall versus outer membrane: both groups have peptidoglycan; only gram-negatives have an outer membrane and endotoxin.
- Transformation versus conjugation versus transduction: free DNA (destroyed by DNase), cell-to-cell contact through a pilus, or a phage as the carrier.
- Selective versus enriched media: Thayer-Martin suppresses normal flora to find Neisseria; chocolate agar simply supplies nutrients.
- Alcohol and spores: alcohol gel does not kill spores; soap and water removes them and bleach kills them.
References
- Silhavy TJ, Kahne D, Walker S. The bacterial cell envelope. Cold Spring Harb Perspect Biol. 2010;2(5):a000414. doi:10.1101/cshperspect.a000414 Link ↩
- 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 ↩
- Thomas CM, Nielsen KM. Mechanisms of, and barriers to, horizontal gene transfer between bacteria. Nat Rev Microbiol. 2005;3(9):711-721. doi:10.1038/nrmicro1234 Link ↩
- Blair JMA, Webber MA, Baylay AJ, Ogbolu DO, Piddock LJV. Molecular mechanisms of antibiotic resistance. Nat Rev Microbiol. 2015;13(1):42-51. doi:10.1038/nrmicro3380 Link ↩
- Setlow P. Spores of Bacillus subtilis: their resistance to and killing by radiation, heat and chemicals. J Appl Microbiol. 2006;101(3):514-525. doi:10.1111/j.1365-2672.2005.02736.x Link ↩
- Johnson S, Lavergne V, Skinner AM, et al. Clinical practice guideline by the Infectious Diseases Society of America (IDSA) and Society for Healthcare Epidemiology of America (SHEA): 2021 focused update guidelines on management of Clostridioides difficile infection in adults. Clin Infect Dis. 2021;73(5):e1029-e1044. doi:10.1093/cid/ciab549 Link ↩