Short answer
Blot the spill first, rinse lightly with cool water, use a dish soap solution, then blot dry. If a mark remains, repeat the steps before trying anything stronger. Fresh coffee responds much better than coffee that has dried into the fibers.
Why coffee stains are tricky
Coffee contains tannins and pigments that cling to carpet fibers. Milk and sugar leave a sticky residue that attracts dirt, so a milky latte can leave a mark that looks dingier over time.
Step-by-step on a fresh spill
- Blot. Press a dry white cloth onto the spill to soak up liquid. Work from the edge inward and don’t rub.
- Rinse with cool water. Dab a little cool water onto the spot and blot again. Hot water can set some stains, so keep it cool.
- Use dish soap. Mix about 1 tablespoon of liquid dish soap into 2 cups of cool water. Dab it onto the stain with a sponge, let it sit briefly, then blot.
- Rinse and blot dry. Rinse with cool water to remove soap residue, since leftover soap can attract dirt. Blot until the carpet is as dry as you can get it.
If a mark remains
Test a diluted white vinegar mix on a hidden spot first. If the test looks fine, dab a little onto the remaining mark, blot with a clean cloth, and rinse with plain water. Repeat the dish soap step if needed, and let the carpet air dry.
Drying and heat
Let the carpet air dry in a room with good airflow. Don’t put a hair dryer or iron on the stain until it has gone, since heat can set what is left.
Old or dried coffee stains
Coffee that has dried for a long time is harder to lift. You may need several rounds of gentle treatment, and some faint marks may stay. For that situation, read how to remove old coffee stains from carpet. For a short answer on whether dried stains can come out at all, see can dried coffee stains be removed.
When to call a professional
If the stain stays visible after two or three careful rounds, or if the carpet is wool or delicate, a professional cleaner can test the fibers and use stronger methods. Before you book, it helps to know what to expect; do carpet stain removers work covers the limits of store-bought products. For a broader set of routines, see how to clean carpet stains.