To remove coffee stains from your carpet quickly blot the area with a clean, white cloth. Make sure to absorb as much of the liquid as you can. Next mix 1 teaspoon of a clear liquid dishwashing detergent with 1 cup warm water and sponge the area with the detergent solution. Blot again with a dry, clean cloth. Then, mix 1/3 cup white vinegar with 2/3 cup water and sponge the area with the solution. Blot dry agin. Remove the excess vinegar with a sponge and clean water. Dry with a fresh cloth. Make sure to avoid rubbing, this can cause the stain to spread