You get a precise formula for your soda. You do a patent search with the U.S. patent office to make sure there is nothing too similar, and then you get a patent attorney to help you file your idea.. Recipes, however, are rarely patented. Just keep it secret and figure out a way to mass produce it and maybe you'll be rich!