How to Get the Smell of Dog Pee Out of Your Carpet. Blot up the urine immediately (if you can). Find invisible, dried stains with a blacklight… Baking soda naturally neutralizes odors. Sprinkle it liberally on the damp area or even an old urine stain, and work the powder gently into the fibers of any fabric, rug or carpet. Let the baking soda sit overnight for maximum odor absorption, then vacuum it up to remove the smell completely…