Back To Search Results

Gram Staining

Editor: Amit Sapra Updated: 3/28/2025 1:27:46 AM

Introduction

Gram staining is one of the most crucial staining techniques in microbiology. The name comes from the Danish bacteriologist Hans Christian Gram, who first introduced it in 1882 to identify organisms causing pneumonia.[1] Typically, Gram staining is the first test performed, utilizing crystal violet or methylene blue as the primary color.[2] Organisms that retain the primary color and appear purple-brown under a microscope are gram-positive. In contrast, those that do not take up the primary stain and appear red under a microscope are gram-negative.[3]

The first step in Gram staining is using crystal violet dye for the slide's initial staining. The next step, also known as fixing the dye, involves using iodine to form a crystal violet-iodine complex to prevent the easy removal of the dye. Subsequently, a decolorizer, often a solvent of ethanol and acetone, is used to remove the dye. The basic principle of Gram staining is the ability of the bacterial cell wall to retain the crystal violet dye during solvent treatment.[4] Gram-positive microorganisms have higher peptidoglycan content, whereas gram-negative organisms have higher lipid content.[5]

Initially, all bacteria take up crystal violet dye; however, with a solvent, the lipid layer from gram-negative organisms is dissolved, causing them to lose the primary stain. In contrast, the solvent dehydrates the gram-positive cell walls, closing the pores and preventing the diffusion of the violet-iodine complex, which results in the bacteria retaining the stain.[6] The duration of decolorization is a critical step in Gram staining, as prolonged exposure to a decolorizing agent can remove all the stains from both types of bacteria.[7]

The final step in Gram staining involves using a basic fuchsin stain to give decolorized gram-negative bacteria a pink color for better identification. This process is also known as counterstaining. Some laboratories use safranin as a counterstain; however, basic fuchsin stains gram-negative organisms more intensely than safranin. Similarly, Haemophilus spp., Legionella spp., and some anaerobic bacteria stain poorly with safranin.[8]

Specimen Collection

Register For Free And Read The Full Article
Get the answers you need instantly with the StatPearls Clinical Decision Support tool. StatPearls spent the last decade developing the largest and most updated Point-of Care resource ever developed. Earn CME/CE by searching and reading articles.
  • Dropdown arrow Search engine and full access to all medical articles
  • Dropdown arrow 10 free questions in your specialty
  • Dropdown arrow Free CME/CE Activities
  • Dropdown arrow Free daily question in your email
  • Dropdown arrow Save favorite articles to your dashboard
  • Dropdown arrow Emails offering discounts

Learn more about a Subscription to StatPearls Point-of-Care

Specimen Collection

Accurate bacterial identification through Gram staining depends heavily on proper specimen collection, which requires strict adherence to aseptic techniques to avoid contamination. Respiratory samples, such as sputum, should be collected from deep coughs into sterile containers, whereas blood should be drawn from two separate venipuncture sites and inoculated into culture bottles. Cerebrospinal fluid is collected through lumbar puncture, and body fluids such as ascitic, pleural, and synovial fluids are obtained using sterile methods, often necessitating centrifugation before staining.[9]

For urine samples, midstream collection in sterile containers is ideal, while catheterized samples should be taken directly from the catheter port, not the collection bag. Swabs from the throat, nose, wounds, rectum, or cervix must focus on the infected area without contaminating adjacent tissues. All specimens must be clearly labeled and transported promptly to preserve bacterial integrity. Proper collection techniques ensure reliable Gram stain results, facilitating accurate diagnosis and guiding effective antibiotic treatment.[8][10]

Procedures

The equipment required for Gram staining includes:

  • Bunsen burner
  • Alcohol-cleaned microscope slide
  • Slide rack
  • Microscope

The reagents needed for Gram staining include:

  • Crystal violet (primary stain) [1] 
  • Gram's iodine solution (mordant) [1] 
  • Acetone/ethanol (50:50 v:v) (decolorizer) [1] 
  • 0.1% basic fuchsin solution (counterstain) [1]
  • Water

Procedure

The Gram staining process involves a series of steps designed to differentiate bacterial species based on their cell wall characteristics. This differential staining technique is essential for bacterial classification and identification, which helps guide diagnosis and treatment decisions.

Preparation of a slide smear:

  • An inoculation loop is used to transfer a drop of the suspended culture onto the microscope slide. 
  • If a petri dish or a slant culture tube has the colony, a drop or a few loopfuls of water are added to facilitate a minimal amount of colony transfer to the examination slide. 
  • Only a small amount of culture is required. If culture can be detected visually on the inoculation loop, it indicates excessive culture collection.
  • The culture is spread with an inoculation loop to an even-thin film over a circle of 15 mm in diameter. A typical slide can accommodate up to 4 small smears if multiple cultures are being examined.
  • The slide can be either air-dried or dried with the help of heat over a gentle flame. The slide should be moved circularly over the flame to prevent overheating or forming of ring patterns in the slide. The heat helps the cell adhesion to the glass slide and prevents the significant loss of culture during rinsing. 

Gram staining:

  • Crystal violet stain is added over the fixed culture. 
  • After 10 to 60 seconds, the stain is poured off, and the excess stain is rinsed with water. The goal is to wash off the stain without losing the fixed culture. 
  • Iodine solution is used to cover the smear for 10 to 60 seconds. This step is known as fixing the dye. The iodine solution is poured off, and the slide is rinsed with running water. Excess water from the surface is shaken off.[11]
  • A few drops of decolorizer are added to the slide. Decolorizers are often the mixed solvents of ethanol and acetone. This step is known as solvent treatment. The slide is rinsed with water for 5 seconds. To prevent excess decolorization in the gram-positive cells, adding decolorizer should be stopped as soon as the solvent is not colored while flowing over the slide.
  • The smear is counterstained with basic fuchsin solution for 40 to 60 seconds. The fuchsin solution is washed off with water, and excess water is blotted with the bibulous paper. The slide can also be air-dried after shaking off excess water. 

Microscopic examination of slide:

  • The slide should undergo an examination under a microscope using oil immersion.
  • The slide should be examined under a microscope using oil immersion. Initially, the slide should be viewed with the 40× objective to assess the smear distribution, followed by examination using the 100× oil immersion objective.
  • All areas of the slide require an initial examination. Areas that are only one cell thick should be examined. Thick areas in slides often give variable and incorrect results. 
  • White blood cells and macrophages stain gram-negative.
  • Squamous epithelial cells stain gram-positive.

Various modifications of Gram staining, such as Atkin Gram stain and Burke Gram stain, are also used.

Indications

Gram staining is a vital diagnostic tool used when a bacterial infection is suspected. This technique quickly categorizes bacteria as gram-positive or gram-negative, providing insights into their cell wall composition and morphology. This preliminary identification aids in selecting appropriate antibiotics and further tests, making it essential for diagnosing infections such as pneumonia, urinary tract infections, and meningitis.[12]

Potential Diagnosis

Gram staining plays a key role in diagnosing diseases or pathological conditions. 

Examples of gram-positive organisms include:

  • Cocci: Staphylococcus species and Streptococcus species
  • Bacilli: Corynebacterium species, Clostridium species, Clostridioides species, and Listeria species [3]

Examples of gram-negative organisms include:

  • Cocci: Neisseria gonorrhoeae, Neisseria meningitidis, and Moraxella species
  • Bacilli: Escherichia coil, Pseudomonas species, Proteus species, and Klebsiella species [13]

Examples of gram-variable organisms include:

  • Actinomyces species [14]

Normal and Critical Findings

A typical finding in a sterile body fluid should be the absence of any pathological organism in the smear. The microorganisms are identified based on their color and shape. Gram-positive organisms appear purple or blue, whereas gram-negative organisms are pink or red. Bacilli are rod-shaped, whereas cocci are spherical.

Findings on Gram stain that suggest underlying bacterial infections include:

  • Gram-positive cocci in clusters: Typically characteristic of Staphylococcus species such as S. aureus.
  • Gram-positive cocci in chains: Typically characteristic of Streptococcus species such as S. pneumoniae, group B streptococcal infection
  • Gram-positive cocci in tetrads: Typically characteristic of Micrococcus spp.
  • Gram-positive bacilli, thick: Typically characteristic of Clostridium spp., such as C. perfringens and C. septicum.
  • Gram-positive bacilli, thin: Typically characteristic of Listeria spp.
  • Gram-positive bacilli branched: Typically characteristic of Actinomyces and Nocardia.
  • Gram-negative diplococci: Typically characteristic of Neisseria spp., such as N. meningitidis.

Note: Moraxella spp. and Acinetobacter spp. are often diplococcal in morphology. Acinetobacter can sometimes appear as gram-positive cocci and may also exhibit pleomorphism.

  • Coccobacilli: Typically characteristic of Acinetobacter spp., and they can be gram-positive, gram-negative, or gram-variable.
  • Gram-negative bacilli, thin: Typically characteristic of Enterobacteriaceae, such as E. coli.
  • Coccobacilli: Typically characteristic of Haemophilus spp., such as H. influenzae.
  • Curved: Typically characteristic of Vibrio spp. and Campylobacter spp., such as V. cholerae and C. jejuni, respectively.
  • Thin needle shape: Typically characteristic of Fusobacterium spp.

Gram-variable organisms: These organisms do not group into either gram-positive or gram-negative organisms.

Interfering Factors

If the specimen collection is not sterile, multiple organisms can contaminate the specimen. Similarly, improper specimen collection and prior antibiotic use can interfere with the growth of organisms. During the interpretation of the Gram stain, as described by the World Health Organization in 2003, the following steps should be followed:

  • The general nature of the smear requires analysis under low-power magnification (10×)
    • The background of the slide should generally be gram-negative or clear
    • White blood cells, when present, should stain gram-negative
    • Thin crystal violet or gentian violet precipitates should not be confused with gram-positive bacillus bacteria
    • The smear should be one cell thick with no overlapping of cells
  • Low-power magnification should be used to note the following:
    • Relative numbers of polymorphonuclear neutrophils, mononuclear cells, and red blood cells
    • Relative numbers of squamous epithelial cells and normal microbiota bacteria
    • Location, arrangement, and shape of the organisms
  • Oil immersion examination of multiple fields is necessary to note the following:
    • Microorganisms: If identified, numbers and morphology should be notes
    • Shapes: Coccus, bacillus, coccobacillus, filaments, and yeast-like
    • Appearance of ends: Rounded, tapered, concave, clubbed, and flattened
    • Appearance of sides: Parallel, ovoid, irregular, or concave
    • Axis of the organism: Straight, curved, or spiral
    • Pleomorphism (variation in shape)
    • Branching or cellular extensions

Complications

The interpretation of slides can be difficult if the microscopic smear is thick and clumped. Decolorization time should be closely monitored to avoid under-decolorization or over-decolorization. Thicker smears require a longer decolorizing time. Similarly, cultures should undergo evaluation while they are still fresh. Old cultures tend to lose the peptidoglycan cell walls, predisposing gram-positive cells to be gram-negative or gram-variable. Gram stain is not helpful for organisms without a cell wall, such as Mycoplasma species, and for smaller bacteria, such as Chlamydia and Rickettsia species.

Gram stain may not falsely reveal organisms in the following scenario:

  • Use of antibiotics before collecting a specimen
  • Inappropriate age of culture (too young or too old)
  • Fixing the smear before it is dry
  • The smear is too thick
  • Low concentration of crystal violet
  • Excessive heat fixation
  • Excessive washing between steps
  • Insufficient exposure to iodine
  • Prolonged decolorization
  • Excessive counterstaining
  • Lack of experience in preparing and reviewing the slide

Sometimes, the Gram stain results may not match the final results of cultures and could lead to the inappropriate use of antibiotics.[15]

Patient Safety and Education

Patient safety and education are vital in Gram staining, promoting accurate diagnoses and fostering engaged patient care. Proper specimen collection is key to avoiding contamination, which can skew results and lead to incorrect treatments. Patients need guidance on providing quality samples—such as clean-catch urine, a deep cough for sputum, or cooperation during a lumbar puncture for cerebrospinal fluid—to ensure reliable outcomes. Healthcare providers must use sterile methods, label specimens correctly, and deliver them swiftly to the lab to preserve bacterial integrity.

From an educational standpoint, patients should understand that Gram staining is a quick test used to detect bacterial infections and guide initial antibiotic choices. They should also understand that these results are preliminary, with cultures and sensitivity tests often needed to finalize the pathogen and treatment plan. Highlighting the need to finish antibiotic courses, even if symptoms fade, curbs resistance risks.

By combining safety protocols with clear explanations, Gram staining builds trust, minimizes errors, and enhances infection control.

Clinical Significance

Gram staining is often the initial diagnostic test for evaluating infections due to its ability to quickly identify the presence and type of bacteria. Differentiating bacteria into gram-positive (purple) and gram-negative (pink) categories based on their cell wall properties provides critical information that helps guide the immediate use of appropriate antibiotics. This rapid preliminary result is especially useful in managing conditions such as pneumonia, urinary tract infections, and meningitis.[16] However, although Gram staining offers quick insights, it is less specific compared to advanced molecular techniques and genetic sequencing, which can precisely identify bacterial species and resistance patterns, enhancing diagnostic accuracy and treatment efficacy.[17]

References


[1]

BARTHOLOMEW JW, MITTWER T. The Gram stain. Bacteriological reviews. 1952 Mar:16(1):1-29     [PubMed PMID: 14925025]


[2]

O'Toole GA. Classic Spotlight: How the Gram Stain Works. Journal of bacteriology. 2016 Dec 1:198(23):3128     [PubMed PMID: 27815540]


[3]

Sizar O, Leslie SW, Unakal CG. Gram-Positive Bacteria. StatPearls. 2025 Jan:():     [PubMed PMID: 29261915]


[4]

LIBENSON L, McILROY AP. On the mechanism of the gram stain. The Journal of infectious diseases. 1955 Jul-Aug:97(1):22-6     [PubMed PMID: 13242849]


[5]

SHUGAR D, BARANOWSKA J. Studies on the gram stain; the importance of proteins in the Gram reaction. Acta microbiologica Polonica (1952). 1954:3(1):11-20     [PubMed PMID: 13147751]


[6]

HASLETT AS. The chemical significance of the Gram test for bacteria. The Australian journal of science. 1947 Jun 21:9(6):211     [PubMed PMID: 20255991]


[7]

Popescu A, Doyle RJ. The Gram stain after more than a century. Biotechnic & histochemistry : official publication of the Biological Stain Commission. 1996 May:71(3):145-51     [PubMed PMID: 8724440]


[8]

Coico R. Gram staining. Current protocols in microbiology. 2005 Oct:Appendix 3():Appendix 3C. doi: 10.1002/9780471729259.mca03cs00. Epub     [PubMed PMID: 18770544]


[9]

Beveridge TJ. Use of the gram stain in microbiology. Biotechnic & histochemistry : official publication of the Biological Stain Commission. 2001 May:76(3):111-8     [PubMed PMID: 11475313]


[10]

Becerra SC, Roy DC, Sanchez CJ, Christy RJ, Burmeister DM. An optimized staining technique for the detection of Gram positive and Gram negative bacteria within tissue. BMC research notes. 2016 Apr 12:9():216. doi: 10.1186/s13104-016-1902-0. Epub 2016 Apr 12     [PubMed PMID: 27071769]


[11]

MITTWER T, BARTHOLOMEW JW, KALLMAN BJ. The mechanism of the gram reaction. II. The function of iodine in the gram stain. Stain technology. 1950 Oct:25(4):169-79     [PubMed PMID: 14782050]


[12]

Wilson ML. Clinically relevant, cost-effective clinical microbiology. Strategies to decrease unnecessary testing. American journal of clinical pathology. 1997 Feb:107(2):154-67     [PubMed PMID: 9024064]


[13]

Beveridge TJ, Davies JA. Cellular responses of Bacillus subtilis and Escherichia coli to the Gram stain. Journal of bacteriology. 1983 Nov:156(2):846-58     [PubMed PMID: 6195148]


[14]

Valour F, Sénéchal A, Dupieux C, Karsenty J, Lustig S, Breton P, Gleizal A, Boussel L, Laurent F, Braun E, Chidiac C, Ader F, Ferry T. Actinomycosis: etiology, clinical features, diagnosis, treatment, and management. Infection and drug resistance. 2014:7():183-97. doi: 10.2147/IDR.S39601. Epub 2014 Jul 5     [PubMed PMID: 25045274]


[15]

Rand KH, Tillan M. Errors in interpretation of Gram stains from positive blood cultures. American journal of clinical pathology. 2006 Nov:126(5):686-90. doi: 10.1309/V4KE2FPM5T8V4552. Epub     [PubMed PMID: 17050065]

Level 2 (mid-level) evidence

[16]

Giuliano C,Patel CR,Kale-Pradhan PB, A Guide to Bacterial Culture Identification And Results Interpretation. P     [PubMed PMID: 30930604]


[17]

Gerace E, Mancuso G, Midiri A, Poidomani S, Zummo S, Biondo C. Recent Advances in the Use of Molecular Methods for the Diagnosis of Bacterial Infections. Pathogens (Basel, Switzerland). 2022 Jun 8:11(6):. doi: 10.3390/pathogens11060663. Epub 2022 Jun 8     [PubMed PMID: 35745518]

Level 3 (low-level) evidence