MOTIVAITE

← SLEEP AND RECOVERY · GUIDE · 15 NOVEMBER 2026 · 4 MIN READ

Caffeine and sleep: when to have your last coffee

Caffeine stays in your body far longer than its buzz. Its half-life is around five to six hours on average, so a coffee at 4pm leaves roughly half its caffeine in your system at 10pm. A sensible rule is to stop at least eight hours before bed, which for most people means no caffeine after early afternoon.

How caffeine works

Through the day, a chemical called adenosine builds up in the brain and creates sleep pressure. Caffeine blocks the receptors adenosine acts on, so you feel less sleepy. The adenosine is still there. When the caffeine clears, the tiredness returns.

How long it lasts

  • Effects peak 30 to 60 minutes after drinking.
  • Half-life averages five to six hours, and varies from about three to nine or more.
  • It is slower in pregnancy, with some medicines including the contraceptive pill, and in some people genetically.
  • It is faster in smokers.

A quarter of the dose may still be active ten to twelve hours later.

What it does to sleep

  • Takes longer to fall asleep.
  • Reduces total sleep time.
  • Reduces deep sleep, even if you fall asleep normally.
  • More waking.

Many people who say caffeine does not affect them fall asleep fine and get lighter, less restorative sleep without knowing.

The cut-off

  • General rule: none within eight hours of bedtime.
  • Bed at 11pm: last caffeine by about 2 or 3pm.
  • Sensitive, or sleeping poorly: stop by midday.

How much is too much

UK and European guidance suggests up to 400mg a day is safe for most healthy adults, and no more than 200mg a day in pregnancy.

Rough amounts:

  • Mug of instant coffee: about 100mg.
  • Mug of filter coffee: about 140mg.
  • Coffee-shop coffee: varies widely, often 150 to 300mg or more.
  • Mug of tea: about 75mg.
  • Can of cola: about 40mg.
  • Energy drink, 250ml: about 80mg. Larger cans much more.
  • Plain chocolate, 50g: up to about 50mg.

See how much caffeine is too much.

Hidden sources

  • Green tea and matcha.
  • Decaf, which contains a little.
  • Cola and some other soft drinks.
  • Dark chocolate.
  • Pre-workout supplements, often very high.
  • Some cold and flu remedies and painkillers.

Track it

You probably have more than you think, and later than you think. Motivaite's caffeine tracker logs servings through the day. Set beside your sleep, which is shown against a seven-hour target with a 30-day chart, the connection is easy to check.

Run your own test

  1. For a week, log caffeine and sleep as normal.
  2. For the next two weeks, stop caffeine at midday.
  3. Compare: how long to fall asleep, wakings, how you feel in the morning.

The journal is useful for noting how you feel, and it surfaces patterns over time. The Coach can look at both records together.

The cycle

Poor sleep leads to more caffeine. More caffeine, later, leads to poorer sleep. Breaking it means a few tired afternoons. They pass within a week or so.

Afternoon alternatives

  • A brisk ten-minute walk, outside.
  • Water. Dehydration feels like fatigue.
  • A snack with protein.
  • A 20-minute nap before 3pm.
  • Decaf coffee or tea.
  • Herbal and fruit teas.

Cutting down

Stopping suddenly can cause headaches, tiredness and irritability for a few days.

  • Reduce by one drink every few days.
  • Swap the latest drink of the day first.
  • Mix regular and decaf.

See cutting back on energy drinks.

Morning caffeine

Fine for most people. There is no strong evidence that you must delay it after waking. Having it with or after breakfast suits some stomachs better.

Caffeine and training

Caffeine improves exercise performance for many. Take it about an hour before a morning or lunchtime session. For evening training, skip it or use a small amount, since the cost to sleep outweighs the benefit. Check labels on pre-workout products.

Alcohol is not the answer

A nightcap helps you drop off and worsens sleep quality later in the night.

Shift workers

Use caffeine at the start of a shift, and stop at least six hours before you plan to sleep. See fitness for shift workers.

Who should be careful

  • Pregnant or breastfeeding women: 200mg limit.
  • People with anxiety, heart rhythm problems, reflux or high blood pressure: discuss with your GP.
  • Children and teenagers.
  • Anyone on medication that interacts. Ask a pharmacist.

The benefits

Caffeine is not harmful for most people in moderate amounts, and coffee and tea are associated with some health benefits. The question is timing.

Your sleep, overall

Caffeine is one lever. See a bedtime routine for better sleep and how sleep affects fitness and muscle.

Questions people ask

What time should I stop drinking caffeine?

At least eight hours before bed. For someone going to bed at 11pm, that means a last coffee or tea by about 2 or 3pm, and earlier if you are sensitive.

How long does caffeine stay in your system?

Its half-life averages five to six hours, meaning half the dose remains after that time. It varies between people and is longer in pregnancy and with some medicines.

Can I drink coffee in the evening if I fall asleep fine?

Caffeine can reduce deep sleep and overall sleep quality even when it does not stop you falling asleep. Testing a few weeks without afternoon caffeine will show whether it affects you.

ENOUGH READING.

The Coach is waiting, and the first 14 days are free. No card to start — add one only if you're staying.

Start the free trial →