Stain How-To

How to Get Coffee Stains Out of Clothes, Carpet, and Mugs

By Darren Dodson Updated 5 min read

Coffee stains are a daily reality for most people, and the good news is they respond well to treatment — especially when caught early. Whether you’ve spilled on your shirt on the way to work, dripped on the carpet during your morning routine, or left a ring inside your favorite mug, this guide covers how to get coffee stains out of clothes, carpet, and mugs.

Different stain or fabric? The stain removal lookup gives the right steps for 14 common stains on cotton, synthetics, wool, silk, carpet and upholstery.

In this guide
  1. Why Coffee Stains Are Stubborn
  2. How to Get Coffee Stains Out of Clothes
  3. How to Get Coffee Stains Out of Carpet
  4. How to Remove Coffee Stains from Mugs and Cups
  5. Tips for Preventing Coffee Stains
  6. Related guides
  7. Sources and further reading

Why Coffee Stains Are Stubborn

Coffee contains tannins — naturally occurring polyphenol compounds that bind to protein fibers in fabric. This is why coffee stains go from light brown to a deep, set-in tan if left untreated. The tannins bond more tightly over time, especially when exposed to heat. If milk or cream was in your coffee, you’re also dealing with a mild protein stain that adds another layer of complexity.

Illustration: Fresh coffee on clothes in 5 steps: 1. Blot immediately; 2. Rinse from the back with cold water; 3. Work in dish soap or detergent; 4. Wash at the warmest safe setting; 5. Check before using the dryer.
The main steps at a glance. Each one is explained below.

How to Get Coffee Stains Out of Clothes

Fresh Coffee Stains

  1. Blot immediately. Use a paper towel or clean white cloth to absorb as much coffee as possible. Work from the outside edge inward.
  2. Rinse from the back with cold water. Hold the fabric under cold running water from the back side to push the coffee out. Don’t use hot water — it can set the tannins.
  3. Apply dish soap or liquid laundry detergent. Work a small amount into the stain with your fingers and let it sit 5–10 minutes.
  4. Check and repeat if needed, then wash on the warmest setting the care label allows.
  5. Air dry or check before using the dryer. If the stain is still visible, treat again before drying.

Coffee with Milk or Cream

If your coffee had milk or cream, the protein in the dairy can make the stain harder to remove. Use an enzyme-based detergent (most modern laundry detergents contain enzymes) or a dedicated enzyme pre-treatment like OxiClean or Zout. Let it soak for at least 15–20 minutes before washing.

Dried or Set Coffee Stains on Clothes

  1. Soak the stained area in cold water for 30 minutes to rehydrate the stain.
  2. Apply white vinegar directly to the stain and let it sit for 10 minutes. Vinegar helps break down tannins.
  3. Mix dish soap with baking soda into a paste and apply to the stain. Work it in gently and let it sit 15–20 minutes.
  4. Wash in the machine. Use an enzyme detergent and the warmest water safe for the fabric.
  5. Repeat if needed before drying.

How to Get Coffee Stains Out of Carpet

  1. Blot up as much coffee as possible immediately. Use white cloths or paper towels. Don’t rub.
  2. Dilute the stain with cold water. Pour a small amount of cold water onto the stain, then blot again. Repeat to dilute and lift the coffee.
  3. Apply a cleaning solution. Mix 1 tablespoon dish soap + 1 tablespoon white vinegar + 2 cups warm water. Apply with a clean cloth and blot — don’t scrub.
  4. Work from the edges in to avoid spreading the stain further.
  5. Rinse with cold water to remove soap residue. Leftover dish soap attracts dirt.
  6. Blot dry with clean towels, then place a dry towel on the area and weigh it down to absorb remaining moisture.
  7. For stubborn stains: Apply a small amount of hydrogen peroxide (test in a hidden spot first) or use a commercial carpet cleaner like Folex.

How to Remove Coffee Stains from Mugs and Cups

Coffee and tea leave brown tannin buildup inside mugs over time. The inside of a mug can develop stubborn staining that regular dishwashing doesn’t touch. Here are three methods that work:

Method 1: Baking Soda Scrub

Sprinkle baking soda inside the mug, add just enough water to form a paste, and scrub with a sponge or cloth. The mild abrasive action of baking soda polishes away the tannin buildup without scratching ceramic or porcelain. Rinse well afterward.

Method 2: White Vinegar Soak

Fill the mug halfway with white vinegar and let it soak for 30 minutes to several hours. The acidity breaks down tannin deposits. For light staining, this alone may be enough. For heavy buildup, combine with a baking soda scrub after soaking.

Method 3: Denture Tablets

Drop one denture-cleaning tablet into the mug, fill with warm water, and let it fizz for 15–30 minutes. Denture tablets contain a combination of bleaching agent and enzymes that are surprisingly effective on coffee and tea staining.

Method 4: Bar Keepers Friend

For very stubborn, long-term staining on ceramic mugs, Bar Keepers Friend (a mild oxalic acid cleanser) works extremely well. Dampen the mug, sprinkle in a small amount, scrub with a damp sponge, and rinse thoroughly. This removes staining that nothing else seems to touch.

Tips for Preventing Coffee Stains

  • Rinse mugs and travel cups immediately after use — don’t let coffee dry in the cup
  • Treat fabric stains within the first few minutes for best results
  • Keep a small bottle of dish soap or stain remover in your car or work bag for spills away from home
  • Wear a splash guard or apron when pouring in a hurry

Coffee stains are very manageable with the right tools and a bit of speed. The key is cold water first, dish soap to break down the tannins, and always checking the stain is completely gone before applying heat.

Sources and further reading

Always test a cleaner on a hidden spot first and follow the care label. Never mix bleach with ammonia, vinegar, or other cleaners. Ventilate the room and wear gloves when using strong products.

Darren Dodson
Darren (Dylan) Dodson writes and maintains Stain How-To. He is based in Raleigh, North Carolina, and started the site because most stain advice online skips the safety basics or suggests mixing products that should never be combined. He holds a B.S. in Geographic Information Science from UNC Greensboro and an M.S. from NC State University, works as a GIS researcher with NC State's Center for Integrated Pest Management, and founded Dodson Development, a web and app development company. He is not a professional cleaner or chemist; methods are checked against care labels, product instructions and published cleaning guidance, and each guide links its sources.