For example, a 12-ounce can of Dr. Pepper contains 41 milligrams of caffeine and a can of Mountain Dew has 54 milligrams. If diet soda is your preference, it might have slightly more or less caffeine ...