We consulted experts in fitness and nutrition to figure out whether coffee helps or hurts a workout, when to drink it, and how much you should consume. “The high content of polyphenols in coffee can help with antioxidant and anti-inflammatory protection, as well as blood sugar balance,” he says. Each of these aspects is important for exercise performance and especially for post-exercise recovery and tissue repair. Along with the polyphenols, the caffeine in coffee has performance-enhancing properties. In an overarching review of caffeine and exercise, researchers analyzed 4,800 people across 300 studies and found that exercise performance increased up to 16% after participants drank caffeine1. The stimulatory effects of caffeine have also been shown to help the body burn fat2. So if weight loss is one of your exercise goals, drinking coffee beforehand may help. For short exercises, drink your coffee before you leave the house. By the time you get to the gym and start exercising, the caffeine should take effect. For endurance exercises, save your coffee for the last hour. “As an ultra runner and Ironman triathlete,” Talbott says, “I save my iced coffee for the later portion of my long workouts.” The last stretch of an endurance run or bike ride is when you’ll probably need a boost. Just keep in mind how coffee tends to affect you. If a morning cup of coffee generally makes you poop, it might not be conducive to cardio. Drinking iced coffee or cold brew instead of hot coffee may help, though, as the warm liquid may increase intestinal motility3 and increase the urge to go. Since your tolerance level may differ from other people’s, experiment with drinking your coffee anywhere from 15 to 45 minutes before exercise. “That 100 mg of caffeine and associated polyphenols will boost mental and physical performance starting at about 30 minutes and lasting for about two to four hours,” Talbott explains, though the exact time depends on your personal ability to metabolize caffeine, which differs between people. One study found that participants who drank 4.5 milligrams of caffeine per kilo of their body weight4 saw a 15% improvement in athletic performance. For example, a 140-pound person would need to drink 285 milligrams, which is about one 20-ounce cup of coffee. And even if you’re a heavy coffee drinker, research says that doesn’t change the positive effects caffeine5 has on athletics. Drinking too much coffee (about 400 mg or four cups a day) may lead to potential downsides, like over-caffeination. “After 400 mg of caffeine, you start to see the beneficial effects of coffee get replaced with negative side effects,” Talbott says. These effects may include high tension or anxiety, heart palpitations, an upset stomach from increased acid production, and increases in cortisol. If you’re doing an evening workout, he advises you to stop drinking coffee at least four hours before bed to avoid sleep disturbances.