←  michaelcastelein.com

Caffeine Lab

A sandbox, not a tracker. Drag drinks onto the day, move them around, and watch what your body does with them.

At bedtime

All clear

mg
Peak
0mg
Total drunk
0mg

The day · drag a drink from below onto the chart, or drag a pin to retime it

· 0 mg Clear
total in blood each drink alone sleep threshold

The shelf · drag onto the day to place it at an exact time

On the day

Nothing placed yet. Drag something from the shelf onto the chart above.

Total drunk 0 mg

Last call · the latest you could add one and still be under threshold at bedtime

How it actually works

Anatomy of one drink

Caffeine doesn't hit instantly and it doesn't switch off. It's absorbed from your gut over roughly half an hour (peaking about 45 minutes in) and from there your liver clears it at a steady proportional rate.

That's what a half-life means: every 5 hours, whatever is left gets cut in half. Not a fixed number of mg. A fixed fraction. So the tail is long. An afternoon drink is still a quarter of itself at bedtime, which is exactly the part people miss.

What it's doing in there: caffeine doesn't add energy, it blocks adenosine, the molecule that accumulates while you're awake and makes you feel sleepy. The tiredness keeps building underneath; you just stop receiving the message. When the caffeine clears, it's all still waiting.

How much can you have on board and still sleep?

50 mg

Falling asleep isn't the same as sleeping well. In a controlled trial, 400 mg of caffeine (a large coffee) measurably disrupted sleep even when it was taken six hours before bed, costing about an hour of sleep the drinkers didn't notice losing. Caffeine suppresses deep, slow-wave sleep first, and that's the part you can't feel going missing.

So the threshold isn't "the level where I can't drop off". Most people can fall asleep on far more than that. It's the level where caffeine stops eating your sleep quality. Under 50 mg at lights-out is a sane default: about a strong cup of tea still circulating. Sensitive, or waking at 3 a.m. a lot? Try 25. Genuinely sleep like a rock? 100 is defensible.

What's actually in what · typical serving, mg of caffeine

Highlighted bars are on your day. Real servings vary a lot, a coffee shop drip can hit 200 mg, and a home espresso is often weaker than the 63 mg standard. Treat these as ballpark, not gospel.

Does your clearance rate matter? · the same day, three different metabolisms

Your numbers

These frame the day and set how fast you burn caffeine off.

5 h
Typical adult ≈ 5 h. Smokers clear faster (≈3.5 h); hormonal birth control or pregnancy can push it past 10 h. If you sleep worse than this predicts, raise it.
50 mg
How much you can have on board and still fall asleep fine. Lower = stricter.
400 mg
400 mg/day is the usual healthy-adult guideline.

Custom drink

Anything not on the shelf.