Generally, it takes your body four to six hours to break down half of the caffeine you consumed. This is why you may hear the “half-life” of coffee is around four to six hours. Thus, caffeine's effects, such as alertness, may last at least that long. It varies by individual.