Often, if you act quickly
Usually the soap part of a laundry detergent spill comes out if you rinse it promptly. The colorants and brighteners in the detergent are the parts more likely to leave a mark.
Why laundry detergent is a harder spill
Laundry detergent is made for washing machines, not carpet, and many formulas contain optical brighteners. Those are fluorescent whitening agents. Some carpet-care sources say brighteners can cause fading or yellowing in carpet dyes, and that the change can be hard to reverse. A detergent spot may look fine at first and show a yellow or dull mark later.
If the question is about putting laundry detergent into a carpet machine rather than cleaning up a spill, can you use laundry detergent in a carpet cleaner machine covers that separately.
Cleanup steps
- Blot, don’t rub. Press a dry white towel onto the spill, working from the outside in.
- Rinse with lukewarm water. Mist the spot or dampen a clean cloth with plain lukewarm water, then blot the water out. Several rinses are often needed to remove detergent residue.
- Keep the water light. Overwetting can lead to mold, so don’t saturate the carpet.
- Check for suds, then dry. Keep rinsing and blotting until no suds show on the towel. Run a fan over the spot. Once it’s dry, check for tackiness, and rinse once more if the spot still feels sticky.
A note on dish soap
Some university extension guides suggest a very weak dishwashing-liquid solution for certain carpet stains, followed by thorough rinsing. That adds more soap, so use it sparingly and rinse well. Whether dish soap is a good choice on carpet at all is the question in does dawn dish soap remove stains from carpet.
Checking for brighteners
If you’re not sure whether the detergent contains brighteners, a UV flashlight in a dim room can help. Brightener residue tends to glow blue-white under UV light. The check won’t remove anything, but it can tell you why a mark is showing up.
When a mark stays
If a spot yellows, fades, or stays visible after rinsing, call a carpet professional. They can look at the dye and the backing and suggest options. Whether a mark is permanent depends on the dye and the fiber. For more on that, see can carpet be permanently stained. Yellowing after a cleaning can have several causes, as explained in why has my rug turned yellow after cleaning.