Items you will need
Liquid dish soap
From time to time, our feline friends urinate or spray outside their litter boxes, leaving a foul odor. It may be a sign that they are marking their territory before being spayed or neutered, or that their litter box needs changing. Whatever the reason, it is important to clean the area and remove the odor so that your cat does not urinate again in the same spot. To remove the blemish and smell from hardwood flooring, wipe the area with warm soapy water, an enzymatic cat urine cleaner and then rinse. On carpet, the process is slightly more involved, but you can remove the odor with a homemade remedy.
Place layers of paper towel on top of a recent cat urine or spray stain. Apply enough paper towel to absorb all the liquid.
Mix a solution of one part water and one part vinegar, and pour enough to fully saturate the stained area.
Leave the area alone until it appears dry. Blot up any residual moisture with paper towel.
Cover the same area with baking soda.
Mix 1/4 cup hydrogen peroxide with 1 tsp. liquid dish soap and drizzle a little at a time on top of the baking soda. Only add enough hydrogen peroxide mixture so that the baking soda can turn into a paste.
Scrub the area until the baking soda turns into a paste and has been worked into the carpet.
Vacuum up the baking soda once it is dry.
Never make a homemade cat odor remover out of an ammonia-based product since cat urine contains ammonia and your cat may revisit this spot.