Anyone who has had a late-afternoon coffee and then stared at the ceiling at midnight has asked some version of this question. The answer is less a single number than a range, because caffeine is one of the most variable substances people routinely take. The same cup can be mostly gone from one person's blood by dinner and still be working in another person at bedtime. This article explains how caffeine moves through the body, what the half-life actually means, and which factors, measured in controlled studies, make it last longer or shorter.
Absorption: how fast caffeine kicks in
Caffeine is absorbed quickly and almost completely from the gut. Blanchard and Sawers[1], in a careful pharmacokinetic study in young and elderly men, compared caffeine given by mouth with the same dose given intravenously and found that the peak times, peak concentrations and the proportion of the oral dose reaching the bloodstream were essentially identical across age groups. They concluded that caffeine was absorbed rapidly and completely after swallowing, with no meaningful loss to first-pass metabolism in the liver.
For a sense of timing with real drinks, Liguori, Hughes and Grass[2] gave 13 regular caffeine users 400 mg of caffeine as unsweetened coffee, as sugar-free cola, or as capsules, in a randomised, double-blind, placebo-controlled design, and measured caffeine in saliva over four hours. Caffeine peaked at about 42 minutes with coffee and 39 minutes with cola, but later, at about 67 minutes, with capsules. Peak levels were similar for coffee and cola, and the subjective effects did not differ between the drinks.
So the answer to how long caffeine takes to kick in is that levels rise within the first half hour and typically peak somewhere around 40 minutes after a coffee. Some people report feeling a lift sooner than that. Part of that early effect may be expectation and the ritual of the cup itself, since blood levels are still climbing.
How much caffeine is actually in the cup
Timing only makes sense alongside dose, and coffee's caffeine content is far less predictable than most people assume. McCusker, Goldberger and Cone[3] bought caffeinated and decaffeinated specialty coffees from coffee shops and measured their caffeine by gas chromatography. Caffeinated coffees ranged from 58 to 259 mg per serving, and the mean for a 16-ounce brewed specialty coffee was 188 mg. Most strikingly, the same drink bought from the same outlet on six consecutive days ranged from 259 to 564 mg.
That variation matters for everything in this article. If your large café coffee happens to contain twice as much caffeine as usual, it will also take longer to fall to a level that no longer affects sleep, even if your half-life has not changed at all. When a coffee seems to last unusually long, a stronger-than-normal cup is often a more likely explanation than a change in your body.
Nothing flushes it out faster
It is common to hear that drinking water, exercising or sweating will clear caffeine more quickly. The pharmacology does not support that. Caffeine is removed mainly by liver metabolism rather than through urine or sweat, as described in the review by Nehlig[4], so drinking extra water does not meaningfully speed things up. A detailed disposition study by Bonati and colleagues[5], which gave caffeine in water, as mocha coffee and in a soft drink at a range of doses, also found that caffeine follows dose-independent kinetics at the levels people normally consume. In practical terms, that means the body clears a given fraction per hour regardless of whether you had one cup or three, so a bigger dose simply takes longer to fall to a low level.
What half-life means
After the peak, the body begins removing caffeine, almost entirely by breaking it down in the liver. The standard way to describe this is the elimination half-life: the time it takes for the level in the blood to fall by half. After one half-life, half the caffeine remains; after two, a quarter; after three, an eighth, and so on. That means caffeine does not simply switch off at a certain time. It fades gradually, and a substantial amount can remain many hours after the peak.
A worked example makes this concrete. If your half-life is five hours and you drink a coffee with 100 mg of caffeine at 3 pm, roughly 50 mg would remain at 8 pm and 25 mg at 1 am, ignoring the time taken to absorb it. If your half-life is ten hours, about 50 mg would still be in your system at 1 am. The individual half-life is what turns an afternoon coffee from harmless to sleep-disrupting.
Why the half-life varies so much
In the same study by Blanchard and Sawers[1], caffeine half-lives ranged from 2.27 to 9.87 hours among healthy men, which the authors described as considerable variability between subjects. Age itself made surprisingly little difference: most aspects of caffeine's behaviour were very similar in young men around 20 and elderly men around 71.
A major review by Nehlig in Pharmacological Reviews[4] summarised the main reasons for this variation. About 95% of the caffeine people ingest is metabolised by a single liver enzyme, CYP1A2, and common genetic differences in that enzyme make some people fast metabolisers and others slow. The review also lists age, sex and hormones, liver disease, obesity, smoking, diet and many medications as factors that shift how quickly caffeine is cleared. Genetic differences in the brain's adenosine receptors, caffeine's main target, add a second layer: they affect how strongly a person feels a given level of caffeine, not just how long it stays.
Smoking speeds it up
One of the largest effects comes from cigarette smoking. Parsons and Neims[6] compared caffeine elimination in 13 healthy smokers and 13 non-smokers by measuring caffeine in saliva. The mean half-life was 3.5 hours in smokers and 6.0 hours in non-smokers, and body clearance of caffeine was significantly faster in smokers. The authors attributed the difference to smoking's induction of liver enzymes, and suggested it might help explain why smokers tend to drink more coffee.
The flip side matters for anyone who quits. When a smoker stops, the enzyme induction fades, caffeine clearance slows, and the same coffee habit produces higher caffeine levels than before. Some of the jitteriness and poor sleep people attribute to nicotine withdrawal may partly be their usual coffee suddenly lasting longer.
Hormones and oral contraceptives slow it down
Patwardhan and colleagues[7] gave 250 mg of caffeine to 13 healthy men, 9 women not taking oral contraceptives, and 9 women who were. The half-life in women on oral contraceptives was 10.7 hours, compared with 6.2 hours in women not taking them, and their total plasma clearance was significantly lower. Women not on the pill had caffeine elimination similar to men, apart from a larger volume of distribution.
Normal menstrual cycles have a much smaller effect. Lane and colleagues[8] ran repeated 24-hour caffeine elimination studies in 10 healthy women in the follicular and luteal phases. Clearance of caffeine was slower in the luteal phase, particularly closer to the start of menstruation and in relation to progesterone levels, although the half-life itself did not differ significantly. The authors suggested caffeine could accumulate slightly more with repeated doses in the days before a period, but that the effect may be too small to matter for most women.
Pregnancy slows it dramatically
Pregnancy produces one of the largest changes of all. Knutti, Rothweiler and Schlatter[9] measured caffeine half-lives in saliva in men, non-pregnant women, pregnant women and women after giving birth. The average half-life rose from about 3 hours in non-pregnant women to 10.5 hours during the last four weeks of pregnancy, and the increase had already begun in the first part of pregnancy. The authors noted that unless consumption was reduced, caffeine would accumulate, and that an intake considered high but not excessive in normal conditions could produce adverse effects during pregnancy. That slower clearance is part of why pregnancy guidance on caffeine is stricter, which we cover in our article on caffeine during pregnancy.
Babies clear caffeine very slowly
Newborn babies have immature liver enzymes and clear caffeine extremely slowly. Aranda and colleagues[10] followed caffeine elimination in seven infants aged from two and a half weeks to six months. Adult rates of caffeine clearance were reached at three to four and a half months of age, and the half-life and elimination rate reached adult levels over the same period, after which clearance appeared to exceed adult capacity. That developmental delay is directly relevant to breastfeeding, since caffeine passes into breast milk, which is covered in our article on caffeine and breastfeeding.
How long caffeine affects sleep
The practical version of this question is usually about sleep. Drake and colleagues[11] gave people 400 mg of caffeine at bedtime, three hours before bedtime or six hours before bedtime, compared with placebo, and measured sleep at home both by self-report and with a portable sleep monitor. All three timings significantly disturbed sleep compared with placebo, including the dose taken six hours before bed. The authors concluded that caffeine six hours before bedtime has important disruptive effects, supporting advice to avoid substantial caffeine for at least six hours before bed.
That study used a large dose, equivalent to several cups of coffee, and six hours was the earliest time tested, not a proven safe cut-off. For a person with a long half-life, the relevant window could be longer. Our article on caffeine and sleep goes into that research in more detail.
Putting the timeline together
For a typical healthy adult who does not smoke, is not pregnant and is not taking oral contraceptives, the pattern looks like this: caffeine starts rising within minutes, peaks around 40 minutes to an hour after a coffee, and then falls by half every several hours. Traces remain well into the evening from an afternoon cup. Smokers will usually clear it faster. Women on hormonal contraception, and especially pregnant women, can clear it far more slowly, and in late pregnancy a single morning coffee may still be substantially present at night.
Combine that with the variation in how much caffeine a cup contains, and the range of real-world experiences makes sense. A strong café coffee drunk by a slow metaboliser can behave like several ordinary cups in a fast one.
It is also worth separating how long caffeine stays in the blood from how long you feel it. Regular users develop tolerance to many of its effects, so the level at which someone notices caffeine differs between people. A heavy daily drinker may feel nothing from an amount that keeps an occasional drinker awake, even if both clear it at the same rate.
The limits of this evidence
Most of the classic pharmacokinetic studies here are small, often with fewer than 15 people per group, and several are decades old. Their core findings on absorption, smoking, contraceptives and pregnancy have been consistent enough to become standard pharmacology, which is why this article carries a strong evidence rating. But the exact half-life figures come from specific groups and should be read as illustrations of the range rather than personal predictions. None of these studies can tell you your own half-life, which depends on your genes, medications, liver health and habits.
The practical answer
Caffeine from coffee typically peaks within about 40 minutes and has a half-life that commonly sits somewhere between a few hours and ten hours in healthy adults, with pregnancy and hormonal contraception at the long end and smoking at the short end. Because it fades gradually, a meaningful amount can remain long after you stop feeling alert, and controlled research found sleep disrupted by caffeine taken six hours before bed.
If you are sensitive to caffeine, sleep badly, have recently quit smoking, take hormonal contraception or are pregnant, the evidence supports moving your last coffee earlier. Some medications also slow caffeine clearance substantially, which is covered in our article on caffeine and medication interactions. For practical cut-off times, see our guide to when to stop drinking coffee for sleep. Nothing here is medical advice.