Gram staining is performed on bacterial smears in microbiology laboratories. The smears are prepared from cultured bacterial isolates or suitable clinical specimens. The bacterial material is spread on a clean glass slide, dried and fixed before staining. The prepared smear is first stained with crystal violet and treated with Gram’s iodine. It is then decolorized, counterstained and examined under a microscope.
The Gram staining process involves four main staining stages. Smear preparation, washing between staining steps and microscopic examination are separate from these four stages. The time required for decolorization depends upon the decolorizing agent and the thickness of the bacterial smear.
Gram staining was developed by Danish physician Hans Christian Gram. He published the method in 1884 while studying bacteria in infected lung tissue.
The stained bacterial smear is examined for the Gram reaction, shape and arrangement of bacterial cells. These observations provide initial information about the bacteria present in the sample. The identification of a particular bacterial species may require additional laboratory tests.
What is Gram Staining?
Gram staining or Gram stain is a differential staining technique used to distinguish bacteria based on their staining reactions. The staining reaction depends mainly on the properties of the bacterial cell envelope.
Gram-positive bacteria appear purple, while Gram-negative bacteria appear pink or red after staining. This difference in staining is known as the Gram reaction.
Gram staining is used for the preliminary examination of bacteria in microbiology laboratories. It provides information about the Gram reaction of bacteria but cannot be used alone to identify a particular bacterial species.
Objectives of Gram Staining
The following are the objectives of Gram staining:
- To differentiate between Gram-positive and Gram-negative bacteria based on their staining reactions.
- To observe the shape and arrangement of bacterial cells under a microscope.
- To detect the presence of bacteria in suitable clinical specimens.
- To examine bacterial cultures for the presence of different bacterial types.
- To obtain preliminary information about bacteria for their identification by further laboratory tests.
- To help in the presumptive diagnosis of bacterial infections.
Principle of Gram Staining
The principle of Gram staining is based on the ability of bacterial cells to retain the crystal violet–iodine complex during decolorization. This difference in stain retention depends mainly on the structure and permeability of the bacterial cell envelope.

Cell Wall Basis of Gram Staining
Gram-positive bacteria have a thick cell wall composed of several layers of peptidoglycan. They do not have an outer membrane.
Gram-negative bacteria have a thin peptidoglycan layer surrounded by an outer membrane containing lipids. The differences in the structure of these cell envelopes affect the retention of the crystal violet–iodine complex during decolorization.
Mechanism of Crystal Violet Retention and Decolorization
Crystal violet enters both Gram-positive and Gram-negative bacterial cells and stains them purple. Gram’s iodine reacts with crystal violet to form a larger, poorly water-soluble crystal violet–iodine (CV-I) complex within the cells.
During decolorization, alcohol or acetone acts on the membrane lipids and changes the permeability of the bacterial cell envelope.
In Gram-positive bacteria, the thick peptidoglycan layer retains the crystal violet–iodine complex. Alcohol also causes dehydration of the cell wall, which reduces its porosity and limits the removal of the dye complex. The bacteria remain purple after decolorization.
In Gram-negative bacteria, the decolorizing agent disrupts the lipid-rich outer membrane and increases the permeability of the cell envelope. The thin peptidoglycan layer cannot retain the crystal violet–iodine complex, and the dye is removed from the cells. These decolorized cells then take up the counterstain (usually safranin) and appear pink or red.
The retention of the crystal violet–iodine complex is also affected by the integrity of the cell wall and the changes in membrane permeability during solvent treatment.
Reagents Used in Gram Staining
The four principal reagents used in Gram staining are crystal violet, Gram’s iodine, the decolouriser and safranin.
1. Crystal Violet (Primary Stain)
Crystal violet is the basic purple stain used in Gram staining and stains both Gram positive and Gram negative cells purple.
The crystal violet staining solution is made by dissolving the dye in an appropriate solvent. Hucker’s crystal violet solution also contains ethanol and ammonium oxalate.
2. Gram’s Iodine (Mordant)
Gram’s iodine is used as the mordant in the Gram stain. It’s a solution of iodine and potassium iodide in water.
Iodine reacts with the crystal violet present in the bacterial cells to form the crystal violet–iodine (CV-I) complex. The CV-I complex is held more tightly than crystal violet alone.
3. Ethanol or Acetone (Decolorizing Agent)
Ethanol or acetone are used for the decolourisation in the Gram stain. In many of the standard protocols 95% ethanol (v/v) is the decolourising agent. Acetone or a mixture of acetone and ethanol can also be used.
The decolouriser removes the crystal violet–iodine complex from the Gram-negative cells. The Gram-positive cells generally retain the primary stain.
The time taken for decolourisation will vary depending on the reagent and the staining protocol used. Acetone will generally decolourise faster than 95% ethanol.
4. Safranin (Counterstain)
Safranin is a basic red dye used as the counterstain in Gram staining and is normally prepared as a diluted aqueous-alcoholic staining solution.
The decolourised Gram-negative cells take up the safranin and appear pink/red. The Gram-positive cells retain the crystal violet–iodine complex and remain purple.
Basic fuchsin can also be used as an alternative counterstain in some Gram stains.
Materials Required for Gram Staining
The materials required for Gram staining are as follows:
- Clean glass slides – the bacterial smear is prepared on a clean, grease free glass slide.
- Bacterial culture or specimen – a fresh bacterial culture or an appropriate clinical specimen is taken for staining. The specimen must be collected and handled in accordance with laboratory safety requirements.
- Inoculating loop – a sterile inoculating loop is used to transfer the culture onto the glass slide. Sterile swabs or applicators may also be required for certain specimens.
- Smear fixation equipment – a slide warmer or some other suitable heat fixing arrangement is required for fixing the bacterial smear. The slides are held in place with forceps or a slide holder.
- Staining rack and tray – the rack holds the slides during staining and the tray underneath collects the excess stain.
- Rinse Water – a wash bottle containing distilled, deionised or suitable tap water is required for rinsing the slides between staining steps.
- Gram staining solutions- crystal violet, Gram’s iodine, a decolouriser (95% ethanol or an appropriate acetone containing solution) and safranin.
- Absorbent paper – excess water from the stained slides is removed using bibulous paper or clean absorbent paper.
- Compound light microscope – the stained bacterial cells are examined under a compound light microscope equipped with a 100x oil immersion objective.
- Immersion oil – this is placed between the glass slide and the 100x oil immersion objective when you’re doing the microscopy.
- Control slides – smears of known Gram positive and Gram negative bacteria are included as controls to check the staining results.
- Lab safety materials- a lab coat, gloves and appropriate eye protection (as required depending on the specimen and risk assessment) are all essential. A biological safety cabinet (BSC) will be required where the risk assessment indicates this. Suitable disinfectants and biohazard waste containers should be on hand. Heat fixed smears may still contain viable organisms.
Procedure of Gram Staining
The procedure of Gram staining using 95% ethanol as the decolorizing agent is given below:

Preparation of Bacterial Smear
- Take a fresh bacterial culture or a suitable clinical specimen for smear preparation. The specimen should be handled according to the laboratory safety requirements.
- A small amount of bacterial culture is placed on a clean, grease-free glass slide and spread to form a thin, uniform smear. For cultures grown on solid media, a small drop of sterile water may be added.
- Allow the smear to air-dry completely. The dried smear is then fixed gently by moderate heat and allowed to cool. The fixation method should be suitable for the specimen being examined.
Gram Staining Steps
Gram staining involves four main staining steps. Smear preparation, fixation and microscopic examination are carried out separately.
- The fixed smear is covered with crystal violet and stained for 1 minute. The excess stain is removed by washing gently with water. Drain the water from the slide.
- Gram’s iodine is added to cover the smear and allowed to remain for 1 minute. The slide is then rinsed with water.
- Hold the slide at an angle and apply 95% ethanol until the purple colour stops coming off the smear (about 30 seconds in this protocol). Immediately wash with water to stop decolorization. The time required depends upon the thickness of the smear and the decolorizing agent used.
- The decolorized smear is stained with safranin for 30 seconds. Wash the slide gently with water and drain the excess water.
Microscopic Examination of Gram-Stained Smear
- Excess water from the stained slide is removed using bibulous paper without rubbing the smear. Allow the slide to air-dry.
- Place the slide on the microscope stage and locate the stained area under low magnification. A drop of immersion oil is then added and the smear is examined using the 100× oil immersion objective.
- The Gram-positive bacteria appear purple, while Gram-negative bacteria appear pink or red after staining.
- Observe the shape, arrangement and distribution of the bacterial cells under the microscope. The Gram reaction and other microscopic observations are recorded.
Results and Interpretation of Gram Staining
The results of Gram staining are observed under the microscope by examining the colour, shape and arrangement of bacterial cells. The colour of the stained cells indicates their Gram reaction. Based on the staining result, bacteria may be Gram-positive, Gram-negative or Gram-variable.
Gram-Positive Staining Result
Gram-positive bacteria appear purple or violet under the microscope after Gram staining. These bacteria retain the crystal violet-iodine complex during decolorization due to the thick peptidoglycan layer present in their cell wall.
Gram-positive cocci may be found in clusters or chains. Staphylococcus aureus is commonly observed as purple cocci arranged in clusters, while Streptococcus pyogenes forms chains.
Gram-positive bacilli appear as purple rod-shaped cells. Examples include Bacillus subtilis, Listeria monocytogenes and Corynebacterium diphtheriae. The rods may be short, long or irregularly shaped depending on the bacterial species.
Gram-Negative Staining Result
Gram-negative bacteria appear pink or red after Gram staining. The crystal violet-iodine complex is removed from these cells during decolorization. The decolorized cells take up the counterstain (usually safranin), which gives them a pink or red colour.
The cell wall of Gram-negative bacteria contains a thin peptidoglycan layer and an outer membrane rich in lipids.
Gram-negative cocci such as Neisseria gonorrhoeae and Neisseria meningitidis are commonly observed in pairs (diplococci).
Escherichia coli, Pseudomonas aeruginosa and Klebsiella pneumoniae are examples of Gram-negative bacilli. These bacteria appear as pink or red rods. Some Gram-negative bacteria may also appear as short coccobacilli, such as Haemophilus influenzae.
Gram-Variable Staining Result
Gram-variable staining occurs when some bacterial cells retain the crystal violet-iodine complex while others lose it during decolorization. Both purple and pink cells are observed in the same bacterial population.
Some bacteria show Gram-variable reactions due to their cell wall characteristics and physiological conditions. Gardnerella vaginalis is an example of a Gram-variable bacterium. It commonly appears as small coccobacilli. Certain species of Bacillus and Actinomyces may also show variable staining.
The Gram reaction may change with the age of the bacterial culture. In older cultures, the cell walls of some Gram-positive bacteria become damaged and fail to retain the primary stain. These cells may appear pink instead of purple.
Gram-variable appearances may also occur due to errors during staining.
- Excessive decolorization may cause Gram-positive bacteria to appear pink.
- Insufficient decolorization can cause Gram-negative bacteria to retain the purple stain.
- A smear containing both Gram-positive and Gram-negative bacteria may show purple and pink cells together. This is a mixed bacterial population and not necessarily a Gram-variable organism.
Fresh bacterial cultures and proper staining conditions help in distinguishing genuine Gram-variable reactions from staining errors.
Bacterial Morphology and Arrangement

The shape and arrangement of bacterial cells are also examined during Gram staining. The bacterial morphology can be observed along with the Gram reaction.
The different bacterial forms observed under the microscope are given below:
- Cocci are spherical or nearly spherical bacterial cells.
- Bacilli are rod-shaped bacteria. They may appear as short or long rods.
- Coccobacilli are short rods with a rounded appearance.
- Some bacteria may have curved, branching or irregularly shaped (pleomorphic) cells.
The bacterial cells may be arranged singly, in pairs, chains, clusters or groups of four (tetrads). Certain bacilli are also found in chains or palisade arrangements.
The Gram staining observation is recorded by combining the Gram reaction with the cell morphology and arrangement. For example, Staphylococcus aureus may be reported as “Gram-positive cocci in clusters”, while Escherichia coli may be reported as “Gram-negative rods”.
The Gram reaction and bacterial morphology are used for preliminary identification only. Different bacterial species may have similar microscopic appearances. Further identification requires suitable tests such as bacterial culture, biochemical tests or molecular methods.
The comparison of Gram staining results is given below:
| Characteristics | Gram-Positive | Gram-Negative | Gram-Variable |
|---|---|---|---|
| Observed colour | Purple or violet | Pink or red | Both purple and pink |
| Primary stain | Retained | Removed during decolorization | Retained by some cells and lost by others |
| Counterstain | Usually masked by the primary stain | Visible in decolorized cells | Visible in cells that lose the primary stain |
| Cell wall characteristics | Thick peptidoglycan layer | Thin peptidoglycan layer with an outer membrane | Depends on the organism and its physiological condition |
| Microscopic appearance | Purple cocci, bacilli or other forms | Pink cocci, bacilli or other forms | Purple and pink cells in the same bacterial population |
| Examples | Staphylococcus aureus, Streptococcus pyogenes, Bacillus subtilis | Escherichia coli, Neisseria gonorrhoeae, Pseudomonas aeruginosa | Gardnerella vaginalis, some Bacillus and Actinomyces species |
Examples of Gram-Positive and Gram-Negative Bacteria
The following are some examples of Gram-positive and Gram-negative bacteria with their expected Gram staining results:
| Bacterial Species | Expected Gram Reaction |
|---|---|
| Staphylococcus aureus | Gram-positive (purple) |
| Streptococcus pyogenes | Gram-positive (purple) |
| Enterococcus faecalis | Gram-positive (purple) |
| Bacillus subtilis | Gram-positive (purple) |
| Listeria monocytogenes | Gram-positive (purple) |
| Corynebacterium diphtheriae | Gram-positive (purple) |
| Escherichia coli | Gram-negative (pink or red) |
| Salmonella enterica | Gram-negative (pink or red) |
| Klebsiella pneumoniae | Gram-negative (pink or red) |
| Pseudomonas aeruginosa | Gram-negative (pink or red) |
| Neisseria gonorrhoeae | Gram-negative (pink or red) |
| Vibrio cholerae | Gram-negative (pink or red) |
The Gram reaction may vary in old bacterial cultures or when the cell wall is damaged. Some Gram-positive bacteria, such as Bacillus subtilis, may show Gram-variable staining in older cultures.
Applications of Gram Staining
The following are the applications of Gram staining:
- Gram staining is used to differentiate bacteria into Gram-positive and Gram-negative groups.
- It helps in the preliminary identification of bacteria based on their Gram reaction.
- The shape and arrangement of bacterial cells, such as cocci in clusters, cocci in chains and bacilli, can be observed under the microscope.
- Gram staining is used to examine clinical specimens such as sputum, pus and cerebrospinal fluid (CSF) for the presence of bacteria.
- The presence of bacteria and inflammatory cells can be examined in Gram-stained clinical smears.
- It is used to examine bacterial colonies and broth cultures for their Gram reaction. The presence of different bacterial types in a culture can also be detected.
- Sputum smears are examined for squamous epithelial cells and inflammatory cells to assess specimen quality. A large number of squamous epithelial cells may indicate contamination with saliva.
- Gram staining provides early information that may help in selecting initial antimicrobial treatment in certain bacterial infections. The microscopic findings are interpreted along with the clinical condition, culture results and other laboratory tests.
- The Gram reaction and bacterial morphology help in selecting further tests for identification, such as biochemical tests, additional staining methods and molecular tests.
Advantages of Gram Staining
The following are the advantages of Gram staining:
- Gram staining is a simple staining technique that can be performed in a microbiology laboratory using basic equipment and reagents.
- It is an inexpensive method compared to many advanced techniques used for bacterial identification.
- The staining results can be obtained within a few minutes without waiting for the growth of bacteria in culture.
- It helps to differentiate Gram-positive and Gram-negative bacteria based on their staining reactions.
- The shape and arrangement of bacteria can be observed under the microscope. Cocci, bacilli, chains and clusters can be distinguished.
- Bacteria present in suitable clinical specimens can be detected directly by Gram staining, provided they are present in sufficient numbers.
- It helps in the preliminary identification of bacteria before performing biochemical or molecular tests.
- Gram staining can be used to examine the purity of bacterial cultures and detect the presence of different bacterial types in a culture.
- The presence of inflammatory cells and squamous epithelial cells can be examined in stained specimens. This helps in assessing the quality of sputum samples.
- The Gram reaction and bacterial morphology help in selecting further laboratory tests required for bacterial identification.
- It provides early information about the possible bacterial infection, which may help in the initial selection of antimicrobial treatment along with clinical findings and other laboratory results.
Limitations of Gram Staining
The main limitations of Gram staining are as follows:
- A correct Gram reaction depends upon the quality of the reagents, the preparation of the smear and the age of the culture.
- A smear that is too thick and clumped is difficult to interpret, and thicker smears require a longer decolorizing time.
- A false reaction is produced when the smear is fixed before it dries, when the washing between the steps is excessive, or when the exposure to the iodine solution is insufficient.
- Prolonged decolorization, excessive counterstaining and a low concentration of crystal violet also give false results.
- In old cultures, the peptidoglycan of the cell wall is lost, and Gram-positive cells may give a Gram-negative or Gram-variable reaction.
- Antibiotics given before the collection of the specimen can also change the reaction of the organisms.
- The preparation and the reading of the slide require experience as well.
- Organisms without a cell wall, such as Mycoplasma, and very small bacteria, such as Chlamydia and Rickettsia, are not stained by this method.
- The cell wall of Mycobacterium contains a waxy lipid, due to which these bacteria are not stained clearly by the ordinary method, and the acid-fast stain is used for these organisms.
- Spirochetes are very thin, so their Gram-stained preparations are difficult to examine under an ordinary light microscope. Darkfield microscopy is used for them instead.
- Some Gram-negative bacteria, such as Acinetobacter, resist decolorization and give a false Gram-positive reaction.
- Haemophilus, Legionella and some anaerobic bacteria are stained poorly by safranin.
- This staining procedure is not used for Archaea and Eukaryotes, because the cells of these organisms do not contain peptidoglycan.
- Sometimes the results of a Gram stain do not match the final results of the culture.
- Body fluids and other specimens with a small number of organisms are often concentrated by centrifugation before the smear is prepared.
- The Gram reaction gives only a broad grouping of the bacteria, and the final identification of the pathogen requires culture and sensitivity tests.
Precautions for Gram Staining

The main precautions for Gram staining are as follows:
- A young, actively growing culture of 18 to 24 hours should be used for the preparation of the smear.
- Old cultures are not used for the smear, because their cells give variable reactions.
- A clean and grease-free slide is used for the smear.
- The smear is prepared thin and uniform, because overcrowding of the cells leads to improper decolorization.
- The smear is allowed to dry completely in air before it is fixed.
- Excessive heat is not applied during fixation, because it changes the reaction of the cells.
- The decolorizer is added dropwise, and the decolorization is stopped when the runoff from the slide becomes clear.
- Prolonged decolorization is avoided, because it removes the stain from the Gram-positive cells as well.
- The washing between the steps should be gentle, because excessive washing gives a false reaction.
- The exposure to the iodine solution and the concentration of the crystal violet solution should be sufficient.
- Excessive counterstaining is avoided as well.
- The stained smear is blotted with clean blotting paper and is not rubbed.
- The slide is examined under the oil immersion lens only after the smear is dry.
Common Gram Staining Errors and Troubleshooting
The common errors of Gram staining and their troubleshooting steps are as follows:
- If all the Gram-positive cells are stained pink or red, the decolorization was too long. The decolorization time is reduced when the stain is repeated.
- If all the Gram-negative cells are stained purple, the decolorization was too short. The decolorization time is increased when the stain is repeated.
- If no cells are seen on the slide, the smear was not fixed properly, and the bacteria were washed away during the staining. The smear is fixed with adequate heat before the staining is carried out.
- Extreme overheating during the fixation lyses the cells, and no cells are seen under the microscope.
- If both purple and pink cells are seen in a pure culture, some parts of the smear are too thick. The thick parts trap the crystal violet, due to which the decolorization is not complete. A thin, single-layer smear is prepared the next time.
- Old cultures of Gram-positive organisms lose the ability to retain the primary stain, so such organisms give a Gram-negative reaction. The stain is repeated with a fresh culture of 18 to 24 hours.
- Bacillus species are Gram-variable, so they retain the crystal violet only when the culture is less than 24 hours old.
- If the morphology of the cells is lost or the cell walls are ruptured, the smear was disturbed too much during its preparation, or excessive heat was used during the fixation.
- If the staining is weak, the slide was not drained before the next reagent was added, and the water left on the smear diluted the reagents. The slide is tilted and drained after every wash.
- Weak staining also occurs when the reagents are old or their concentrations are not accurate. Fresh reagents of an accurate concentration are used.
References
- Bartholomew, J. W., & Mittwer, T. (1952). The Gram stain. Bacteriological Reviews, 16(1), 1–29. https://doi.org/10.1128/br.16.1.1-29.1952
- Beveridge, T. J. (2001). Use of the Gram stain in microbiology. Biotechnic & Histochemistry, 76(3), 111–118. https://doi.org/10.1080/bih.76.3.111.118
- Carroll, K. C., Pfaller, M. A., Landry, M. L., McAdam, A. J., Patel, R., Richter, S. S., & Warnock, D. W. (Eds.). (2019). Manual of clinical microbiology (12th ed.). ASM Press. https://www.ncbi.nlm.nih.gov/nlmcatalog/101745903
- Coico, R. (2005). Gram staining. Current Protocols in Microbiology, Appendix 3, Appendix 3C. https://doi.org/10.1002/9780471729259.mca03cs00
- Leber, A. L. (Ed.). (2016). Clinical microbiology procedures handbook (4th ed.). ASM Press. https://doi.org/10.1128/9781555818814
- Madison, B. M. (2001). Application of stains in clinical microbiology. Biotechnic & Histochemistry, 76(3), 119–125. https://doi.org/10.1080/bih.76.3.119.125
- Murray, P. R., & Washington, J. A. (1975). Microscopic and bacteriologic analysis of expectorated sputum. Mayo Clinic Proceedings, 50(6), 339–344. https://doi.org/10.1016/S0025-6196(25)09678-8
- Musher, D. M., Montoya, R., & Wanahita, A. (2004). Diagnostic value of microscopic examination of Gram-stained sputum and sputum cultures in patients with bacteremic pneumococcal pneumonia. Clinical Infectious Diseases, 39(2), 165–169. https://doi.org/10.1086/421497
- Popescu, A., & Doyle, R. J. (1996). The Gram stain after more than a century. Biotechnic & Histochemistry, 71(3), 145–151. https://doi.org/10.3109/10520299609117151
- Tille, P. M. (2021). Bailey & Scott’s diagnostic microbiology (15th ed.). Elsevier. https://shop.elsevier.com/books/bailey-and-scotts-diagnostic-microbiology/tille/978-0-323-68105-6
Comments
Earliest
⋮
Good article here.