The Gram stain sorts bacteria into two big groups by color, purple or pink, and iodine is the step that makes that sorting work. Without it, the purple dye would rinse out of nearly every bacterium and the two groups would look alike. The terms for the two groups are Gram-positive for purple-staining bacteria and Gram-negative for pink-staining ones, and they refer to this color result. Iodine itself treats every bacterium the same. The difference comes from what each cell’s wall does with the dye-iodine clump afterward.1PubMed Central. Chemical mechanism of the Gram stain and synthesis of a new electron-opaque marker for electron microscopy which replaces the iodine mordant of the stain
What Iodine Does to the Purple Dye
The stain runs in four steps: a purple dye, iodine, an alcohol rinse, and a pink dye that goes on last. Hans Christian Gram’s original version in the 1880s used these same four kinds of ingredients.2Wikipedia. Gram stain Iodine comes second, right after the purple dye, called crystal violet, has soaked into the cells. The pink dye at the end is a second color added so that cells which lost the first one are still visible.
Iodine acts as a fixing agent that binds the dye so it can’t be removed easily.3University of Maryland. ENCH485 Laboratory Manual: Gram’s Stain Crystal violet carries a small chloride piece, and the iodide in the iodine solution swaps it out one-for-one.1PubMed Central. Chemical mechanism of the Gram stain and synthesis of a new electron-opaque marker for electron microscopy which replaces the iodine mordant of the stain The new dye-iodide compound is bulkier and no longer dissolves in water, so it falls out as a solid clump.1PubMed Central. Chemical mechanism of the Gram stain and synthesis of a new electron-opaque marker for electron microscopy which replaces the iodine mordant of the stain
The swap works because the purple dye molecule is a charged particle that stays dissolved only while it is paired with its small chloride partner. The iodide-type ions in the iodine solution take that partner’s place, and the dye ends up with a much larger one. Dye paired this way is far less attracted to water, so it drops out of solution as solid material inside the cell. The clump forms inside both purple-staining and pink-staining bacteria.1PubMed Central. Chemical mechanism of the Gram stain and synthesis of a new electron-opaque marker for electron microscopy which replaces the iodine mordant of the stain
Gram’s iodine is brownish, but it is not a dye and adds no lasting color. The pink comes only from the final counterstain.
At the bench, the purple dye is rinsed briefly with water, then the slide is flooded with Gram’s iodine and left for about a minute, following the lab’s protocol. The solution looks brown or amber and can darken the smear, so the slide may look nearly black-purple. The iodine is then rinsed off with water before the alcohol step.
Under the microscope at this point, every cell looks dark purple. The difference appears only after the alcohol rinse.
Why the Clump Stays in Some Bacteria and Washes Out of Others
The cell wall of purple-staining bacteria is what holds on to the dye-iodine clump.4PubMed. The Gram stain after more than a century These bacteria need a relatively thick wall to keep the dye.5Informa Healthcare / Biotech & Histochemistry. The Gram stain after more than a century So Gram staining reflects how a wall is built, not the chemistry of the cell’s insides.5Informa Healthcare / Biotech & Histochemistry. The Gram stain after more than a century In pink-staining bacteria, the staining steps damage the cell surface and let the clump escape.5Informa Healthcare / Biotech & Histochemistry. The Gram stain after more than a century
The alcohol rinse is the step that pulls dye out of cells, and it works against the clump. A thick wall shrinks and tightens as alcohol dehydrates it, so the tiny gaps in its mesh narrow and the clump has a harder time passing through. The wall stays intact, and the clump remains inside the cell. The rinse is timed, though, because even a thick wall will eventually let dye out if alcohol keeps running over the slide.
A thin wall fares differently. Pink-staining bacteria have a thin wall layer plus an outer membrane rich in fatty material, and alcohol dissolves some of that fat-like layer. As the outer layer is disrupted, holes open in the cell surface and the clump escapes with the rinse. The cell ends up nearly colorless, which is what lets it take up the pink counterstain.
A small dissolved dye could leak even from thick walls. Only a large insoluble clump gets held by the wall mesh, which is why iodine has to go on before the rinse.
Two common bacteria show this side by side. When a soil bacterium (Bacillus) and a gut bacterium (E. coli) were stained, the clump formed inside both and on their surfaces.6PubMed Central. Cellular responses of Bacillus subtilis and Escherichia coli to the Gram stain The alcohol rinse washed the surface clump off Bacillus, but its wall held the inside clump in place.6PubMed Central. Cellular responses of Bacillus subtilis and Escherichia coli to the Gram stain In E. coli the rinse removed both the surface and inside clumps.6PubMed Central. Cellular responses of Bacillus subtilis and Escherichia coli to the Gram stain So Bacillus stays purple, while E. coli loses its color and takes up the pink counterstain.
Thickness isn’t the full story. One long-standing idea is that a tight, low-porosity wall mesh physically traps the clump.7PubMed Central. Gram-negative-staining Bacillaceae with thick cell wall and monoderm architecture uncover evolutionary diversity and challenge Gram-based classification But some thick-walled Bacillus relatives still stain pink.7PubMed Central. Gram-negative-staining Bacillaceae with thick cell wall and monoderm architecture uncover evolutionary diversity and challenge Gram-based classification Wall molecules often called a hallmark of purple-staining bacteria are also missing in some of them.7PubMed Central. Gram-negative-staining Bacillaceae with thick cell wall and monoderm architecture uncover evolutionary diversity and challenge Gram-based classification Gram color is a useful guide, but not a perfect map of how bacteria are related.
What Goes Wrong When the Iodine Step Fails
Traditional Gram’s iodine, made from iodine dissolved with potassium iodide in water, loses strength when exposed to air, light, and heat.8Remel. Gram Iodine PVP An old or badly stored bottle may not form enough clump. Purple-staining bacteria could then rinse out and be misread as pink-staining. A newer version bound to a plastic-like carrier is more stable than the traditional solution.8Remel. Gram Iodine PVP
Skipping iodine altogether leaves a dye that stays dissolved and rinses out of almost every cell. A contact time that is too short forms less clump, which leaves less material for the wall to hold. The usual result is false pink in bacteria that should be purple. Over-long alcohol rinsing causes the same error even with fresh iodine applied properly, because it can strip out the clump anyway.
Labs guard against this by staining a known purple-staining and a known pink-staining bacterium alongside patient samples. If the known purple control comes out pink, something failed, such as old iodine, short timing, or too much rinsing. The fix is fresh reagent and correct timing, then repeating the stain. Samples from the failed run shouldn’t be trusted.
A few storage habits help the solution last. Keep the bottle tightly capped, in a dark bottle away from light and heat. Replace solution that has faded from its deep brown color.
Why Some Bacteria Give Mixed Results Even With Good Iodine
Some bacteria that should stain purple show up pink. These are called Gram-variable.9PubMed Central. Diagnostic Utility of Gram Stain for Oral Smears – A Review In one group, including the bacteria behind diphtheria and acne, walls turn fragile during division and leak the dye-iodine clump.9PubMed Central. Diagnostic Utility of Gram Stain for Oral Smears – A Review In another group, including Bacillus and Clostridium, the wall under an outer protein coat thins as cultures age.9PubMed Central. Diagnostic Utility of Gram Stain for Oral Smears – A Review By the time these cultures stop growing, they can stain almost entirely pink.10PubMed Central. Mechanism of gram variability in select bacteria In some older cultures 15 to 40% of cells turned pink because of breaks in their side walls.10PubMed Central. Mechanism of gram variability in select bacteria
Dividing cells are especially vulnerable. During division a cell builds a new wall across its middle, and this region is a weak point for a time. A clump can leak out through these weak zones, so a fraction of cells in an actively dividing culture may look pink. This happens even when the iodine was applied correctly, which is why the problem lies in the wall and not the reagent.
On a slide, a mix of purple and pink cells of the same shape may point to culture age or wall damage rather than two different species. The mix is a reason for caution when reporting the result, not proof that the sample holds two organisms. Fresh, actively growing cultures give the most reliable colors, so slides from older growth deserve extra care. The iodine step can’t rescue a wall that is already broken, so repeating the stain on the same old culture won’t fix it; staining a fresh, young culture is the better check. Stain color should be combined with cell shape and other tests before naming a bacterium.
Can Anything Replace Iodine
Methods to tell the two groups apart without iodine have been developed.11PubMed Central. Gram differentiation without the use of iodine A platinum compound used instead of iodine formed the same kind of dye clump inside cells.6PubMed Central. Cellular responses of Bacillus subtilis and Escherichia coli to the Gram stain It gave the same purple-versus-pink pattern in Bacillus and E. coli.6PubMed Central. Cellular responses of Bacillus subtilis and Escherichia coli to the Gram stain
Iodine is still the standard for practical reasons. It is inexpensive and easy to obtain, which suits busy teaching and clinical labs. More than a century of results and training materials are built on it, so changing it would make comparisons harder. The platinum compound was used mainly to make the clump visible under an electron microscope, not as a routine replacement.
Is Gram’s Iodine Safe to Handle
Gram’s iodine can cause allergic skin reactions and irritate eyes, skin, and airways.8Remel. Gram Iodine PVP Safety sheets also list it as possibly damaging fertility or an unborn child.12Sigma-Aldrich. Safety Data Sheet: Gram’s iodine solution It is harmful to aquatic life as well.12Sigma-Aldrich. Safety Data Sheet: Gram’s iodine solution On the other hand, it is chemically stable at room temperature when protected from light and air.12Sigma-Aldrich. Safety Data Sheet: Gram’s iodine solution
Simple habits cover most of the risk. Wear gloves and safety glasses during staining, since splashes can reach skin and eyes. Work over a staining tray so drips are caught and don’t spread across the bench. Anyone who is pregnant or trying to conceive should check with the lab supervisor, given the listed reproductive hazard. After a splash, rinse the skin promptly with water.
Because of its harm to aquatic life, don’t pour large amounts down the sink. Follow the lab’s chemical waste rules instead.

