Skip navigation

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

URL of this page: https://medlineplus.gov/lab-tests/gram-stain/

Gram Stain

What is a Gram stain?

A Gram stain is a test that checks for bacteria at the site of a suspected infection such as the throat, lungs, genitals, or in skin wounds. Gram stains may also be used to check for bacteria in certain body fluids, such as blood or urine.

There are two main categories of bacterial infections: Gram-positive and Gram-negative. The categories are diagnosed based on the how the bacteria reacts to the Gram stain. A Gram stain is colored purple. When the stain combines with bacteria in a sample, the bacteria will either stay purple or turn pink or red. If the bacteria stays purple, they are Gram-positive. If the bacteria turns pink or red, they are Gram-negative. The two categories cause different types of infections:

Knowing whether bacteria is Gram-positive or Gram-negative can help your provider identify the type of infection you have and which antibiotics will be most effective in treating it.

Other names: Gram's stain

What is it used for?

A Gram stain is most often used to find out if you have a bacterial infection. If you do, the test will show if your infection is Gram-positive or Gram-negative.

A Gram stain may also be used to diagnose fungal infections.

Why do I need a Gram stain?

You may need this test if you have symptoms of a bacterial infection. Pain, fever, and fatigue are common symptoms of many bacterial infections. Other symptoms will depend on the type of infection you have and where in the body it is located.

What happens during a Gram stain?

Your health care provider will need to take a sample from the site of a suspected infection or from certain body fluids, depending on what type of infection you may have. The most common types of Gram stain tests are listed below.

Wound sample:

  • A provider will use a special swab to collect a sample from the site of your wound.

Blood test:

  • A provider will take a sample of blood from a vein in your arm.

Urine test:

  • You will provide a sterile sample of urine in a cup, as instructed by your health care provider.

Throat culture:

  • Your health care provider will insert a special swab into your mouth to take a sample from the back of the throat and tonsils.

Sputum culture. Sputum is a thick mucus that is coughed up from the lungs. It is different from spit or saliva.

  • Your health care provider will ask you to cough up sputum into a special cup, or a special swab may be used to take a sample from your nose.

Will I need to do anything to prepare for the test?

You don't need any special preparations for a Gram stain.

Are there any risks to the test?

There is no risk to having a swab, sputum, or urine test.

There is very little risk to having a blood test. You may have slight pain or bruising at the spot where the needle was put in, but most symptoms go away quickly.

What do the results mean?

Your sample will be placed on a slide and treated with the Gram stain. A laboratory professional will examine the slide under a microscope. If no bacteria were found, it means you probably don't have a bacterial infection or there weren't enough bacteria in the sample.

If bacteria were found, it will have certain qualities may provide important information about your infection:

  • If the bacteria was colored purple, it means you likely have a Gram-positive infection.
  • If the bacteria was colored pink or red, it means you likely have a Gram-negative infection.

Your results will also include information about the shape of the bacteria in your sample. Most bacteria are either round (known as cocci) or rod-shaped (known as bacilli). The shape can provide more information about the type of infection you have.

Although your results may not identify the exact type of bacteria in your sample, they can help your provider get closer to finding out what's causing your illness and how best to treat it. You may need more tests, such as a bacteria culture, to confirm what type of bacteria it is.

Gram stain results may also show whether you have a fungal infection. The results may show what category of fungal infection you have: yeast or mold. But you may need more tests to find out which specific fungal infection you have.

If you have questions about your results, talk to your health care provider.

Learn more about laboratory tests, reference ranges, and understanding results.

Is there anything else I need to know about a Gram stain?

If you are diagnosed with a bacterial infection, you will probably be prescribed antibiotics. It's important to take your medicine as prescribed, even if your symptoms are mild. This can prevent your infection from getting worse and causing serious complications.

References

  1. Lab Tests Online [Internet]. Washington D.C.: American Association for Clinical Chemistry; c2001–2020. Bacterial Wound Culture; [updated 2020 Feb 19; cited 2020 Apr 6]; [about 2 screens]. Available from: https://labtestsonline.org/tests/bacterial-wound-culture
  2. Lab Tests Online [Internet]. Washington D.C.: American Association for Clinical Chemistry; c2001–2020. Gram Stain; [updated 2019 Dec 4; cited 2020 Apr 6]; [about 2 screens]. Available from: https://labtestsonline.org/tests/gram-stain
  3. Lab Tests Online [Internet]. Washington D.C.: American Association for Clinical Chemistry; c2001–2020. Sputum Culture, Bacterial; [updated 2020 Jan 14; cited 2020 Apr 6]; [about 2 screens]. Available from: https://labtestsonline.org/tests/sputum-culture-bacterial
  4. Lab Tests Online [Internet]. Washington D.C.: American Association for Clinical Chemistry; c2001–2020. Strep Throat Test; [updated 2020 Jan 14; cited 2020 Apr 6]; [about 2 screens]. Available from: https://labtestsonline.org/tests/strep-throat-test
  5. Lab Tests Online [Internet]. Washington D.C.: American Association for Clinical Chemistry; c2001–2020. Urine Culture; [updated 2020 Jan 31; cited 2020 Apr 6]; [about 2 screens]. Available from: https://labtestsonline.org/tests/urine-culture
  6. Merck Manual Consumer Version [Internet]. Kenilworth (NJ): Merck & Co., Inc.; c2020. Diagnosis of Infectious Disease; [updated 2018 Aug; cited 2020 Apr 6]; [about 2 screens]. Available from: https://www.merckmanuals.com/home/infections/diagnosis-of-infectious-disease/diagnosis-of-infectious-disease
  7. Merck Manual Consumer Version [Internet]. Kenilworth (NJ): Merck & Co., Inc.; c2020. Overview of Gram-Negative Bacteria; [updated 2020 Feb; cited 2020 Apr 6]; [about 2 screens]. Available from: https://www.merckmanuals.com/home/infections/bacterial-infections-gram-negative-bacteria/overview-of-gram-negative-bacteria
  8. Merck Manual Consumer Version [Internet]. Kenilworth (NJ): Merck & Co., Inc.; c2020. Overview of Gram-Positive Bacteria; [updated 2019 Jun; cited 2020 Apr 6]; [about 2 screens]. Available from: https://www.merckmanuals.com/home/infections/bacterial-infections-gram-positive-bacteria/overview-of-gram-positive-bacteria
  9. Microbial Life Educational Resources [Internet]. Science Education Resource Center; Gram Staining; [updated 2016 Nov 3; cited 2020 Apr 6]; [about 4 screens]. Available from: https://serc.carleton.edu/microbelife/research_methods/microscopy/gramstain.html
  10. National Heart, Lung, and Blood Institute [Internet]. Bethesda (MD): U.S. Department of Health and Human Services; Blood Tests; [cited 2020 Apr 6]; [about 3 screens]. Available from: https://www.nhlbi.nih.gov/health-topics/blood-tests
  11. O'Toole GA. Classic Spotlight: How the Gram Stain Works. J Bacteriol [Internet]. 2016 Dec 1 [cited 2020 Apr 6];198(23):3128. Available from: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5105892
  12. UF Health: University of Florida Health [Internet]. Gainesville (FL): University of Florida Health; c2020. Gram stain: Overview; [updated 2020 Apr 6; cited 2020 Apr 6]; [about 2 screens]. Available from: https://ufhealth.org/gram-stain
  13. University of Rochester Medical Center [Internet]. Rochester (NY): University of Rochester Medical Center; c2020. Health Encyclopedia: Gram Stain; [cited 2020 Apr 6]; [about 2 screens]. Available from: https://www.urmc.rochester.edu/encyclopedia/content.aspx?contenttypeid=167&contentid=gram_stain
  14. Very Well Health [Internet]. New York: About, Inc.; c2020. An Overview of Bacterial Infections; [updated 2020 Feb 26; cited 2020 Apr 6]; [about 3 screens]. Available from: https://www.verywellhealth.com/what-is-a-bacterial-infection-770565
  15. Very Well Health [Internet]. New York: About, Inc.; c2020. Gram Stain Procedure in Research and Labs; [updated 2020 Jan 12; cited 2020 Apr 6]; [about 3 screens]. Available from: https://www.verywellhealth.com/information-about-gram-stain-1958832

The information on this site should not be used as a substitute for professional medical care or advice. Contact a health care provider if you have questions about your health.