Hans Christian Gram, a Danish physician, developed the staining technique almost by accident while working on ways to visualise bacteria in lung tissue. He noticed that some bacteria held onto a particular dye after being washed with alcohol, while others did not. That observation became one of the most useful shortcuts in all of microbiology, dividing the bacterial world into two broad kingdoms: gram-positive and gram-negative.
What most people do not realise is that the gram stain is not really a stain at all, at least not in the simple sense of adding colour to something. It is a selective staining process that exploits a fundamental difference in the architecture of bacterial cell walls. Understanding why the stain works the way it does makes it much easier to perform correctly, troubleshoot when it goes wrong, and interpret the result with genuine understanding rather than pattern-matching.
This page walks through every step of the gram stain procedure in plain language, explains the cell wall biology that makes it work, identifies the most common errors and exactly how to fix them, and covers the organisms that do not stain reliably with the standard gram stain method.
The Biology That Makes the Gram Stain Possible
Bacteria are divided into gram-positive and gram-negative groups based on how their cell walls are built.
Gram-positive bacteria have a thick peptidoglycan layer sitting directly outside the cell membrane. Peptidoglycan is a mesh-like polymer made of sugar chains cross-linked by short amino acid bridges. In gram-positive organisms, this layer is 20 to 80 nanometres thick. It is dense, tightly woven, and acts like a sponge that can trap and hold the crystal violet-iodine complex that forms during the first two steps of the stain.
Gram-negative bacteria have a very different architecture. Their peptidoglycan layer is thin, only 2 to 7 nanometres, and it sits between two membranes: an inner cytoplasmic membrane and an outer membrane. The outer membrane contains lipopolysaccharide (LPS), which is the endotoxin responsible for the inflammatory cascade in gram-negative sepsis. During the decolorisation step of the gram stain, the alcohol-acetone dissolves the lipids in the outer membrane, creating channels through which the crystal violet-iodine complex washes out. The thin peptidoglycan layer provides no barrier to this loss. The cells are left colourless until the safranin counterstain is applied.
This difference in cell wall structure is not just a staining curiosity. It determines how bacteria interact with the immune system, which antibiotics can penetrate and kill them, and how they cause disease. Vancomycin, for example, targets peptidoglycan synthesis and works on gram-positive bacteria. It cannot cross the outer membrane of gram-negative organisms and is therefore useless against them. Beta-lactam antibiotics target penicillin-binding proteins (PBPs) involved in peptidoglycan cross-linking. They work on both gram-positive and gram-negative bacteria, but the outer membrane of gram-negatives creates an additional permeability barrier that affects how well they penetrate.
The Gram Stain Procedure, One Step at a Time
Step 1: Prepare the smear
A thin, even smear of the specimen or bacterial culture is spread across a clean glass slide. The smear should cover roughly the size of a thumbnail. If it is too thick, cells will overlap and you will not see individual morphology clearly. If it is too thin, you may not find enough cells to interpret the result. From a liquid culture, one loopful is usually sufficient. From a solid culture or a clinical specimen, the material is emulsified in a small drop of distilled water on the slide before spreading.
Step 2: Air dry, then heat fix
The smear is allowed to air dry completely. Rushing this step and adding reagents to a wet smear causes cells to wash off the slide and distorts morphology. Once dry, the slide is heat-fixed by passing it quickly through a Bunsen burner flame two or three times, smear side up. Heat fixation kills the organisms, denatures proteins to help cells adhere to the glass, and prepares the cells to take up the stain. Overheating is a common mistake: it chars the cells, distorts morphology, and makes the stain look blotchy and inconsistent.
Step 3: Flood with crystal violet (1 minute)
Crystal violet is the primary stain. It is poured over the smear and left for one minute. Both gram-positive and gram-negative cells take up crystal violet at this stage. The slide is then rinsed gently with tap water, tilting the slide so water runs off without directly blasting the smear.
Step 4: Apply Gram's iodine (1 minute)
Gram's iodine (also called the mordant) is applied for one minute. Iodine forms a large crystal violet-iodine (CV-I) complex inside the cells. This complex is too large to escape easily from gram-positive cells but will wash out of gram-negative cells in the next step. The slide is rinsed again with water.
Step 5: Decolorise with acetone-alcohol (5 to 10 seconds)
This is the most critical and most commonly mishandled step. Acetone-alcohol (usually a 50/50 mixture) is applied to the smear for a controlled 5 to 10 seconds, then immediately washed off with water. The decoloriser dissolves lipids in the gram-negative outer membrane, opening channels through which the CV-I complex rapidly escapes. In gram-positive cells, the thick peptidoglycan layer contracts slightly when dehydrated by the alcohol, trapping the CV-I complex inside.
The timing matters enormously. Under-decolorise and gram-negative cells will retain purple colour and appear falsely gram-positive. Over-decolorise and even gram-positive cells lose the CV-I complex and appear falsely gram-negative. For most smears, 5 seconds is about right. Thick smears may need slightly longer. The slide should look very pale lavender, almost colourless, after proper decolorisation.
Step 6: Apply safranin counterstain (1 minute)
Safranin is a red-pink dye that stains the now-colourless gram-negative cells pink to red. Gram-positive cells, which already hold the purple CV-I complex, take up some safranin but the purple dominates. The safranin is left for one minute, then rinsed with water.
Step 7: Blot dry and examine
The slide is blotted dry with bibulous paper (not rubbed, as rubbing removes cells). A drop of immersion oil is placed on the smear and it is examined under the 100x oil immersion objective. The total magnification is 1000x.
Reading Your Gram Stain Result
Gram stain interpretation requires reporting both the gram reaction and the morphology together, because the combination is diagnostically meaningful.
Gram-positive cocci in clusters suggest Staphylococcus species. Gram-positive cocci in pairs and chains suggest Streptococcus species or Enterococcus. Gram-positive diplococci with a lancet shape are typical of Streptococcus pneumoniae. Gram-negative diplococci seen intracellularly within neutrophils in a urethral or cervical specimen strongly suggest Neisseria gonorrhoeae. Gram-negative rods cover a wide range including the entire Enterobacteriaceae family (E. coli, Klebsiella, Proteus, Salmonella, and many others), as well as Pseudomonas, Haemophilus, and Bacteroides. Gram-positive rods include Bacillus, Clostridium, Lactobacillus, and Corynebacterium. Large gram-positive rods with subterminal or terminal spores are characteristic of Clostridium species.
The background and cellular response visible on the smear also matters. White blood cells (neutrophils) appearing as large lobulated cells indicate an inflammatory response. Squamous epithelial cells indicate oropharyngeal or skin contamination of the specimen. Seeing organisms inside neutrophils (intracellular organisms) is particularly significant, suggesting that the immune system has recognised them as a threat.
Common Gram Stain Errors and How to Fix Them
Everything looks pink (false gram-negative result): Over-decolorisation is almost always the cause. The acetone-alcohol was left on too long, stripping the CV-I complex from even gram-positive cells. Fix: reduce decolorisation time to 3 to 5 seconds. Also check that the iodine step was not skipped, as iodine forms the complex that makes the CV-I resistant to decolorisation.
Everything looks purple (false gram-positive result): Under-decolorisation leaves gram-negative cells purple. Fix: apply decoloriser for slightly longer. Also check that the acetone-alcohol reagent has not been contaminated with water, which would reduce its effectiveness.
Blotchy, uneven staining: Usually caused by an uneven smear (too thick in parts), inadequate air drying before heat fixation, or water pooling on the slide between steps. Fix: prepare thinner, more even smears and allow adequate drying between reagent applications.
No visible organisms on the slide: Either there were too few organisms in the specimen (low bacterial load), the smear was too thin, or the organisms were washed off during rinsing. Fix: prepare smear from a more concentrated area of the specimen, rinse more gently.
Slide too dirty to read: Immersion oil used on a previous slide was not cleaned off the objective lens. Fix: clean the objective with lens paper before examining a new slide.
Organisms That Do Not Stain Reliably With the Standard Gram Stain
Mycobacterium tuberculosis and other mycobacteria have cell walls rich in mycolic acids, long-chain fatty acids that make the cell wall nearly impermeable to standard water-soluble dyes. Mycobacteria stain poorly with gram stain and require acid-fast staining (Ziehl-Neelsen or auramine-phenol) for detection.
Mycoplasma species lack a cell wall entirely. There is no peptidoglycan to react with the stain, so they are invisible on gram stain. They require specialised culture conditions or molecular detection.
Spirochetes, including Treponema pallidum (syphilis) and Borrelia burgdorferi (Lyme disease), are too thin to be seen on routine light microscopy even with gram stain. They require dark-field microscopy, silver staining, or molecular detection.
Chlamydia and Rickettsia are obligate intracellular parasites. They do not grow on standard culture media and are not reliably detected by gram stain from clinical specimens.
Legionella pneumophila stains gram-negative very faintly and is often missed on direct gram stain of sputum. Culture on BCYE agar or urinary antigen testing are the reliable detection methods.
Frequently Asked Questions
What does gram-positive mean?
Gram-positive means the bacterium has a thick peptidoglycan cell wall that retains the crystal violet-iodine complex after decolorisation, appearing purple under microscopy. It indicates a fundamental difference in cell wall structure compared to gram-negative organisms.
What does gram-negative mean?
Gram-negative means the bacterium has a thin peptidoglycan layer surrounded by an outer membrane. During decolorisation, the outer membrane lipids are dissolved and the CV-I complex washes out. The cell is colourless until safranin counterstain is applied, appearing pink to red.
Why is the decolorisation step so important?
Decolorisation is the step that distinguishes gram-positive from gram-negative bacteria. If it is done for too long, gram-positive bacteria lose their purple colour and appear falsely gram-negative. If it is too short, gram-negative bacteria appear falsely gram-positive. Getting this step right is the single most important skill in performing a reliable gram stain.
What is the safranin counterstain for?
Safranin makes the decolorised gram-negative cells visible by staining them pink to red. Without it, gram-negative cells would be colourless and invisible. Gram-positive cells remain purple because the crystal violet-iodine complex is retained.
Can you do a gram stain directly from a patient sample?
Yes. Direct gram stain of specimens like CSF, sputum, wound swabs, urethral discharge, joint fluid, and BAL can provide clinically useful information within minutes of receiving the specimen, before culture results are available. The sensitivity varies by specimen type and organism load.
Why does Mycobacterium not gram stain well?
Mycobacteria have cell walls rich in mycolic acids, very long-chain fatty acids that make the cell wall hydrophobic and impermeable to water-soluble dyes. The standard crystal violet and safranin dyes do not penetrate the wall reliably. Acid-fast staining methods, which use carbol fuchsin heated or combined with a carrier to penetrate the wall, are the appropriate alternative.
What magnification is used to read a gram stain?
Gram stains are read under oil immersion at 1000x total magnification (10x eyepiece multiplied by 100x oil immersion objective). This magnification is needed to see individual bacterial cells clearly and determine their morphology and arrangement.
How do you tell Staphylococcus from Streptococcus on a gram stain?
Both are gram-positive cocci, but they arrange differently. Staphylococcus forms irregular clusters (like bunches of grapes) because it divides in multiple planes. Streptococcus forms chains or pairs because it divides in a single plane. The arrangement is a useful guide, though not absolutely definitive, and further biochemical testing (catalase test, coagulase test) is used to confirm the identification.
What is the difference between gram stain and culture?
The gram stain gives a rapid result (within minutes) showing the morphology and gram reaction of organisms present in the specimen. Culture grows the organisms on agar plates (taking 18 to 48 hours or longer) and provides a pure isolate that can be identified to species level and tested for antibiotic susceptibility. Both provide complementary information and are usually performed together.
Does a negative gram stain rule out infection?
No. A negative gram stain does not exclude infection. Sensitivity is limited, particularly for organisms present in low numbers or organisms that stain poorly. A gram stain negative CSF from a patient with clinical signs of meningitis still needs culture and molecular testing. The gram stain is one piece of evidence, not a definitive exclusion test.