It takes about 6 hours for caffeine to altogether leave your system. Caffeine has a half-life of about 5 hours.