Abstract
Background:
Research on caffeine and cognitive performance remains controversial. Variations in genes associated with caffeine metabolism and response such as
Aim:
To investigate caffeine × gene interactions on cognitive performance in all key domains of cognition in healthy individuals.
Methods:
Participants completed a lifestyle and food frequency questionnaire and a cognitive test battery including validated tasks to assess the domains of social cognition, memory, attention and executive function. Genotyping was performed for
Results:
Significant gene × caffeine interactions were observed for the domains of social cognition, (
Conclusions:
The present findings suggest an association between genetic caffeine metabolism, habitual caffeine intake and cognitive function in the domains of social cognition and executive function. More research in naturalistic environments using larger cohorts is needed to confirm these findings to add to our understanding of how habitual caffeine may influence cognitive function based on individual genotype.
Introduction
The interest in the effects of various agents on cognitive function has grown remarkably, driven by the desire to understand their impact on cognitive performance across the lifespan and improve cognitive function in various populations, including students, healthy adults and the elderly (Cohen Kadosh et al., 2021; Klimova et al., 2020). Caffeine is the most widely consumed psychoactive substance and among the most promising cognitive function enhancers (Cappelletti et al., 2015; James, 2014). Acute caffeine intake is shown to enhance simple cognitive functions such as attention and reaction time but less consistent effects are observed for complex functions such as decision making (McLellan et al., 2016). There are also data showing a positive relationship between habitual caffeine consumption with memory and executive function, but there is limited evidence for an association with simple cognitive functions (Johnson-Kozlow et al., 2002).
Regular caffeine exposure may induce a form of brain preconditioning, with reported alterations of brain functional connectivity, brain metabolism and levels of adenosine and adenosine receptors in the adult brain (Lopes et al., 2023). Brain imaging studies have shown variability in brain regions related to vision, motor and emotional processing between low and high-caffeine consumers (Laurienti et al., 2002). Such changes have been replicated in non-caffeine consumers after a single coffee intake, suggesting possible causality between caffeine intake and altered patterns of neuronal networks (Magalhães et al., 2021), highlighting the importance of accounting for habitual caffeine consumption when examining caffeine acute effects. Studies further suggest that caffeine, particularly in combination with glucose, may enhance attentional efficiency through neural mechanisms that increase processing efficiency in specific regions such as the parietal and prefrontal cortex (Adan and Serra-Grabulosa, 2010; Serra-Grabulosa et al., 2010).
Inconsistencies in caffeine research on cognition are often due to variable cognitive assessment methods, participant selection (habitual consumers vs caffeine-naïve individuals), differences in the form, dosage and mode of caffeine intake (with or without sugar) and potential misclassification of habitual caffeine consumption (Cappelletti et al., 2015; James, 2014). As Nutrigenetics Science has advanced, some of the variability in study results has been attributed to common genetic variations, specifically Single Nucleotide Polymorphisms (SNPs), which are associated with caffeine metabolism and response (Nehlig, 2018). Research suggests that variants in the Adenosine Receptor A2a (
Nevertheless, a recent systematic review demonstrated that genetics studies on habitual caffeine intake and cognitive performance are limited and show mixed results, with some suggesting a relationship between caffeine intake and cognitive abilities in certain genotype groups and others reporting no significant gene × caffeine interactions (Kapellou et al., 2023). Notably, most genetic studies on caffeine and cognition focus on a single variant, such as those limited to caffeine metabolism or response (Baur et al., 2021; Carswell et al., 2020; Casiglia et al., 2017; Skeiky et al., 2020), without considering genetic variants associated with factors affecting cognitive performance, such as sleep. Everyday cognitive performance is influenced by various factors including environmental conditions, sounds, diet and sleep (Cunningham et al., 2018; Lamport et al., 2014; Nemati et al., 2019). Therefore, research should account for these intrapersonal and contextual factors (Verhagen et al., 2019). Additionally, past studies often focus on specific cognitive domains with one-time assessments, whereas repetitive tasks in real-life settings may more accurately capture daily cognitive function (Bouvard et al., 2018).
The aim of the present study was to investigate the interactions between genetics and habitual caffeine consumption on cognitive performance in all key domains of cognition that have been previously linked with caffeine, namely social and emotional cognition, memory, attention and executive function in healthy individuals in real-life conditions.
Materials and methods
Participants
A sample size of 131 was calculated using G*Power 3.1 (Faul et al., 2009) for a medium effect size (
Participants were recruited via email, word of mouth and social media. Data collection was completed remotely while genotyping and statistical analyses were completed at St Mary’s University Twickenham. Adult males and females in the UK with no neurocognitive disorders or vision impairments were eligible. Exclusion criteria included medication that may alter
Baseline questionnaire
The first part of the study included a baseline questionnaire consisting of sociodemographic, health and lifestyle questions (Figure 1).

Schematic representation of participant involvement across the three stages of the study.
Sociodemographic questions included sex, age, ethnic origin, education level (scored 1–7 for higher qualifications), medical history, medications, and tobacco use. Physical activity was assessed using the short International Physical Activity Questionnaire (IPAQ), classifying activity levels as ‘low’, ‘moderate’ or ‘high’ (Hallal and Victora, 2004). Sleep quality was measured using the Pittsburgh Sleep Quality Index (PSQI), with scores of 0–4 indicating ‘good’ sleep and 5–21 indicating ‘poor’ sleep (Fabbri et al., 2021).
Participants completed the EPIC-Norfolk Food Frequency Questionnaire (FFQ) to assess habitual caffeine and alcohol intake (Mulligan et al., 2014). Caffeine intake was calculated from 11 common foods and drinks, including tea, coffee, chocolate and soft drinks, using EPIC database portion sizes and published caffeine content data (Fitt et al., 2013; Malczyk et al., 2021).
Cognitive test battery
In the second part of the study, participants completed a cognitive test battery hosted by the Gorilla Experiment Builder (Anwyl-Irvine et al., 2020) on three separate days within a period of 2 weeks. The battery comprised four tasks covering (in order of appearance) social and emotional cognition, memory, attention and executive function. Participants were instructed to complete the tasks on the same device in a quiet room and at least 5 h after consuming any source of caffeine or alcohol, hypothesising that individuals would be neither under the acute effects of these substances nor under caffeine abstinence when the test battery was performed (Casiglia et al., 2017). Subjective sleepiness before each test session was assessed using the Karolinska Sleepiness Scale (KSS), a validated 9-point Likert scale ranging from ‘1’ (extremely alert) to ‘9’ (extremely sleepy, fighting sleep) (Kaida et al., 2006). The time of test completion was recorded for all tasks.
Social and emotional cognition
Participants completed a facial expression recognition task using 48 images of faces showing six basic emotions (anger, fear, sadness, happiness, disgust and surprise) from the Karolinska Directed Emotional Face System (Lundqvist et al., 1998). Images were displayed for 1 s and participants selected the emotion for each face (3500 ms interstimulus interval). Mean reaction time (RT) for correct responses over 3 days was used in analyses.
Memory
Memory was assessed using the 1-, 2-, and 3-back letter tasks (Owen et al., 2005). Each task involved 20 targets and 40 non-targets, where participants pressed ‘Yes’ for targets and ‘No’ for non-targets (3500 ms interstimulus interval). The three-day mean RT for correct answers was analysed, excluding responses <100 ms.
Attention
The Psychomotor Vigilance Task (PVT) measured the domain of attention (Lim and Dinges, 2008). Participants pressed a button when a red dot appeared on a scrolling time counter. The interstimulus interval varied from 2 to 10 s over 100 trials. RTs < 100 ms and >500 ms were excluded, and the 3-day mean RT was used.
Executive function
The Stroop colour and word task assessed executive function. Participants named the colour of words in two subsets: neutral (black words) and incongruent (words in mismatched colours). This task is based on the principle that reading is a more automatic response than colour naming, leading to interference (Stroop asynchrony) (Scarpina and Tagini, 2017). The 3-day mean Stroop effect was calculated as the difference between mean RTs for the coloured and non-coloured sets.
Global cognition
A composite global cognition score was computed by averaging z-scores from the four cognitive tasks, with all RTs converted into response speed (1/RT) to standardise scoring. This provided a more comprehensive representation of cognitive function (Zhou et al., 2018).
Genotyping
In the final part of the study, participants with complete data from the baseline questionnaire and test battery were provided a buccal swab (RapiDri™ Swab kit, Isohelix, Kent, UK) for DNA analysis. Swabs were mailed home with a pre-paid return envelope and sampling instructions.
Laboratory analyses followed approved protocols by the St Mary’s Ethics Committee. DNA was extracted using the PSP® SalivaGene 17 DNA Kit (STRATEC Molecular, Berlin) following the manufacturer protocol. Genotyping for
Statistical analysis
Statistical analysis was conducted using IBM SPSS Statistics 28.0 (IBM, Chicago, IL). Data are presented as means ± standard deviation (SD) or medians ± interquartile range (IQR). Participants were grouped based on the level of habitual caffeine intake into low (0–50 mg/day), moderate (51–300 mg/day), and high (>300 mg/day) caffeine consumers (Erblang et al., 2019). Group differences were assessed using one-way ANOVA or Kruskal–Wallis
Deviations from Hardy Weinberg Equilibrium (HWE) for each SNP were performed using the
Genotype groups were compared using independent samples
Results
Participant characteristics across levels of caffeine intake
A total of 129 participants aged 23–64 years (94% Caucasian/white) were included in the study (Table 1). Most participants had moderate PAL (74%) and a normal BMI of 18.5–24.9 kg/m2 (57%). All participants consumed alcohol within safe limits (<100 g/week; Conigrave et al., 2021). Genotype frequencies for all SNPs did not deviate from HWE (
Participant characteristics by total sample and level of habitual caffeine consumption.
Low, moderate, and high-caffeine intake: 0–50, 51–300 and >300 mg/day, respectively.
L: low; M: moderate; H: high; PAL: physical activity level; BMI: body mass index; PSQI: Pittsburgh sleep quality index; KSS: Karolinska sleepiness scale.
Values represent means ± SD.
Values represent medians ± IQR.
Two participants were excluded from attention analyses due to RTs above 500 ms on all 3 days of the experiment, and 12 were excluded from executive function analyses for incorrectly performing the task. This left 117 participants for the global cognition analysis.
Demographics did not differ across caffeine intake groups, while differences were observed in subjective sleepiness, alcohol and caffeine intake (
Participant characteristics across genetic groups
In the present sample, MAF for
Participants were grouped into ‘fast’ and ‘slow’ metabolisers using two SNPs (
Participant characteristics by genetic caffeine metabolism.
Participants are categorised according to
BMI: body mass index; PAL: physical activity level; L: low; M: moderate; H: high; PSQI: Pittsburgh sleep quality index; KSS: Karolinska sleepiness scale.
Values represent means ± SD.
Values represent medians ± IQR.
The
Cognitive performance
Multiple regressions (
The proportion of variance in all models was of trivial effect based on Cohen (1988), with the model of social and emotional cognition explaining 10% of variance, the model of memory explaining 16.6% of variance, the model of attention accounting for 5.3% of variance, the model of executive function accounting for 10.1% of variance and the model of global cognition explaining 15.7% of the variation in performance. The factors associated with cognitive function included age (social and emotional cognition, memory, attention and global cognition) and BMI (executive function). Neither habitual caffeine intake nor genetics were associated with cognitive function in any of the measures.
Habitual caffeine intake × genetics on cognition
The possible interactions between genetic caffeine metabolism and levels of caffeine intake on indices of cognition were investigated and results are shown in Figures 2 and 3.

Task mean reaction times for ‘slow’ (grey bars) and ‘fast’ (white bars) metabolisers for levels of caffeine intake (low vs moderate vs high) in (a) emotion recognition, (b) memory, (c) attention and (d) executive function. Error bars indicate standard deviations.

Overall cognitive performance
Two-way ANOVAs were conducted to examine the associations of habitual caffeine intake and genetic caffeine metabolism on cognitive performance. All pairwise comparisons were run for each simple main effect with a reported 95% confidence interval (CI). All
There was a statistically significant interaction between levels of habitual caffeine intake and genetic caffeine metabolism for emotion recognition,
There was a statistically significant difference in executive function performance between ‘slow’ and ‘fast’ metabolisers in moderate caffeine consumers,
No comparisons were performed between caffeine ‘sensitive’ and ‘non-sensitive’ individuals based on the level of habitual caffeine intake since there were only three participants in the ‘sensitive’ – low-caffeine intake group.
Discussion
The purpose of the present study was to investigate the interactions between genetics and habitual caffeine consumption on cognitive performance in four key domains of cognition, namely social and emotional cognition, memory, attention and executive function in healthy individuals in real-life conditions and on three separate occasions. The present study showed that habitual caffeine intake was higher in ‘fast’ compared with ‘slow’ metabolisers. Moreover, ‘slow’ metabolisers performed better than ‘fast’ metabolisers in emotion recognition among high-caffeine consumers. On the contrary, ‘fast’ metabolisers performed better than ‘slow’ metabolisers in the executive function domain, but only within moderate caffeine consumers. The findings are discussed in detail below.
Habitual caffeine intake
Genetics are shown to be involved in individual variability in caffeine consumption, both at the pharmacodynamic and pharmacokinetic levels (Yang et al., 2010). This study found a significant difference in caffeine intake between genetic metabolism groups, with ‘fast’ metabolisers consuming more than ‘slow’ metabolisers (
On the contrary, this study did not replicate previous findings of an association between the
Cognitive performance
The current analysis supports a domain-specific association between habitual caffeine consumption and cognitive function. Age and BMI were the only factors associated with performance across various cognitive indices. The results are discussed below by cognitive domain.
Social and emotional cognition
Social and emotional cognition refers to all mental processes underlying one’s ability to understand the behaviours of others, as a requirement for communication and social interactions (Pinkham et al., 2014). The present study showed that age is negatively associated with performance in the domain of social and emotional cognition, consistent with previous findings (Adólfsdóttir et al., 2017; Tremblay et al., 2016).
Moreover, a statistically significant difference in emotion recognition between ‘slow’ and ‘fast’ metabolisers among high-caffeine consumers is reported. Specifically, ‘slow’ metabolisers had a higher performance in emotion recognition compared with ‘fast’ metabolisers, but only among high-caffeine consumers (
Lower performance among ‘fast’ metabolisers who consume high levels of caffeine may be due to withdrawal symptoms. Participants abstained from caffeine for at least 5 h before testing, which means that habitual caffeine consumers would be neither under the acute effects of caffeine nor in abstinence when cognitive tasks would be performed (Casiglia et al., 2017). A typical overnight caffeine abstinence results in substantial elimination of systemic caffeine by early morning; thus, upon awakening, caffeine consumers have entered the early stages of caffeine withdrawal (Juliano and Griffiths, 2004). Although test times were similar across groups, ‘fast’ metabolisers might have experienced stronger withdrawal, especially if tested in the morning before their usual caffeine intake, potentially affecting their performance.
Finally, high-caffeine consumers reported greater sleepiness before tasks compared to low consumers, aligning with previous research linking heavier caffeine use to higher daytime sleepiness (Chaudhary et al., 2016). This sleepiness may have contributed to their lower performance, as levels of alertness may impact cognitive function (Fortier-Brochu et al., 2012).
This study is the first to explore the associations between caffeine and the domain of social cognition. Despite the documented effects of caffeine on emotional arousal (Giles et al., 2018), its association with emotion recognition is unclear and warrants further study.
Memory
In the memory domain, higher age was linked to lower performance, consistent with previous findings (Adólfsdóttir et al., 2017; Salthouse, 2012). No significant gene x caffeine interactions were observed, aligning with the UK Biobank studies using the same genetic score for caffeine metabolism (Cornelis et al., 2020a, 2020b). However, despite SNP selection, these studies assessed memory and habitual caffeine intake differently. The present study used the n-back task to assess working memory, while the UK Biobank studies focused on prospective and episodic memory. Additionally, this study measured caffeine intake from all dietary sources, whereas the UK Biobank focused on recent coffee or tea intake within the hour preceding cognitive assessments, or habitual caffeine intake in cups of coffee or tea per day.
Attention
Performance in the domain of attention was associated with age; the higher the age, the lower performance in attention, as previously shown (Adólfsdóttir et al., 2017; Tremblay et al., 2016). No significant gene × caffeine interactions were observed for the domain of attention. This is also in line with the investigations from the UK Biobank, which failed to find any gene × caffeine interactions for the test of vigilance. Nevertheless, the studies used different cognitive tasks to assess vigilant attention (PVT vs symbol matching). Therefore, the implications of the different methodologies between the studies, as mentioned for the domain of memory, need to be considered.
Executive function
Higher BMI was associated with lower performance in executive function, which is in line with the existing literature (Lokken et al., 2009; Nilsson and Nilsson, 2009).
A statistically significant difference was observed in executive function performance between ‘slow’ and ‘fast’ metabolisers among moderate caffeine consumers. Among moderate caffeine consumers, ‘fast’ metabolisers had a higher performance in executive function compared with ‘slow’ metabolisers (
Executive function has been examined in three prior genetic studies on caffeine. Two studies from the UK Biobank reported no significant associations when using a verbal-numerical reasoning test (Cornelis et al., 2020a, 2020b). In contrast, another study found that higher caffeine intake was linked to greater abstraction scores, but only among ‘slow’ metabolisers (Casiglia et al., 2017). Variations in tasks, testing conditions (laboratory vs at-home), the SNPs used as proxies for genetic caffeine metabolism and methods for measuring habitual caffeine intake contribute to the differing results. Additionally, it is important to note that Casiglia et al. (2017) required participants to abstain from caffeine overnight, which may have influenced findings due to withdrawal symptoms.
Global cognition
This was the first genetics study on caffeine and cognition to employ a global cognitive function score. Although age was negatively associated with global cognitive function, no significant gene × caffeine associations were found. Considering the results in the present sample, two questions may arise: the differential results between emotion recognition and executive function and the lack of significant gene x caffeine interactions for the domains of attention, memory and global cognition.
In addition to the nature of cognitive domains (simple vs complex), task order may have influenced results, as the emotion recognition task was administered first, potentially affecting validity. Indeed, mental fatigue can lead to a decline in performance over time, especially in cognitively demanding tasks (Borbély et al., 2016; Caldwell et al., 2019). This is underscored by the number of participants excluded for not following instructions in the executive function task. Although the test duration may not have induced cognitive fatigue (Dallaway et al., 2022), as time on task increases, exerting effort declines, leading to reductions in performance (Müller and Apps, 2019). In this sample, this is especially important for high-caffeine consumers, who presented lower baseline alertness compared with the other caffeine intake groups.
In summary, the findings suggest that the test battery may have lost sensitivity for certain tasks, impacting the detection of associations across all domains. As comparable cognitive tests are limited, caution should be applied in interpreting findings, and replication is warranted.
Strengths and limitations
This is the first genetic association study on caffeine examining all four key domains of cognition assessing cognitive performance remotely on three separate instances to account for common day-to-day intra-individual variations in performance (von Stumm, 2016) to provide a more appropriate estimate of everyday cognition. Recent findings also support that cognitive tasks performed in naturalistic settings (e.g., at home or at work) provide measurements that are comparable in reliability to assessments made in controlled laboratory environments (Sliwinski et al., 2018).
Nevertheless, this study is not free of limitations. Firstly, because of participant data exclusion, the study was not appropriately powered and this may explain the lack of significance in some cognitive domains. Additionally, the caffeine groups were imbalanced, with only seven participants in the low-caffeine ‘fast’ metaboliser group, potentially impacting the results and highlighting the need for further research. Moreover, significant variations among caffeine intake groups, such as subjective sleepiness prior to tasks and alcohol consumption, as well as non-significant differences in tobacco use, could have influenced cognitive outcomes and should be considered when interpreting the results.
Conclusions
This study confirms that the association between caffeine and cognition is domain-specific, with social and emotional cognition and executive linked to habitual intake. It also replicates findings that ‘fast’ metabolisers consume more caffeine, likely to achieve psychostimulant effects, with different caffeine-cognition associations due to more profound withdrawal symptoms in ‘fast’ metabolisers. Variations in brain caffeine and paraxanthine levels may explain differences in mental fatigue and engagement. While the results align with existing literature, inconsistent cognitive assessment methods limit their broader applicability. Larger studies in naturalistic settings are needed to confirm these findings and explore gene x caffeine interactions in brain functions.
Footnotes
Acknowledgements
We are grateful to the EPIC-Norfolk Study team for the use of the EPIC-FFQ software.
Authors’ contributions
AK, LP and YM conceived the study question. AK drafted the study protocol with input from LP and YM. AK completed data extraction and analysis. AK prepared a first draft of the manuscript with input from all authors. All authors critically reviewed, edited and approved the final manuscript.
Availability of data and material
Data are saved on Jisc and Gorilla online platforms and available for further analysis upon request.
Declaration of conflicting interests
The author(s) declared the following potential conflicts of interest with respect to the research, authorship, and/or publication of this article: YM serves as a scientific consultant at MyHealthChecked, a wellness company specialised in personalised healthcare. LP is the founder of Optimyse Nutrition LTD, a nutrigenetic testing company. AK serves as a Nutrition and Genetics specialist at iDNA Laboratories, a lifestyle genetic testing company.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: EPIC-Norfolk is supported by programme grants from the Medical Research Council UK (G9502233, G0300128) and Cancer Research UK (C865/A2883).
Ethical approval
The participants provided written informed consent. The study was further approved by the St Mary’s University Twickenham Ethics Committee and was performed in accordance with the Declaration of Helsinki.
Consent for publication
All the authors consent to the publication of the present paper.
