Bacteria are single-celled organisms, and classifying them is foundational to biology and medicine. To understand how these microorganisms interact with their surroundings and how to treat infections, scientists group them based on their fundamental properties. The method established for this purpose is Gram staining, named after Danish bacteriologist Hans Christian Gram who developed the technique in 1884. This simple staining process divides bacteria into two major categories based entirely on the architecture of their cell wall. The staining result is a direct consequence of the physical and chemical properties of the cell envelope.
What Gram Staining Does
Gram staining is the most widely used differential stain in microbiology, primarily distinguishing bacteria into the Gram-positive and Gram-negative groups. This differentiation provides immediate insight into the bacterium’s cellular structure, which correlates with properties like antibiotic susceptibility. Gram-positive cells appear purple or violet, while Gram-negative cells are stained pink or red.
The process involves a sequence of four steps. First, the primary stain, crystal violet, colors all bacterial cells purple. Next, a mordant, Gram’s iodine solution, is added to form a large, insoluble complex with the crystal violet dye inside the cell. Third, a decolorizing agent, typically alcohol or acetone, is rapidly applied. Finally, a counterstain, safranin, provides a contrasting color to any cells that lost the primary stain.
Peptidoglycan: The Universal Building Block
The substance responsible for the differential staining result is peptidoglycan, a polymer unique to nearly all bacterial cell walls. This large macromolecule forms a mesh-like network that completely surrounds the bacterial plasma membrane. It is a heteropolymer composed of alternating sugar derivatives, N-acetylglucosamine (NAG) and N-acetylmuramic acid (NAM), which are cross-linked by short chains of amino acids.
The primary function of peptidoglycan is to provide structural strength and rigidity to the cell envelope. Bacteria often live in hypotonic environments, creating immense osmotic pressure that would cause the cell to swell and burst, a process called lysis. The strong structure of the peptidoglycan layer prevents this. The degree and organization of this network determine the cell’s classification in the Gram stain.
Gram-Positive and Gram-Negative Architectures
The two bacterial groups possess fundamentally different cell wall organizations that interact uniquely with the staining chemicals.
Gram-Positive Architecture
Gram-positive bacteria are characterized by a relatively simple cell envelope structure, lacking an outer membrane. Their cell wall is composed primarily of a thick, multilayered sheet of peptidoglycan, which can range from 30 to 100 nanometers in thickness. This thick peptidoglycan layer may constitute up to 90% of the cell wall’s dry weight and sits directly outside the plasma membrane. Embedded within this extensive meshwork are teichoic acids and lipoteichoic acids, which are anionic polymers believed to contribute to structural stability.
Gram-Negative Architecture
In contrast, Gram-negative bacteria exhibit a more complex, multi-layered cell envelope. Their peptidoglycan layer is significantly thinner, typically only 2 to 7 nanometers thick, representing about 5 to 10% of the cell wall material. This thin layer is located in the periplasmic space, the region situated between the inner plasma membrane and a second, outer membrane.
The presence of this outer membrane is the hallmark of Gram-negative architecture. It is composed of phospholipids, proteins, and a unique molecule called lipopolysaccharide (LPS). The outer leaflet of this membrane is mostly made of LPS, which acts as a barrier protecting the cell from detergents, certain antibiotics, and the decolorizing solvent used in the staining process. The thinness of the peptidoglycan and the existence of the lipid-rich outer membrane are the structural features that dictate the Gram-negative staining result.
The Staining Mechanism
The differential staining outcome is a physical phenomenon rooted in the structural differences of the cell walls. When crystal violet and the iodine mordant are applied, they penetrate both cell types and react to form a large, insoluble Crystal Violet-Iodine (CV-I) complex within the cell. At this stage, both Gram-positive and Gram-negative cells are stained purple.
The critical separation occurs during the decolorization step, where alcohol or acetone is introduced. In Gram-positive cells, the alcohol causes the thick, porous peptidoglycan layer to rapidly dehydrate and shrink. This action effectively tightens the meshwork of the wall, closing the pores and physically trapping the large CV-I complex inside the cell. The Gram-positive cell thus remains purple.
For Gram-negative cells, the decolorizer has a dual effect due to the presence of the outer membrane. The alcohol acts as an organic solvent, dissolving the lipids that make up the outer membrane, thereby compromising the cell’s primary barrier. Once this barrier is breached, the alcohol easily passes through the extremely thin layer of peptidoglycan, which is insufficient to retain the large CV-I complex. The complex is washed out, leaving the Gram-negative cell colorless and transparent.
The final step involves the counterstain, safranin, which is a pink or red dye. Since the Gram-positive cells are already saturated with the purple CV-I complex, they do not absorb the safranin and remain violet. However, the now-colorless Gram-negative cells readily take up the safranin stain. This makes the Gram-negative cells visible under the microscope, appearing pink or red, completing the differential classification based entirely on the cell wall’s inherent structure.

