Why coffee at four wrecks your sleep
The half-life of caffeine, the switch it blocks, and what is still in your blood at bedtime.
Caffeine does not give you energy. It hides the signal that says you are tired. Half of what you drink is still in your blood about five hours later, and a quarter after ten. So the espresso at four in the afternoon is still working at midnight. Type what you drank below and the page draws it.
Perché il caffè alle quattro ti rovina il sonno
L'emivita della caffeina, l'interruttore che blocca, e quanta ne hai ancora nel sangue quando vai a letto.
La caffeina non ti dà energia. Nasconde il segnale che dice che sei stanco. La metà di quello che bevi è ancora nel sangue circa cinque ore dopo, e un quarto dopo dieci. Quindi l'espresso delle quattro del pomeriggio lavora ancora a mezzanotte. Scrivi qui sotto cosa hai bevuto e la pagina lo disegna.
The rule: half every five hours
The liver clears caffeine at a steady fraction per hour, so the amount in your blood halves on a fixed clock. For a healthy adult the half-life averages about 5 hours, and the real range is 3 to 7. That gives the only formula on this page:
An espresso at 16:00, 63 mg, at 23:00 has been through 7 hours, so 63 × 0.5 to the 1.4, which is 24 mg. At 07:00 the next morning, 8 mg. A large filter coffee at 16:00, 95 mg, leaves 36 mg at bedtime. A 500 ml energy drink leaves 61 mg. Two of those and you go to bed with more caffeine than an espresso.
What it blocks
While you are awake your cells burn fuel and a by-product called adenosine builds up in the brain. It docks onto receptors on nerve cells and slows them down. The longer you are awake, the more adenosine, the heavier your head. Sleep clears it. That is sleep pressure, and it is the main reason you feel tired at night.
Caffeine has nearly the same shape as adenosine. It sits in the same receptors and does nothing, so the adenosine cannot dock. The tiredness is still there, piling up behind a closed door. When the caffeine clears, the door opens and all of it arrives at once: the afternoon crash. The idea is from Solomon Snyder's lab in 1981, and Bertil Fredholm spent the next twenty years proving it was the whole story at the doses people drink.
What it does to sleep, measured
Drake's lab in Detroit gave people 400 mg of caffeine, two large coffees, at bedtime, 3 hours before, and 6 hours before, and recorded their sleep with sensors. All three cut sleep. The dose taken 6 hours before bed took more than an hour off the night, and the sleepers did not notice: their diaries said they had slept fine (Drake, Roehrs, Shambroom and Roth, 2013).
A 2023 review of 24 such studies found that caffeine takes about 45 minutes off a night on average and cuts the deep sleep. From the curves, the authors put the last ordinary coffee, about 107 mg, at 8.8 hours before bed, and a 217 mg pre-workout dose at 13.2 hours (Gardiner and colleagues, Sleep Medicine Reviews, 2023). For a 23:00 bedtime that is a last coffee at about 14:00.
Why your friend sleeps fine after an espresso
The half-life is not the same in everyone. One liver enzyme, CYP1A2, does almost all the work, and the gene for it comes in a fast and a slow version. Smoking speeds the enzyme up, so a smoker clears caffeine in about half the time. The pill slows it, roughly doubling the half-life. In pregnancy it stretches to 15 hours or more by the last months. A newborn takes days. So the slider above matters: 3 hours and 7 hours are both normal people.
And some people have a version of the adenosine receptor that caffeine binds less well, so they feel less of it. What nobody has yet is a cheap test that tells you your own number. Until then the honest test is the one above: drink, note the time, and see how you sleep.
What is in the cup
Measured values vary by bean, roast and barista. These are typical figures from the USDA tables and the European Food Safety Authority, and the ones the calculator uses.
Decaf is not zero: an espresso keeps 2 to 5 mg. Dark chocolate counts. Tea has less caffeine than coffee but a lot of tea is a coffee.
How much is safe
The European Food Safety Authority's 2015 opinion: up to 400 mg a day for a healthy adult, no more than 200 mg in one go, and no more than 200 mg a day in pregnancy. For children the figure is 3 mg per kilo of body weight, so a 30 kg child is at the limit after one can of cola and a chocolate bar.
Caffeine withdrawal is real and brief: a headache and a heavy head for two or three days after you stop, worst on day two. That is the adenosine receptors, which multiplied to get round the blockade, now with nothing to block them.
This page is arithmetic, not medical advice. If you are pregnant, have a heart rhythm problem, take medicines (some antibiotics and antidepressants slow caffeine a lot), or have a child drinking energy drinks, ask a pharmacist or doctor, not a web page.
In Como
The after-lunch espresso at 14:00 is almost gone by bedtime: 18 mg at 23:00. The problem is the 17:00 one with a friend at the lake, 63 mg, still 27 mg at 23:00 and enough to shave the deep sleep, and the after-dinner one at 21:00, 48 mg at 23:00. The Italian habit of a small espresso rather than a big filter cup is the right one; it is the hour, not the cup.
La regola: metà ogni cinque ore
Il fegato smaltisce la caffeina a una frazione costante ogni ora, quindi la quantità nel sangue si dimezza con un orologio fisso. Per un adulto sano l'emivita è in media di circa 5 ore, e l'intervallo reale va da 3 a 7. Da qui l'unica formula di questa pagina:
Un espresso alle 16:00, 63 mg, alle 23:00 ha passato 7 ore, quindi 63 × 0,5 alla 1,4, cioè 24 mg. Alle 7:00 del mattino dopo, 8 mg. Un caffè filtro grande alle 16:00, 95 mg, lascia 36 mg quando vai a letto. Un energy drink da 500 ml ne lascia 61. Due di quelli e vai a letto con più caffeina di un espresso.
Cosa blocca
Mentre sei sveglio le cellule bruciano carburante e nel cervello si accumula uno scarto chiamato adenosina. Si aggancia ai recettori delle cellule nervose e le rallenta. Più stai sveglio, più adenosina, più la testa è pesante. Il sonno la smaltisce. È la pressione del sonno, ed è il motivo principale per cui la sera ti senti stanco.
La caffeina ha quasi la stessa forma dell'adenosina. Si siede negli stessi recettori e non fa niente, così l'adenosina non può agganciarsi. La stanchezza è ancora lì, ammucchiata dietro una porta chiusa. Quando la caffeina se ne va, la porta si apre e arriva tutta insieme: il crollo del pomeriggio. L'idea viene dal laboratorio di Solomon Snyder nel 1981, e Bertil Fredholm ha passato i vent'anni successivi a dimostrare che era tutta la storia, alle dosi che la gente beve.
Cosa fa al sonno, misurato
Il laboratorio di Drake a Detroit ha dato a delle persone 400 mg di caffeina, due caffè grandi, al momento di andare a letto, 3 ore prima e 6 ore prima, e ha registrato il sonno con i sensori. Tutte e tre le dosi lo hanno accorciato. Quella presa 6 ore prima ha tolto più di un'ora alla notte, e chi dormiva non se n'è accorto: i diari dicevano che avevano dormito bene (Drake, Roehrs, Shambroom e Roth, 2013).
Una revisione del 2023 di 24 studi del genere ha trovato che la caffeina toglie in media circa 45 minuti a una notte e taglia il sonno profondo. Dalle curve, gli autori mettono l'ultimo caffè normale, circa 107 mg, a 8,8 ore prima di dormire, e una dose pre-allenamento da 217 mg a 13,2 ore (Gardiner e colleghi, Sleep Medicine Reviews, 2023). Per chi va a letto alle 23:00 vuol dire ultimo caffè verso le 14:00.
Perché il tuo amico dorme benissimo dopo l'espresso
L'emivita non è uguale per tutti. Un solo enzima del fegato, il CYP1A2, fa quasi tutto il lavoro, e il suo gene esiste in una versione veloce e una lenta. Il fumo accelera l'enzima, quindi un fumatore smaltisce la caffeina in circa metà tempo. La pillola lo rallenta, e l'emivita più o meno raddoppia. In gravidanza arriva a 15 ore o più negli ultimi mesi. Un neonato ci mette giorni. Per questo il cursore qui sopra conta: 3 ore e 7 ore sono entrambe persone normali.
E alcune persone hanno una versione del recettore dell'adenosina a cui la caffeina si lega meno bene, quindi la sentono meno. Quello che ancora non esiste è un test economico che ti dica il tuo numero. Fino ad allora il test onesto è quello qui sopra: bevi, segna l'ora, e guarda come dormi.
Cosa c'è nella tazzina
I valori misurati cambiano con il chicco, la tostatura e il barista. Questi sono valori tipici dalle tabelle USDA e dall'Autorità europea per la sicurezza alimentare, e sono quelli che usa il calcolatore.
Il decaffeinato non è zero: un espresso ne tiene da 2 a 5 mg. Il cioccolato fondente conta. Il tè ha meno caffeina del caffè, ma tanto tè è un caffè.
Quanta è sicura
Il parere dell'Autorità europea per la sicurezza alimentare del 2015: fino a 400 mg al giorno per un adulto sano, non più di 200 mg in una volta, e non più di 200 mg al giorno in gravidanza. Per i bambini il valore è 3 mg per chilo di peso, quindi un bambino di 30 kg è al limite dopo una lattina di cola e una barretta di cioccolato.
L'astinenza da caffeina è reale e breve: mal di testa e testa pesante per due o tre giorni dopo che smetti, al peggio il secondo giorno. Sono i recettori dell'adenosina, che si erano moltiplicati per aggirare il blocco, ora senza niente che li blocchi.
Questa pagina è aritmetica, non un consiglio medico. Se sei incinta, hai un problema di ritmo cardiaco, prendi medicine (alcuni antibiotici e antidepressivi rallentano molto la caffeina), o hai un figlio che beve energy drink, chiedi a un farmacista o a un medico, non a una pagina web.
A Como
L'espresso dopo pranzo alle 14:00 è quasi sparito quando vai a letto: 18 mg alle 23:00. Il problema è quello delle 17:00 con un amico al lago, 63 mg, ancora 27 mg alle 23:00 e abbastanza da limare il sonno profondo, e quello dopo cena alle 21:00, 48 mg alle 23:00. L'abitudine italiana dell'espresso piccolo invece della tazza grande da filtro è quella giusta; è l'ora, non la tazza.