CaffeineTime

Caffeine & sleep

Had caffeine too late? How to sleep after caffeine tonight

Updated 2026-10-03 · Checked against the sources below by Oleksii Y. · 8 min read

There is no proven way to clear caffeine faster, so tonight is about not adding to it: have no more caffeine, keep the last hour dim and quiet, go to bed when you feel sleepy, and get up for something calm if you lie awake a long time. Expect falling asleep to take longer and sleep to be lighter or shorter than usual. The calculator below estimates how much is still in your system.

How much will be left at bedtime?

Left at 11:00 PM (8 h later), average metabolism

≈ 33 mg

Range 16–50 mg (fast to slow metabolism)

To be at 50 mg or less by bedtime, have 100 mg by 5:15 PM (average) or 2:15 PM (slow metabolism).

What sleep studies found near this dose

  • Gardiner et al. 2025 (randomized trial): In 23 healthy young men, 100 mg taken 12, 8 or 4 hours before bed had no significant effect on measured or self-rated sleep.
  • Gardiner et al. 2023 (meta-analysis): To avoid losing sleep time, the authors suggest a coffee (107 mg per 250 ml) at least 8.8 hours before bed.

Estimate from a simple model: half-life of 3, 5 or 8 hours, 50 mg bedtime target. How we calculate

Key takeaways

  • Your liver breaks caffeine down at its own pace, mostly through one enzyme; we found no study showing that water, exercise or a cold shower speeds that up.
  • Caffeine’s half-life in healthy adults averages about 4 hours but ranges from about 2 to 8, so the same late coffee lasts much longer in some people.
  • How much sleep you lose depends on dose and timing: 400 mg up to 6 hours before bed cut measured sleep by more than an hour in one small trial, while 100 mg taken 4 or more hours before bed made no significant difference in another.
  • Tonight, aim for a dim, calm wind-down and no more caffeine; tomorrow, set a cutoff so it does not happen again.
  • Chest pain, fainting, trouble breathing, confusion or a seizure after caffeine need urgent medical help, not a sleep routine.

Why you feel wired but tired after a late coffee

Adenosine is a natural substance that sleep researchers widely accept as one of the brain’s sleep-regulating signals, and caffeine works mainly by blocking the receptors it acts on. Put simply (this is a simplification), caffeine turns down part of the "time to sleep" message without removing your need for sleep. That is why you can feel exhausted and alert at the same time late at night.

It also acts quickly. Caffeine is absorbed almost completely, and EFSA says its stimulating effects may begin 15 to 30 minutes after you drink it, so an 8 p.m. coffee is already working by the time you would normally start winding down.

How much of a late coffee is still in your system at bedtime

The European Food Safety Authority (EFSA) puts the average half-life of caffeine in healthy adults at about 4 hours, with a range of 2 to 8 hours. After one half-life, half the dose is gone; after the next, half of what was left, and so on. Small amounts linger: in a lab study of nine healthy men, 200 mg taken at about 7 a.m. was still measurable in saliva just before an 11 p.m. bedtime, at roughly a sixth of its peak level.

About 95% of caffeine is broken down by one liver enzyme, CYP1A2, whose activity varies between people partly for genetic reasons. Pregnancy, estrogen-containing birth-control pills, heavy drinking, liver disease and some medicines slow clearance; smoking speeds it up. That is why the calculator shows a fast-to-slow range rather than one number. For the full timeline, see how long caffeine lasts.

Caffeine left from a 100 mg drink, by hours since you had it (simple halving arithmetic, ignores absorption time)
Hours since the drinkLeft if half-life is 4 hLeft if half-life is 8 h
2 hoursabout 71 mgabout 84 mg
4 hoursabout 50 mgabout 71 mg
6 hoursabout 35 mgabout 59 mg
8 hoursabout 25 mgabout 50 mg

What to do tonight when caffeine keeps you awake

None of these steps removes caffeine. They are common-sense sleep habits, not remedies tested against caffeine; the aim is to avoid stacking extra alertness on top of what is already in your system while the level falls.

  • Have no more caffeine tonight, including tea, cola, energy drinks and dark chocolate. Decaf is not zero: the FDA says an 8 oz cup typically has 2 to 15 mg.
  • Dim the lights for the last hour and put away work and scrolling; pick something calm and a little dull instead.
  • Go to bed when you feel sleepy rather than at a time you are trying to force.
  • If you have been lying awake for what feels like a long time, get up, keep the lights low and do something quiet until you feel drowsy, then go back to bed.
  • Turn the clock away so you are not counting the hours you might lose.
  • If your heart is pounding or you feel shaky, slow, steady breathing gives you something calm to focus on; calmness.today has a free guided breathing reset.

Ways to flush caffeine before bed that don’t work

The usual quick fixes are drinking lots of water, going for a run, taking a cold shower or eating a big meal. We found no study showing that any of them speeds up caffeine clearance, and the biology gives little reason to expect it: caffeine leaves your body mainly by being broken down in the liver, not by being washed out.

Water is fine to drink, but it is unlikely to change the pace. A review also found that caffeine in standard servings of tea, coffee and soft drinks does not appear to act as a diuretic, so there is little caffeine-driven fluid loss to replace. A second coffee or an energy drink to "push through" only adds to what you need to clear. Time is the one thing that reliably lowers caffeine; the myths are covered in can you flush caffeine out.

How a late coffee changes tonight’s sleep

A 2023 meta-analysis pooling 24 studies found that, on average, caffeine cut total sleep by about 45 minutes, made falling asleep take about 9 minutes longer and lowered sleep efficiency by 7%, with more light sleep and about 11 minutes less deep sleep. Your night may go better or worse, mainly depending on the dose and how close to bed you had it.

No trial in the table tested a small dose such as 100 mg in the last few hours before bed, and EFSA notes that even 100 mg may affect sleep in some adults when taken close to bedtime. If tonight is one of those nights, a shorter, lighter night is the likely outcome.

What sleep studies found after caffeine at different times before bed
StudyDose and timingWhat happened to sleep
2013 trial, 12 healthy sleepers400 mg at bedtime, 3 h or 6 h beforeSleep disturbed at all three times; more than 1 hour less sleep on the monitor even at 6 h
2025 trial, 23 young men400 mg 4 h before bedAbout 51 minutes less total sleep and about 30 minutes less deep sleep
2025 trial, 23 young men100 mg 4, 8 or 12 h before bedNo significant effect on measured or self-rated sleep
2023 meta-analysis, 24 studiesMixed doses and timingsOn average about 45 minutes less sleep and 9 minutes longer to fall asleep

When a late caffeine dose needs medical help, not a sleep routine

Feeling alert and a bit restless after too much caffeine is common; the FDA lists a faster heart rate, palpitations, sleep problems, anxiety and jitters among the signs. Some symptoms are different. The NHS advises emergency help if palpitations come with chest pain, shortness of breath, or feeling faint or fainting; outside the UK, call your local emergency number.

Signs of caffeine overdose can include trouble breathing, confusion, seizures, an irregular or rapid heartbeat, vomiting and fever, and MedlinePlus advises getting medical help right away. In the US, Poison Help is 1-800-222-1222. If you take medicines, are pregnant or have a heart condition, ask your doctor or pharmacist how caffeine fits with your situation.

Planning tomorrow so caffeine doesn’t cost another night

Prevention is easier than rescue. The 2023 meta-analysis estimated that a standard coffee (107 mg) should be had at least 8.8 hours before bed to avoid losing sleep time, and a typical pre-workout serving (217.5 mg) at least 13.2 hours before. The authors of the 2025 trial advise avoiding 400 mg within 12 hours of bedtime.

Your own cutoff depends on your dose, your bedtime and how fast you clear caffeine; the caffeine cutoff calculator works it out, and caffeine and sleep covers the wider research. After a short night it is tempting to load up the next day, but keeping tomorrow’s caffeine to the morning gives it the most time to clear before the next bedtime.

Common questions

How many hours after coffee can I fall asleep?

There is no single answer. Caffeine’s half-life in healthy adults ranges from about 2 to 8 hours, and its effect on sleep depends on the dose. In one trial, 100 mg taken 4 or more hours before bed made no significant difference in young men, while 400 mg still cut deep sleep when taken 12 hours before.

Should I take melatonin or a sleeping pill after too much caffeine?

Ask a pharmacist or doctor first, especially if you take other medicines. None of the studies cited here tested sleep aids as a fix for late caffeine, and some medicines, such as the antidepressant fluvoxamine, slow caffeine clearance a great deal, so combinations deserve a professional check.

Why can’t I sleep after coffee when I used to be fine?

Several things can change how caffeine affects you: a stronger drink than you think (lab tests found the same coffee-shop drink ranging from 259 to 564 mg over six days), a later cup, a new medicine or birth-control pill that slows clearance, pregnancy, or quitting smoking, which cut caffeine clearance by about a third in a study of heavy smokers. Older adults’ sleep may also be more sensitive to caffeine.

Can I still sleep with caffeine in my system?

Often, yes, but the sleep tends to be different. Reviews of the research find caffeine typically lengthens the time to fall asleep and shortens total sleep, with less deep sleep and more light sleep. One trial also found people may not accurately sense how much caffeine affected their sleep, so feeling fine is not proof it had no effect.

General information, not medical advice

If you feel unwell after caffeine — for example chest pain, a fast or irregular heartbeat that does not settle, fainting, confusion or trouble breathing — get urgent medical help. If you are pregnant or breastfeeding, under 18, take medication, or have a heart, liver or anxiety condition, high blood pressure or a sleep disorder, ask a doctor or pharmacist what amount is right for you.

Sources

  1. Gardiner C, Weakley J, Burke LM, et al. (2023). The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews, 69, 101764. doi:10.1016/j.smrv.2023.101764 ↗
  2. Gardiner CL, Weakley J, Burke LM, et al. (2025). Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial. Sleep, 48(4), zsae230. doi:10.1093/sleep/zsae230 ↗
  3. Drake C, Roehrs T, Shambroom J, Roth T. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 9(11), 1195–1200. PMID 24235903 ↗
  4. Clark I, Landolt HP. (2017). Coffee, caffeine, and sleep: A systematic review of epidemiological studies and randomized controlled trials. Sleep Medicine Reviews, 31, 70–78. PMID 26899133 ↗
  5. Landolt HP, Werth E, Borbély AA, et al. (1995). Caffeine intake (200 mg) in the morning affects human sleep and EEG power spectra at night. Brain Research, 675(1–2), 67–74. PMID 7796154 ↗
  6. European Food Safety Authority (2015). EFSA explains risk assessment: Caffeine. European Food Safety Authority (doi:10.2805/618813). efsa.europa.eu (PDF) ↗
  7. Blanchard J, Sawers SJ. (1983). The absolute bioavailability of caffeine in man. European Journal of Clinical Pharmacology, 24(1), 93–98. PMID 6832208 ↗
  8. Nehlig A. (2018). Interindividual Differences in Caffeine Metabolism and Factors Driving Caffeine Consumption. Pharmacological Reviews, 70(2), 384–411. PMID 29514871 ↗
  9. McLellan TM, Caldwell JA, Lieberman HR. (2016). A review of caffeine's effects on cognitive, physical and occupational performance. Neuroscience & Biobehavioral Reviews, 71, 294–312. PMID 27612937 ↗
  10. Reichert CF, Deboer T, Landolt HP. (2022). Adenosine, caffeine, and sleep-wake regulation: state of the science and perspectives. Journal of Sleep Research, 31(4), e13597. PMID 35575450 ↗
  11. Temple JL, Bernard C, Lipshultz SE, et al. (2017). The Safety of Ingested Caffeine: A Comprehensive Review. Frontiers in Psychiatry, 8, 80. PMID 28603504 ↗
  12. Knutti R, Rothweiler H, Schlatter C. (1981). Effect of pregnancy on the pharmacokinetics of caffeine. European Journal of Clinical Pharmacology, 21(2), 121–126. PMID 7341280 ↗
  13. Abernethy DR, Todd EL. (1985). Impairment of caffeine clearance by chronic use of low-dose oestrogen-containing oral contraceptives. European Journal of Clinical Pharmacology, 28(4), 425–428. PMID 4029248 ↗
  14. Jeppesen U, Loft S, Poulsen HE, et al. (1996). A fluvoxamine-caffeine interaction study. Pharmacogenetics, 6(3), 213–222. PMID 8807660 ↗
  15. Faber MS, Fuhr U. (2004). Time response of cytochrome P450 1A2 activity on cessation of heavy smoking. Clinical Pharmacology & Therapeutics, 76(2), 178–184. PMID 15289794 ↗
  16. McCusker RR, Goldberger BA, Cone EJ. (2003). Caffeine content of specialty coffees. Journal of Analytical Toxicology, 27(7), 520–522. PMID 14607010 ↗
  17. Maughan RJ, Griffin J. (2003). Caffeine ingestion and fluid balance: a review. Journal of Human Nutrition and Dietetics, 16(6), 411–420. PMID 19774754 ↗
  18. U.S. Food and Drug Administration (2024). Spilling the Beans: How Much Caffeine is Too Much? FDA Consumer Updates. fda.gov ↗
  19. MedlinePlus Medical Encyclopedia (2025). Caffeine overdose. MedlinePlus, U.S. National Library of Medicine. medlineplus.gov ↗
  20. NHS. Heart palpitations. NHS. nhs.uk ↗

An app for better sleep is on the way

We’re working on a mobile app to help you sleep better. It isn’t out yet. Leave your email and we’ll let you know when it launches.