The simplest solution to prevent trash can odor is to add a one-fourth cup of backing soda into the trash can. After 12 hours, the soda will have neutralized any bad odors. A good practice is to leave some baking soda (about a cup) at the bottom of the trash can every time you clean it up.