Loading...
Loading...
Interactive Tool
Caffeine has a half-life of 3-7 hours depending on your genetics. Add your daily caffeine sources, set your target bedtime, and see exactly when to stop drinking coffee for optimal sleep.
Coffee (8 oz)
95 mg at 7:00 AM
Add Source
Total Consumed
95
mg today
Current Level
13
mg right now
At Bedtime
12
mg at 10:00 PM
Sleep Impact
Minimal Impact
Below 50 mg (sleep-safe)
11:45 AM
Below 25 mg (deep sleep)
4:45 PM
Coffee cutoff for your bedtime
5:22 PM
for a standard 95 mg coffee
Caffeine level (mg) in your system throughout the day. The dashed yellow line marks 50 mg (sleep threshold) and green marks 25 mg (deep sleep ideal). The purple dashed line is your target bedtime.
Caffeine works by binding to adenosine receptors in your brain without activating them. Adenosine is a neurotransmitter that builds up during waking hours and creates "sleep pressure" -- the feeling of tiredness. When caffeine blocks these receptors, you feel alert. But the adenosine keeps accumulating. When caffeine wears off, all that built-up adenosine floods the receptors at once, causing the classic "caffeine crash."
Caffeine's half-life is the time it takes for your body to eliminate half of the caffeine in your system. If you drink 200 mg of coffee at 8 AM with a 5-hour half-life, you will still have 100 mg at 1 PM, 50 mg at 6 PM, and 25 mg at 11 PM. This is why afternoon coffee can significantly impact sleep quality even if you "feel fine."
Regular caffeine use causes your brain to grow more adenosine receptors, meaning you need more caffeine to get the same effect. Full tolerance develops in about 1-2 weeks of daily use. This is why your first coffee after a break feels dramatically more powerful. Periodic caffeine cycling (1-2 weeks off every 2-3 months) can reset your sensitivity.
Caffeine withdrawal begins 12-24 hours after your last dose and peaks at 24-51 hours. Common symptoms include headache, fatigue, irritability, difficulty concentrating, and depressed mood. Symptoms typically resolve within 2-9 days. Tapering by 25% every 2-3 days can minimize withdrawal severity. Even after withdrawal, adenosine receptor density normalizes within about 7-12 days.
Your caffeine metabolism speed is largely determined by the CYP1A2 gene, which produces the liver enzyme responsible for breaking down approximately 95% of ingested caffeine. There are two common variants:
You can determine your CYP1A2 genotype through genetic testing services like 23andMe or specialized nutrigenomics panels. If you are unsure, the "normal" (5-hour) setting provides a reasonable estimate for most people.
Wait 90-120 minutes after waking to drink coffee. Cortisol naturally peaks in the first 1-2 hours after waking. Caffeine during this window provides little additional alertness and accelerates tolerance build-up.
As a general rule, stop all caffeine at least 8-10 hours before bedtime. For slow metabolizers, 12 hours may be necessary. Use this calculator to find your personalized cutoff time.
If you crave an afternoon warm drink, switch to decaf or L-theanine. L-theanine (200 mg) provides calm alertness without blocking adenosine or disrupting sleep architecture.
Take a 7-14 day caffeine break every 2-3 months. This resets adenosine receptor density and restores caffeine's full ergogenic and cognitive effects when you resume.
The FDA considers 400 mg/day safe for most adults. However, individual tolerance varies significantly. Slow metabolizers may experience adverse effects at lower doses.
Caffeine hides in chocolate (40 mg per bar), some medications (65 mg per Excedrin), decaf coffee (7 mg per cup), and green tea. Track all sources for accurate calculations.
Caffeine Guide
Complete caffeine protocol and optimization
Sleep Guide
Master your sleep architecture
Circadian Rhythm Guide
Align your biology with the 24-hour clock
Chronotype Quiz
Discover your biological clock type
Sleep Score Estimator
Rate your current sleep quality
Morning Routine Builder
Design your ideal morning protocol