Be strategic with your coffee or energy drink and you'll get an extended boost in alertness. Most people need about 100 milligrams (mg) to 200 mg of caffeine, depending on their body weight, Rosekind says.