WhenToBed

When to stop drinking caffeine before bed

A safe general habit is to keep caffeine to the morning and early afternoon. The exact time depends on how much you drink, how quickly your body clears it and when you go to bed. A mug of coffee and a cup of green tea do not deserve the same deadline.

Cut-off times for an 11 PM bedtime

Latest time for a single drink so that no more than about 50 mg is estimated to remain at 11:00 PM.
DrinkCaffeine5-hour half-life8-hour half-life
Brewed coffee, 12 fl oz (355 ml)180 mg1:45 PM8:12 AM
Brewed coffee, 8 fl oz (240 ml)120 mg4:41 PM12:53 PM
Espresso, single shot63 mg9:19 PM8:19 PM
Black tea, 12 fl oz (355 ml)71 mg8:28 PM6:57 PM
Green tea, 12 fl oz (355 ml)37 mgAny timeAny time
Caffeinated soft drink, 12 fl oz (355 ml)53 mg10:34 PM10:19 PM
Energy drink, 12 fl oz (355 ml)140 mg3:34 PM11:06 AM

These are estimates from a simple formula, and the 50 mg target is a planning choice made for this site, not a medical threshold. “Any time” means a single serving is already close to or under that figure, though several servings add up. Enter your own drinks and bedtime in the caffeine cut-off calculator.

What the 6-hour study found

In 2013, researchers gave 12 healthy sleepers 400 mg of caffeine either at bedtime, 3 hours before, or 6 hours before, and compared each with a placebo. This was a double-blind trial, so participants did not know which pill was which.

All three timings disturbed sleep. Even the dose taken 6 hours early reduced measured sleep by more than an hour. The participants’ own sleep diaries recorded a smaller loss, which did not quite reach statistical significance. The authors concluded that substantial caffeine should be avoided for at least 6 hours before bed.

Keep the limits in view. The group was small, and 400 mg is a large single dose, similar to two or more big coffees at once. A smaller drink would be expected to matter less. The study still shows two useful things: caffeine can act long after you drink it, and you may not notice the whole effect.

Why one rule does not fit everyone

The body removes caffeine gradually. The time taken to clear half is called the half-life. The European Food Safety Authority gives an average of about 4 hours in healthy adults, with a range of roughly 2 to 8. It notes that age, body weight, pregnancy, medicines and liver health all play a part.

That spread is why the table shows two columns. If an afternoon tea keeps you awake while your friend sleeps soundly after an evening espresso, you may both be normal. Our guide to how long caffeine stays in your system works through the numbers.

Drinks add up

A cut-off for one drink assumes a clean slate. Three coffees through the morning still leave something behind in the evening, which brings the deadline for a fourth forward. Count everything: coffee, tea, cola, energy drinks, pre-workout powders and some pain relievers. Chocolate contains a little too.

The FDA has cited 400 mg a day as an amount not generally associated with negative effects in most adults. That figure is about overall safety, not about sleeping well. Some people sleep badly on far less. Advice is different during pregnancy and for children, so ask a health professional.

Hidden sources in the evening

  • Black and green tea after dinner.
  • Cola and other caffeinated soft drinks with a meal.
  • Iced coffee drinks, which can be larger than they look.
  • Coffee-flavoured desserts and some chocolate.
  • “Energy” gum, shots or supplements.

Labels do not always list the amount. If you cannot find it, assume there may be more than you think.

How to move your cut-off earlier

  1. Note your pattern for three days: what, how much and when.
  2. Pick a new last-drink time about an hour earlier than today.
  3. Swap, do not just remove. Replace the late cup with decaf, a caffeine-free infusion or water.
  4. Step down over a week or two. Cutting a heavy habit suddenly can bring headaches and fatigue.
  5. Check your sleep after the change, then adjust again if needed.

If the afternoon slump is the problem

Many late coffees are an answer to tiredness. Try daylight, a brisk walk, water or a short rest. A 20-minute nap taken in the early afternoon can help more than another cup; the nap calculator sets the alarm. Over the longer term, the most reliable fix for an afternoon slump is enough sleep at night. The Centers for Disease Control and Prevention lists avoiding caffeine in the afternoon or evening among its basic habits for better sleep.

Test your own limit

Choose a cut-off from the table and hold it for two weeks. Keep your bedtime and wake time steady, so that caffeine is the main change. Notice how long you take to fall asleep, how often you wake and how you feel in the morning. If nights improve, keep the earlier time. If nothing changes, look at other causes such as light, noise, alcohol, stress or an irregular routine.

Different days, different deadlines

Your cut-off follows your bedtime. If you go to bed at 10:00 PM on weeknights, move every time in the table an hour earlier. If you work late shifts and sleep at 2:00 AM, they move three hours later. Night workers often find it useful to have caffeine near the start of a shift and none in its second half, so that daytime sleep is not made harder than it already is.

Ordering out

Café sizes vary a great deal, and a larger cup may include an extra shot. Ask how many shots it contains, choose the small size later in the day and say clearly when you want decaf.

Bottom line

Count back from bedtime, allow more time for bigger drinks, and be more cautious if you are sensitive. When in doubt, make the last cup earlier.

Frequently asked questions

Is 2 PM a good caffeine cut-off?

It is a reasonable rule of thumb for an 11 PM bedtime and a moderate drink, but a large coffee may call for earlier, and a cup of green tea may be fine later.

Is 6 hours before bed enough?

Not always. A study found that 400 mg taken 6 hours before bed still cut sleep by more than an hour.

Can I drink coffee at night if I fall asleep fine?

Falling asleep is not the only measure. In the same study, people did not report the disruption from the 6-hour dose as clearly as the sleep monitor recorded it.

Does decaf count?

Decaf has a small amount, about 2 to 15 mg in 8 fluid ounces according to the FDA. For most people that is minor.

Does food change how fast caffeine works?

A meal can slow how quickly you feel a drink, but do not rely on food to remove caffeine sooner.

Should I stop caffeine completely to sleep better?

Not necessarily. Many people sleep well after moving it earlier or drinking less. Stopping for two weeks is one way to test how much it affects you.

Sources

  1. Caffeine Effects on Sleep Taken 0, 3, or 6 Hours before Going to Bed (Drake et al., 2013). Journal of Clinical Sleep Medicine.
  2. EFSA explains risk assessment: Caffeine. European Food Safety Authority.
  3. Spilling the Beans: How Much Caffeine Is Too Much?. U.S. Food and Drug Administration.
  4. About Sleep. Centers for Disease Control and Prevention.
  5. FoodData Central. U.S. Department of Agriculture.

Keep going