Why an afternoon coffee still affects sleep
Because of the roughly 5-hour half-life, a cup of coffee at 4 p.m. can still leave around a quarter of its caffeine active in the body by midnight, which is enough to measurably affect sleep quality and how long it takes to fall asleep even in people who don't consciously feel "wired."
Why "fully out of your system" takes closer to a full day
A substance is generally considered mostly cleared after about five half-lives, which for caffeine's average 5-hour figure works out to roughly 25 hours, not the few hours it often feels like once the noticeable stimulant effect fades.
Frequently Asked Questions
Does drinking water or exercising speed up caffeine elimination?
Not meaningfully. Caffeine is cleared almost entirely through liver metabolism rather than through sweat or urine output, so hydration and exercise don't materially change how fast it leaves your system, even though they can make you feel more alert in the moment.
Why do two people who drank the same coffee feel so differently affected hours later?
Individual half-life varies significantly based on genetics (especially the CYP1A2 enzyme), pregnancy status, smoking, certain medications, and liver health, so the same dose at the same time can leave meaningfully different amounts of caffeine active in different people.