Cell wall structure and function come down to one idea. A rigid but porous layer outside the cell membrane gives plant, fungal, and bacterial cells their shape and keeps them from bursting under internal water pressure. Plants build that layer from cellulose, fungi from chitin and glucans, and bacteria from peptidoglycan. Once you see how cell wall structure and function fit together, you can watch one at work tonight with an onion and a pinch of salt.

Cell Wall Composition: Plant vs Fungal vs Bacterial Walls Compared
Cell wall composition changes completely from one kingdom to the next, even though the job stays the same. See OpenStax’s cellulose and chitin guide for additional context.
| Organism | Main polymer (building block) | Key facts |
|---|---|---|
| Plants and most green algae | Cellulose (glucose, β-1,4 bonds) | Hemicellulose and pectin matrix; lignin in secondary walls. |
| Fungi | β-1,3-glucan plus chitin (N-acetylglucosamine) | Mannoprotein outer coat. Chitin is 1–2% of yeast wall, 10–20% in molds. |
| Gram-positive bacteria | Peptidoglycan (NAG and NAM sugars, peptide cross-links) | Thick layer, 20–80 nm, with teichoic acids. Stains purple. |
| Gram-negative bacteria | Peptidoglycan | Thin layer, 2–7 nm, under an outer membrane with lipopolysaccharide (LPS). Stains pink. |
| Archaea | S-layer protein; pseudopeptidoglycan in some methanogens | No true peptidoglycan, so lysozyme and penicillin fail. |
| Animal cells | None | Only a flexible membrane; they swell and can burst in pure water. |
Chitin is chemically similar to cellulose but carries a nitrogen-containing group on every sugar. It also stiffens insect exoskeletons.
Structure of the Plant Cell Wall: 3 Layers
Plants lay down the cell wall in layers: from the outside in, the middle lamella, the primary wall, the secondary wall, and then the plasma membrane. Some textbooks treat the middle lamella as the glue between walls rather than part of one. Scitable offers a good overview of plant cell walls. See OpenStax’s fungal-cell-wall overview for additional context.
Middle Lamella: The Pectin Glue Between Cells
The middle lamella is the first layer built, shared by two neighboring cells, and its pectin cements them into a tissue. It forms from the cell plate during cytokinesis (the final split of one cell into two), a stage you can catch in the stages of mitosis in onion root tips. When enzymes break the pectin down, cells let go of each other, which is why ripe fruit turns soft and mealy.
Primary Cell Wall: Thin and Flexible
The primary cell wall is a thin (roughly 0.1–1 µm), flexible layer laid down while the cell is still growing, and every plant cell has one. In a typical dicot (a flowering plant with two seed leaves) it is about 15–30% cellulose, 20–30% hemicellulose, and 30–35% pectin by dry mass.
Secondary Cell Wall: Thick and Lignified
Cells deposit the secondary cell wall inside the primary wall only after growth stops, and only in specialized cells such as xylem vessels (the plant’s water-carrying tubes) and fibers. It is thick (often several micrometers), cellulose-rich, and impregnated with lignin, which makes it rigid and waterproof. Three sublayers (S1, S2, S3) run at different microfibril angles, like plywood. Wood is mostly secondary wall, and about 20–30% of it is lignin.
Cellulose Microfibrils, Plasmodesmata, and Pits
Hydrogen bonds bundle cellulose chains into microfibrils only 3–5 nm wide. Cellulose synthase complexes spin them out directly at the plasma membrane, while the Golgi apparatus makes hemicellulose and pectin and ships them to the wall in vesicles. Microfibrils wrapped around a cell like barrel hoops let it stretch lengthwise but not widen.
The wall is not a sealed box. Plasmodesmata, channels roughly 20–60 nm wide, link the cytoplasm of neighboring cells, and pits are thin spots in secondary walls where water passes between xylem cells.
Functions of the Cell Wall: 6 Jobs of the Layer Outside the Membrane
The cell wall does six jobs:
- Shape and mechanical support. Walls give cells a defined shape and hold plants upright.
- Resisting turgor pressure. The wall pushes back against water pressure from inside, so the cell becomes firm instead of bursting.
- Controlling growth. Auxin lowers the wall’s pH, expansin proteins loosen the cellulose–hemicellulose bonds, and turgor stretches the wall.
- Protection. The wall is a barrier against pathogens and herbivores.
- Adhesion and communication. The middle lamella glues cells together, and plasmodesmata connect their interiors.
- Water transport. Lignified xylem walls resist collapse under the tension of water being pulled up the plant.
In fresh water, the central vacuole draws in water by osmosis, and the wall pushes back with equal force. The cell becomes turgid, meaning firm and full, instead of lysing. Plant turgor is roughly 0.3–1 MPa, about 3 to 10 times atmospheric pressure. An animal cell in pure water has no wall to push back, so it can burst. A wilting plant has simply lost turgor.
How to See Cell Walls Under a Microscope
A basic compound microscope shows cell walls at 40x–400x if the specimen is thin. Onion skin, cork, and Elodea all work.
Onion Skin: The Classic Brick Wall
Onion epidermis at 40x–100x looks like a sheet of long rectangular cells stacked like bricks, each roughly 0.2–0.4 mm long. The common beginner mistake is scraping off onion flesh, which gives a blurry mess. Instead, snap a scale and peel the transparent membrane from the inner (concave) side with tweezers, then follow making a basic wet mount slide.
Unstained walls are faint gray lines that vanish under full brightness, so close the iris diaphragm until they pop out. One drop of iodine for a minute turns them golden-brown. Our full guide to onion cells under a microscope has more. Still learning the controls? See how to operate a compound microscope first.
At 400x the line between two cells looks like one boundary. It is really the primary wall, middle lamella, and neighbor’s primary wall stacked together, and each primary wall is only about 0.1–1 µm thick. That sits near the 0.2 µm resolving limit of a light microscope, so seeing layers or microfibrils takes an electron microscope.
Prove the Wall Is There: Salt-Water Plasmolysis
Plasmolysis proves the wall and the membrane are separate: salt water pulls water out of the cell, the protoplast (the living contents inside the wall) shrinks, and the wall stays put. Use a red onion, whose purple epidermis makes the shrinking obvious; white onion is nearly invisible unstained.
- Peel thin purple epidermis from the outer face of a red onion scale.
- Lay it flat in a drop of plain water on a slide and lower a coverslip at a 45° angle to avoid bubbles.
- Focus on the cells at 100x first, so you watch the same cells change.
- Mix salt water: a level teaspoon of table salt in half a cup of water, about 5%.
- Add drops at one coverslip edge and wick them under with a paper towel at the opposite edge.
- Watch for 1–5 minutes. The magenta contents pull into a rounded or crumpled blob and the purple deepens, while the empty rectangular wall outline stays put.
- At 400x, sweep the fine focus up and down. The wall stays sharp as one plane while the shrunken protoplast drifts in and out of focus.
- Wick plain water under the coverslip, and the contents swell back out (deplasmolysis).
Salt water that is too weak shows nothing, and too strong crumples cells before you can watch. Warm lamps also dry the coverslip edge within minutes, leaving salt crystals, so add a drop of liquid there.
Cork: What Robert Hooke Saw in 1665
Cork shows cell walls with no living contents at all. At 40x–100x in a dry mount, a thin slice looks like a honeycomb of tiny empty boxes with tan-brown, suberin-waxed walls, each bright inside because it holds only air. Shave the thinnest translucent sliver you can from a natural cork stopper with a fresh razor blade, cutting away from your fingers. Thick slices block the light, and synthetic stoppers do not work.
This is what Robert Hooke saw in 1665, as he described in his book Micrographia. The compartments he named “cells” were the empty walls of dead cork cells. See step-by-step cork cells under the microscope for the slicing.
Elodea: Living Walls With Moving Chloroplasts
At 400x an Elodea leaf shows neat rectangular frames of wall, with green chloroplasts like tiny beads gliding around the inside edge of each cell. That is cytoplasmic streaming, and because the beads hug the wall, moving green traces the outline. Pick a young leaf near the shoot tip; it is thinner and greener, and less likely to curl than older leaves. See watching chloroplasts under a microscope.
Bonus: Make Walls Glow With Polarized Light
Cellulose is birefringent (it splits light into two polarized rays), so crossed polarizers make cotton, paper fibers, and thin wood sections shine white or colored on black. How a polarizing microscope reveals birefringence explains the setup.
Fungal Cell Walls: Chitin, Glucans, and Yeast Bud Scars
A fungal cell wall is built on a scaffold of β-1,3-glucan, reinforced with chitin, and coated outside with mannoproteins. Baker’s yeast (Saccharomyces cerevisiae) is roughly 50–55% β-1,3-glucan and 35–40% mannoproteins, with only about 1–2% chitin. Molds such as Aspergillus carry roughly 10–20%, as this review of the fungal cell wall in Candida, Cryptococcus, and Aspergillus describes.
Yeast chitin concentrates in bud scars, the rings left each time a daughter cell separates. They are invisible in plain brightfield but glow under the fluorescent stain calcofluor white. At 400x–1000x, yeast shows as oval cells 3–8 µm long, and the sharp outline is the wall. See what yeast looks like under the microscope.
Bacterial Cell Walls and Why Gram Staining Works
The bacterial cell wall is a single giant bag of peptidoglycan wrapped around the cell. Its long sugar chains alternate NAG (N-acetylglucosamine) and NAM (N-acetylmuramic acid), cross-linked by short peptide bridges. The wall sets the cell’s shape, whether rod, sphere, or spiral, and stops it bursting from internal pressure. The OpenStax chapter on prokaryotic cell structures goes deeper.
Gram-positive bacteria (Staphylococcus, Bacillus, and the Lactobacillus in yogurt) have a thick wall, 20–80 nm. Gram-negative bacteria such as E. coli have a thin 2–7 nm layer beneath an outer membrane. For a full side-by-side, read the 9 differences between Gram-positive and Gram-negative bacteria.
How the Gram Stain Reads the Wall
The Gram stain, developed by Christian Gram in 1884, is a direct readout of wall structure:
- Crystal violet floods the smear and enters every cell.
- Iodine forms a large crystal violet–iodine complex inside the cell.
- Alcohol decolorizes. It dehydrates and tightens thick Gram-positive peptidoglycan, trapping the complex. In Gram-negative cells it dissolves the outer membrane, and the thin peptidoglycan cannot hold the complex, so it washes out.
- Safranin counterstains the decolorized cells.
The result is purple for Gram-positive and pink to red for Gram-negative. At 1000x under oil you never see the wall as a layer; only the color tells you what kind of wall is there. See how to run a Gram stain step by step, and do not culture unknown bacteria at home; use yogurt or prepared slides.
Two exceptions matter. Mycobacterium, the cause of tuberculosis, has a waxy mycolic acid layer, stains poorly with Gram, and needs the Ziehl–Neelsen acid-fast stain instead. Mycoplasma has no wall at all. Lysozyme, an enzyme in tears and egg white, cuts the NAM–NAG bond in peptidoglycan.
Common Misconceptions About Cell Walls
- Myth: every cell wall is cellulose. Fact: that is the plant material. Fungi use chitin and glucans, bacteria use peptidoglycan, and diatoms and their glass-like silica walls use none of these.
- Myth: Gram-negative bacteria have no cell wall. Fact: theirs is thin, plus an outer membrane.
- Myth: cell walls are rigid and static. Fact: primary walls stay flexible and are constantly remodeled while the cell grows.
Frequently Asked Questions
Do animal cells have a cell wall?
No. Animal cells have only a flexible plasma membrane. Most protozoa lack one too; some, such as Paramecium and Euglena, have a flexible protein pellicle instead. See the full plant cell vs animal cell comparison for the rest of the differences.
What is the difference between the cell wall and the cell membrane?
The wall sits outside and is fully permeable to water, gases, ions, and small molecules. The membrane sits underneath and is the selectively permeable barrier. Read how the cell membrane is structured for the other side of this boundary.
Is the cell wall living or nonliving?
It is mostly nonliving material, but the living cell builds, loosens, and remodels it. Secondary walls, such as wood, remain after the cell dies.
Why does penicillin kill bacteria but not human cells?
Penicillin blocks the enzymes (penicillin-binding proteins) that cross-link peptidoglycan, so the wall weakens and the cell bursts under its own pressure. Human cells have no peptidoglycan, so the target is absent. This is a mechanism explanation, not medical advice; ask a clinician about any infection.
Do fungi have cell walls made of cellulose?
No, true fungi use chitin and glucans. The confusing exception is oomycetes, or water molds such as Phytophthora (the Irish potato famine pathogen), which have cellulose walls because they are not true fungi.
Conclusion
The cell wall gives plants, fungi, and bacteria their shape and keeps them from bursting. Plants use layered cellulose, fungi use chitin and glucans, and bacteria use peptidoglycan, which the Gram stain reads as purple or pink. The red onion plasmolysis demo is the quickest way to prove the wall and membrane are separate.
Have you tried the salt-water trick yourself? Tell us what your onion, cork, or Elodea cells looked like in the comments below.