Baking soda is well known for removing odors. It’s easy to use and effective for removing odors from carpeting.
Sprinkle the area liberally with baking soda. For odors that go beyond the surface, brush the area lightly with a broom to work the baking soda down into the fibers.
Sprinkle an additional layer of baking soda on top of the carpet. Thin layers of baking soda will not work as effectively. Do not be afraid to use enough to get rid of the odor.
Allow the baking soda to set at least overnight on the affected area. Two days is even better, if possible.
After 1-2 days have passed, sweep the top layer of baking soda into the dustpan with a stiff broom. If the baking soda was placed on a rug, it can be shaken off outdoors.
Vacuum the remaining baking soda from the carpet with a strong vacuum. Do not vacuum the top layer first, as this can damage the vacuum.
Smell the area to see if there is improvement. If there is, reapply another layer of baking soda and repeat the process. Baking soda does not damage the carpeting, so the process can be repeated as often as necessary.
If the odor is not removed, vinegar can be applied to the carpet. It can be sprayed on the surface or blotted on with a soft cloth. If the odor is from a liquid that has been absorbed by the carpet, it will be necessary to apply enough vinegar to reach the source of the odor (keep in mind that it may have soaked into the padding as well), but avoid saturating the carpet.
Allow the vinegar to set on the carpet for 15 minutes or so. The acid in the vinegar can work through the odor-causing bacteria in the carpet.
Blot with a clean cloth to remove.
Rinse by spraying and/or blotting the area with clean water.
Press with a clean cloth to absorb any remaining water.
Allow to air dry completely.
Repeat as necessary until the stain is removed.