Written and maintained by CASRAI Editorial Board
Last updated
Differential staining uses two or more dyes and a decolorizing step so that different cell types end up different colors on the same slide. The two workhorse examples are the Gram stain, which separates bacteria by cell-wall behavior, and acid-fast staining, which picks out organisms that resist decolorization by acid. Both are screening tools: they sort cells into groups, they do not name a species.
Definition and scope
A simple stain applies a single dye, so every cell takes the same color and the slide shows shape, size and arrangement. A differential stain adds a decolorizer and usually a second dye (a counterstain), so cells that hold the first dye look different from cells that lose it. The difference in color is the result.
This page covers the principle and the two differential stains most laboratories run on bacteria. Step-by-step bench procedures are in the dedicated guides: Gram stain procedure, reagents and results and Ziehl-Neelsen staining. Routine and special tissue stains are covered in histological staining.
How differential staining works in practice
The Gram stain
StatPearls describes the basic principle of Gram staining as the ability of the bacterial cell wall to retain the crystal violet dye. The reagent set is crystal violet as the primary stain, Gram’s iodine as the mordant, an acetone and ethanol (50:50) decolorizer, and basic fuchsin as the counterstain. Gram-positive organisms appear purple or blue and gram-negative organisms appear pink or red. The same source links the difference to cell-wall composition: gram-positive organisms have higher peptidoglycan content, gram-negative organisms have higher lipid content, and the decolorizing solvent dissolves the lipid layer of gram-negative cells so they lose the primary stain.
The acid-fast stain
Acid-fastness is the ability to resist decolorization by acids during staining. In the Ziehl-Neelsen method, carbolfuchsin is applied with heat, acid alcohol removes the stain from cells that are not acid-fast, and a methylene blue counterstain colors the background, so acid-fast bacilli appear red on a blue field (StatPearls, Acid Fast Bacteria). The CDC, WHO and partner agencies’ laboratory training program puts it the same way: tubercle bacilli retain the primary stain even after strong acid, so in Ziehl-Neelsen staining the acid-fast organisms appear red.
What each stain separates, and what it cannot tell you
The comparison below keeps the limits of each result next to the result itself.
| Stain | What separates the cells | Typical result | What it cannot tell you |
|---|---|---|---|
| Gram stain | Cell wall retains or loses crystal violet after decolorizing | Gram-positive purple or blue; gram-negative pink or red | Species or resistance (less specific than molecular techniques); organisms with no cell wall, such as Mycoplasma, are not helped by it; Chlamydia and Rickettsia are too small to assess well |
| Ziehl-Neelsen (acid-fast) | Cells resist decolorization by acid alcohol | Acid-fast bacilli red on a blue background | Only indicates that acid-fast organisms or structures are present; reported sensitivity and specificity for pulmonary tuberculosis are up to 70% and 97.1%; cannot separate drug-resistant from susceptible TB, which needs culture and susceptibility testing |
Two further points from the same sources make the table less tidy than a textbook color chart. Some organisms are gram-variable and do not group cleanly as positive or negative, Actinomyces species being the StatPearls example. And acid-fast is not unique to mycobacteria: StatPearls notes that bacterial endospores and the head of sperm are also acid-fast structures.
Where it matters for labs and clinics: a quality-control checklist
Control and reagent practices matter as much as technique. The CDC, WHO, IUATLD, PAHO, INDRE and APHL Acid-Fast Direct Smear Microscopy: A Laboratory Training Program (July 2000) sets out these points for acid-fast smears:
- Include a positive and a negative control slide every day, and run quality control on each new batch of stain.
- Give every reagent an expiration date and discard expired reagents.
- Filter carbol fuchsin before use, and discard the stain if precipitate is still present.
- Read a red negative control as incomplete decolorization, and a positive control showing no acid-fast bacilli as defective reagents or a wrong procedure.
The same document lists how one smear can fail in opposite directions. False positives come from unfiltered fuchsin, reused containers or positive slides, contaminated immersion oil and inadequate decolorization. False negatives come from a poor specimen, excessive decolorization and reading fewer than 100 fields. Decolorization is therefore the step to watch: inadequate decolorization appears among the false-positive causes and excessive decolorization among the false-negative causes. StatPearls adds that errors in smear thickness, staining, heating and reading also produce false results.
Related reading on fluorescent acid-fast screening is in auramine-rhodamine staining, and the wider discipline is introduced in what is microbiology.
Common misunderstandings
- A Gram result is not an identification. It narrows the possibilities and guides the next test; StatPearls states it is less specific than advanced molecular techniques.
- Pink does not always mean gram-negative, and purple does not always mean gram-positive. Gram-variable organisms such as Actinomyces do not group cleanly as either.
- A positive acid-fast smear is not a tuberculosis diagnosis by itself. The stain only shows acid-fast organisms or structures are present.
- Acid-fast and gram-positive are different properties. They test different things: retention of crystal violet after a solvent wash versus resistance to acid decolorization.
FAQ
What is the difference between simple and differential staining?
A simple stain uses one dye and colors all cells alike. A differential stain uses a decolorizing step and usually a counterstain so that different cell types appear in different colors.
Why is a counterstain used?
The counterstain colors the cells that lose the primary stain during decolorization. In the Gram stain basic fuchsin turns decolorized gram-negative cells pink or red, and in the Ziehl-Neelsen stain methylene blue gives the non-acid-fast background a blue color.
Is acid-fast the same as gram-positive?
No. Gram staining depends on how the cell wall retains crystal violet after decolorizing with solvent, while acid-fastness is resistance to decolorization by acid. Each stain answers a different question about the same bacteria.
Sources
- StatPearls, Gram Staining, NCBI Bookshelf, last updated March 28, 2025: ncbi.nlm.nih.gov/sites/books/NBK562156, checked 2026-10-29.
- StatPearls, Acid Fast Bacteria, NCBI Bookshelf, last updated August 7, 2023: ncbi.nlm.nih.gov/sites/books/NBK537121, checked 2026-10-29.
- CDC, WHO, IUATLD, PAHO, INDRE and APHL, Acid-Fast Direct Smear Microscopy: A Laboratory Training Program, July 2000: stacks.cdc.gov/view/cdc/31282, checked 2026-10-29.







