This depends on the decision of the brand and product, as some brands want their root beer to have caffeine and some don’t. Most brands don’t have caffeine, unlike the Barq’s root beer, which is added to the soda artificially. It will also be reflected in the taste of the root beer.