According to Gram Research analysis, people who eat the healthiest diets have about 65% lower odds of having epilepsy compared to those who eat the least healthy, based on a 2026 study of 5,311 Americans. The research shows that eating more whole fruits, vegetables, beans, and whole grains while limiting refined grains is associated with significantly lower epilepsy risk, suggesting that following basic nutrition guidelines may help prevent this serious brain condition.

A major study of over 5,000 Americans found that people who eat healthier diets have significantly lower chances of developing epilepsy. Researchers looked at what people ate and compared it to a healthy eating scorecard called the Healthy Eating Index. Those who scored highest on the healthy eating scale had about 65% lower odds of having epilepsy compared to those who ate the least healthy. The study suggests that following basic nutrition guidelines—eating more fruits, vegetables, beans, and whole grains while limiting refined grains—might help prevent this serious brain condition.

Key Statistics

A 2026 cross-sectional study of 5,311 Americans found that people in the highest healthy eating category had 65% lower odds of epilepsy compared to those in the lowest category (OR = 0.35, 95% CI 0.16-0.75).

According to research reviewed by Gram, every 1-point increase in the Healthy Eating Index-2020 score was associated with a 2% reduction in epilepsy odds across 5,311 study participants from 2013-2018 NHANES data.

A 2026 analysis of 5,311 Americans showed that eating more whole fruits, leafy greens, beans, and healthy fats was associated with lower epilepsy risk, while refined grain consumption was linked to higher epilepsy odds.

Research from 2026 demonstrated a dose-response relationship between diet quality and epilepsy risk in 5,311 participants, meaning progressively healthier eating patterns were associated with progressively lower seizure disorder rates.

The Quick Take

  • What they studied: Whether eating a healthier diet is connected to lower chances of having epilepsy, a condition that causes seizures.
  • Who participated: 5,311 American adults from the National Health and Nutrition Examination Survey between 2013 and 2018. Researchers looked at what these people ate and whether they had epilepsy.
  • Key finding: People who ate the healthiest diets had 65% lower odds of having epilepsy compared to those who ate the least healthy (OR = 0.35, meaning the risk dropped to about one-third).
  • What it means for you: Eating more whole fruits, vegetables, beans, and whole grains while cutting back on refined grains may help reduce epilepsy risk. However, this study shows a connection, not proof that diet causes the difference, so talk to your doctor about your personal risk factors.

The Research Details

This study used data from a large national health survey that tracks what Americans eat and their health conditions. Researchers asked participants what they ate over 24 hours and gave them a “healthy eating score” based on how well their diet matched official nutrition guidelines. They then looked at which participants had epilepsy and compared their eating scores. The researchers used statistical tools to account for other factors that might affect epilepsy risk, like age, weight, exercise, and smoking.

The healthy eating scorecard (called HEI-2020) measures how well someone’s diet includes important foods like fruits, vegetables, whole grains, and healthy fats, while limiting things like refined grains and added sugars. It’s like a report card for your diet, with higher scores meaning healthier eating patterns.

The researchers also looked for a “dose-response” relationship, which means they checked whether eating progressively healthier diets led to progressively lower epilepsy risk. They found this pattern was true—the healthier people ate, the lower their epilepsy odds.

Most research on epilepsy focuses on medicines and brain surgery, but very little looks at whether diet might help prevent it. This study is important because it suggests that something as simple as eating better might reduce epilepsy risk at the population level. If diet really does affect epilepsy risk, then public health recommendations about healthy eating could help prevent this serious condition.

This study used real-world data from a nationally representative survey, which is a strength. However, because it’s a cross-sectional study (a snapshot in time), it shows a connection between diet and epilepsy but cannot prove that diet causes lower epilepsy risk. People with epilepsy might eat differently because of their condition, which could affect the results. The study adjusted for many confounding factors, which strengthens the findings. The effect sizes are moderate, and the confidence intervals are fairly wide, suggesting the true effect could be somewhat smaller or larger than measured.

What the Results Show

The main finding was clear: people with higher healthy eating scores had significantly lower odds of having epilepsy. For every 1-point increase in the healthy eating score, the odds of having epilepsy decreased by 2% (OR = 0.98). When researchers compared the people who ate the healthiest (top 25%) to those who ate the least healthy (bottom 25%), the difference was dramatic: the healthy eaters had 65% lower odds of epilepsy.

The relationship between diet quality and epilepsy risk wasn’t just a straight line—it showed what scientists call a “dose-response” pattern. This means that as people ate progressively healthier, their epilepsy risk kept dropping. This pattern strengthens the idea that diet quality really does matter for epilepsy risk.

When researchers looked at specific food components, they found that eating more whole fruits, leafy greens, beans, and healthy fats was connected to lower epilepsy risk. Interestingly, eating more refined grains (like white bread and regular pasta) was connected to higher epilepsy risk. This suggests that the type of carbohydrates people eat matters.

The study found that specific dietary components had different effects on epilepsy risk. Fatty acids (healthy fats), whole fruits, leafy greens, and beans all showed protective effects—meaning they were associated with lower epilepsy odds. On the flip side, refined grains were the only food category that showed a harmful association with epilepsy risk. This suggests that swapping refined grains for whole grains might be particularly important.

Very few studies have looked at the connection between overall diet quality and epilepsy risk. Most epilepsy research focuses on specific diets like the ketogenic diet, which is used as a medical treatment for hard-to-control seizures. This study is unique because it looks at regular healthy eating patterns in the general population, not special medical diets. The findings align with what we know about healthy eating preventing other chronic diseases like heart disease and diabetes, suggesting that good nutrition might be broadly protective for brain health.

This study has several important limitations. First, it’s a snapshot study, not a long-term follow-up, so we can’t prove that diet changes actually prevent epilepsy—only that healthier eaters tend to have lower epilepsy rates. Second, people with epilepsy might eat differently because of their condition or medications, which could reverse the cause-and-effect relationship. Third, the study relied on people remembering what they ate in the past 24 hours, which isn’t always accurate. Fourth, the study couldn’t account for all possible factors that affect epilepsy risk, like genetics or head injuries. Finally, the study was conducted in the U.S., so results might not apply to other countries with different food systems and populations.

The Bottom Line

Based on this research, following standard healthy eating guidelines—eating plenty of fruits, vegetables, whole grains, and beans while limiting refined grains—appears to be associated with lower epilepsy risk. However, this is a moderate-strength finding from an observational study, not a proven treatment. If you have epilepsy or family history of epilepsy, discuss dietary approaches with your neurologist or doctor. For the general population, these dietary recommendations align with existing nutrition guidelines for preventing many chronic diseases.

This research is most relevant to people concerned about epilepsy prevention, public health officials developing nutrition guidelines, and people with family histories of epilepsy. It’s less directly applicable to people already diagnosed with epilepsy, who should work with their neurologist on seizure management. The findings support general healthy eating for everyone, regardless of epilepsy risk.

This study shows associations at a point in time, not how quickly diet changes might reduce epilepsy risk. If diet does protect against epilepsy, the protective effect likely builds over years of healthy eating, not days or weeks. Anyone making dietary changes should expect to see other health benefits (like improved energy and weight management) within weeks to months, but epilepsy prevention would be a long-term benefit.

Frequently Asked Questions

Can eating healthy prevent epilepsy?

Research shows a strong association between healthy eating and lower epilepsy odds—people with the highest diet quality scores had 65% lower epilepsy risk. However, this study proves a connection, not that diet prevents epilepsy. Talk to your doctor about epilepsy prevention strategies tailored to your risk factors.

What foods should I eat to reduce epilepsy risk?

The study found that whole fruits, leafy greens, beans, and healthy fats were associated with lower epilepsy risk. Limiting refined grains like white bread and regular pasta appeared protective. Follow standard healthy eating guidelines: eat colorful vegetables, whole grains, and legumes daily.

Does the ketogenic diet help prevent epilepsy?

This study looked at regular healthy eating patterns, not special medical diets like the ketogenic diet. The ketogenic diet is used to treat hard-to-control seizures in people already diagnosed with epilepsy. For prevention in the general population, standard healthy eating appears beneficial based on this research.

How long does it take for diet changes to reduce epilepsy risk?

This study shows associations at a point in time, not how quickly diet changes work. If diet does protect against epilepsy, the benefit likely builds over years of consistent healthy eating. Other health improvements from better nutrition typically appear within weeks to months.

Should people with epilepsy change their diet based on this study?

If you have epilepsy, work with your neurologist on seizure management and medication. This study suggests healthy eating may help prevent epilepsy in the general population, but people with diagnosed epilepsy need personalized medical treatment. Dietary changes should complement, not replace, prescribed seizure medications.

Want to Apply This Research?

  • Track your daily Healthy Eating Index score by logging the specific foods you eat: whole fruits, vegetables, whole grains, beans, and healthy fats. Rate yourself on a 0-100 scale based on how well you met these categories each day. Aim to increase your score by 10 points per week.
  • Set a specific goal like “eat one serving of leafy greens daily” or “swap white bread for whole wheat bread at lunch.” Use the app to log these foods and celebrate when you hit your daily healthy eating targets. Track which specific food swaps feel easiest to maintain.
  • Review your weekly average healthy eating score and identify which food categories you’re missing most. Set rotating monthly goals (Month 1: add more whole fruits; Month 2: add more vegetables; Month 3: switch to whole grains). Track energy levels and overall health markers alongside diet quality to see personal benefits.

This research shows an association between diet quality and epilepsy risk, but does not prove that diet changes prevent epilepsy. Epilepsy is a serious medical condition requiring professional diagnosis and treatment. If you have epilepsy, seizures, or family history of epilepsy, consult with a neurologist or healthcare provider before making dietary changes. This article is for educational purposes and should not replace medical advice. The findings apply to population-level patterns and may not apply to individual cases. Anyone considering dietary changes for health reasons should discuss them with their healthcare provider.

This research translation is published by Gram Research, the science division of Gram, an AI-powered nutrition tracking app.

Source: The association between Healthy Eating Index-2020 and epilepsy: Insights based on NHANES from 2013 to 2018.Epileptic disorders : international epilepsy journal with videotape (2026). PubMed 42423414 | DOI