Combine 4 tbs of baking soda in a container. Add about 10-15 drops of your essential oil and mix.
Sprinkle all over the carpet, giving special attention to the areas that are most stinky. Don’t grind it in; just let it sit, preferably overnight.
Vacuum the entire mixture thoroughly. It may take several passes with the vacuum to get all the baking soda up.