A standard can contains about 22 milligrams of caffeine, though Barq's Diet Root Beer contains zero. While caffeine isn't necessary in the root beer-making process, some brands will add it simply ...