According to Gram Research analysis of a 2026 network meta-analysis of 20 randomized trials with 1,829 participants, riboflavin (vitamin B2) at 400 mg had the most consistent evidence for reducing monthly migraine attacks in adults. People taking it averaged about 1.95 fewer attacks per month than those taking a placebo, with moderate certainty.

Migraines are a leading cause of nerve-related disability worldwide, and many people look for options beyond prescription drugs. A 2026 review analyzed by Gram Research pooled 20 double-blind trials with 1,829 participants to compare vitamins and supplements for migraine prevention. The strongest signal came from riboflavin (vitamin B2) at 400 mg, which lowered monthly attacks by about two compared with a placebo, with moderate confidence in the result. Coenzyme Q10 at 400 mg appeared to shorten attacks and reduce pain, but that evidence was weaker. Magnesium showed no clear benefit. Because many of the studies were small, the researchers say larger trials are needed before these supplements change standard treatment advice.

Key Statistics

A 2026 network meta-analysis of 20 double-blind trials found that riboflavin (vitamin B2) at 400 mg reduced monthly migraine attacks in adults by an average of 1.95 compared with placebo.

The same 2026 analysis found that coenzyme Q10 at 400 mg shortened migraine attacks by an average of 3.3 hours, although the evidence was rated low certainty.

Across 1,829 randomized participants in 20 trials, the 2026 review found that magnesium showed no detectable benefit for migraine prevention.

The Quick Take

  • What they studied: Which vitamins and natural supplements work best at preventing migraine headaches, and how do they compare with each other and with a placebo (a fake pill)?
  • Who participated: The review combined 20 randomized trials, with 1,829 people assigned to treatments and 1,600 included in the analysis. The main comparison used 10 trials of adults. Pediatric trials were summarized separately. Participants were people who get migraines and took part in controlled studies.
  • Key finding: Riboflavin 400 mg reduced migraine attacks by about 1.95 per month compared with placebo in adults. This result is considered moderate certainty, meaning the evidence is fairly reliable but not conclusive. Coenzyme Q10 400 mg shortened attacks by about 3.3 hours and lowered pain, but that evidence is rated low certainty.
  • What it means for you: If you get migraines, riboflavin is the supplement with the most consistent support so far. Talk with your doctor before starting any supplement, especially if you take other medicines or are pregnant. Supplements are not a replacement for a treatment plan your doctor has approved.

The Research Details

Researchers searched six major medical databases, including PubMed, Embase, and the Cochrane trial registry, for studies published from the start of each database through March 2026. They looked for randomized, double-blind trials. In these trials, participants are assigned to a treatment or placebo by chance, and neither the participants nor the researchers know who got which pill. This design helps prevent bias in the results.

This type of study is called a network meta-analysis. It combines results from many trials, including trials that compared different treatments against a placebo rather than against each other. By linking these comparisons together, the method allows the researchers to rank several supplements on the same scale, even when no single trial tested all of them side by side. The main measure was how many migraine attacks people had per month, and the secondary measures included how long attacks lasted, how severe the pain was, and how many days per month people had migraines.

The team followed PRISMA reporting guidelines, a standard checklist for systematic reviews, and registered the review in advance in the PROSPERO database. They also used a tool called CINeMA to rate how confident they could be in each result, taking into account study quality, consistency, and how precise the estimates were.

Single trials of supplements are often small, so one study can produce results that do not hold up. Combining many trials gives a larger total picture. Comparing several supplements in one analysis also helps people see which options have the most evidence, instead of relying on scattered individual studies.

The review followed recognized international standards and registered its plan ahead of time, which reduces the chance that the researchers changed their methods after seeing the results. Using double-blind trials is another strength. However, many of the individual trials were small, and several supplements were tested in only one or two studies. The researchers rated most of their findings as low or very low certainty, so the overall strength of the evidence is limited.

What the Results Show

In adults, riboflavin (vitamin B2) at 400 mg showed the most reliable reduction in monthly migraine attacks. On average, people taking it had about 1.95 fewer attacks per month than those taking a placebo, and the researchers rated this evidence as moderate certainty. The range of likely effects was roughly 1.5 to 2.4 fewer attacks per month, which suggests the benefit is real but probably modest.

Several other vitamins had larger average effects on paper. Vitamin B12 at 500 micrograms, vitamin B6 at 80 mg, and vitamin D3 each appeared to lower attack frequency by roughly 2.3 to 2.5 attacks per month. However, these estimates came from very small numbers of trials, with the B12 and B6 results based on single small studies and the vitamin D3 result based on two. The researchers rated this evidence as low to very low certainty, so the true effects could be much smaller or even absent.

Coenzyme Q10 (CoQ10) at 400 mg was linked to shorter migraine attacks and less pain. People taking it had attacks that were about 3.3 hours shorter on average, and their pain scores were lower on a standardized scale. The researchers rated this evidence as low certainty, mainly because the estimates were imprecise. For the outcome of having at least a 50% reduction in attacks, CoQ10 300 mg was the only option with a statistically significant advantage in adults, but that evidence was very low certainty and was based on sparse data.

Magnesium did not show a detectable benefit on any outcome measured. Some side effects were reported more often with magnesium, but the researchers note that these numbers are descriptive only and cannot be used to compare safety directly with the other supplements.

The review also looked at whether people had at least a 50% reduction in migraine attacks, a common measure of meaningful improvement. Only CoQ10 at 300 mg showed a statistically significant advantage here in adults, but the number of trials was small and the results were uncertain. The researchers also reported that the previously noted riboflavin 200 mg signal came from a pediatric trial rather than an adult one. This means the benefit observed at that dose may apply to children rather than adults, and more research is needed.

For people with migraines, these secondary results matter because a supplement that reduces pain or shortens attacks can still make daily life easier, even if it does not reduce how often attacks happen. The CoQ10 findings on attack length and pain are therefore worth noting, though they still need stronger confirmation.

Previous research has suggested that riboflavin may help prevent migraines, and this review supports that idea in adults. Earlier work also explored CoQ10 and magnesium, which are commonly recommended by some headache specialists. The current analysis places riboflavin at the top for attack frequency, while CoQ10 shows more promise for pain and duration. Magnesium, which many people use, did not show a clear benefit here. Overall, the findings fit with guidance from headache organizations that describes riboflavin and CoQ10 as options that may be tried, but not as proven first-line treatments.

Many of the trials were small, and several supplements were tested in only one or two studies. This makes the estimates for those supplements uncertain, even when the numbers look large. Some of the comparisons were based on very few participants, which limits how confident we can be in the rankings. The researchers also noted differences among trials in dosage, length of treatment, and how migraines were measured, which can make the results harder to compare. Several results rely on the same small group of studies, so one unusual trial could shift the overall picture. The review included only trials that were published or registered, so some unpublished negative studies may be missing. Finally, the analysis looked at short- to medium-term results, so it cannot say much about long-term safety or whether benefits last over years.

The Bottom Line

Research shows that riboflavin 400 mg has the most consistent evidence for reducing monthly migraine attacks in adults, with moderate confidence. CoQ10 400 mg may help shorten attacks and reduce pain, but confidence is low. Vitamin D3 and some B vitamins may reduce attack frequency, but evidence is very limited. Magnesium did not show a clear benefit. These are reasonable options to discuss with a doctor, not guaranteed treatments.

Adults who get migraines and want to discuss non-prescription options with their doctor may find these results useful. People who are pregnant, breastfeeding, managing other health conditions, or taking medicines should check with a healthcare professional before starting any supplement. Children should not start these supplements based on this review alone, since the pediatric evidence was summarized separately and is limited. People with severe, frequent, or changing headaches should seek medical evaluation rather than relying on supplements.

Many headache preventive treatments take about two to three months to show a clear effect, so it is reasonable to track symptoms for at least that long before deciding whether a supplement is helping. Benefits, if any, are likely to be modest rather than dramatic, based on the average results. Your doctor can help you judge whether a change is meaningful for you.

Frequently Asked Questions

Does riboflavin help prevent migraines?

Research shows riboflavin (vitamin B2) at 400 mg may reduce monthly migraine attacks in adults. A 2026 analysis of 20 trials estimated about 1.95 fewer attacks per month compared with placebo, with moderate certainty. Talk with your doctor before starting it.

What is the best supplement for migraine prevention?

Riboflavin 400 mg had the most consistent evidence for reducing how often migraines occur in adults. Coenzyme Q10 at 400 mg appeared to shorten attacks and reduce pain, though that evidence is weaker. Results vary, and supplements are not a substitute for medical advice.

Does magnesium work for migraines?

A 2026 review of 20 randomized trials with 1,829 participants found no detectable benefit from magnesium for migraine prevention. Side effects were reported more often with magnesium, but those numbers cannot be directly compared with other supplements. Discuss your options with a healthcare provider.

How long does it take for migraine supplements to work?

Many migraine preventive treatments need about two to three months before a clear effect appears. Tracking your attacks monthly during that time helps you and your doctor judge whether a supplement is making a meaningful difference for you.

Want to Apply This Research?

  • Log each migraine attack with its start time, end time, pain level on a 0 to 10 scale, and whether you took any supplement that day. Track your total number of migraine days each month. Compare your monthly totals before and after starting a supplement, and note the dose and start date.
  • Set a daily reminder to take your supplement at the same time each day, and record any missed doses. Pair the reminder with a daily check-in on sleep, water intake, and possible triggers so you can see patterns alongside your supplement use.
  • Review your migraine log every month and look for trends over at least three months. Share the summary with your doctor at regular appointments. If your attack count, pain levels, or attack length do not improve after a reasonable trial period, discuss other options with your healthcare provider.

This article summarizes a research review for general information only and is not medical advice. The studies reviewed were often small, and the evidence for some supplements is limited or uncertain. Do not start, stop, or change any supplement or migraine medication without first talking with a qualified healthcare professional, especially if you are pregnant, breastfeeding, have other health conditions, or take other medicines. Seek urgent medical care for sudden, severe, or unusual headaches.

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

Source: Comparative efficacy of vitamins and nutraceuticals for migraine prevention: A systematic review and network meta-analysis of randomized controlled trials. , Headache (2026). PubMed 42985988 | DOI
Topics
riboflavin migraine vitamin B2 migraine prevention CoQ10 migraine magnesium migraine migraine supplements network meta-analysis migraine natural migraine prevention vitamin D3 migraine