Caffeine in Your System
Updated for 2026 · All math runs privately in your browser
That 2 PM coffee does not vanish by bedtime — about half of it is still there. Add each drink you had today and see how much caffeine is still in your body when the lights go out, hour by hour, and when it finally drops below 50 mg and 25 mg.
Your drinks
The time you plan to fall asleep.
Adjust it if your cup is bigger or smaller than the standard serving.
Drinks today
Tap a drink to remove it. Everything is calculated in your browser — nothing is sent anywhere.
What is left at bedtime
How it fades through the day
- Total caffeine today—
- Left at bedtime—
- Drops below 50 mg at—
- Drops below 25 mg at—
Half-life of about 5.5 hours (Drake et al. 2013). Even 50 mg at bedtime can still disturb sleep in sensitive sleepers — the cutoff tool tells you the last safe cup time.
How to use this tool
- Set your bedtime tonight.
- Add each drink: pick the type, adjust the mg if your serving is bigger or smaller, set the time you drank it, and press Add drink.
- Read the big number: how much caffeine is still in your system at bedtime.
- Check the curve and the two times below it — when your total drops under 50 mg and under 25 mg.
How it works
Each drink fades on its own clock. The amount left from one drink is dose × 0.5^(hours since you drank it ÷ 5.5), where 5.5 hours is the half-life — the time your body needs to clear half the caffeine. A 200 mg coffee at 2:00 PM leaves about 64 mg at 11:00 PM: 200 × 0.5^(9 ÷ 5.5). The tool adds up every drink you entered, each fading from its own time, so the total at bedtime is the sum of what is left from all of them.
The curve shows the whole day. It starts at your first drink and falls hour by hour, with a marker at bedtime. The two times underneath — below 50 mg and below 25 mg — are found by stepping forward in 5-minute jumps until the total crosses each line. Fifty milligrams is about half a cup of coffee: if that line falls after your bedtime, caffeine is still in play when you are trying to sleep.
Frequently asked questions
About half is gone after 5–6 hours, but the rest takes much longer — after 11 hours you still have about a quarter of the dose left. A morning coffee is mostly gone by bedtime; an afternoon coffee is not.
The time it takes your body to clear half of a substance. With a 5.5-hour half-life, 200 mg becomes about 100 mg after 5.5 hours, about 50 mg after 11 hours, and about 25 mg after 16.5 hours. Each half-life cuts what is left in half.
It can be. Fifty milligrams is about half a cup of coffee, and sensitive sleepers feel it. Drake et al. (2013) found caffeine taken 6 hours before bed still disturbed sleep, so even a modest amount left at bedtime matters.
Barely — a cup of decaf usually holds 2–5 mg, which fades to almost nothing by bedtime. Add it if you like; it will not move the numbers much.
Published half-lives for caffeine in healthy adults cluster around 5–6 hours, so this tool uses 5.5 hours as the middle of that range. It varies by person: smoking shortens it, pregnancy and some medicines lengthen it, and older adults clear it more slowly.
No. Some people clear caffeine fast and feel nothing from an evening cup; others feel a morning cup at midnight. If your sleep is light, treat the numbers here as a floor, not a ceiling — your real level may feel stronger.
Where the numbers come from
The half-life of about 5–6 hours is the standard figure for caffeine in healthy adults; this tool uses 5.5 hours, the middle of the range. Drake et al. (2013, Journal of Clinical Sleep Medicine) found that caffeine taken 6 hours before bed still disturbed sleep — which is why the tool flags what is left at bedtime rather than only what you drank.
The mg figures are standard servings: brewed coffee 95 mg, espresso shot 63 mg, black tea 47 mg, green tea 28 mg, energy drink 160 mg, cola or soda 34 mg. Real servings vary — a large coffee can hold twice the standard — so adjust the mg box when your cup is bigger. This tool is different from the Caffeine Cutoff Calculator: that one gives the last safe cup time, this one shows what is left in your system.
Common mistakes
- Counting only the last coffee — the morning cups are still fading too, and they add up.
- Using the standard mg for a large serving — a 16 oz coffee can hold 200 mg or more, double the 95 mg default.
- Assuming caffeine is gone because you cannot feel it — the stimulating feeling fades before the caffeine does.
- Forgetting the tea and soda — they are small doses, but three of them equal a coffee.
More free tools & guides
Caffeine is only half the evening — pair this with the tools that plan the rest:
- Caffeine Cutoff Calculator — the last safe cup time, so caffeine stops stealing your sleep.
- Sleep Schedule Maker — a full daily timeline from your wake time: light, coffee, dinner and wind-down.
- How to Fall Asleep Fast — the 4-7-8 method, the military method and a 30-minute wind-down that works.
- Can't Fall Asleep? Start Here — restless evenings, week after week — what usually causes them and what eases them.