sofidexFor patientsAre you a clinician? Clinical site

Health Library  ›  Tests  ›  Gram stain

Test

Gram stain

A Gram stain uses coloured dyes to quickly look for and classify bacteria in a sample.

9 min readTestReviewed 2026-08-24

PDF
What it measures
Bacterial shape and whether cell walls retain purple dye
Sample
Body fluid, swab, sputum, or tissue from the suspected site
Fasting needed?
No, unless required for the sample collection procedure
How long it takes
Usually minutes; tissue or fluid collection may take longer
Results in
Same day or 24 hours; timing varies by laboratory
Used for
Rapid, preliminary diagnosis of infection
Main limitation
Some infections contain too few organisms to see

Overview

A Gram stain is a laboratory test used to look for bacteria and some fungi in a sample. The sample may come from a wound, body fluid, sputum, urine, tissue, or another area where infection is suspected.

In the laboratory, coloured dyes are added to a thin layer of the sample on a glass slide. A scientist then examines the slide under a microscope.

The test separates many bacteria into two broad groups:

  • Gram-positive bacteria usually appear purple
  • Gram-negative bacteria usually appear pink or red

The report may also describe bacterial shape and arrangement. For example, cocci are round bacteria, while bacilli are rod-shaped. These early findings can help guide decisions while more detailed tests are being completed.

A Gram stain usually cannot identify the exact bacterial species or show which antibiotic like amoxicillin or doxycycline will work. A culture, molecular test, or other laboratory method may still be needed.

Why the test is ordered

A Gram stain can provide an early indication of whether bacteria are present. It may be ordered when an infection is suspected and a suitable sample can be collected.

Common reasons include checking:

  • Pus or fluid from a wound or abscess
  • Sputum from a possible lower respiratory infection
  • Fluid from around the brain and spinal cord
  • Fluid from a joint, chest, or abdomen
  • Tissue collected during surgery or biopsy
  • Certain genital, urinary, or eye samples

The test can also show white blood cells, which are part of the immune response. Their presence may support inflammation or infection, but it does not prove what caused it.

Results from normally sterile areas, such as spinal fluid or joint fluid, may be treated more urgently than results from areas that naturally contain bacteria, such as the mouth or skin.

Who should have the test

You may have a Gram stain if your symptoms, examination, or imaging suggest a bacterial infection and a sample is available. The decision is based on the suspected infection site and whether the result could affect your care.

Gram staining is not a general screening test for people without symptoms. It is also not useful for every type of infection. Viruses cannot be seen with a Gram stain, and some bacteria do not stain reliably with this method.

The test may be performed alongside a culture. A culture tries to grow organisms from the sample so the laboratory can identify them and, when appropriate, test which antibiotics may work.

How to prepare

The Gram stain itself does not require fasting. Preparation is determined by how the sample will be collected.

For a wound swab, sputum sample, or urine sample, you may receive instructions designed to reduce contamination. Follow these carefully. A sputum sample should usually contain mucus coughed up from the lungs rather than saliva from the mouth.

If fluid or tissue will be collected using a needle, endoscopy, biopsy, or surgery, you may need separate preparation. This could include fasting or temporarily changing certain medicines. Only change a prescribed medicine when specifically instructed.

Tell the healthcare team if you have already taken antibiotics. Treatment can reduce the number of bacteria in the sample, but you should not delay urgent antibiotics solely to obtain a Gram stain unless the treating team advises it.

What happens during the test

First, a sample is collected from the suspected infection site. Collection may involve a swab, a container for sputum or urine, a blood draw, or a procedure to remove fluid or tissue.

In the laboratory, a small amount is spread onto a glass slide. The slide is treated with several substances, including a purple dye, iodine, a decolourising solution, and a pink counterstain.

Bacteria with cell walls that hold the purple dye are reported as Gram-positive. Those that lose the purple dye and take up the counterstain are reported as Gram-negative.

The scientist also looks at the bacteria’s shape, arrangement, and approximate amount. Depending on the sample, the report may mention white blood cells, other human cells, yeast, or signs that the specimen contains material from an unintended site.

Understanding your results

A positive result may describe organisms rather than name a specific infection. Examples include “Gram-positive cocci” or “Gram-negative rods.” The report may also say whether organisms are seen inside white blood cells.

These descriptions can narrow the possibilities, but several different species can look alike. The meaning also depends on where the sample came from. Bacteria in spinal fluid have a different significance from bacteria on a skin or mouth swab, where normal organisms may be present.

“Few,” “moderate,” or “many” may be used to estimate the amount seen. These are not universal numerical ranges. Reporting and interpretation vary by laboratory, sample type, age, sex, pregnancy status, medicines, and clinical context.

A result of “no organisms seen” does not rule out infection. There may be too few organisms on the part of the slide examined, or the organism may not stain well. Culture or molecular testing may still find a cause.

What affects the results

Several factors can make a Gram stain misleading even when the laboratory process is correct.

Antibiotics taken before collection can reduce or damage bacteria, making them harder to see. Antiseptics used on the sampled area may have a similar effect.

Collection quality is especially important. Saliva instead of deep sputum may mainly show bacteria from the mouth. A superficial wound swab may not reflect organisms deeper in the tissue. Skin bacteria can enter a sample as it is collected.

The stage of an infection also matters. Early infection or a small, contained infection may release too few organisms into the sample. A watery specimen may have fewer bacteria in the portion placed on the slide.

Transport delays or unsuitable storage can change cell appearance or reduce the usefulness of the specimen. Samples are therefore usually sent to the laboratory promptly.

Some organisms naturally stain poorly or do not fit neatly into the Gram-positive and Gram-negative groups. This includes bacteria without a typical cell wall and bacteria that require an acid-fast stain. Fungi may be visible, but dedicated fungal stains are often better.

Accuracy and limitations

Accuracy differs greatly by sample type, organism amount, prior antibiotic use, and collection quality. There is no single reliable accuracy percentage that applies to every Gram stain.

The test is more likely to miss an infection when few organisms are present. A negative slide cannot safely exclude meningitis, joint infection, pneumonia, or another suspected infection by itself.

A result may appear positive even when the organisms are not causing the illness. This can happen through contamination during collection or when normal bacteria from the skin, mouth, vagina, or bowel are present in the sample.

Gram staining usually provides a broad description rather than an exact identification. Culture is often better for identifying a living bacterium and testing antibiotic response. Molecular tests may be better when organisms are difficult to grow, present in small numbers, or affected by earlier antibiotics. Acid-fast or fungal stains are preferred for certain suspected organisms.

Risks and complications

The stain creates no direct risk to you because it is performed on a sample outside the body. The risks come from collecting that sample.

A swab may cause brief discomfort. A blood draw can cause a small bruise or light-headedness. Procedures such as lumbar puncture, joint aspiration, or biopsy have additional risks that should be explained before the procedure.

What happens next

A Gram stain may be reported quickly as a preliminary result. Your care may be reviewed when the culture, organism identification, antibiotic testing, or molecular test becomes available.

A positive result does not always mean treatment is needed, particularly when the sample comes from an area with normal bacteria. A negative result does not automatically mean treatment can stop. Symptoms, examination findings, imaging, and other tests all matter.

For routine follow-up, ask when the final results are expected and how you will receive them. Cultures often take longer than the Gram stain.

Do not wait for a routine result if you develop severe breathing difficulty, new confusion, fainting, a rapidly worsening condition, or fever with a severe headache and stiff neck. Seek urgent or emergency care based on the severity of your symptoms and local emergency guidance.

Common questions

Can I drink coffee before a Gram stain?

Usually, yes. Coffee does not affect the staining process. Avoid it only if you have been told to fast for a procedure used to collect the sample.

Does the time of day matter?

Usually not. Timing may matter for the sample itself. For example, an early-morning sputum sample may sometimes be requested because secretions have collected overnight.

Can I exercise beforehand?

Exercise does not directly change a Gram stain. If you are having an invasive sample collection, follow the activity instructions given for that procedure.

Will antibiotics affect the result?

Yes. Antibiotics can lower the number of bacteria or change their appearance. Tell the healthcare team what you have taken, but do not stop or delay prescribed treatment without instructions.

Why was my Gram stain negative but my culture positive?

The slide may have contained too few organisms to see, while culture allowed small numbers of living bacteria to multiply. The reverse can also occur if visible bacteria are no longer alive or do not grow under routine culture conditions.

Is a Gram stain the same as a bacterial culture?

No. A Gram stain looks at organisms under a microscope and gives a rapid description. A culture attempts to grow and identify them and may provide information about antibiotic response.

Sources

  1. 1Gram StainMedlinePlus
  2. 2Basic Laboratory Procedures in Clinical Bacteriology, second edition
  3. 3A Guide to Utilization of the Microbiology Laboratory for Diagnosis of Infectious Diseases: 2018 Update
  4. 4Gram Staining

Cite this page

NLM

sofidex [Internet]. Daloreum; c2026. Gram stain; [reviewed 2026 Aug 24; cited 2026 Nov 10]. Available from: https://sofidex.com/patients/tests/gram-stain

APA 7th

sofidex. (2026, August 24). Gram stain. Daloreum. Retrieved November 10, 2026, from https://sofidex.com/patients/tests/gram-stain

AMA 11th

Gram stain. sofidex. Reviewed August 24, 2026. Accessed November 10, 2026. https://sofidex.com/patients/tests/gram-stain

The cited date is today’s, because a citation records when you read the page. The reviewed date is when a clinician last checked it.