Eating a wider variety of foods is associated with better sleep among medical students, according to a 2026 cross-sectional study of 246 students. Researchers found that each additional food type in a student’s regular diet reduced the odds of poor sleep by 11.8%. Over 70% of medical students in the study reported poor sleep quality, but those who ate more diverse diets—including different vegetables, fruits, proteins, and grains—slept significantly better. While this study shows a connection rather than proof of direct causation, it suggests that improving diet diversity could be a practical strategy for better sleep.
A new study of 246 medical students found that eating a wider variety of foods is linked to better sleep. Researchers at Rawalpindi Medical University discovered that students who ate more diverse diets—including different food groups—had significantly better sleep quality than those with limited food variety. The study also found that over 70% of medical students struggle with poor sleep, and that higher body weight was connected to worse sleep. According to Gram Research analysis, simply adding more food variety to your diet could be an easy way to improve how well you sleep at night.
Key Statistics
A 2026 cross-sectional study of 246 medical students at Rawalpindi Medical University found that each one-point increase in diet diversity score was associated with an 11.8% reduction in the odds of poor sleep quality.
More than 70% of medical students in a 2026 study reported poor sleep quality, with students eating more diverse diets showing significantly better sleep outcomes than those with limited food variety.
In a 2026 study of 246 medical students, higher body mass index was significantly associated with poorer sleep quality, suggesting that weight management combined with diet diversity may optimize sleep health.
A 2026 cross-sectional study found that female medical students reported using sleep medications significantly more frequently than male students, despite similar overall sleep quality ratings between genders.
The Quick Take
- What they studied: Whether eating different types of foods affects how well medical students sleep at night
- Who participated: 246 undergraduate medical students (61% female) from first to final year at Rawalpindi Medical University in Pakistan, ranging from new students to those finishing their degree
- Key finding: Students who ate more diverse foods had 11.8% lower chances of having poor sleep for each additional food type they regularly consumed
- What it means for you: Adding variety to your meals—eating different vegetables, fruits, proteins, and grains—might help you sleep better. This is especially helpful if you’re a student dealing with stress and irregular schedules. However, this study shows a connection, not proof that diet diversity directly causes better sleep.
The Research Details
Researchers surveyed 246 medical students at one university in Pakistan using three different questionnaires. They asked students about what foods they ate (to measure diet diversity), how well they slept (using a standard sleep quality test), and their overall eating habits. The researchers then looked for patterns between diet variety and sleep quality using statistical analysis. This type of study is called ‘cross-sectional’ because it captures a snapshot of information at one point in time, rather than following students over months or years.
Cross-sectional studies are useful for identifying connections between factors like diet and sleep, which can guide future research. By studying medical students specifically, researchers targeted a group known to have high stress and poor sleep habits. This helps identify whether diet improvements could be a practical solution for a struggling population.
The study used validated, established questionnaires (PSQI for sleep, DQQ for diet) that are recognized worldwide, which strengthens the reliability of measurements. However, the study only included students from one university in Pakistan, so results may not apply to all students everywhere. The study also relied on students self-reporting what they ate, which can be less accurate than direct observation. Additionally, the study shows correlation (a connection) but cannot prove that diet diversity directly causes better sleep.
What the Results Show
The most striking finding was that over 70% of medical students reported poor sleep quality, showing this is a widespread problem in this population. Among students with better sleep, the median diet diversity score was noticeably higher than among those with poor sleep. For every one-point increase in diet diversity score (meaning eating one more type of food regularly), students had an 11.8% lower chance of experiencing poor sleep. This relationship was statistically significant, meaning it’s unlikely to have happened by chance alone.
Higher body mass index (BMI) was significantly linked to poorer sleep quality, suggesting that weight management might also help with sleep. Interestingly, sleep quality did not differ significantly between male and female students overall, though females reported using sleep medications much more frequently than males. The year of study and whether students lived on or off campus did not significantly affect sleep quality.
This research adds to growing evidence that diet and sleep are connected. Previous studies have suggested links between nutrition and sleep, but few have specifically examined diet diversity in medical students from low- and middle-income countries. This study fills that gap by showing that the relationship between varied eating and better sleep appears to hold true in this specific population.
The study only included students from one university, so findings may not apply to all medical students worldwide. Students self-reported their diets and sleep, which can be less accurate than objective measurements. The study design cannot prove that eating more diverse foods causes better sleep—only that they’re associated. Additionally, the study didn’t measure other important factors like stress levels, exercise, or caffeine use that also affect sleep.
The Bottom Line
Medical students and other busy individuals should aim to eat a wider variety of foods across different food groups (vegetables, fruits, proteins, whole grains, dairy). This appears to be associated with better sleep quality. Start by adding one new food type to your regular meals each week. Moderate confidence: The evidence shows a clear connection, but more research is needed to confirm that diet diversity directly improves sleep.
Medical students, other students with irregular schedules, and anyone struggling with poor sleep should consider this finding. People with higher body weight may particularly benefit from both diet improvements and weight management. This is less relevant for people already sleeping well, though improving diet diversity has other health benefits regardless.
Changes in sleep quality from improved diet diversity may take 2-4 weeks to become noticeable, as the body needs time to adjust to new eating patterns. Some people may see improvements faster, while others may need longer. Consistency matters more than perfection.
Frequently Asked Questions
Does eating different types of food help you sleep better?
Research shows a connection: a 2026 study of 246 medical students found that eating more diverse foods was associated with 11.8% better odds of good sleep for each additional food type consumed. However, this shows correlation, not definitive proof of causation.
What percentage of medical students have sleep problems?
Over 70% of medical students in a 2026 study reported poor sleep quality. This high prevalence suggests sleep problems are common among students, making diet and lifestyle interventions particularly important for this population.
How many different foods should I eat daily to sleep better?
The study measured diet diversity across food groups rather than specific food counts. Aim to eat from 5-6 different food groups daily (vegetables, fruits, whole grains, proteins, dairy, nuts/seeds). Start where you are and add one group per week.
Does weight affect how well students sleep?
Yes, a 2026 study found that higher body mass index was significantly linked to poorer sleep quality among medical students. Managing weight alongside improving diet diversity may provide the best results for better sleep.
Can I improve my sleep in one week by eating better?
Sleep improvements from dietary changes typically take 2-4 weeks to become noticeable. Some people see faster results, but consistency matters more than immediate changes. Track your sleep and diet together to identify patterns.
Want to Apply This Research?
- Track the number of different food groups eaten each day (vegetables, fruits, whole grains, proteins, dairy, nuts/seeds). Aim to increase from your current baseline by one food group per week.
- Use the app’s meal logging feature to record each meal and identify which food groups you’re missing. Set a daily goal to eat from at least 5-6 different food groups, and track your sleep quality score the following morning to see if patterns emerge.
- Create a weekly report comparing your diet diversity score to your sleep quality score. Look for trends over 4-week periods. If sleep improves as diet diversity increases, continue the pattern. If not, investigate other factors like stress or exercise that might be affecting sleep.
This research shows an association between diet diversity and sleep quality but does not prove that changing your diet will directly improve your sleep. Individual results vary based on many factors including stress, exercise, caffeine intake, and underlying health conditions. If you have persistent sleep problems, consult a healthcare provider or sleep specialist. This information is for educational purposes and should not replace professional medical advice. Always discuss significant dietary changes with your doctor, especially if you take medications or have existing health conditions.
This research translation is published by Gram Research, the science division of Gram, an AI-powered nutrition tracking app.
