Like most household odors, this one might be most noticeable to you when you walk through the door at the end of the day or when there is a great deal of moisture in the air. If you've tried shampooing or spot-cleaning your carpet to remove the putrid smell of vomit, it's time to ramp up your efforts with a one-two punch to eradicate the smell once and for all.
Mix a 50-50 solution of white vinegar and water in a spray bottle. You may use straight vinegar for a particularly strong odor and less vinegar for a slight odor.
Soak the carpet with the solution. Let it sit on the carpet for about 30 minutes. Then work the solution into the carpet with a damp sponge. Let the carpet dry – and don't worry about the vinegar harming your carpet. It won't.
Sprinkle the carpet liberally with baking soda. Work the baking soda into the carpet fibers with your fingers or a spatula. Let the baking soda sit on the carpet for at least eight hours.
Vacuum the baking soda from the carpet. Move the vacuum in both directions over the carpet. It is OK if you can't remove all of the baking soda. The remaining amount will help deodorize your carpet.