Why two people can drink the same coffee and have completely different experiences.
Most people have noticed that caffeine affects different people very differently. Someone drinks an espresso after dinner and sleeps fine. Someone else has a flat white at 3pm and lies awake until midnight. This is not a matter of tolerance or habit. It is, in large part, genetics.
The gene responsible is CYP1A2. It encodes the primary enzyme in the liver that metabolises caffeine. Variants in this gene produce fast metabolisers and slow metabolisers, and the difference between them is not subtle.
When you drink coffee, caffeine is absorbed from the gut into the bloodstream and travels to the brain, where it blocks adenosine receptors. Adenosine is the compound that builds up throughout the day and creates the feeling of tiredness. By blocking its receptors, caffeine delays the onset of sleepiness and increases alertness.
Caffeine does not eliminate adenosine. It masks the signal. When caffeine is eventually metabolised and cleared from the system, the accumulated adenosine floods back in, which is why a caffeine crash often feels more sudden than natural tiredness.
The metabolic clearance of caffeine happens primarily in the liver, where the CYP1A2 enzyme breaks it down into its metabolites. How quickly this happens is largely determined by which variant of CYP1A2 you carry.
The CYP1A2 gene has a common variant, known as the 1A allele at the rs762551 position, that produces a fast-metabolising version of the enzyme. People who carry two copies of this variant, roughly 45 to 50 percent of the population, are fast metabolisers. Their CYP1A2 enzyme clears caffeine from the body in approximately 3 to 5 hours.
People who carry one or two copies of the C allele are slow metabolisers, making up the other 50 to 55 percent of the population. Their CYP1A2 enzyme works less efficiently, and caffeine remains active in their system for 6 to 10 hours or more.
For a fast metaboliser, a coffee at 3pm has largely cleared the system by 9pm. Evening caffeine consumption has minimal impact on sleep quality for these individuals. Their apparent tolerance to caffeine is not a sign of resilience or health. It is simply faster metabolic clearance.
For a slow metaboliser, a 3pm coffee still has meaningful caffeine activity at midnight. Even if they fall asleep without difficulty, the presence of caffeine in the system reduces sleep quality by reducing time in deep sleep stages. The sleep feels less restorative than the hours in bed would suggest. Many slow metabolisers have attributed their poor sleep to lifestyle factors without ever connecting it to afternoon caffeine, because they felt they could fall asleep after coffee.
Moving the last coffee of the day to before noon, or switching to decaffeinated coffee after midday, produces noticeable sleep improvement for slow metabolisers. It is one of the more impactful single dietary changes available for this group.
The CYP1A2 gene also has implications beyond sleep. Research, including a well-known study in a large Canadian population, found that slow metabolisers who consumed four or more cups of coffee per day had a higher risk of non-fatal heart attacks compared to fast metabolisers at the same intake. The proposed mechanism is that slower caffeine clearance means prolonged exposure to caffeine's cardiovascular effects, including raised blood pressure and heart rate.
Fast metabolisers appear to derive greater cardiovascular benefit from moderate coffee consumption, consistent with the general research showing protective associations between coffee and certain health outcomes. The implication is that the health effects of coffee consumption are not the same for everyone, and caffeine metaboliser status is a meaningful variable.
CYP1A2 is the primary determinant of caffeine metabolism speed, but it is not the only one. Smoking substantially induces CYP1A2 activity, making smokers faster caffeine metabolisers. Certain medications, particularly some antidepressants, inhibit CYP1A2 and slow caffeine clearance. Oral contraceptives also reduce CYP1A2 activity, which is why some women find their caffeine sensitivity changes when starting or stopping hormonal contraception. Pregnancy reduces CYP1A2 activity significantly.
Adenosine receptor variants, particularly ADORA2A, also affect how sensitive you are to caffeine's alerting effects independent of how quickly it is metabolised. People with certain ADORA2A variants are more sensitive to caffeine's effects even when it is cleared at normal speed.
If afternoon coffee reliably disrupts your sleep, the likelihood is that you are a slow metaboliser. Trying the experiment of moving your last caffeine to before noon for two weeks is a low-cost, high-signal test. If sleep quality improves noticeably, CYP1A2 slow metaboliser status is the most probable explanation.
A DNA nutrition test that includes CYP1A2 analysis gives you confirmed knowledge of your metaboliser status, which is more useful than guessing based on observations, particularly because the connection between afternoon caffeine and sleep quality is not always obvious.