Sleep · Updated November 2026

Caffeine Cutoff Time by Bedtime: Work Backward From Lights-Out

Your caffeine cutoff time by bedtime is simple to find: start with the time you want to be asleep and count backward about 9 hours for a regular coffee and about 13 hours for a strong pre-workout or energy shot. For a 10:30 p.m. bedtime, that puts your last coffee near 1:30 p.m. Lighter drinks like green tea can run a few hours later; sensitive people should start earlier.

Most caffeine advice gives you one rule ("no coffee after 2 p.m.") for everyone. But a nurse who sleeps at 8 a.m., a student who sleeps at 1 a.m., and a parent in bed by 9:30 p.m. need different curfews. This guide gives you a work-backward method you can apply to your own schedule, plus a lookup table you can screenshot.

If you want the background on why caffeine disrupts sleep, our explainer on the best time to stop caffeine for sleep covers the science. This page is the practical calculator.

Where the numbers come from

Two studies anchor the method.

  • A 2023 meta-analysis of 24 studies concluded that a standard coffee (about 107 mg in 250 mL) should be consumed at least 8.8 hours before bedtime, and a standard serve of pre-workout supplement (about 217.5 mg) at least 13.2 hours before bedtime, to avoid losing total sleep time.
  • A controlled trial found that 400 mg of caffeine taken even six hours before bed still reduced total sleep by more than an hour.

Typical drink amounts come from Mayo Clinic's caffeine content chart: about 96 mg in 8 ounces of brewed coffee, 63 mg in a single espresso, 48 mg in black tea and 29 mg in green tea. We rounded the meta-analysis timings into easy buffers and scaled them roughly by dose. That makes the table a practical estimate, not a medical prescription.

Step 1: Pick your target sleep time

Use the time you want to be asleep, not the time you get into bed. If you usually read for 20 minutes first, add that in. Shift workers should use the start of their main sleep period, whatever time of day that is.

Step 2: Find your drink's buffer

DrinkApprox. caffeineHours before sleep to finish
Pre-workout or energy shot150–300 mg13+ hours
Large coffee-shop brewed (16 oz)250–330 mg11–12 hours
Regular brewed coffee (8–12 oz)95–140 mg9 hours
Double espresso / latte with 2 shots~125 mg9 hours
Single espresso / instant coffee60–65 mg7–8 hours
Black tea or cola30–50 mg6–7 hours
Green tea~30 mg5–6 hours
Decaf coffee or tea1–2 mgNo real limit for most people

Step 3: Count backward

Subtract the buffer from your sleep time. That's your cutoff. Here it is pre-calculated for common bedtimes:

Target sleep timeLast pre-workoutLast regular coffeeLast single espressoLast black teaLast green tea
9:00 p.m.8:00 a.m.12:00 p.m.1:30 p.m.2:30 p.m.3:30 p.m.
10:00 p.m.9:00 a.m.1:00 p.m.2:30 p.m.3:30 p.m.4:30 p.m.
11:00 p.m.10:00 a.m.2:00 p.m.3:30 p.m.4:30 p.m.5:30 p.m.
12:00 a.m.11:00 a.m.3:00 p.m.4:30 p.m.5:30 p.m.6:30 p.m.
8:00 a.m. (night shift)7:00 p.m.11:00 p.m.12:30 a.m.1:30 a.m.2:30 a.m.

Notice the first column. If you train in the evening and use a pre-workout, the math basically says you can't have a full-dose stimulant pre-workout and a normal bedtime. Choose a caffeine-free version, halve the dose, or move training earlier.

Step 4: Adjust for your body

The table assumes an average healthy adult. A systematic review of caffeine pharmacokinetics shows big variation between people, so adjust honestly.

Move your cutoff 2–3 hours earlier if you:

  • Feel jittery or anxious after one cup
  • Are pregnant (caffeine clears much more slowly in later pregnancy)
  • Use oral contraceptives, which can slow caffeine breakdown
  • Take medications that interact with caffeine (ask your pharmacist)
  • Are over 60 or already struggle with light, broken sleep

You might tolerate a slightly later cutoff if you:

  • Smoke (smoking speeds caffeine clearance, though quitting is the bigger health win and will make you more sensitive)
  • Have tested a later cup for two weeks and genuinely see no change in sleep onset or quality

The FDA notes that sensitivity and elimination speed vary widely, and that about 400 mg a day is the general ceiling not associated with negative effects for most healthy adults. Staying under that total also makes your cutoff easier to respect.

Step 5: Test it for two weeks

Your feelings are a weak guide here. In the trial above, people often didn't notice that their sleep was shorter. So measure:

  1. Set your cutoff and a phone reminder 30 minutes before it.
  2. Log the time of your last caffeinated drink and its size.
  3. Each morning, note roughly how long it took to fall asleep, any long wake-ups, and how refreshed you feel (1–5).
  4. After 14 days, compare with a week of your old habit.

If sleep improves, keep the cutoff. If nothing changes, look at other common culprits: irregular wake times, late screens, alcohol, stress or an untreated sleep disorder. Our sleep hygiene checklist walks through the big ones, and if your mind races at night, try our guide to stop overthinking before bed.

Common cutoff mistakes

  • Forgetting hidden caffeine. Cola, iced tea, dark chocolate, some pain relievers and "focus" gummies all count.
  • Sizing up after the cutoff. One large coffee at 1 p.m. can be worse than two small cups at 8 and 10 a.m.
  • Treating weekends differently. A late brunch latte plus a late bedtime shifts your rhythm and can set up a rough Sunday night.
  • Using caffeine to cover short sleep. It works for the afternoon, then steals from tonight. If you rely on it daily, fixing sleep duration is the real lever.

What to drink after your cutoff

Having a plan for the afternoon slump makes the curfew far easier to keep. Good swaps include decaf coffee (same ritual, almost no caffeine), herbal teas like rooibos or peppermint, sparkling water with citrus, or a short walk in daylight. If you need a real energy boost after your cutoff most days, that's a signal to protect your sleep window rather than reach for another cup.

Find more practical guides on the Humantra Sleep hub.

Frequently asked questions

What time should I stop drinking coffee if I go to bed at 10 p.m.?

For a regular coffee, aim to finish around 1 p.m., about nine hours before sleep. If you're sensitive to caffeine, move it to late morning; green tea could run until mid-afternoon.

How do I calculate my caffeine cutoff?

Take your target sleep time and subtract a buffer based on your drink: about 9 hours for regular coffee, 6–7 hours for black tea, and 13 or more hours for a pre-workout or energy shot.

Is a 2 p.m. caffeine cutoff right for everyone?

No. It roughly fits an 11 p.m. bedtime with regular coffee. Earlier sleepers, sensitive people and anyone using strong drinks need an earlier cutoff, while night-shift workers need a completely different schedule.

Can I have pre-workout before an evening workout?

A full-dose stimulant pre-workout in the evening is likely to cut into sleep, since research suggests finishing it about 13 hours before bed. Choose a caffeine-free formula, a half dose, or earlier training.

Does decaf have a cutoff time?

Decaf has only about 1–2 mg of caffeine per cup, so most people can drink it in the evening. Very sensitive people can still test it.

Why don't I feel the caffeine but still sleep badly?

Caffeine can shorten sleep and reduce deep sleep even when you don't feel wired. That's why tracking sleep onset and morning energy for two weeks is more reliable than how you feel at bedtime.

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. Gardiner C, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev, 2023 (PubMed)
  2. Drake C, et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med, 2013 (PubMed)
  3. Mayo Clinic – Caffeine content for coffee, tea, soda and more
  4. U.S. FDA – Spilling the Beans: How Much Caffeine Is Too Much?
  5. Grzegorzewski J, et al. Pharmacokinetics of caffeine: a systematic analysis of reported data. Front Pharmacol, 2022 (PubMed)