Why Can Some People Drink Coffee at Night? Caffeine and Your Genes
Share
Every family seems to have one: the uncle who finishes dinner with a double espresso and is asleep twenty minutes later. Meanwhile, a 3 p.m. latte leaves someone else wide awake at midnight. So why can some people drink coffee at night without losing sleep? Largely because of genetics. One gene, CYP1A2, sets how fast your liver clears caffeine; another, ADORA2A, shapes how strongly your brain reacts to it.
Genes are only part of the story, though. Smoking, medication, pregnancy and habit all shift the numbers, and feeling fine does not always mean your sleep is untouched. Here is how it fits together.
Key takeaways
- The liver enzyme CYP1A2 handles the vast majority of caffeine breakdown. Common variants make people faster or slower metabolizers.
- The ADORA2A gene affects the adenosine receptor caffeine blocks, which influences how sensitive your sleep is to caffeine.
- Smoking speeds caffeine clearance; pregnancy and oral contraceptives slow it.
- Falling asleep easily after coffee does not prove your sleep quality is unaffected.
In this article
- Why can some people drink coffee at night?
- CYP1A2: the speed of your caffeine clearance
- ADORA2A: how sensitive your brain is
- Non-genetic factors that change the picture
- How to find your own caffeine cutoff
- FAQ
Why can some people drink coffee at night? Two separate dials
Think of caffeine’s effect on your night as two dials. The first is how long caffeine stays in your blood, which depends mainly on liver metabolism. The second is how much your brain cares about the caffeine that is there, which depends on your adenosine receptors.
Someone with fast clearance and low sensitivity can drink coffee late and notice little. Someone with slow clearance and high sensitivity may feel an early afternoon cup at bedtime. Most people sit somewhere in between.
| Clearance | Sensitivity | Typical experience with evening coffee |
|---|---|---|
| Fast | Low | Often sleeps easily; may still lose some deep sleep |
| Fast | High | Feels a strong jolt, but it fades sooner |
| Slow | Low | Mild buzz that lingers into the night |
| Slow | High | Most likely to have trouble falling asleep, even after lunchtime coffee |
CYP1A2: the speed of your caffeine clearance
CYP1A2 is a liver enzyme from the cytochrome P450 family. It is responsible for well over 90% of caffeine’s first metabolic step, turning it mostly into paraxanthine, with smaller amounts of theobromine and theophylline.
A common variant in the CYP1A2 gene, known as rs762551, affects how much of the enzyme your body can produce when it is “switched on.” People with two copies of the A version (AA) are usually described as fast metabolizers. Carriers of at least one C version (AC or CC) are described as slower metabolizers. In many populations, the two groups are roughly similar in size.
What the research links to slow metabolism
- A meta-analysis found that rs762551 is associated with how much coffee people habitually drink, with fast metabolizers tending to drink more.
- A 2006 study in JAMA, run in Costa Rica, found that higher coffee intake was associated with an increased risk of non-fatal heart attack only among slow metabolizers. This is an association from an observational study, not proof that coffee caused the events.
- A 2018 trial in competitive male athletes found that caffeine improved 10 km cycling time trial performance in AA carriers, showed no clear benefit in AC carriers and was linked to slower times in the small CC group at the higher dose.
Large genome-wide studies have also linked coffee intake to a gene called AHR, which helps regulate how strongly CYP1A2 is expressed. Your caffeine speed is therefore a team effort between several genes.
ADORA2A: how sensitive your brain is
Caffeine works mostly by blocking adenosine receptors. Adenosine builds up while you are awake and helps create sleep pressure; caffeine sits in its receptor and dulls that signal.
The ADORA2A gene codes for the A2A adenosine receptor. A 2007 study by Rétey and colleagues reported that a common variant in this gene was associated with how strongly caffeine disrupted sleep, measured with brain recordings. Variation in ADORA2A has also been associated with caffeine-induced anxiety. This explains a familiar puzzle: two people with the same caffeine level can react very differently.
Non-genetic factors that change the picture
Your genes set a baseline, but life moves it. These are the best-documented factors:
| Factor | Effect on caffeine clearance |
|---|---|
| Smoking | Speeds it up, because tobacco smoke induces CYP1A2 |
| Oral contraceptives | Slow it down |
| Pregnancy | Slows it down markedly, especially later in pregnancy |
| Liver disease | Slows it down |
| Some medications (for example the antidepressant fluvoxamine) | Can slow it down sharply by inhibiting CYP1A2 |
| Regular daily intake | Does not change clearance much, but builds tolerance to some effects |
If you take medication, ask your pharmacist whether it interacts with caffeine. Tolerance is a separate topic covered in our guide to caffeine tolerance.
Sleeping fine is not the same as sleeping well
Many evening coffee drinkers fall asleep quickly yet sleep more lightly. In a 2013 study in the Journal of Clinical Sleep Medicine, 400 mg of caffeine taken even 6 hours before bedtime reduced total sleep time by more than an hour, measured at home with a sleep monitor, and participants did not always notice. If you wake up unrefreshed, late coffee is worth testing as a cause. Our article on caffeine and sleep explains how it affects sleep stages.
How to find your own caffeine cutoff
Consumer DNA tests often report CYP1A2 results, but a single gene variant gives only a rough hint. Your own experiment is more useful and costs nothing:
- For one week, keep your usual coffee but stop all caffeine 10 hours before bed. Note sleep quality and morning energy each day.
- The next week, move the cutoff to 6 hours before bed.
- Then try 4 hours.
- Compare. The latest cutoff that does not change how you sleep or feel the next morning is your personal limit.
- Remember the daily reference of up to 400 mg for most healthy adults (EFSA, FDA), and up to 200 mg in pregnancy and breastfeeding.
To estimate how much caffeine is still in your system at bedtime, try our caffeine half-life calculator.
Coffee options for late in the day
If your experiment shows you are a slow, sensitive type, you do not have to give up the evening cup, only change it. Peru Decaf is a medium-roast single origin with caramel and citrus notes, and Decaf Espresso is a dark-roast water-process decaf for after-dinner shots. For mid-afternoon, Half Caf blends regular coffee and water-process decaf for half the caffeine.
Caffeine genetics FAQ
Am I a slow caffeine metabolizer?
Signs include feeling a morning coffee well into the afternoon and sleeping badly after lunchtime caffeine. A genetic test can show your CYP1A2 variant, but your daily experience is the practical answer.
Does tolerance mean caffeine stops affecting sleep?
Not fully. Regular drinkers adapt to some effects, but studies still show sleep changes in habitual users who take caffeine late.
Can you change your caffeine genes?
No, but you can change the timing, the dose and the type of coffee you drink.
Why does coffee make some people sleepy?
Often it is a crash as caffeine wears off and built-up adenosine hits, or poor sleep the night before. Our article Why Coffee Makes Me Tired covers this.
Sources
- Nehlig A. Interindividual Differences in Caffeine Metabolism and Factors Driving Caffeine Consumption. Pharmacological Reviews, 2018; 70(2): 384–411. PubMed.
- Cornelis MC et al. Coffee, CYP1A2 genotype, and risk of myocardial infarction. JAMA, 2006.
- Guest N et al. Caffeine, CYP1A2 Genotype, and Endurance Performance in Athletes. Medicine and Science in Sports and Exercise, 2018; 50(8): 1570–1578.
- Rétey JV et al. A genetic variation in the adenosine A2A receptor gene (ADORA2A) contributes to individual sensitivity to caffeine effects on sleep. Clinical Pharmacology and Therapeutics, 2007; 81(5): 692–698.
- Drake C et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 2013.
- Scientific Opinion on the safety of caffeine, European Food Safety Authority, 2015.
Facts checked in October 2026.
This article is for general information only and is not medical advice. If you have a health condition, are pregnant or take medication, ask your doctor before changing your caffeine intake.
Keep reading: How Much Caffeine Is Too Much? · Caffeine in Decaf · Single Origins