Gram staining is a four-reagent process that separates bacteria into two groups based on cell wall structure: Gram-positive bacteria stain purple, and Gram-negative bacteria stain pink. The entire procedure, from smear preparation to viewing under a microscope, takes about 15 minutes once you have your materials ready. Here’s how to do it correctly and how to avoid the mistakes that lead to misleading results.
Why the Stain Works
The technique exploits a fundamental difference in bacterial cell walls. Gram-positive bacteria have a thick outer layer of peptidoglycan, a rigid mesh-like material. Gram-negative bacteria have a much thinner peptidoglycan layer covered by a lipid-rich outer membrane. Both types initially absorb the purple crystal violet dye. But when a solvent (the decolorizer) is applied, it dissolves the lipid layer of Gram-negative cells, allowing the purple dye to wash out. In Gram-positive cells, the solvent instead dehydrates the thick peptidoglycan, closing its pores and trapping the purple dye inside. A pink counterstain then colors the now-colorless Gram-negative cells so they become visible.
What You Need
A standard Gram stain kit contains four reagents: crystal violet (the primary stain), Gram’s iodine (the mordant), a decolorizer (ethanol, acetone, or a mixture of both), and safranin (the counterstain). Beyond the kit, you’ll need clean glass microscope slides, a wax pencil, sterile disposable inoculating loops, a Bunsen burner or slide warmer, slide forceps, immersion oil, bibulous paper or paper towels, and a microscope with an oil immersion objective (100x). Keep distilled or high-purity water on hand for making smears from solid cultures.
Wear gloves and goggles throughout the process. Crystal violet in particular stains skin and clothing readily, and the decolorizer is flammable. Staining runoff should not go down the drain. Collect all liquid waste in a labeled container for hazardous waste disposal according to your institution’s guidelines.
Preparing the Smear
Good results start with a properly made smear. If you’re working from a liquid culture, use a sterile loop or pipette to place a small drop directly on the slide. If you’re working from colonies on a plate, first place a tiny drop of distilled water on the slide, then touch a sterile loop to a single colony and mix it into the water to create a thin, even suspension. Spread the material into a thin film roughly the size of a dime.
The smear must air dry completely before you heat-fix it. Don’t blow on it or wave it over a flame while it’s still wet. Once dry, grip the slide with forceps and pass it through the Bunsen burner flame several times (bacterial side up). This heat fixation kills the bacteria and adheres them to the glass so they won’t wash off during staining. Avoid holding the slide in the flame too long, as excessive heat distorts cell shape and can destroy the cell wall entirely, which will ruin your results.
The Four Staining Steps
Place the heat-fixed slide on a staining rack over a collection tray. Each step follows the same pattern: apply the reagent, wait, then rinse gently with water (except after the decolorizer).
1. Crystal Violet
Flood the smear with crystal violet and let it sit for about 60 seconds. This primary dye penetrates all bacterial cells regardless of type, turning everything purple. Gently rinse with water to remove excess dye.
2. Gram’s Iodine
Flood the smear with Gram’s iodine for about 60 seconds. The iodine acts as a mordant, meaning it locks the crystal violet in place. Chemically, iodide ions swap in for the smaller chloride ions in the crystal violet molecule, forming a larger, water-insoluble complex inside the cells. This bigger complex is what makes it difficult for the dye to escape from thick-walled cells during the next step. Rinse gently with water.
3. Decolorizer
This is the most critical step and the one most likely to go wrong. Tilt the slide at an angle and drip the decolorizer (acetone-alcohol) over the smear until the runoff runs mostly clear. This typically takes only 5 to 15 seconds. Rinse immediately with water to stop the decolorization. In Gram-negative cells, the decolorizer dissolves the outer lipid membrane and washes out the crystal violet-iodine complex. In Gram-positive cells, it dehydrates and tightens the peptidoglycan, trapping the complex inside.
4. Safranin
Flood the smear with safranin for 60 to 90 seconds. This pink-red counterstain colors the now-colorless Gram-negative cells. Gram-positive cells are already so deeply purple that the pink safranin doesn’t visibly change them. Rinse with water one final time, then blot the slide gently with bibulous paper and let it dry.
Reading Your Results
Start at low magnification (10x) to locate the stained area, then switch to the oil immersion objective (100x) by placing a drop of immersion oil directly on the slide. At this magnification you can distinguish individual cells clearly.
Gram-positive bacteria appear dark purple or violet. Common examples include Staphylococcus (round cells in grape-like clusters), Streptococcus (round cells in chains), and Bacillus species (rod-shaped). Gram-negative bacteria appear pink to red. Familiar examples include E. coli, Salmonella, Pseudomonas, and Klebsiella, all rod-shaped, along with Neisseria, which appears as pairs of round cells. Note both the color and the cell shape (round vs. rod) and arrangement (chains, clusters, pairs), since all three observations help narrow down what organism you’re looking at.
Common Mistakes and How to Fix Them
Most Gram stain errors produce one of two problems: everything looks purple, or everything looks pink. Understanding why helps you troubleshoot quickly.
- Everything appears Gram-negative (pink): The most common cause is over-decolorization. Leaving the decolorizer on too long strips the crystal violet from both cell types. Using old cultures is another culprit. As bacteria age, their cell walls degrade and can no longer retain the primary stain. Excessive heat fixation also destroys cell walls, producing the same false-negative result. Use fresh cultures (ideally 18 to 24 hours old) and keep decolorization brief.
- Everything appears Gram-positive (purple): This usually means the decolorizer was rinsed away too quickly, before it had time to penetrate Gram-negative cell walls. A smear that’s too thick can also trap crystal violet mechanically, making Gram-negative cells look darker than they should.
Running a control slide alongside your unknown is the simplest way to verify your technique. Use a known Gram-positive organism and a known Gram-negative organism on the same slide. If the control organisms stain correctly, you can trust the results on your unknown.
Getting a Thin, Even Smear
Smear thickness is an underappreciated variable. A smear that’s too thick traps dye between cells and makes interpretation unreliable. You should be able to read text through a properly prepared smear before staining. If you’re transferring from a colony, resist the urge to scoop up a visible chunk of growth. A barely-there touch with the loop is enough. Spread the material evenly rather than leaving it concentrated in one spot, and always let it air dry fully before heat fixing.

