Doctors use colors to see tiny germs. 

Scientists use colors to see tiny germs. 

Scientists use a special way to sort tiny bacteria. This is called a Gram stain. 
The method works by looking at bacterial cell walls. These walls are the outer parts of the cell. 
Other bacteria have a much thinner layer. These are called gram-negative bacteria. To see them, scientists follow a few steps. First, they add a purple dye called crystal violet. Next, they add iodine to trap the color. Then, they use alcohol to wash the cells. The purple color washes out of the thin walls. Finally, they add a pink dye called safranin. This makes the gram-negative bacteria look pink or red. 
Scientists use a special tool to sort tiny bacteria into two large groups. This method is called a Gram stain. 

The way it works depends on the cell walls of the bacteria. Every bacterium has an outer layer called a cell wall. Some bacteria have a very thick layer of a material called peptidoglycan. These are called gram-positive bacteria. Other bacteria have a much thinner layer of peptidoglycan. These are called gram-negative bacteria. 
There are four main steps in the staining process. First, scientists add a purple dye called crystal violet to the bacteria. Next, they add iodine to act as a trapping agent. This iodine binds with the purple dye to make a stable complex. Then, they add a decolorizer like alcohol or acetone. This step is very important and must be timed perfectly. If left on too long, the purple color washes out of everything. Finally, they add a pink dye called safranin as a counterstain. 
A Danish scientist named Hans Christian Gram created this method. He was a bacteriologist who worked in Berlin. He developed the technique in 1884 while working at a city hospital. Gram was actually working with a scientist named Carl Friedländer. He did not set out to sort different types of bacteria. He really just wanted to make bacteria easier to see in lung tissue. He noticed that some cells resisted having their color washed away. 
You can see the results clearly under a microscope. Gram-positive bacteria will look purple because they keep the first dye. Gram-negative bacteria will look pink or red from the second dye. 
The Gram stain is a fundamental laboratory technique used to classify bacteria. Scientists use this method to sort bacterial species into two large groups: gram-positive and gram-negative. This classification is based on the physical and chemical properties of the bacterial cell wall. It is often the very first step in identifying a bacterial group. Because it works so quickly, it is a vital tool in medical settings. 
The process relies on how different cell walls react to specific dyes. Gram-positive bacteria have a very thick, mesh-like cell wall made of peptidoglycan. This layer makes up about 50% to 90% of the cell envelope. In contrast, gram-negative bacteria have a much thinner peptidoglycan layer. This layer only accounts for about 10% of their cell envelope. Gram-negative cells also have an outer membrane containing lipopolysaccharides, or LPS. 
There are four specific steps in the Gram stain mechanism. First, a primary stain called crystal violet is applied to a heat-fixed bacterial smear. Heat fixation helps stick the bacteria to the slide so they do not wash away. Second, Lugol's iodine is added to the sample. The iodine acts as a mordant or trapping agent by binding with the crystal violet. This forms a large, stable complex called CV-I within the cells. 
During decolorization, the two types of bacteria behave very differently. In gram-negative cells, the alcohol interacts with the lipids in the outer membrane. The cell loses its outer lipopolysaccharide membrane, leaving the thin peptidoglycan layer exposed. The CV-I complexes are then washed out of the cell. In gram-positive cells, the ethanol treatment causes the cell to dehydrate. The large CV-I complexes become trapped inside the thick, multilayered peptidoglycan. Consequently, these cells remain purple. 
The history of this method begins with Hans Christian Gram. He was a Danish bacteriologist who worked in Berlin. In 1884, he developed this technique while working with Carl Friedländer in a city hospital morgue. Interestingly, Gram did not originally intend to classify different bacterial species. He was actually trying to make bacteria more visible in stained sections of lung tissue. He noticed that certain bacterial cells showed a resistance to decolorization. He published his findings in 1884, noting that the typhus bacillus did not retain the stain.
Many different types of bacteria fall into these two categories. Gram-positive bacteria include groups like Bacillota and Actinomycetota. Many well-known genera, such as Staphylococcus and Streptococcus, are gram-positive. Some of these bacteria use teichoic acids to strengthen their cell walls. Gram-negative bacteria include most phyla, such as Cyanobacteria and Pseudomonadota. These bacteria often rely on their outer membrane and porins to regulate what enters the cell. 
Not every microorganism responds perfectly to the Gram stain. Some bacteria are considered gram-variable, meaning they show a mix of pink and purple cells. This can happen if the peptidoglycan thickness changes as the culture grows older. Other bacteria are called gram-indeterminate because they do not respond predictably. This group includes species like Mycobacterium, which causes tuberculosis and leprosy. These bacteria require different, specialized staining procedures to be identified correctly. 
🖼️ Images & Media (6)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.