In case you are suffering from headaches and migraines, you should up your intake of magnesium. Of course, the best source is always to get it from natural sources, such as dark chocolates or almonds. Nonetheless, when you are low in magnesium, a supplement may restore your depleted levels more rapidly. Also, there is a reason why you are low in magnesium and changing one's diet overnight is not always so easy.
However, there exist different types of magnesium supplements on the market. When you take magnesium supplements, do your research. Some are not so bioavailable, and your body cannot use them that well than others. Both Dr. Mercola and Dr. Axe have published articles which are very informative and discuss the different types of magnesium which I have copied below
https://articles.mercola.com/sites/articles/archive/2013/12/08/magnesium-health-benefits.aspx
https://draxe.com/magnesium-supplements/
Moreover, try also to avoid unhealthy fillers which are often added to vitamin and mineral supplements. For instance, have a read through the below article which highlights what dangerous things are sometimes added to what is meant to be healthy.
http://info.achs.edu/blog/5-dangerous-ingredients-in-your-vitamins-and-dietary-supplements
Even if you do not suffer from headaches or migraines, it is an important mineral which certainly has improved my sleep.
The FDA hasn't assessed the statements. The information is provided for informational purposes only. It's not intended to substitute medical advice or diagnosis by your doctor or other medical professionals. These herbs and products aren't meant to diagnose, treat, prevent or cure any illness. Please always consult your healthcare professional.