by Strong Mornings See our plans

How to fall asleep after caffeine

You can't flush caffeine out faster. It leaves your body at its own pace, so the job tonight is to lower everything else that keeps you alert and give sleep the best chance: dim light, a cool room, slow breathing, no screens, and getting up for a while if you're still awake after about 20 minutes. Expect a slower start and lighter sleep than usual, and plan tomorrow so you don't repeat it.

Our free 2-minute sleep quiz shows how many minutes you really spend awake in bed and gives you a starting sleep window, which helps if caffeine isn't the only thing in the way. Below: how long caffeine stays in you, what to do tonight step by step, what doesn't work, when a racing heart needs a doctor, and a 2-week plan so it stops happening.

How long does caffeine keep you awake?

Caffeine blocks adenosine, the chemical that builds up while you're awake and makes you feel sleepy. It doesn't remove the sleep pressure; it hides the signal. The usual half-life in healthy adults is about 5 hours, and it varies widely from person to person (about 1.5 to 9.5 hours in published reviews). Half-life means the time for half of it to leave your blood. It is not the time until you feel nothing.

Take a 200 mg dose, about two cups of brewed coffee, at 3 p.m., and assume a 5-hour half-life:

TimeCaffeine still in you (approx.)
3 p.m.200 mg
8 p.m.100 mg, about one cup of coffee
1 a.m.50 mg
6 a.m.25 mg

So the coffee you had "ages ago" is still half a cup at your bedtime. People with a slower half-life (some medicines, such as certain birth control pills, and pregnancy slow it) carry more for longer. Smokers clear it faster. A 2013 study in the Journal of Clinical Sleep Medicine gave adults 400 mg of caffeine 6 hours before bed and measured about an hour less sleep that night, and many of them didn't notice it. That last part matters: you can sleep worse without feeling wired.

Typical amounts: brewed coffee about 95 mg a cup, an espresso shot about 65 mg, black tea 40 to 50 mg, a can of cola 30 to 40 mg, a typical energy drink 80 to 300 mg depending on size and brand, and pre-workout powders often 150 to 300 mg a scoop. Check the label, because it varies a lot.

What to do tonight, step by step

  1. Stop adding caffeine. No more coffee, tea, cola, energy drinks, or chocolate-heavy snacks, and check headache tablets, since some contain caffeine.
  2. Don't go to bed early to "catch up". If you usually sleep at 11 p.m., go at 11 p.m. or when you feel sleepy. Lying in bed at 9:30 with caffeine on board trains your brain to link bed with being awake.
  3. Make the last hour low and dim. Lights low, screens off or turned face down, nothing exciting to read or watch. A warm shower 60 to 90 minutes before bed helps your core temperature drop afterwards, which is a sleep cue.
  4. Do something calm with your hands. Stretching, tidying, a paper book, a puzzle. Not a workout. Gentle movement is fine; hard exercise adds more alertness.
  5. Drink water, not more stimulants. Water doesn't flush caffeine, so don't drink so much that you wake to pee at 2 a.m. A glass is enough.
  6. In bed, slow your breathing. Breathe in through your nose for 4 and out slowly for 6 to 8, for about 5 minutes. A longer out-breath nudges your body toward rest. Keep it easy; forcing it adds effort, and effort is the opposite of sleep.
  7. Relax your body bottom up. Tense your feet for 5 seconds, release, then calves, thighs, stomach, hands, shoulders, face. Caffeine often leaves a jittery body, and this uses it up in a harmless way.
  8. Use the 20-minute rule. If you feel wide awake and it's been about 20 minutes, get up. Sit in dim light and do something dull until your eyes feel heavy, then go back. Our guide to stimulus control therapy explains why this protects your sleep in the longer run.

Don't check the clock. Counting the hours left to sleep is a stress trigger, and stress raises the same arousal that caffeine does. Turn the clock away.

What doesn't work

Does a mind game help when you're wired?

Some. Tools that give your mind a gentle, boring job, such as cognitive shuffling, can help with racing thoughts. They help much less when the alertness is chemical. Luc Beaudoin, who developed cognitive shuffling, has been quoted as saying that people who've had a lot of coffee shouldn't expect cognitive techniques to do the job. So start with the body (breathing, muscle release, dim light) and use the mind game second.

Is it your caffeine, or is it your sleep?

People often blame caffeine when something else is also going on. Three quick checks:

When a racing heart is a doctor's job

Caffeine can cause a fast or pounding heartbeat, jitters, an upset stomach and anxiety. That usually settles over a few hours. For most healthy adults, the FDA puts a safe daily limit at about 400 mg. Get urgent medical help (call your local emergency number) if you have chest pain, fainting, trouble breathing, a heartbeat that stays fast or irregular, vomiting, confusion, or seizures, particularly after energy drinks, caffeine pills or powders. Pure caffeine powder is dangerous: a teaspoon can hold the equivalent of many cups of coffee. If you have a heart condition, are pregnant, or take medicine that interacts with caffeine, ask your doctor or pharmacist what a safe amount is for you.

Tomorrow: so it doesn't repeat

Caffeine's grip on your sleep is mostly a timing problem. A simple rule many sleep clinicians use: no caffeine for 8 hours before bed, longer if you're sensitive. For an 11 p.m. bedtime that means a 3 p.m. cut-off, earlier if you wake in the night or sleep lightly.

A 2-week plan to stop caffeine wrecking your nights

DaysWhat to do
1 to 3Write down every caffeine drink: time and size. Keep your usual wake time and get outside within an hour of waking. Don't change anything else.
4 to 7Move your last caffeine to 8 hours before bed. Keep the same total if you like, just earlier. Note how long it takes to fall asleep.
8 to 10If you still take over 30 minutes to fall asleep, pull the cut-off to noon and cut the total by a quarter.
11 to 14Use the 20-minute rule on any night you're awake, keep the wake time fixed, and compare your notes to days 1 to 3.

If nights are still long after the caffeine is sorted, the cause is something else, and the free quiz is the quickest way to see what. Our guide to falling asleep faster goes through the methods that have evidence behind them.

Frequently asked questions

How long after caffeine can I fall asleep?

It depends on how much you had and how fast you clear it. With a typical 5-hour half-life, it's best to leave about 8 hours between your last dose and bedtime. If you've had a lot, you may feel wired until the early hours.

Can I sleep after drinking coffee at night?

Some people can, particularly with a small amount and a strong tiredness. But research shows that even when you fall asleep, sleep is shorter and lighter, which is why you may wake feeling poor the next day.

Does water flush out caffeine?

No. The liver breaks caffeine down, and water doesn't speed that up. Water helps with dry mouth and a mild headache, nothing more.

Should I nap the next day after a night of no sleep?

If you must, keep it to 20 minutes before 2 p.m. A long or late nap makes the next night harder.

Does exercise burn off caffeine?

No. A gentle walk can lift a jittery feeling, but exercise doesn't clear caffeine from your blood, and a hard session late in the day can keep you more alert.

How much caffeine is too much?

For most healthy adults about 400 mg a day (roughly four cups of brewed coffee) is the FDA's guide, but sleep is hit well below that for some people. If you sleep poorly, your own limit is lower.

Start tonight

Stop all caffeine, dim the lights, keep your usual bedtime, and breathe out slowly in bed. If you're still awake after about 20 minutes, get up and come back when you're sleepy. Tomorrow, set a cut-off 8 hours before bed. If long nights continue when caffeine is out of the picture, take the free sleep quiz for your own numbers. More guides on falling asleep, night waking and schedules are on all sleep guides.

Sources: Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 2013. U.S. Food and Drug Administration, "Spilling the Beans: How Much Caffeine Is Too Much?" (consumer update). Institute of Medicine, Caffeine for the Sustainment of Mental Task Performance, 2001 (half-life range). American Academy of Sleep Medicine, patient information on insomnia and stimulus control.