Consuming two to three cups of coffee each day is associated with a lower risk of developing mood and stress disorders. As intake increases, the protective pattern disappears, and people who drink five or more drinks daily have higher rates of these mental health conditions. This large-scale study was published in the Journal of Affective Disorders.
Mental health conditions such as anxiety and depression affect the lives of hundreds of millions of people around the world. These illnesses affect mental health, cognitive performance, and overall quality of life. Epidemiological analyzes show that mental disorders account for a significant amount of disability-adjusted life years lost worldwide. This indicator captures the number of years of healthy, functional life a person loses due to a medical condition.
The economic and social costs of these diseases are incredibly high, so public health officials are keen to identify available methods to protect the brain from everyday stressors. In search of lifestyle adjustments that may help prevent these symptoms, researchers are increasingly focusing on daily diet and nutrition. Coffee is one of the most widely consumed beverages in the world, but previous research on the relationship between coffee and mental health has yielded inconsistent results.
Some previous studies found no benefits from drinking coffee, while others suggested various protective effects. A research team led by nutritional epidemiologists Xiang Gao and Liang Sun of Fudan University in Shanghai, China, wanted to resolve these mixed signals. Along with lead co-authors Berty Ruping Song, Xinming Xu and Junlin Chen, the senior researchers sought to assess how specific amounts and types of coffee were associated with long-term mental health outcomes.
They also wanted to answer deep questions about basic human biology. People process caffeine at different rates based on their genetic makeup. The researchers aimed to see whether a person’s innate ability to break down caffeine alters the relationship between drinking habits and mental health. They also investigated potential differences between men and women.
To answer these questions, the research team analyzed data from the UK Biobank. This is a large database containing health, genetic and lifestyle information from half a million adults in the UK. After excluding individuals who were already suffering from a mood or stress disorder at the start of the study period, the team followed 461,586 participants for an average of just over 13 years.
At the beginning of the data collection period, participants reported their daily coffee intake. They also mentioned the specific types of coffee they usually drink, such as instant coffee, ground coffee, and decaffeinated coffee. During the follow-up period, researchers tracked hospital records to determine who developed mood disorders such as depression and bipolar disorder. They also tracked stress disorders such as severe anxiety and panic disorder.
The researchers then used mathematical models to look for patterns in the data. They adjusted their calculations to account for other factors that affect mental health. This includes basic demographic details such as age and wealth, as well as lifestyle factors such as physical activity, sleep hours, and smoking status. They also took into account whether participants had pre-existing chronic conditions such as high blood pressure or type 2 diabetes.
This mathematical adjustment helps isolate the specific role of coffee and removes the influence of other habits that could skew the results. Upon reviewing the final data, the team identified a clear pattern known as the J-shaped curve. This means that mental health risks initially decreased as coffee consumption increased, reached a low point, and then rapidly increased as consumption continued to increase. The lowest rates of both mood and stress disorders were found in people who drank two to three drinks a day.
The apparent benefits disappeared once people started drinking more than three cups a day. Participants who drank five or more cups of coffee a day had higher rates of stress disorders than those who drank moderate amounts. Especially when it comes to mood disorders, people who consume large amounts of ground coffee have been shown to be at increased risk.
The type of coffee consumed appears to influence the results. Instant coffee and ground coffee followed a J-shaped pattern, but decaffeinated coffee showed no clear association with mental health outcomes. This suggests that caffeine itself, or compounds that are processed together with caffeine, may play a specific role in mood-related brain chemistry.
Gender differences also emerged in the data. Researchers observed that the association between moderate coffee intake and reduced risk of mood disorders was stronger for men than for women. Previous research suggests that women often metabolize caffeine more slowly due to differences in estrogen levels, which may alter the interaction between caffeine and the nervous system over time.
To investigate the genetic aspects of caffeine metabolism, the research team calculated a score for each participant based on standard DNA variations known to determine how quickly the body removes caffeine from the bloodstream. Certain enzymes in the liver are involved in breaking down coffee, and the blueprint for these enzymes is encoded in a person’s DNA. They found no evidence that these genetic differences altered the association between coffee intake and mental health. People with genes that process caffeine slowly had the same J-shaped risk curve as people with genes that process caffeine quickly.
The researchers also looked for biological clues to explain their findings. Blood samples taken at the beginning of data collection were used to examine various biomarkers related to inflammation, kidney function, and liver health. They identified lower levels of certain inflammatory markers in moderate coffee drinkers, suggesting that coffee may modestly reduce inflammation in the body.
They also observed variations in a protein called cystatin C, which is used to estimate the kidney’s filtration rate. The researchers’ analysis shows that the link between coffee and mood disorders is largely explained by changes in kidney filtration rates. Reducing inflammation in the body also accounts for part of the protective effect.
In addition to caffeine, coffee contains hundreds of biologically active compounds, including polyphenols and compounds produced during the roasting process. These chemicals often act as antioxidants, helping cells repair damage and reducing widespread systemic inflammation that can negatively impact brain function. From a brain chemistry perspective, caffeine targets specific receptors in the central nervous system. Moderate amounts of caffeine can enhance mood by acting on receptors that increase alertness and dopamine activity.
At the same time, consuming large amounts of caffeine can increase levels of cortisol, a hormone closely associated with stress. High concentrations of caffeine also increase the activity of biomolecules within cells and can be toxic to brain tissue if consumed in excess. This biological reality aligns well with research showing that while two to three drinks may have mild protective effects, drinking more than five drinks can worsen stress and anxiety over the long term.
Although the sample size is large, the study design relies on observational data and cannot prove that coffee directly causes improved or worsened mental health. Participants reported their coffee habits only once at the beginning of the follow-up period. As a result, the data may not capture people who changed their diet during the 13-year follow-up period.
The UK biobank population is primarily made up of white adults who tend to live in socio-economically disadvantaged areas, meaning that the results do not automatically apply to all demographic groups around the world. The researchers also lacked details about the exact strength of the coffee and cup size. This makes it difficult to fully measure total caffeine intake.
Future research should examine precisely measured doses of coffee and caffeine in controlled trials to establish a stronger association. Scientists also want to investigate exactly how coffee compounds interact directly with receptors in the brain throughout the lifespan of consumption. Until then, current evidence suggests moderation is a wise approach for those who enjoy beer every day.
The study, “Daily Coffee Intake and Mental Health Outcomes: Gender Differences and the Role of Caffeine Metabolizing Genotype,” was authored by Berty Ruping Song, Xinming Xu, Junlin Chen, Yuzhuo Wang, Yue Chen, Zhicheng Zhang, Chuang Han, Haiyang Dong, Xiang Gao, and Liang Sun.

