- Biotechnology: microbiology, bacteria, growth and fermentation
What is Gram staining?
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.
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.
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.
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.
Put the four solutions of the Gram stain in order and give the role of each: safranin, alcohol, crystal violet, iodine.
Fill in the color of the gram-negative cell after steps 3 and 4.
Name the layers marked A and B, and explain how each affects the result of the stain.
Complete the reading diagram: what are purple cells, and what are pink cells?
A student forgot the alcohol step. What color will gram-negative bacteria be, and why?
A student left the slide in alcohol for far too long. What could go wrong?
Why can the outer membrane make gram-negative bacteria harder to stop with some antibiotics?
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.