How long it takes to flush caffeine out of your system depends on age, weight, gender, liver function, and how much caffeine you drink. On average, the body takes about 5 to 6 hours to eliminate half a cup of caffeine. So if you consume 200 milligrams of caffeine, after 5-6 hours, you will still have 100 milligrams of caffeine in your system.