Sleep · Updated November 2026

Afternoon Coffee vs Tea for Sleep: Which Keeps You Up Less?

When people compare afternoon coffee vs tea for sleep, tea usually wins, simply because it carries less caffeine. An 8-ounce brewed coffee has about 96 mg of caffeine, while the same cup of black tea has about 48 mg and green tea about 29 mg. Less caffeine at 3 p.m. means less left in your system at bedtime, so tea is gentler, but a large tea late in the day can still cost you sleep.

That's the short answer. The longer answer is more useful, because the drink itself matters less than three things: how much caffeine is in your actual cup, how many hours sit between that cup and lights-out, and how sensitive your body is. Below, we'll compare the two head to head, then give you a simple way to pick your afternoon drink based on your bedtime.

Caffeine per cup: the numbers that matter

Mayo Clinic's caffeine content chart gives typical values. Real cups vary with brewing time, leaf or bean type, and serving size, so treat these as ballparks.

Drink (8 oz / 237 mL unless noted)Typical caffeineRelative to brewed coffee
Brewed coffee~96 mg100%
Espresso (1 oz shot)~63 mg~65%
Instant coffee~62 mg~65%
Brewed black tea~48 mg~50%
Brewed green tea~29 mg~30%
Bottled black tea~26 mg~27%
Decaf coffee~1–2 mg~2%
Herbal tea (chamomile, rooibos, peppermint)0 mg0%

Two catches hide in that table. First, coffee-shop sizes are rarely 8 ounces; a 16-ounce "grande" brewed coffee can easily pass 300 mg. Second, a strongly brewed black tea steeped for five minutes or more moves noticeably toward coffee territory. If your "tea" is a large chai latte or a mug of builder's tea left to stew, you may be drinking more caffeine than you think.

Why the afternoon cup shows up at night

Caffeine works by blocking adenosine, the chemical that builds up while you're awake and makes you feel sleepy. Your liver clears it slowly. A systematic analysis of caffeine pharmacokinetics across 141 studies found very large person-to-person differences in how fast caffeine is cleared, shaped by smoking, oral contraceptives, liver health and certain medications. For many healthy adults the half-life lands somewhere around four to six hours, which means roughly half of a 3 p.m. dose may still be active at 8 or 9 p.m.

The sleep research is clear that this lingering dose matters. In a well-known trial, 400 mg of caffeine taken six hours before bed still reduced sleep by more than an hour compared with placebo, even though many participants didn't notice the difference themselves. A 2023 meta-analysis of 24 studies found caffeine cut total sleep time by about 45 minutes, reduced deep sleep and increased light sleep. Its practical takeaway: a standard coffee of roughly 107 mg should be finished at least 8.8 hours before bedtime to avoid losing sleep.

Run the math for a 10:30 p.m. bedtime and that coffee cutoff lands around 1:45 p.m. That's why a "harmless" 3 p.m. latte so often shows up as tossing and turning, or as shallow, unrefreshing sleep you don't connect to the cup at all.

Coffee vs tea head to head

Caffeine dose

Tea wins clearly. A cup of black tea is roughly half a coffee, and green tea about a third. If the meta-analysis estimate scales with dose, a small green tea in the mid-afternoon carries far less sleep risk than a coffee at the same time.

How it feels

Many people describe tea as a smoother lift with less of a jittery spike. Tea contains L-theanine, an amino acid studied for its calming effects. A 2025 meta-analysis on L-theanine and sleep reviewed its effects on sleep outcomes, and research interest is growing, but the amount in a single cup is smaller than the doses used in supplement trials. Treat theanine as a nice bonus, not a reason a large late tea is "safe."

The add-ons

An afternoon coffee often comes with syrups, whipped cream and a pastry, and big sugar swings can leave you hungry or wired later. Plain tea or black coffee sidesteps that. If you're also trying to cut sugar, the flavored coffee drink is usually the bigger problem than the caffeine.

Hydration

Neither is dehydrating in normal amounts. Both count toward fluid intake, though drinking a lot of anything late in the evening can mean more bathroom trips overnight.

Pick your afternoon drink by bedtime

Use this as a starting point, then adjust based on how you actually sleep.

If your bedtime is…Last regular coffeeLast black teaAfter that, switch to
9:30 p.m.~12:30 p.m.~2:30 p.m.Green tea (small), decaf, herbal
10:30 p.m.~1:30 p.m.~3:30 p.m.Decaf or herbal
11:30 p.m.~2:30 p.m.~4:30 p.m.Decaf or herbal
After midnight~3:00 p.m.~5:00 p.m.Decaf or herbal

The tea column assumes roughly half the dose clears in a shorter window; it's an estimate, not a lab measurement. If you're sensitive to caffeine, pregnant, older, or taking medications that slow caffeine breakdown, move every cutoff earlier. For a fuller breakdown of timing, see our guide to the best time to stop caffeine for sleep.

A smarter afternoon routine

If 3 p.m. is your energy dip, a drink is only one tool. Try these in order:

  1. Get up and move first. A 10-minute walk outside gives you daylight and a lift. Our guide to the best time to walk for fat loss explains why short post-meal walks are worth it beyond energy.
  2. Drink water. Mild dehydration feels a lot like fatigue.
  3. If you still want caffeine, go small and light. A small green tea or half-caf beats a large coffee.
  4. Make the late cup decaf. Decaf coffee keeps the ritual and taste with about 1–2 mg per cup.
  5. Look at your nights. A strong daily crash often points to short or poor sleep. Our sleep hygiene checklist is a good place to start.

Signs your afternoon drink is hurting your sleep

  • You take longer than about 30 minutes to fall asleep most nights.
  • You wake at 2 or 3 a.m. and feel alert.
  • You sleep "enough" hours but wake unrefreshed.
  • Your sleep improves on weekends or days you skip the afternoon cup.

Try a two-week experiment: move your last caffeinated drink two hours earlier, or switch it to decaf or herbal, and note sleep onset and morning energy. If nothing changes and sleep problems continue, caffeine may not be the main cause, and it's worth talking to a clinician. The NHLBI's overview of insomnia is a helpful primer on when poor sleep needs medical attention. For more sleep guides, visit the Humantra Sleep hub.

Frequently asked questions

Is tea better than coffee in the afternoon for sleep?

Usually, yes. Black tea has about half the caffeine of brewed coffee and green tea about a third, so less is left in your system at bedtime. A large or strongly brewed tea can still disrupt sleep.

How late can I drink green tea without affecting sleep?

Many people tolerate a small green tea until mid-afternoon, around six to seven hours before bed. If you're sensitive to caffeine, stop earlier or choose decaf green tea or an herbal tea.

Does decaf coffee affect sleep?

Decaf has only about 1–2 mg of caffeine per 8-ounce cup, so it rarely affects sleep. Very large amounts or many cups late at night could still matter for highly sensitive people.

Does the L-theanine in tea cancel out the caffeine?

Not fully. L-theanine may smooth caffeine's edge, but the amount in one cup is small compared with supplement studies, and the caffeine still lingers for hours.

How many hours before bed should I stop drinking coffee?

A 2023 meta-analysis suggests finishing a standard coffee at least 8.8 hours before bed to avoid losing sleep. For a 10:30 p.m. bedtime, that means your last coffee should be around 1:45 p.m.

Are herbal teas caffeine-free?

True herbal teas like chamomile, rooibos and peppermint are naturally caffeine-free. Blends that include green tea, black tea, yerba mate or guayusa do contain caffeine, so check the label.

Medical disclaimer: This article is for general educational purposes only and is not medical advice, diagnosis, or treatment. Persistent trouble sleeping, loud snoring, gasping at night, or heavy daytime sleepiness can signal a sleep disorder; talk with a qualified healthcare professional, especially if you have a health condition, take medication, or are pregnant. Never drive or operate machinery while drowsy.

Sources

  1. Mayo Clinic – Caffeine content for coffee, tea, soda and more
  2. Gardiner C, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev, 2023 (PubMed)
  3. Drake C, et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med, 2013 (PubMed)
  4. Grzegorzewski J, et al. Pharmacokinetics of caffeine: a systematic analysis of reported data. Front Pharmacol, 2022 (PubMed)
  5. Bulman A, et al. The effects of L-theanine consumption on sleep outcomes: a systematic review and meta-analysis. Sleep Med Rev, 2025 (PubMed)
  6. NHLBI (NIH) – Insomnia