Leaving baking soda in your shoes overnight is recommended. This allows the baking soda enough time to absorb the odors effectively.