Most of what's in an area rug sits below the part you look at. The top of the pile can look fine for years while the bottom half fills up, and the first sign is usually a rug that feels flat and a little gritty underfoot, or a room that smells faintly off for no reason you can name.
Top to bottom, this is roughly what's in there.
The tips of the fibers
Hair, lint and crumbs, which a vacuum handles well. Also skin and cooking oil, which coats the fiber tips and makes the colors look a shade duller. That gray cast on the rug in front of the couch is mostly oil holding dust.
Down in the pile
Fine dust lives here, along with pet dander and pollen. Spring oak pollen and the winter cedar season both settle into rugs. A rug works like a filter, good for the air and bad for the rug, since it hangs on to everything until somebody gets it out. Foot traffic pushes this layer deeper, and on a thick or dense rug the vacuum mostly can't reach it.
Old cleaning products collect here too. A spot that was hit with soapy carpet spray a dozen times has a sticky residue that grabs new dirt, which is why the same spot keeps coming back darker than before.
At the foundation
Grit. It's heavy and sharp, and it sits right where the fibers are knotted or tufted into the backing, so every footstep grinds it against them. On a hand-knotted wool rug, this is the thing that actually wears it out. To check, fold back a corner and bend the rug face-out over your hand. If sand-colored dust drops out of the base of the pile, that's what it is. A rug that has sat in the same living room for ten years can hold a surprising weight of it.
This is also where pet urine goes. It soaks through to the backing, spreads wider there than the stain on top, and the smell comes back on muggy mornings. Deodorizer sprays sit on the surface and never get near it.
Under the rug
Fine particles sift through the backing onto the floor. On hardwood, that grit sits under a rug that shifts a little every time someone walks across it, and it scuffs the finish.
The pad holds its share too: dust, dander and anything that soaked through. When a rug gets cleaned, lift the pad and vacuum the floor where it sat, or let it air out if a spill went through it. A clean rug laid back on a dirty pad can pick the old smell right back up.
What a cleaning in your home can reach
We clean rugs where they lie. Nothing gets rolled up and hauled off. The technician checks the fiber and the dyes first, vacuums out the dry soil, pre-treats spots and pet areas, and then cleans the pile with our carbonated process, which leaves no soap behind to attract dirt. Most rugs can be walked on again in about an hour. For hand-knotted and antique pieces, see Oriental rug cleaning; for urine, read up on our pet odor treatment.
There are limits. Dye that has already bled, fibers worn down to the knots, and sun fading are permanent, and a cleaning won't undo them.
Flip the rug twice a year and vacuum the back. It knocks more grit out of the foundation than anything you can do to the front.
The area rug cleaning page has the rest, and there's $25 off rugs on the coupons page. The rug by the front door fills up fastest of all, so it gets its own post: why entryway rugs need a different cleaning schedule.

