Caffeine's half-life in adults is 3–7 hours, so half of an afternoon cup is still in you hours later. At a 5-hour half-life, an 8 fl oz mug of black tea (about 47 mg) drunk at 3 pm leaves about 16 mg at 11 pm. In the best-known timing study, 400 mg of caffeine taken 6 hours before bed cut measured sleep by more than an hour in 12 adults; a 2025 trial in 23 young men found no measurable effect from 100 mg taken 4 hours before bed.

This article reports what the studies measured: who took part, how much caffeine, and when. It is not medical advice. For caffeine per cup by tea type, see caffeine in tea vs coffee; for how brew time changes it, see tea caffeine by steep time.

How long caffeine stays in your body

Caffeine's half-life is the time your body takes to clear half of it. A 2017 review in Frontiers in Psychiatry gives 3–7 hours in adults and notes that serum levels peak about 2 hours after you drink it. The authors of a 2025 sleep trial used "typically 3–6 hours" when they set their washout period.

The liver does most of the work. A 2018 Pharmacological Reviews paper states that the CYP1A2 enzyme metabolizes 95% of the caffeine you take in, and that genetic variation in that enzyme is the main reason half-life differs so much between people.

The arithmetic is simple. Caffeine left = dose × 0.5^(hours ÷ half-life). We use 5 hours below because it sits in the middle of the 3–7 hour range. It is an assumption, not your number.

  • 47 mg at 3 pm, 8 hours to an 11 pm bedtime: 47.4 × 0.5^(8 ÷ 5) = 15.6 mg, or 33% of the cup.
  • The same mug at 5 pm leaves 21 mg; at 7 pm, 27 mg.

The formula ignores the roughly 2-hour absorption peak, so it slightly overstates what is left in the first hours and is close enough by bedtime.

What changes your half-life

The 3–7 hour range is wide because several common conditions move it. These are the ones with published numbers.

FactorMeasured effectSource
SmokingDoubles the rate of caffeine clearanceTemple 2017
SmokingHalf-life 6.0 h in non-smokers vs 3.5 h in smokers (study cited in review)Hereditas review 2026
Quitting smokingClearance fell 36.1% within days in 12 heavy smokersFaber & Fuhr 2004
Oral contraceptivesTend to double the half-lifeTemple 2017
PregnancyHalf-life on average 8.3 h longer, up to 16 h longerTemple 2017
Late pregnancyAbout 3 h in non-pregnant women vs up to 10.5 h in the final weeksHereditas review 2026

A 2021 systematic analysis of published caffeine pharmacokinetic data found the same direction across studies: smoking shortens half-life and oral contraceptive use lengthens it, over a wide range of doses. Liver disease, alcohol and some drugs also slow clearance, per the same reviews.

Here is what that spread does to one 47 mg mug drunk at 3 pm, measured at 11 pm:

Half-life usedCaffeine left at 11 pmShare of the cup
3.5 h (smoker figure cited in the 2026 review)10 mg21%
5 h (middle of the 3–7 h adult range)16 mg33%
7 h (top of the adult range)21 mg45%
10.5 h (final weeks of pregnancy, 2026 review)28 mg59%

Sources: half-life values from Temple 2017 and the 2026 Hereditas review; per-cup caffeine from USDA FoodData Central. Remaining caffeine is our calculation.

Caffeine left at bedtime

Enter what you drank and when. The result is arithmetic (mg × 0.5^(hours ÷ half-life)), not a sleep forecast.

Caffeine drunk47 mg
Left at 11 pm16 mg
Share still in you33%

The sleep trials gave 100 mg and 400 mg caffeine pills, not tea; none tested a cup of tea.

Numbers from: fdc.nal.usda.gov (1); fdc.nal.usda.gov (2); pmc.ncbi.nlm.nih.gov (1); pmc.ncbi.nlm.nih.gov (2).

What the sleep studies measured

Three studies give most of the timing evidence. Their doses are much higher than one cup of tea, which matters when you read the headlines.

StudyWhoDose and timingMain result
Drake et al. 201312 adults (6 women, 6 men), aged 19–48400 mg pill at 0, 3 or 6 h before bed, vs placeboTotal sleep time cut by 1.1–1.2 h at every time point, measured at home with a sleep monitor
Gardiner et al. 2023Meta-analysis of 24 studiesVariousCaffeine cut total sleep by 45 min and sleep efficiency by 7%; time to fall asleep up 9 min
Gardiner et al. 202523 men, mean age 25.3, habitual intake under 300 mg/day100 or 400 mg at 12, 8 or 4 h before bed, vs placebo100 mg: no significant effect at any time; 400 mg: delayed sleep onset even at 12 h

Two details from these papers are easy to miss. In Drake's study, people taking caffeine 6 hours before bed did not report worse sleep in their diaries, but the monitor still recorded the loss. Gardiner 2025 found the same gap between felt and measured sleep and wrote that people "may have difficulty accurately perceiving the influence of caffeine on sleep quality."

The 2023 meta-analysis also modeled cut-off times. To avoid a drop in total sleep, it estimated that a 107 mg cup of coffee (250 mL) should be drunk at least 8.8 hours before bed, and a 217.5 mg pre-workout serving at least 13.2 hours before.

None of these studies tested tea. They tested caffeine pills or capsules. One 8 fl oz mug of black tea holds about 47 mg by USDA's figure, roughly a ninth of the 400 mg dose in Drake's study.

Caffeine left at bedtime, cup by cup

A white porcelain mug of amber black tea on a wooden windowsill in low late-afternoon sun, long shadows across the sill

This table applies the 5-hour half-life to common drinks, for an 11 pm bedtime. Treat it as arithmetic, not a forecast of how you will sleep.

DrinkCaffeine per servingLeft at 11 pm if drunk at 3 pmat 5 pmat 7 pm
Decaf black tea, 8 fl oz2 mg<1 mg1 mg1 mg
Green tea, 8 fl oz28 mg9 mg12 mg16 mg
Oolong tea, 8 fl oz38 mg13 mg17 mg22 mg
Black tea, 8 fl oz47 mg16 mg21 mg27 mg
Matcha, 2 g (high end of range)89 mg29 mg39 mg51 mg
Brewed coffee, 8 fl oz95 mg31 mg41 mg54 mg

Sources: per-serving values from USDA FoodData Central (8 fl oz = 237 g) and the matcha range of 18.9–44.4 mg/g in our caffeine comparison. Remaining caffeine is our calculation at a 5 h half-life.

For scale, the 2025 trial's 100 mg dose taken 4 hours before bed would leave about 57 mg at bedtime under the same assumption, and that dose showed no significant sleep effect in those 23 men. A 7 pm mug of black tea leaves about 27 mg. Two mugs at 7 pm leave about 54 mg. A cup of coffee at 3 pm leaves about 31 mg.

Steep time moves these numbers. A 5-minute steep extracts more caffeine than a 2-minute one; our steep-time article has the extraction curves.

A 3 pm mug of black tea leaves 16 mg at 11 pm

Caffeine remaining from 3 pm to 11 pm for 6 drinks taken at 3 pm, at a 5-hour half-life: Decaf black tea, 8 fl oz 0.8 mg at 11 pm; Green tea, 8 fl oz 9.4 mg at 11 pm; Oolong tea, 8 fl oz 12.5 mg at 11 pm; Black tea, 8 fl oz 15.6 mg at 11 pm; Matcha, 2 g (high end of range) 29.3 mg at 11 pm; Brewed coffee, 8 fl oz 31.3 mg at 11 pm. Dashed line at 57.4 mg.0204060801003 pm5 pm7 pm9 pm11 pmClock time (drink at 3 pm, bedtime 11 pm)Caffeine remaining (mg)57 mg: 100 mg pill, 4 h
  • Decaf black tea, 8 fl oz, 2 mg
  • Green tea, 8 fl oz, 28 mg
  • Oolong tea, 8 fl oz, 38 mg
  • Black tea, 8 fl oz, 47 mg
  • Matcha, 2 g (high end of range), 89 mg
  • Brewed coffee, 8 fl oz, 95 mg
  • 100 mg dose taken 4 h before bed: 57 mg left (no significant sleep effect in Gardiner 2025)
Each drink is taken at 3 pm and decays as mg × 0.5^(hours ÷ 5), using a 5-hour half-life from the middle of the 3–7 h adult range. It is an assumption, not your number; absorption (serum peak about 2 h) is ignored. Per-serving caffeine is USDA's value per 100 g scaled to an 8 fl oz cup; matcha is 2 g at the top of the measured 18.9–44.4 mg/g range. Sources: fdc.nal.usda.gov (1); fdc.nal.usda.gov (2); pmc.ncbi.nlm.nih.gov (1); pmc.ncbi.nlm.nih.gov (2); pmc.ncbi.nlm.nih.gov (3).

Evening options: decaf, herbal, and low-caffeine tea

Three ways to drink tea late without much caffeine:

  1. Decaf tea. USDA lists decaffeinated brewed black tea at about 2 mg per 8 fl oz. Decaf is not caffeine-free; methods and residues are in how tea is decaffeinated.
  2. Herbal infusions. Chamomile, rooibos and honeybush are not made from the tea plant (Camellia sinensis). See rooibos and honeybush.
  3. Smaller, shorter cups of real tea. Less leaf and a shorter steep both reduce caffeine. Applying the formula above, halving the dose halves what is left at bedtime.

L-theanine, the amino acid in tea that is often sold for sleep, has its own trial record. We covered the doses and the industry funding behind those trials in L-theanine and caffeine: what the studies show, and a cup of tea contains far less than the trial doses.

Chamomile: what the trials found

A glass teapot of pale yellow chamomile infusion beside a small bowl of dried chamomile flowers on a linen cloth in dim evening lamplight

The evidence for chamomile and sleep is mixed. The reviews disagree because they pool different people, different products and different outcomes.

  • Kazemi et al. 2024: 10 studies, 772 participants. Pooled Pittsburgh Sleep Quality Index (PSQI) score fell by 1.88 points across 5 studies, with high heterogeneity (I² 88.4%). Sleep duration, sleep efficiency and daytime functioning did not improve. Only one study checked whether blinding worked.
  • Hieu et al. 2019: 12 randomized trials. Sleep quality improved (standardized mean difference −0.73). Only one trial measured insomnia severity, and it found no significant change.
  • Leach & Page 2015: 14 trials, 1,602 people with insomnia, covering valerian, chamomile, kava and wuling. No herbal medicine beat placebo on any of 13 efficacy measures.
  • Chang & Chen 2016: one of the few trials that used chamomile tea itself. 80 Taiwanese postnatal women with poor sleep, 40 drinking chamomile tea for 2 weeks and 40 on usual care (no placebo drink). Sleep-related scores improved at 2 weeks, but the groups were similar again at 4 weeks.

What the reviews support: chamomile may improve self-rated sleep quality a little in some groups. What they do not support: longer sleep, or a treatment for insomnia. A cup of chamomile does carry one plain advantage in the evening: it is not a caffeine source.

Frequently Asked Questions

How long does the caffeine in a cup of tea last?

Caffeine's half-life in adults is 3–7 hours, per a 2017 review. At 5 hours, an 8 fl oz mug of black tea with about 47 mg leaves about 16 mg 8 hours later. Smoking shortens the half-life; oral contraceptives and pregnancy lengthen it.

What time should I stop drinking tea before bed?

No study has tested tea itself. The trials used caffeine pills: 400 mg cut sleep by more than an hour even 6 hours before bed in 12 adults, while 100 mg taken 4 hours before bed showed no significant effect in 23 young men. A mug of black tea holds about 47 mg, so most of the timing advice in the press is built on doses 2 to 9 times larger.

Is green tea better than black tea at night?

USDA's per-cup figures are about 28 mg for green tea and 47 mg for black tea. At a 5-hour half-life, a 7 pm cup leaves about 16 mg and 27 mg respectively at 11 pm. Brew strength can erase that gap, so the steep matters as much as the type.

Does chamomile tea help you sleep?

Reviews disagree. A 2024 meta-analysis of 10 studies (772 people) found a 1.88-point improvement on the PSQI sleep-quality score but no change in sleep duration, and a 2015 review of 14 insomnia trials found no herbal medicine better than placebo. The one 80-person trial of chamomile tea found benefits at 2 weeks that were gone by 4 weeks.

Is decaf tea caffeine-free?

No. USDA lists decaffeinated black tea at about 2 mg per 8 fl oz, against about 47 mg for regular black tea. At a 5-hour half-life, a 7 pm cup of decaf leaves under 2 mg at 11 pm.

Health note: We write about tea, not medicine. Caffeine, L-theanine and catechin figures here come from the sources we cite and vary by leaf, harvest and steep. If you are pregnant, on medication or limiting caffeine, ask your doctor, and tell us at hello@myteaexplorer.com if you find an error.