When Should I Stop Drinking Coffee?
Caffeine does not leave your body when you stop feeling it. Roughly half of it is still in you about five hours later, which is why a three o’clock coffee can still be working at eleven at night. Give the calculator four real details and it will work out your actual cutoff time — and how much caffeine is still in you at lights-out.
This is arithmetic on a published average, not medical advice. Everyone clears caffeine at a slightly different rate, and medication, pregnancy and genetics all shift it. If caffeine or sleep is a real problem for you, talk to a doctor rather than a calculator.
Common Questions About Caffeine and Sleep
When should I stop drinking coffee before bed?
For most people the honest answer is somewhere between eight and ten hours before lights-out, which lands around midday if you go to bed at ten thirty. That sounds extreme until you look at the arithmetic. A mug of filter coffee carries roughly 95 mg of caffeine, and the average body takes about five hours to clear half of it, so a three o'clock coffee still has something like a third of a mug's worth circulating at bedtime. The right number is personal rather than universal, because it moves with the size of the dose, how fast you clear caffeine, and what time you actually want to be asleep. Someone who drinks green tea at four is in a completely different position to someone finishing a three-shot takeaway at seven, even though both of them stopped in the afternoon. The calculator above works out your own cutoff from those four details instead of handing you a single rule.
How long does caffeine stay in your system?
Caffeine is usually described by its half-life, which is the time your body takes to clear half of whatever you drank. For most adults that sits around five hours, with a normal range of roughly four to six, and plenty of people fall outside it in both directions. Half-life is the useful idea because it explains why caffeine lingers so much longer than it feels like it does. If you drink 200 mg at two in the afternoon, you still have about 100 mg at seven and about 50 mg at midnight. Nothing dramatic happens at any point, which is exactly why it is easy to miss. Several things stretch that curve: pregnancy can double or triple it, some medications slow it considerably, and liver function and genetics both play a part. Smoking shortens it. That spread is why a calculator can only ever give you an estimate built on an average, not a measurement of you.
If I fall asleep fine after coffee, does it still affect my sleep?
Falling asleep and sleeping well are two different measurements, and caffeine affects them differently. Plenty of people can drink a coffee at eight and still be unconscious by eleven, which feels like proof that caffeine does not touch them. What sleep laboratories tend to find is that the deep, slow-wave stage of the night gets thinner even when the time to fall asleep barely changes. One widely cited study gave people 400 mg six hours before bed and still measured about an hour of lost sleep, much of it invisible to the sleepers themselves. The practical effect is a night that looks like seven hours on paper and feels like five in the morning. That gap matters because of what it causes next: you wake up tired, reach for a bigger coffee, and push the following night further out. The loop is usually more of a problem than any single cup.
Is a cup of tea or a cola in the evening enough to matter?
It depends almost entirely on the dose and on you. A mug of black tea carries around 47 mg and a can of cola around 34 mg, against about 95 mg for a mug of filter coffee, so an evening tea is genuinely a smaller event than an evening coffee. Smaller is not the same as nothing, though. On an average clearance rate, a mug of tea at nine o'clock still leaves roughly 40 mg in you at eleven, which is about half a coffee. If you are someone who clears caffeine slowly, that can be plenty. It is also worth knowing that decaf is not caffeine-free, usually landing somewhere between two and five milligrams a cup, and that chocolate, some painkillers and a lot of pre-workout powders all contribute. The calculator above lets you test the exact drink you actually have rather than guessing at the category.
How do I work out my own caffeine cutoff time?
Start with the time you want to be asleep, not the time you get into bed, because those are rarely the same. Then take the size of your last caffeinated drink in milligrams, decide roughly how quickly caffeine leaves you, and count backwards until the amount left is small enough to ignore. Each half-life halves the remaining dose, so a 95 mg coffee drops to about 48 mg after five hours, 24 mg after ten, and 12 mg after fifteen. The point where it falls under about 25 mg is a reasonable, conservative place to draw your line. Doing that by hand is fiddly, which is the whole reason the calculator at the top of this page exists: give it your bedtime, the time of your last drink, what that drink usually is, and how caffeine tends to treat you, and it will show you your cutoff time, how much is still circulating at lights-out, and how far over the line you currently are. Take the calculation above and you will have your own number in about twenty seconds.