• Biotechnology: microbiology, bacteria, growth and fermentation

What is Gram staining?

Written with AI (How we create content)Target level: Grade 10Last updated: Report an error
Quick answer

Gram staining is a four-step method that sorts almost all bacteria into two groups by their cell wall. Crystal violet, then iodine, then alcohol, then safranin: gram-positive bacteria, with a thick peptidoglycan wall, stay purple, while gram-negative bacteria, with a thin wall and an outer membrane, lose the purple and turn pink. Hans Christian Gram devised it in 1884.

The topic explained

Two colors, two kinds of wall

Most bacteria are colorless under the microscope, so they are stained. Gram staining, devised by the Danish scientist Hans Christian Gram in 1884, is a differential stain: it colors different bacteria differently. At the end, gram-positive bacteria are purple and gram-negative bacteria are pink. The difference comes from their cell walls, so the color tells you something real about the cell, and together with its shape it is often the first step in identifying a bacterium.

The four steps, and what each one does

The bacteria are spread thinly on a glass slide and fixed by gentle heat. Then come four solutions, always in this order. Crystal violet, the primary stain, colors every cell purple. Iodine, the mordant, binds the crystal violet into a larger complex that is harder to wash out. Alcohol, the decolorizer, is the step that decides: it washes the purple out of some cells and not others. Safranin, the counterstain, colors pink every cell that lost its purple; cells that kept the purple stay purple, because it hides the pink.

A common mistake is to think that gram-negative cells never took up the purple. They did, at step 1; they lost it at step 3. That is why timing matters: too long in alcohol and even gram-positive cells lose their color and look pink.

A table of the color of each kind of cell after each step: after crystal violet, both purple; after iodine, both purple; after alcohol, gram-positive purple and gram-negative colorless; after safranin, gram-positive purple and gram-negative pink.After stepGram-positiveGram-negative1. crystal violetpurplepurple2. iodinepurplepurple3. alcoholpurplecolorless4. safraninpurplepink

Why the wall decides the color

Both kinds of bacteria have a cell membrane and a wall of peptidoglycan, a mesh of sugars and short amino acid chains. In a gram-positive cell the peptidoglycan is thick, many layers deep, and it traps the crystal violet and iodine complex when the alcohol dries and tightens it. In a gram-negative cell the peptidoglycan is thin and lies under an outer membrane made of fats. The alcohol dissolves that outer membrane and easily washes the dye out through the thin layer beneath it.

Two schematic cross-sections of the cell envelope with the outside at the top. Gram-positive: a thick layer of peptidoglycan over the cell membrane. Gram-negative: an outer membrane, a thin layer of peptidoglycan, and the cell membrane.gram-positivethick peptidoglycancell membranegram-negativeouter membranethin peptidoglycancell membraneoutside
Schematic, not to scale.

Reading the slide, and why it matters

Read the color and the shape together. Purple spheres in clusters could be Staphylococcus aureus, a gram-positive bacterium; pink rods could be Escherichia coli, a gram-negative one. The stain is quick and cheap, so laboratories use it to narrow the possibilities before slower tests.

The wall also matters for antibiotics. Penicillin and its relatives stop bacteria from building peptidoglycan, and the outer membrane of gram-negative bacteria keeps many substances, some antibiotics among them, from reaching their target. This is one reason the two groups respond differently to some antibiotics. Choosing a treatment is a doctor's decision, made with further tests.

A reading diagram: look under the microscope; purple cells are gram-positive, for example Staphylococcus aureus; pink cells are gram-negative, for example Escherichia coli.Look under the microscopePurple: gram-positivePink: gram-negativee.g. S. aureuse.g. E. coli
Free printable worksheet

Practice: Gram staining

For 10th grade biotechnology students. Answer each question from the sheet, then check your work against the answers.

Free, no sign-up. The answer key prints on the second page. Regenerating a new worksheet on the same topic needs a free account.

Free printable worksheetlessoons.com
Practice: Gram stainingName:
  1. Put the four solutions of the Gram stain in order and give the role of each: safranin, alcohol, crystal violet, iodine.

  2. Fill in the color of the gram-negative cell after steps 3 and 4.

    The table of colors after each step, with the colors of the gram-negative cell after alcohol and after safranin replaced by question marks.After stepGram-positiveGram-negative1. crystal violetpurplepurple2. iodinepurplepurple3. alcoholpurple?4. safraninpurple?
  3. Name the layers marked A and B, and explain how each affects the result of the stain.

    The two cross-sections of the cell envelope with the thick layer of the gram-positive cell and the outermost layer of the gram-negative cell replaced by question marks.gram-positiveA: ?cell membranegram-negativeB: ?thin peptidoglycancell membraneoutside
  4. Complete the reading diagram: what are purple cells, and what are pink cells?

    The reading diagram with the two results, what purple cells and pink cells are, replaced by question marks.Look under the microscopePurple: ?Pink: ?e.g. S. aureuse.g. E. coli
  5. A student forgot the alcohol step. What color will gram-negative bacteria be, and why?

  6. A student left the slide in alcohol for far too long. What could go wrong?

  7. Why can the outer membrane make gram-negative bacteria harder to stop with some antibiotics?

More topics and worksheets at lessoons.com© 2026 Lessons

Common questions

Why is the stain called Gram with a capital G?

It is named after Hans Christian Gram, the Danish scientist who devised it in 1884. The groups are usually written in lower case: gram-positive and gram-negative.

Do all bacteria stain clearly with the Gram stain?

No. Some bacteria have unusual walls, such as the waxy wall of the tuberculosis bacterium or no wall at all in mycoplasma, and need other stains. Very old cultures can also give mixed results.

Is E. coli gram-positive or gram-negative?

E. coli is gram-negative: it has a thin peptidoglycan layer and an outer membrane, so it ends the stain pink.

What does a mordant do?

A mordant fixes a dye more firmly in place. In the Gram stain, iodine binds crystal violet into a larger complex that the thick wall of gram-positive cells can hold on to.

Can Gram staining tell you exactly which bacterium you have?

No. It sorts bacteria into two large groups and, with the shape, narrows the possibilities. Exact identification needs further tests, such as growth on special media, biochemical tests or reading the DNA.

Still have a question? Ask Lessi

Any question about this subject. Lessi answers right here, step by step.

Try asking

Asking needs a free account; your question is kept while you sign up. Answers are written by AI and can contain mistakes. Lessi doesn’t give medical or legal advice.

Learn it with a teacher

Learn this topic live with Lessi

Lessi, the AI teacher, explains it out loud on a board, with short quizzes, at your pace. The first 60 minutes are free.