Log in
Microbiology · Morphology and Classification of Microbes

Gram stain

Gram stain is a basic bacterial differentiation method based on chemical and structural differences in their cell wall. The ability of microorganisms to retain the dye divides them into two large groups, which is of critical importance for microbiology.

Gram-positive (G+)Have a thick cell wall and stain a deep blue-purple color.
Gram-negative (G-)Have a thin cell wall and stain red or pink-red.
Cell wall basisPeptidoglycan, consisting of glycan chains and peptide cross-links.
Muramyl dipeptideA breakdown product of peptidoglycan that acts as a potent immunomodulator.
3 min readFor medical studentsUpdated 09/24/2026
Material prepared by WhiteCoat Pro editorial team based on platform study guidesReviewed by medical editor: Aulov A. A., general practitioner · 09/24/2026

Principle of bacterial differentiation

The separation of microorganisms by the Gram method directly depends on the architecture of their cell wall.

  • Gram-positive bacteria (G+) are characterized by the presence of a very thick cell wall. Due to its structure, specific staining gives them a deep blue-purple color.
  • Gram-negative bacteria (G-), by contrast, have a thin cell wall. After completing all staining steps, such cells appear red (or pink-red).

Physicochemical principles of the method

The difference in final color is explained by the reaction of peptidoglycan to sequential treatment with chemical reagents, primarily alcohol.

  1. In Gram-positive bacteria, the wall is based on a robust, multi-layered peptidoglycan. When treated with alcohol, this dense framework tightly retains the crystal violet-iodine complex inside the cell. Therefore, the cells retain their primary blue-purple hue.
  2. In Gram-negative bacteria, the peptidoglycan content is critically low—accounting for only 5–10% of the wall mass. Treatment with alcohol rapidly washes out the primary dye, and the cell is completely decolorized. To visualize these bacteria, a counterstain (fuchsin or safranin) is applied, which gives them a red color.
Test your knowledge on this topicAssignments from the Microbiology course bank — instant answers and explanations.

Peptidoglycan biochemistry

Peptidoglycan is a complex polymer that provides structural strength to the cell wall. Its molecular framework is formed by glycan chains consisting of alternating molecules of:

  • N-acetylglucosamine
  • N-acetylmuramic acid

To make the wall monolithic, these glycan chains are interconnected by robust peptide cross-links.

Action of lysozyme and immune response

The body has a natural mechanism for destroying the bacterial wall using the enzyme lysozyme. Lysozyme acts by specifically cleaving the chemical bonds within the peptidoglycan glycan chains.

The process of bacterial wall degradation plays an important role in immune activation. The main product of this cleavage—muramyl dipeptide—is a potent immunomodulator that stimulates the host's defense reactions.

Briefly: answers to topical questions

What dyes are used as primary and counterstains in the Gram stain?

Crystal violet is used as the primary stain in the Gram stain, and fuchsin or safranin is used as the counterstain.

  • Primary stain — crystal violet, which together with iodine forms a complex tightly retained by the peptidoglycan of Gram-positive bacteria.
  • Counterstain — fuchsin or safranin, which are taken up by Gram-negative bacteria after they are decolorized with alcohol.

What steps are included in the standard Gram staining procedure for bacteria?

The Gram staining procedure includes treatment with a primary stain and iodine, decolorization with alcohol, and counterstaining.

  • Primary staining — application of crystal violet and iodine to form a stained complex.
  • Decolorization — treatment with alcohol, which washes the dye out of the Gram-negative bacterial cell wall.
  • Counterstaining — using fuchsin or safranin to color the decolorized cells red.
How to memorize

Gram-POSITIVE — Piled UP (laid down) a lot of peptidoglycan (a thick wall firmly holds the purple dye).

Class and exam questions

Why do Gram-positive bacteria not decolorize with alcohol?

They have a robust multi-layered peptidoglycan that, after alcohol treatment, tightly holds the crystal violet-iodine complex inside the cell.

Which dye gives Gram-negative bacteria a red color?

The red color is provided by a counterstain—fuchsin or safranin—which the cells absorb after complete decolorization with alcohol.

What components make up the glycan chains?

They consist of alternating residues of N-acetylglucosamine and N-acetylmuramic acid.

How does lysozyme affect the bacterium?

The enzyme lysozyme cleaves chemical bonds directly within the glycan chains of peptidoglycan, leading to degradation of the cell wall.

Confused? Ask the AIThe AI tutor has reviewed the material on "Gram Stain" and will explain it in simple terms.

What else to study on this topic

  • Steps of crystal violet-iodine complex formation
  • Mechanism of the immunomodulatory action of muramyl dipeptide
  • Functions of peptide cross-links in the cell wall
  • Structure of the bacterial capsule and flagella
  • Differences between the cytoplasmic membranes of G+ and G- bacteria

Study the full topic in the «Microbiology» course

This is a summary. The course covers everything tested in classes and exams.

  • Complete study guide on "Gram Stain" and 4,383 other subject pages
  • Assignments and quizzes after every topic — just like in a colloquium
  • AI tutor answers questions on the topic anytime
  • 141 video lectures on the subject

Other topics in the section "Morphology and Classification of Microbes"

The entire section "Morphology and Classification of Microbes"

Free video lessons: microbiologyShort lessons with study notes — no registration required.

Watch lessons

Prepared by WhiteCoat Pro faculty in accordance with the medical school curriculum. For educational purposes only.