Caffeine can stay in your system for as short as 15 minutes to as long as a few hours. It depends on your metabolism rate and caffeine tolerance. The time varies from person to person due to genetic differences.