The short answer
Mostly, it foams and loosens oily dirt. Dish soap helps lift grease and soil, and peroxide can lighten color. Mixing the two is not known for a dangerous reaction on its own. The bigger concerns are color change, leftover soap residue, and adding the wrong ingredient to the mix.
What each ingredient does
- Dish soap is a surfactant. It loosens oily residue and helps dirt come away from the fibers.
- Hydrogen peroxide is an oxidizer. It can lighten color, which can help with some stains and can harm carpet dyes.
Together, they can help with some food, drink, or pet stains that have an oily part. They do not replace a proper test on the carpet.
How people usually mix it
Recipes vary. A common approach is a small amount of clear, unscented dish soap stirred into 3% peroxide. Keep the soap amount small. Too much soap is hard to rinse out, and leftover soap can make carpet feel sticky and attract dirt.
Mix only what you need, and use it the same day. Some people use baking soda in place of soap, which is a different combination. For that, see what happens when you mix Dawn dish soap and baking soda. If you only want soap and water, the question of whether plain soap is enough is covered in can I use Dawn dish soap to spot clean my carpet.
Test before you use it
Test a hidden spot first. Peroxide can still lighten dye when it is mixed with soap. Let the test dry fully, then check it the next day. If the spot lightens or the fibers feel different, stop.
What not to add
- Vinegar. Peroxide and vinegar react to form peracetic acid, which can irritate the eyes, skin, and airways. Some recipes add vinegar to the same mix. Leave it out.
- Chlorine bleach or ammonia. Never add either. Mixing them with other cleaners can release harmful fumes.
- Unknown products. If you do not know what is in a cleaner, do not add it to the mix.
Rinse and dry well
Rinse the area with plain water, blot until it is nearly dry, and run a fan or open a window. Soap left in the carpet can attract dirt. Carpet that stays damp for days can also develop mold, so drying matters as much as cleaning.
Wool and natural fibers
Wool and other natural fibers are more sensitive to peroxide, and adding soap does not make them safer. If the carpet is wool or you are not sure of the fiber, skip the mix and ask a professional.