Once you see that the coffee stain has started to fade, take a damp cloth and start cleaning up the soap residue.
You have to make the dry stain wet first using warm water and then work on the area gently so that the stain can be removed easily in the next steps.
If you have a light-colored carpet, then you can remove the coffee stain using vinegar. The powerful acetic property of vinegar will help you not only clean stains but also disinfect the carpet.
If the milk coffee stain is old, then the first step is to scrape off the milk solids using a blunt knife or something similar and then dampen the area using warm water.
If you have spilled coffee on upholstery or on your clothes instead, then here’s what you can do to get rid of the coffee stain: