Short answer
No single homemade cleaner is best for every carpet or stain. Three simple options cover most jobs: a weak white vinegar solution for some water-based spills, a few drops of clear soap in warm water for general spot cleaning, and baking soda for dry odors. Pick the one that matches the stain and your carpet, and test it first.
Weak white vinegar solution
Vinegar suits some water-based spills, such as coffee or juice. Keep the mix weak, about one part vinegar to four parts warm water, and blot rather than scrub. The steps are in how to clean carpet stains with white vinegar.
Clear soap in warm water
A few drops of clear, unscented soap in warm water is the usual choice for surface dirt and everyday spots. Use less than you think. Leftover soap can attract soil, so carpet may get dirty faster after cleaning. For the specifics on one popular brand, see does Dawn dish soap remove stains from carpet.
Baking soda
Baking soda absorbs odors and some loose grime. Sprinkle it on dry carpet, leave it for a while, then vacuum it up. It doesn’t lift most stains, so think of it as a freshener rather than a stain remover. For a fuller answer, see does baking soda really clean carpets.
Hydrogen peroxide
Some stains respond to hydrogen peroxide, but it can lighten colored carpet and fibers. Test a hidden spot first. For the cases where peroxide should be avoided, see the guide on what should you never clean with hydrogen peroxide. For a fuller recipe, see homemade carpet cleaner with peroxide.
Homemade mixes in a carpet machine
Machines are different. Many makers say to use only their own formulas, and some warn that vinegar can damage parts or void the warranty. If you’re asking can you put vinegar in a carpet cleaning machine, the answer depends on the model, so check its manual before you fill the tank. Homemade soap mixes can also foam in extraction machines and leave residue behind. For mixes made for machines, see what is the best homemade carpet cleaning solution for machines?
What to avoid in any homemade mix
- Bleach, or any mix that contains bleach
- Ammonia
- Vinegar and hydrogen peroxide in the same container
- Too much soap, which leaves residue
- Full-strength vinegar on wool or other natural fibers
How to choose
- Name the stain: water-based, oily, dried, or set.
- Check the carpet: synthetic or natural fiber, and what the care label allows.
- Test a hidden spot.
- Use the smallest amount that works, rinse lightly, and let the carpet dry fully.