If you're looking to hit the gym when your caffeine boost is at its most powerful, you're going to want to down a cup of joe roughly 45 minutes before working out. Studies show that maximum caffeine concentration hits at about 45 minutes post consumption.