Caffeine and sleep: when to stop drinking coffee | Polysleep
Online exclusive

Black Friday. The best deals of the year. | 30% OFF SITEWIDE

30% OFF SITEWIDE

Ends in Ends in

Your afternoon coffee follows you to bed

News

Your afternoon coffee follows you to bed

Double Chevron Left Back to News

It's 3 p.m., your focus is fading and the coffee machine is calling your name. Besides, you sleep fine and coffee doesn't affect you. Or does it? Afternoon coffee is one of the habits that secretly ruin your sleep, often without you making the connection. Don't worry, nobody's asking you to give up coffee. But it's worth understanding the link between caffeine and sleep, and why the time of your last cup makes all the difference.

How long does caffeine stay in your body?

3 p.m. coffee break at work, with the caffeine still active at bedtime

Caffeine stays in your body much longer than its energizing effect lasts. In healthy adults, its half-life is about 4 hours on average, according to the European Food Safety Authority (EFSA), with wide variations from one person to the next (2 to 8 hours). In other words, half of the coffee you drank at 3 p.m. can still be circulating in your blood around 7 or 8 p.m.

Wondering how long the effects of caffeine last? It all comes down to its half-life, a concept that's easy to understand.

What is the half-life of caffeine?

It's the time it takes your body to eliminate half of the caffeine you've consumed. Your liver does most of the work, at its own pace. After one half-life, half of the dose is left. After two half-lives, a quarter is left, and so on.

Caffeine doesn't vanish all at once when the energy boost fades. It keeps working in the background, even when you no longer feel it. Another useful detail: caffeine usually peaks in your blood 30 to 60 minutes after a cup. So the boost you feel around 3:30 p.m. is just the start of its journey through your body.

Your 3 p.m. coffee, hour by hour

Let's take a cup of coffee at 3 p.m. that contains about 100 mg of caffeine, a round number chosen for this example. To keep the math simple, we'll use a half-life of 5 hours, which falls within EFSA's range. Every 5 hours, your body eliminates roughly half of it. The table shows how much is left as the evening goes on. The figures are rounded so the math is easy to follow.

Time Caffeine remaining
3 p.m. ≈ 100 mg
8 p.m. ≈ 50 mg
1 a.m. ≈ 25 mg
6 a.m. ≈ 12 mg

 

At 1 a.m., you still have a quarter of your cup in your system. So yes, a 3 p.m. coffee really can disrupt your sleep. The effect of caffeine lasts much longer than the energy boost it gives you. Doses also add up. If you have a second coffee at 5 p.m., you'll still have about 60 mg of caffeine in your body at 1 a.m., which is more than half a cup.

Still falling asleep? Caffeine scrambles your sleep in other ways

Restless night after an afternoon coffee, with caffeine reducing deep sleep

You can fall asleep after a coffee and still sleep poorly. Caffeine doesn't just delay sleep. It also cuts down on deep sleep and increases micro-awakenings, which explains why you wake up tired without knowing where the problem comes from.

Throughout the day, your brain builds up adenosine, a molecule that creates sleep pressure. The more it builds up, the sleepier you feel at night. But caffeine takes the place of adenosine on its receptors and masks that fatigue. Even once you're asleep, your sleep stays lighter and more fragmented.

According to a study published in the Journal of Clinical Sleep Medicine involving 12 people, 400 mg of caffeine (2 to 3 cups of coffee) taken six hours before bedtime cuts sleep by more than an hour. This link between caffeine and sleep often goes unnoticed. But coffee isn't always the only culprit. Other factors, like an overheated bedroom, can also break up your nights.

Deep sleep is concentrated mainly in the first half of the night. That's exactly when your afternoon caffeine is still circulating in your blood. The result: you get your hours, but your body doesn't recover as well.

The next day, fatigue pushes you toward another afternoon coffee, and the cycle starts all over again. This vicious cycle explains why so many people rely on their 3 p.m. coffee without suspecting it's what keeps them tired.

Why can some people sleep after an espresso (and not you)?

Your coworker has an espresso after supper and sleeps like a baby? That's possible, because the speed at which the body eliminates caffeine varies a lot from person to person. Their tolerance has nothing to do with yours, and neither does their sleep.

Several factors come into play. Genetics matter a lot, since the liver enzyme called CYP1A2 works faster or slower depending on the person. Pregnancy, especially in the later stages, and oral contraceptives also slow down how fast caffeine is cleared. Smoking, on the other hand, speeds it up. So if you quit smoking, your usual coffee may suddenly feel stronger, because your body now clears caffeine more slowly than before.

Age plays a role too, and many people notice they tolerate coffee less well as they get older. The link between coffee and sleep is very personal. Your best indicator is your own nights, not your coworker's.

Tea, cola, chocolate: hidden caffeine

Coffee isn't the only source of caffeine in your afternoon. Tea, iced tea, colas, dark chocolate and especially energy drinks contain it too. Added together, these small doses can weigh as heavily on your night as a cup of coffee.

These sources of caffeine before bed often fly under the radar. The figures below are based on Health Canada's caffeine content table, the go-to reference.

Product Serving Caffeine (approx.)
Filter drip coffee 237 mL (1 cup) 179 mg
Brewed coffee 237 mL (1 cup) 135 mg
Instant coffee 237 mL (1 cup) 76 to 106 mg
Brewed black or green tea 237 mL (1 cup) 30 to 50 mg
Cola 355 mL (1 can) 36 to 46 mg
Unsweetened baking chocolate 28 g 25 to 58 mg
Energy drink 1 can Up to 180 mg (regulatory limit in Canada)

 

Pay close attention to size, too. Health Canada counts a cup as 237 mL, while a large coffee from a coffee shop often tops 400 mL, which is almost two cups.

Despite its bold taste, a single espresso often contains less caffeine than a large cup of filter coffee. The caffeine content of bottled iced tea varies a lot from brand to brand, so it's worth reading the label. That square of dark chocolate in the afternoon counts too, especially if it's high in cocoa. An energy drink can reach up to 180 mg per can, again according to Health Canada. Caffeine also hides in products you might not think of, like some pre-workout supplements and certain pain relievers.

Health Canada recommends no more than 400 mg of caffeine a day for healthy adults, and 300 mg during pregnancy or breastfeeding. Quebec's Institut national de santé publique (INSPQ) also outlines recommended maximum intakes by age (in French).

Coffee isn't the only trap. We've also put together a list of foods to favour and drinks to avoid before bed.

When should you stop drinking coffee to sleep well?

Have your last coffee about 8 hours before bedtime. If you go to bed at 11 p.m., your last cup should be around 3 p.m. People who are more sensitive to caffeine often do better stopping at noon.

  • Bedtime at 10 p.m.: last coffee around 2 p.m.
  • Bedtime at 11 p.m.: last coffee around 3 p.m.
  • Bedtime at midnight: last coffee around 4 p.m.

Working evenings or nights? The same rule applies, but based on your actual bedtime, not the time on the clock.

Why 8 hours and not 6? Because the study mentioned above shows that 6 hours before bed, a high dose of caffeine (400 mg) still cuts the night short by more than an hour. If you're still sleeping poorly, keep in mind that caffeine is one of the causes of insomnia, but other factors can play a role too. A few evenings of paying attention are often enough to better understand how caffeine and sleep interact in your own case.

Replacing your 3 p.m. coffee without dozing off at your desk

The 3 p.m. slump doesn't mean you have to reach for the coffee pot. When afternoon fatigue hits, other simple habits give you a lift without hurting your night. Some even let you keep your coffee break ritual.

  1. A 10-minute walk outside in daylight wakes up your body and mind.
  2. A big glass of water helps too, since afternoon fatigue is sometimes just dehydration in disguise.
  3. A decaf or a herbal tea lets you keep your coffee break ritual.
  4. A snack that combines protein and fibre keeps your energy up until supper.
  5. A nap of 20 minutes max, before 3 p.m., works wonders if your workplace allows it.

If cutting out your 3 p.m. coffee overnight seems impossible, move it half an hour earlier each week. Your body adjusts gradually, and you avoid the headaches that sometimes come with quitting too abruptly.

FAQ

Does decaf coffee contain caffeine?

Yes, decaf coffee contains a little caffeine, usually a few milligrams per cup. For most people, that small amount is negligible in the evening. Very sensitive people may still notice it, though. If that's you, herbal tea after supper is your safest bet.

Does tea keep you up as much as coffee?

Tea generally keeps you up less than coffee, since a cup contains less caffeine on average. Black tea, green tea and especially matcha still contain enough to keep you awake if you drink them late. Herbal teas, on the other hand, are caffeine-free and are a good fit for the evening.

Why doesn't coffee affect me anymore, even though I sleep badly?

Over time, your body gets used to caffeine. You feel the energy boost less, but caffeine can keep affecting the quality of your sleep. Tolerance reduces the feeling of alertness, not necessarily the effect on your nights. That's exactly the trap described above, in the section on how caffeine scrambles your sleep.

How many cups of coffee a day can you drink without affecting your sleep?

Health Canada sets the benchmark at 400 mg of caffeine a day for healthy adults. For your sleep, though, timing matters as much as quantity. Two coffees in the morning disrupt your night less than a single coffee at 4 p.m., because your body has time to clear the caffeine before bedtime.

Does an energy drink in the afternoon affect sleep?

Yes, and often more than coffee does. An energy drink can contain up to 180 mg of caffeine per can in Canada, depending on the size and brand. If you drink one in the afternoon, it leaves a lot of caffeine in your body at bedtime. Get in the habit of reading the label before you grab a can at the corner store.

Conclusion

Coffee isn't your enemy. What weighs on your nights is the time of your last cup. By having it earlier, you keep the pleasure and get back more restful nights.

Afternoon coffee isn't the only bad habit that breaks up your night. The phone you check in bed is another one.

A sleep-friendly environment also makes all the difference. A dark, cool, quiet bedroom with a comfortable mattress helps your body make the most of every hour of rest. At Polysleep, our mattresses made in Canada give you that comfort night after night.

Extra
$50

Find your ideal mattress and save an extra $50

Take the 60-second quiz, get a personalized recommendation based on your sleep and unlock an additional $50 off.

✓60 seconds
✓No commitment
✓Additional $50 discount
Take the quiz and get $50 off →

A BETTER MATTRESS

For a Better Price

Your Cart

Your Cart is Empty
Please select your country

It seems like you're not in the right place!
Let us guide you on your path to a better night's sleep.