If you drank coffee too late, there's no trick that clears caffeine faster; your liver works at its own pace, so the honest answer is that you mostly have to wait. What you can control is how you wait: stay calm, keep the lights low, don't fight it in bed, and protect tomorrow's wake-up time. Most people still fall asleep, just later and a bit lighter than usual.
Free toolCaffeine Cutoff CalculatorHow much caffeine is still in you at bedtime, and your latest cup.How much caffeine is still in you?
Here's how much of a regular 95 mg coffee is left at bedtime, and when it drops below 25 mg, using the site's average 5-hour half-life.
| Coffee at | Left at 10:30 PM | Left at 11:30 PM | Below 25 mg at |
|---|---|---|---|
| 3 PM | 34 mg | 29 mg | 12:40 AM |
| 4 PM | 39 mg | 34 mg | 1:40 AM |
| 5 PM | 44 mg | 39 mg | 2:40 AM |
| 6 PM | 51 mg | 44 mg | 3:40 AM |
| 7 PM | 58 mg | 51 mg | 4:40 AM |
| 8 PM | 67 mg | 58 mg | 5:40 AM |
| 9 PM | 77 mg | 67 mg | 6:40 AM |
Had something stronger, like a large coffee-shop cup or two espressos? The caffeine calculator gives you the numbers for your exact drink.
These are averages. Some people clear caffeine much faster or slower, depending on genetics, smoking, pregnancy, liver health and some medications.
What doesn't work
It's worth being clear about this, because a lot of advice online overpromises.
- Drinking lots of water. Caffeine is broken down mainly by the liver. Extra water doesn't meaningfully speed that up.
- Exercising it off. A hard workout late at night is more likely to keep you up.
- Eating a big meal. It won't clear caffeine that's already in your blood, and a heavy late meal can make settling down harder.
- Alcohol or a sleep aid to "cancel" it. Stacking another substance on top of caffeine isn't a good trade. If you often need help to sleep, talk to a doctor.
None of these flush caffeine out. Time does.
What actually helps tonight
You can't change the caffeine, but you can stop making things worse and give sleep its best chance.
- Don't go to bed early to "get a head start." Lying awake for an hour teaches your brain that bed is a place to be alert.
- Keep your usual bedtime, or go a little later if you're wired. Check it against the table.
- Dim the lights for the last hour. Bright screens and overhead lights push your body clock later on top of the caffeine.
- Do something calm and boring. Read a paper book, fold laundry, listen to a podcast. Nothing that gets your heart rate up.
- If you can't sleep after what feels like 20 minutes, get up. Go to another dim room, do something quiet, and come back when you feel sleepy. More on this in lying in bed awake.
- Don't watch the clock. Turn it around. Counting the hours left adds stress, and stress keeps you up too.
- Keep the room cool, dark and quiet.
Plan for a shorter night
If the coffee was late enough that you'll probably fall asleep after 1 AM, plan for it rather than fight it.
- Keep your alarm where it is. Sleeping in shifts your body clock and makes tomorrow night harder.
- Aim to wake at the end of a cycle. The sleep calculator shows wake-up times that land on a 90-minute boundary from when you actually get into bed.
- Expect lighter sleep. In a lab study, caffeine taken even 6 hours before bed reduced total sleep, often without people noticing.
- Tomorrow, keep caffeine early. Have your coffee in the morning and stop by about noon to reset.
A short nap the next afternoon, around 20 minutes, can help. Just don't nap late or long. The nap calculator times it.
Preventing the next one
- Know your cutoff. For an 8 oz coffee and a 10:30 PM bedtime, it's about 12:50 PM. See how long caffeine lasts for the hour-by-hour breakdown.
- Switch to decaf after lunch. Decaf has only about 2 to 15 mg per 8 oz cup.
- Watch hidden caffeine in iced tea, cola, energy drinks and pre-workout.
- Notice your pattern. If an afternoon coffee reliably costs you sleep, you're probably a slower metabolizer. Move the cutoff earlier.
If you regularly lie awake for a long time even without caffeine, and it's been going on for weeks, see a doctor. Ongoing insomnia is common and treatable.