Short answer
It may lighten some old pet stains, but it can also bleach carpet, especially dyed carpet. Test a hidden spot first, and do not rely on it to remove odor.
What 3% hydrogen peroxide does
The common drugstore strength is 3%. It works by oxidizing color compounds, which can lighten some stains. The same action can also lighten the dye in your carpet. Results vary with the carpet, the stain and how long the stain has been there.
Why old stains are harder
Old pet stains have dried residue that has moved into the backing and padding. Urine and vomit leave behind proteins and salts, and not all of them respond to bleaching. A surface treatment may lighten the color but leave the smell behind, which is why an old stain can look better while still smelling.
Test a hidden spot
Dab a little 3% peroxide on a hidden area, such as the inside of a closet. Wait a few minutes, then blot and let it dry. Check for lightening or color change. If the test area changes, do not use peroxide on that carpet.
If the test passes
- Dilute it the way your recipe or label says.
- Apply it sparingly and do not soak the backing.
- Blot, then rinse lightly with clean water.
- Dry the area fully with airflow.
For a diluted home recipe, see homemade carpet cleaner with peroxide.
Where an enzyme cleaner fits better
For urine and vomit, an enzyme cleaner is usually the better first step, because it targets the proteins that cause the smell. Peroxide is more of a secondary option for discoloration. Very old stains often need several treatments, and some will not come out fully. For stains that have been there for many years, how to remove 10 year old stains from carpet covers the approach in more detail.
Do not mix it with other products
Do not mix peroxide with vinegar, bleach or ammonia. Vinegar forms an irritating acid with peroxide, and bleach or ammonia can release dangerous gases. Some home guides suggest combining these products. Skip those instructions.
When to call a professional
If the stain is large, or the smell persists after careful treatments, a professional can assess the padding and backing. They have tools and products that go deeper than a surface treatment.
The short version
Peroxide can lighten some old pet stains, but it can also bleach carpet. Test a hidden spot first, dilute, blot, and do not use it as your only fix for odor. Keep it separate from vinegar, bleach and ammonia.