Microbiology · Phase 2

Gram Staining

Principle, procedure, Gram-positive and Gram-negative cell walls, sources of error, and how to read a Gram-stained smear.

NMC competency
MI1.10
Region
General bacteriology
Reading time
11 min
Comes with
6 MCQs · viva · flashcards

Quick answer: Gram staining is a differential stain that sorts most bacteria into two groups. Gram-positive bacteria keep the crystal violet and iodine complex after alcohol or acetone and look purple. Gram-negative bacteria lose it, take up the safranin counterstain and look red. The difference reflects the cell wall, and the stain gives a rapid first clue to the organism.

Microscope view of a Gram-stained smear with purple Gram-positive bacteria and pink-red Gram-negative bacteria.
Gram-positive bacteria stain purple and Gram-negative bacteria stain red or pink.Y tambe, CC BY-SA 3.0, via Wikimedia Commons

What is Gram staining?

A differential stain is one that separates organisms into groups by how they respond to the stain. The Gram stain is the most common stain used in diagnostic microbiology. Most bacteria are classified as Gram-positive or Gram-negative by their response to it.

The method is named after Hans Christian Gram (1853 to 1938), a Danish scientist. He developed it to stain bacteria in infected tissues, and used it to tell apart two causes of pneumonia, Streptococcus pneumoniae and Klebsiella pneumoniae.

The idea is simple. Bacteria that take up crystal violet and keep it are Gram-positive. Bacteria that let the dye wash off are Gram-negative. This depends on the ability of the dye to penetrate the cell wall and stay there, so the stain really tests the cell wall.

Steps of the procedure

A typical method, using sputum as the example, is:

Step-by-step diagram of Gram staining showing the colour of Gram-positive and Gram-negative cells after each reagent.
Both groups turn purple with crystal violet and iodine; only Gram-negative cells lose the colour with alcohol and take up red safranin.Paityn Donaldson, CC BY-SA 4.0, via Wikimedia Commons
  1. Make a smear and fix it by heating over a flame.
  2. Flood with the primary stain, gentian violet (crystal violet), for 3 minutes.
  3. Flood with Gram's iodine for 1 minute. This step has a mordanting action.
  4. Drain off, wash, and decolorise with alcohol.
  5. Wash with water.
  6. Counterstain with safranin for 30 seconds.
  7. Wash and dry the slide, then examine under oil immersion.
StepReagentWhat happens
Primary stainCrystal violet, methyl violet or gentian violetAll cells take up the purple dye
IodineA dilute solution of iodineThe dye and iodine form a complex inside the cell
DecolourisationAn organic solvent such as ethanol or acetone (aniline is also named)Gram-positive cells keep the dye-iodine complex. Gram-negative cells lose it and become translucent
CounterstainSafranin (a red dye); carbol fuchsin is another counterstainGram-negative cells take up the red dye. Gram-positive cells stay purple

Result: Gram-positive bacteria look purple and Gram-negative bacteria look red (reddish-pink) under the microscope.

Colour check: Positive keeps the Purple. Negative loses it and ends up Red.

Why do the two groups stain differently?

The difference between the groups reflects fundamental differences in their cell envelopes. The strength of the bacterial cell wall comes from a layer of peptidoglycan (also called murein or mucopeptide; these are synonyms).

Side-by-side diagram of Gram-positive and Gram-negative bacterial cell envelopes with labelled layers.
The thick peptidoglycan of Gram-positive cells holds the dye, while the outer membrane and thin wall of Gram-negative cells let it wash out.Malihe Mehdizadeh Allaf and Hassan Peerhossaini, CC BY 4.0, via Wikimedia Commons
FeatureGram-positiveGram-negative
Colour after Gram stainPurpleReddish-pink
PeptidoglycanThick layerThin layer
Teichoic acidsPresentAbsent
Outer membraneAbsentPresent
Envelope layersPeptidoglycan with teichoic acids, then the cytoplasmic membraneOuter membrane, peptidoglycan, periplasm and the cytoplasmic membrane
Representative generaBacillus, Staphylococcus, StreptococcusEscherichia, Neisseria, Pseudomonas

Gram reactivity matters for more than staining. Gram-positive and Gram-negative bacteria also differ in structure, growth requirements, susceptibility to antibiotics and pathogenicity. The Gram reaction is also linked to many other morphological properties in related bacteria.

Common sources of error

Decolourisation is the critical step, and it is not an all-or-none process.

  • Over-decolourising: even Gram-positive cells can lose the dye after prolonged treatment with the solvent.
  • Under-decolourising: if decolourisation is inadequate, all cells can appear Gram-positive.
  • Damaged cell wall: Gram-positive bacteria become Gram-negative when the cell wall is damaged.
  • Age of the culture: in older cultures, staining characteristics vary or are not brought out well. An organism that is potentially Gram-positive may appear so only under certain conditions and in a young culture.
  • The stain itself: staining kills any cell that is not already dead, so it is a drastic process and may produce artifacts.

Reading a Gram-stained smear

On examination, note these points:

Diagram of bacterial shapes and cell arrangements including pairs, chains, tetrads, packets and clusters.
Shape and arrangement of bacteria are read together with the Gram reaction.explorebiology, CC BY 4.0, via Wikimedia Commons
  • Gram reaction: purple-blue for Gram-positive, red for Gram-negative.
  • Morphology (shape): cocci, rods, fusiform or other forms.
  • Arrangement: cocci may lie in pairs (diplococci), chains (streptococci), groups of four (tetrads), groups of eight (sarcina) or grape-like clusters (staphylococci).
  • Host cells: note whether inflammatory cells are present and what type they are, and quantify them. Squamous epithelial cells from a respiratory sample or wound are also worth noting.

Bacteria in body fluids or tissue can have highly variable morphology, unlike organisms grown on agar. The Gram stain also stains fungi, leukocytes and epithelial cells, not only bacteria.

Clinical use

The Gram stain is a first step in the laboratory and often gives a rapid diagnosis. It helps identify an organism provisionally as Gram-positive or Gram-negative. On this empirical evidence, antibiotics may be started. Most specimens from suspected bacterial infection should be smeared, Gram-stained and examined.

Gram-stained smear showing purple lancet-shaped diplococci among pus cells.
Gram-positive diplococci with pus cells in a smear point to pneumococcus.Ajay Kumar Chaurasiya, CC BY-SA 4.0, via Wikimedia Commons
  • It is most useful for the rapid diagnosis of pyogenic meningitis. In one case in the passages, a child with fever, seizures and neck rigidity had a CSF Gram smear showing Gram-positive diplococci, some inside polymorphs.
  • Sterile body fluids and aspirates can also be stained for rapid diagnosis.
  • In pneumonia, the Gram smear is an essential part of assessing sputum and tracheal aspirates. It shows whether a specimen is good enough for culture and gives a rapid assessment of the likely cause. The sputum should be sputum, not saliva.
  • The result helps choose the culture media and conditions of incubation.

Sputum quality: a specimen full of large oropharyngeal epithelial cells comes from the upper respiratory tract. It is inadequate for Gram stain analysis and culture.

Accuracy depends on the criteria used. In acute community-acquired pneumonia, three or more Gram-positive lancet-shaped diplococci correctly predicted pneumococci in culture in 90% of cases, with a sensitivity of 62% and a specificity of 85%. Lowering the criteria for a positive smear raised sensitivity but reduced specificity.

Limit of detection: a specimen must contain at least 10⁵ organisms per millilitre before organisms are likely to be seen on a smear. Specimens with 10² to 10³ organisms per millilitre produce growth on solid media. Microscopy is simple and inexpensive but much less sensitive than culture.

Patterns worth recognising

Gram-stained smear showing pink-red paired cocci inside and around neutrophils.
Gram-negative diplococci in a sterile site or pus smear suggest Neisseria.Dr Graham Beards, CC BY-SA 4.0, via Wikimedia Commons
Smear findingWhat it suggests
Gram-positive lanceolate (lancet-shaped) diplococci with pus cells in sputumPneumococcus (S. pneumoniae), as in a case of pneumococcal pneumonia
Gram-positive cocci in grape-like clustersStaphylococci
Gram-negative cocci in a sterile siteUsually Neisseria meningitidis or N. gonorrhoeae
Gram-negative coccobacilliExamples: Haemophilus, Brucella. Small Gram-negative coccobacilli such as Pasteurella multocida and Acinetobacter have been mistaken for H. influenzae or M. catarrhalis in sputum
Gram-negative rodsExamples: E. coli, Klebsiella. Curved Gram-negative bacilli include Vibrio, Campylobacter and Helicobacter
Long, tapering, pale-staining Gram-negative bacillus with irregular Gram-positive internal granulesFusobacterium nucleatum
Irregularly staining, beaded, delicate Gram-positive branching filamentsNocardia or Actinomyces
Slender Gram-positive rods, club-shaped, in V or L arrangements, with granulesCorynebacterium diphtheriae. The granules are metachromatic (polar bodies) and show with Albert's, Neisser's and Ponder's stains

Pus from anaerobic infections contains numerous neutrophils and usually a mixture of bacterial species.

What the Gram stain does not do

A Gram stain may suggest mycobacteria, fungi or parasites, but special stains should be ordered when those are suspected.

Ziehl-Neelsen stained smear with red rod-shaped acid-fast bacilli on a blue background.
Acid-fast bacilli appear red with Ziehl-Neelsen stain, so this special stain is needed when mycobacteria are suspected.CC0, via Wikimedia Commons
StainUsed for
Gram stainMost bacteria
Acid-fast stain (Ziehl-Neelsen, Kinyoun)Mycobacteria; Nocardia with a modified method
Silver stainsFungi, Legionella, Pneumocystis jirovecii
Periodic acid-SchiffFungi, amebae
MucicarmineCryptococcus
GiemsaCampylobacter, Leishmania, malarial parasites
10% KOH or calcofluorFungal elements (KOH dissolves cellular and organic debris)

For comparison, the Ziehl-Neelsen method uses carbol fuchsin heated for 5 minutes, decolourisation with 20% sulphuric acid (5% for M. leprae), and a methylene blue counterstain for 1 minute. The Kinyoun method needs no heat and uses a 3-minute stain.

Mnemonics

Gram stain in one line: violet, iodine, decolourise, counterstain red. What stays purple is Gram-positive, what turns red is Gram-negative.

Practice MCQs

Gram-positive bacteria look purple because they:

  • A. Take up the safranin counterstain
  • B. Have an outer membrane that holds the dye
  • C. Retain the crystal violet and iodine complex after the alcohol or acetone wash
  • D. Are killed by the iodine
Show answer

Answer: C. Gram-positive bacteria retain the complex of crystal violet and iodine after a brief wash with alcohol or acetone, so they look purple. Gram-negative bacteria lose the complex.

A smear is under-decolourised. What is the most likely result?

  • A. All cells appear Gram-negative
  • B. All cells appear Gram-positive
  • C. Only the cocci stain
  • D. The counterstain turns purple
Show answer

Answer: B. If decolourisation is inadequate, the dye is not removed from Gram-negative cells, so all cells can appear Gram-positive.

Which pair correctly describes a Gram-negative cell envelope?

  • A. Thick peptidoglycan and teichoic acids
  • B. Thick peptidoglycan and no outer membrane
  • C. Thin peptidoglycan and teichoic acids
  • D. Thin peptidoglycan and an outer membrane
Show answer

Answer: D. The Gram-negative envelope has a thin peptidoglycan layer and an outer membrane. Teichoic acids are absent, and a thick peptidoglycan layer is typical of Gram-positive bacteria.

A "sputum" smear shows many large oropharyngeal epithelial cells. The best interpretation is that the specimen is:

  • A. Inadequate, because it comes from the upper respiratory tract
  • B. Ideal, because epithelial cells show good sampling
  • C. Diagnostic of pneumococcal pneumonia
  • D. Positive for mycobacteria
Show answer

Answer: A. Large oropharyngeal epithelial cells show the specimen came from the upper respiratory tract. Such a specimen is inadequate for Gram stain analysis and culture.

A specimen contains 10² to 10³ bacteria per millilitre. Which statement is most accurate?

  • A. The smear will almost certainly show bacteria
  • B. The specimen will not grow on solid media
  • C. The smear may be negative although culture on solid media can grow the organism
  • D. The liquid specimen will look turbid
Show answer

Answer: C. A smear is likely to show organisms only when the specimen has at least 10⁵ organisms per millilitre. At 10² to 10³ per millilitre, growth on solid media can occur, so culture is far more sensitive than microscopy.

Gram-negative cocci seen in a sterile site most often indicate:

  • A. Staphylococcus aureus or Streptococcus pyogenes
  • B. Neisseria meningitidis or Neisseria gonorrhoeae
  • C. Escherichia coli or Klebsiella
  • D. Corynebacterium diphtheriae
Show answer

Answer: B. Gram-negative cocci in sterile sites usually indicate infection due to Neisseria meningitidis or N. gonorrhoeae.

Viva questions

What is the principle of Gram staining?

Gram-positive bacteria retain a crystal violet and iodine complex after a brief wash with alcohol or acetone and look purple. Gram-negative bacteria lose the complex, take the safranin counterstain and look red. The difference reflects the cell wall.

Name the steps of the Gram stain.

Fix the smear, stain with crystal violet, apply iodine, decolourise with alcohol or acetone, then counterstain with safranin.

What colour are Gram-positive and Gram-negative bacteria, and why?

Gram-positive are purple and Gram-negative are red (reddish-pink). Gram-positive cells have a thick peptidoglycan layer and teichoic acids. Gram-negative cells have a thin peptidoglycan layer and an outer membrane.

What happens if decolourisation is too long or too short?

Too long can decolourise even Gram-positive cells. Too short can make all cells look Gram-positive.

Why does the Gram reaction matter clinically?

It gives a rapid provisional identification, so antibiotics may be started. Gram-positive and Gram-negative bacteria also differ in growth requirements, antibiotic susceptibility and pathogenicity.

In which infection is the Gram stain most useful for rapid diagnosis?

Pyogenic meningitis. It is also useful on sterile body fluids and aspirates.

Is the Gram stain enough to detect mycobacteria?

No. It might suggest mycobacteria, but special stains such as acid-fast stains should be ordered when they are suspected.

Flashcards

Still mixing up Gram-positive and Gram-negative? Ask the GalenAI tutor and practise Gram staining MCQs.

More microbiology lessons.

All microbiology →

Preparing for a PG entrance? Practise free MCQs or read the NEET PG guide.

Sources

  • Standard microbiology, medicine and infectious disease references
  • Image credits are given under each figure. All images are openly licensed.