Coffee and sleep: caffeine half-life and how late you can drink coffee
Caffeine has a half-life of about 5 to 6 hours in a healthy adult, meaning the time the body needs to clear half of it. This duration varies widely between individuals, from 1.5 to 9 hours, mainly depending on metabolism (the CYP1A2 enzyme). To protect sleep, it is generally advised to avoid caffeine roughly 6 to 8 hours before bed. Caffeine works by blocking adenosine receptors, the molecule that signals tiredness to the brain.
- Average caffeine half-life: about 5 to 6 hours (individual range 1.5 to 9 h)
- Peak blood concentration: roughly 30 to 60 minutes after intake
- Mechanism: caffeine blocks adenosine receptors, masking the sense of sleepiness
- To protect sleep: avoid caffeine 6 to 8 hours before bed
- Common intake reference for a healthy adult: up to about 400 mg of caffeine per day (not during pregnancy)
- Strong individual factors: genetics (CYP1A2), pregnancy, smoking, certain medications
What is the half-life of caffeine?
The half-life of a substance is the time the body needs to clear half of it. For caffeine, that half-life averages about 5 to 6 hours in a healthy adult. In other words, if you take in 80 mg of caffeine with a coffee, around 40 mg is still active in your body 5 to 6 hours later, then about 20 mg after 10 to 12 hours. Caffeine does not disappear all at once: it tapers off gradually.
After intake, caffeine is absorbed quickly through the digestive tract. Its blood concentration usually peaks within 30 to 60 minutes, which explains the stimulant effect felt soon after the cup. It is then metabolized by the liver, mainly through the CYP1A2 enzyme, before being eliminated.
The key takeaway is the wide individual variability. The reference half-life of 5 to 6 hours is only an average. Depending on the person, it can drop to around 1.5 hours in very fast metabolizers, or exceed 9 hours in slow metabolizers and in certain specific situations. Two people drinking the same coffee at the same time will therefore not have the same amount of active caffeine at bedtime.
Why caffeine disrupts sleep
Caffeine works mainly by blocking adenosine receptors in the brain. Adenosine is a molecule that builds up steadily during waking hours and pushes us toward sleep: it is one of the signals of sleep pressure. By binding to the same receptors, caffeine prevents adenosine from delivering its tiredness message. The brain then feels more alert, while the underlying sleep pressure keeps rising.
This has direct consequences for the night when caffeine is consumed too late. Sleep studies report that caffeine taken in the late afternoon or evening can lengthen the time needed to fall asleep, shorten deep sleep and increase the number of brief awakenings. Sleep becomes lighter and more fragmented, even if the person manages to fall asleep.
One point that is often underestimated: you can fall asleep despite caffeine and still have poorer-quality sleep. The subjective feeling of having slept well is not always reliable. That is why timing matters more than simply being able to close your eyes.
How late can you drink coffee?
The reasoning follows directly from the half-life. If caffeine takes about 5 to 6 hours to halve, a coffee in the late afternoon still leaves a noticeable fraction of active caffeine at bedtime. Many sleep specialists therefore suggest avoiding caffeine roughly 6 to 8 hours before the planned bedtime.
The calculation is simple: start from your usual bedtime and subtract 6 to 8 hours. For an 11 p.m. bedtime, the last coffee would fall rather before 3 to 5 p.m. For an earlier bedtime, around 10 p.m., aim for a last coffee before 2 to 4 p.m. These windows are averages: a sensitive person or a slow metabolizer is better off stopping earlier, while a fast metabolizer sometimes tolerates a slightly later coffee with no noticeable effect.
Beyond timing, dose also matters. For a healthy adult, common intake references place a moderate amount at up to about 400 mg of caffeine per day, the equivalent of several coffees. Later in the day, cutting the quantity, choosing a shorter coffee or switching to decaf are simple ways to limit active caffeine at bedtime.
Individual factors that change the half-life
Genetics (the CYP1A2 enzyme): this is the most decisive factor. Certain genetic variants make caffeine metabolism fast, others slow. Slow metabolizers keep caffeine longer and are often more sensitive to its effect on sleep.
Pregnancy: during pregnancy, caffeine clearance slows markedly and its half-life can increase substantially. Health authorities generally recommend strongly limiting caffeine intake during this period.
Smoking: smoking speeds up caffeine metabolism and shortens its half-life. Conversely, quitting smoking can increase sensitivity to caffeine at the same dose.
Certain medications: several medications, including some oral contraceptives and a few antibiotics, can slow caffeine clearance and prolong its effects. Others speed it up.
Age and liver health: liver function influences clearance speed, which can lengthen the half-life in some people.
Table: bedtime and recommended last coffee
This table applies the 6 to 8 hours before bedtime rule. The times are average reference points for a healthy adult, to be adjusted to your own sensitivity.
| Bedtime | Recommended last coffee (6 to 8 h window) |
|---|---|
| 9:00 p.m. | before 1:00 to 3:00 p.m. |
| 10:00 p.m. | before 2:00 to 4:00 p.m. |
| 11:00 p.m. | before 3:00 to 5:00 p.m. |
| 12:00 a.m. | before 4:00 to 6:00 p.m. |
If you are markedly sensitive to caffeine, take the earlier end of each window, or move the last coffee even earlier, into the start of the afternoon.
Frequently asked questions about coffee and sleep
What is the half-life of caffeine?
In a healthy adult, the half-life of caffeine averages about 5 to 6 hours, the time needed to clear half of the dose present in the blood. It varies widely between people, roughly 1.5 to 9 hours, depending on metabolism (the CYP1A2 enzyme), age, pregnancy, smoking and certain medications.
How late can you drink coffee without disrupting sleep?
Because caffeine has a long half-life, many sleep specialists suggest avoiding caffeine roughly 6 to 8 hours before bed. For an 11 p.m. bedtime, that means a last coffee before 3 to 5 p.m.; for a 10 p.m. bedtime, rather before 2 to 4 p.m. Sensitive people benefit from stopping earlier.
Why does caffeine keep you awake?
Caffeine blocks adenosine receptors, the molecule that builds up through the day and promotes sleep. By masking tiredness, it can lengthen the time to fall asleep, reduce deep sleep and fragment the night, even when falling asleep is still possible.
Does decaf coffee really contain less caffeine?
Yes. Decaf is not entirely caffeine-free, but it contains a very small amount, a few milligrams per cup, compared with about 80 to 100 mg for a filter coffee or a double espresso. Later in the day, it is a common way to keep the pleasure of coffee while limiting the effect on sleep.
This article provides general information for educational purposes. It does not constitute personalized medical advice. For any question about your sleep, your caffeine intake or an ongoing treatment, consult a healthcare professional.
Read more: Specialty coffee FAQ · Coffee glossary · All guides