Quick answer

Migraine is a neurological condition that belongs in medical hands – no food supplement may claim to treat or prevent it. When it comes to the head and nervous system, magnesium and riboflavin (vitamin B2) are most often mentioned: both have clearly defined roles in normal nervous system function and energy metabolism.

Briefly up front, quite honestly: migraine is a neurological condition and belongs in medical hands – no food supplement may claim to treat it or prevent it. What remains credible: two nutrients keep coming up in connection with the head and nervous system – magnesium and riboflavin (vitamin B2). Both have clearly defined functions for the nervous system and energy metabolism. We classify these neutrally here.

Anyone who has ever had a real migraine attack knows: this is no minor thing you can just "breathe away". Correspondingly great is the search for approaches – including in diet. This is exactly where precision matters: a function for the normal nervous system is something completely different from an effect against headaches. We are neither allowed nor willing to claim the latter. The former is well-documented textbook knowledge – and we talk about that openly.

Why nutrients specifically come up in this conversation

Your brain is a major energy consumer: around 20% of your basal metabolic rate goes to the organ that makes up only about 2% of your body weight. This energy is produced in the mitochondria, the powerhouses of the cell – and both magnesium and riboflavin are involved there as cofactors. Nerve cells, in turn, communicate via electrical signals and messenger substances, and minerals such as magnesium play a part in their orderly function. This biochemical proximity explains why both nutrients are mentioned so often in the context of the head and nerves.

Precise language matters here: we say that magnesium and riboflavin are building blocks of normal processes in the nervous system and energy metabolism. We explicitly do not say that they influence headaches or migraine – that would be a disease-related claim we do not make. Drawing this line consistently is not legal small print, but honest reporting: it protects you from false expectations and separates established knowledge from wishful thinking.

Magnesium: the approved functions

Magnesium is involved in over 300 enzymatic reactions. Particularly relevant in the context of the head and nerves are these approved claims:

  • contributes to normal function of the nervous system
  • contributes to normal muscle function
  • contributes to normal energy metabolism
  • contributes to the reduction of tiredness and fatigue
  • contributes to electrolyte balance

These are general function claims – they do not state that magnesium influences headaches or migraine. If you'd like to look into the different forms, Magnesium: citrate, glycinate or malate? can help; how long it takes until you notice a difference in your supply is explained in Magnesium: how long until it works?.

Riboflavin (vitamin B2) in focus

Riboflavin is a water-soluble B vitamin and a building block of two central coenzymes (FAD and FMN) that work in the mitochondria's energy metabolism. Approved claims include that it contributes to normal energy metabolism, to the normal function of the nervous system, to the maintenance of normal red blood cells, and to the reduction of tiredness. Riboflavin is found in dairy products, eggs, whole grains, almonds and green vegetables. More on this in Vitamin B2 (riboflavin): effects.

Because B2 is water-soluble, the body barely stores it – regular intake through diet is therefore more important than one large single portion. In a balanced diet with dairy products, whole grains and vegetables, basic supply is easily achievable for most people. Anyone eating a one-sided diet or avoiding dairy products should take a closer look – that too is part of an honest assessment, without turning into a claim about headaches.

What research is investigating

The connection between individual nutrients and headache or migraine processes is an active field of research, in which magnesium and riboflavin, among others, are being studied. The current state is the subject of ongoing scientific discussion. Important and honest: no product effect promise can be derived from this research – and we deliberately do not make one. Anyone with neurological complaints should have their individual situation clarified by a doctor; only there can it be assessed whether nutrient supply plays any role at all.

In practice: forms, bioavailability & timing

If you'd like to supplement your magnesium and riboflavin supply beyond diet, a few practical points can help:

  • Magnesium form: organically bound forms such as citrate or bisglycinate are considered well-tolerated and bioavailable. Which one suits you is shown by Magnesium: citrate, glycinate or malate? and Recognising good magnesium.
  • Tolerability: higher magnesium doses taken at once can irritate the gut – splitting the amount across the day is often more comfortable.
  • Riboflavin: B2 is water-soluble; excess amounts are excreted (and harmlessly turn urine yellow). It can be taken well with a meal.
  • Patience: a nutrient supply does not work acutely – see Magnesium: how long until it works?.

Food sources: the foundation on your plate

Before supplements come into play, it's worth looking at diet:

Nutrient Good food sources
Magnesium pumpkin seeds, almonds, oats, whole grains, legumes, dark chocolate, green leafy vegetables
Riboflavin (B2) dairy products, eggs, whole grain products, almonds, mushrooms, green vegetables

Everyday factors many people pay attention to

Independent of supplements, there are basic factors that often play a role in everyday life:

Factor Neutral note
Fluids Drink enough – see Nutrients for fluid balance
Meal rhythm Regular meals help keep blood sugar stable
Sleep A consistent sleep-wake rhythm is important for many people – see Sleeping better naturally
Screen time Take breaks – see Nutrients for office & screen work

A headache diary as the most honest "active ingredient"

One tool that is widely recommended in headache and migraine care costs nothing: the headache diary. Anyone who notes down for a few weeks when complaints occur and what preceded them – sleep, meals, fluids, stress, screen time, cycle – often recognises patterns that otherwise get lost in everyday life. These records are also worth their weight in gold for the conversation with your doctor, because they provide a concrete basis. That's not a nutrient, but often the most useful first step. If screen work is a factor, it's also worth looking at Nutrients for eyes at the screen.

Honestly assessed: what is established and what is not

The role of magnesium and riboflavin as nutrients with defined functions for the nervous system and energy metabolism is established. What is not established – and legally impermissible to claim – is that they prevent or improve headaches or migraine. New, very severe, suddenly occurring or changing headaches, as well as frequent migraine attacks, should always be assessed by a doctor. Supplements are no substitute for diagnosis and treatment here.

Suitable products from Scheunengut

For neutral basic supply, you'll find our categories Magnesium, B vitamins and Minerals. Further reading is offered by the guides Nutrients for the nerves, Nutrients for energy metabolism and Magnesium deficiency: signs. All products are lab-tested and made in Germany. For health questions, medical assessment is always the first step.

Frequently asked questions (FAQ)

Does magnesium help with migraine?

Magnesium has approved function claims for the normal nervous system and energy metabolism – but that is not a claim that it influences migraine, and we are not allowed to make such a claim either. Migraine is a neurological condition that needs to be assessed and treated by a doctor. Whether nutrient supply plays a role in an individual case can only be assessed medically.

What role does vitamin B2 (riboflavin) play?

Riboflavin, as a cofactor, is involved in the mitochondria's energy metabolism and in the normal function of the nervous system – these are approved function claims. It is studied in research in the headache context, but no effect promise can be derived from that. Riboflavin is abundant in dairy products, eggs and whole grains.

Can insufficient fluid intake contribute to headaches?

Drinking enough is one of the basic everyday factors for many people. A balanced fluid and electrolyte balance is fundamentally sensible. With recurring or severe headaches, however, drinking does not replace medical assessment.

When do I need to see a doctor about headaches?

New, very severe, suddenly starting or changing headaches, as well as frequent or increasing migraine attacks, should always be assessed by a doctor – as should headaches with accompanying symptoms such as visual disturbances, fever or neurological deficits. Supplements are no substitute for diagnosis and treatment.

Was this guide helpful?

Health notice: This guide is for general information purposes only and does not replace individual medical or pharmaceutical advice. Food supplements are not a substitute for a balanced, varied diet and a healthy lifestyle. If you have health concerns, are pregnant or breastfeeding, or are taking medication, please consult a doctor or pharmacist. How our guides are created →

Sources

  1. Magnesium – Reference Values for Nutrient Intake — German Nutrition Society (DGE), 2021
  2. BfR Assesses the Recommended Maximum Daily Intake of Magnesium from Food Supplements — German Federal Institute for Risk Assessment (BfR), 2017
  3. Magnesium – What Should You Watch Out For? — Verbraucherzentrale, 2026
Scheunengut Redaktion