Magnesium is a nutrient that everyone needs to stay healthy. It is important for many processes in the body including regulating muscle and nerve function, blood sugar levels, and blood pressure, and making protein, bone, and DNA. Scientists are also studying magnesium to see if it might reduce the risk of heart disease, type 2 diabetes, osteoporosis, and other conditions.
Adults need between 310 and 420 mg of magnesium a day. You can get the recommended amounts from eating a variety of foods including legumes (such as peas and beans), nuts, seeds, whole grains, and green leafy vegetables. If you aren’t getting enough magnesium from foods, taking a dietary supplement that contains magnesium could help.
Consuming too much magnesium from food does not cause any problems, but taking too much magnesium in supplement form—more than 350 mg per day for adults—can cause problems such as nausea, diarrhea, and stomach cramps. Very large doses could lead to muscle weakness, difficulty breathing, very low blood pressure, and irregular heartbeat. Talk to your health care provider to make sure you are getting enough magnesium, but not too much.
Is magnesium helpful for muscle cramps?
As with all vitamins and minerals, it is important to get enough magnesium for good health. Muscle cramps are one of the signs of a magnesium deficiency, so if you are not getting enough magnesium, getting more might help. But in most cases, muscle cramps are caused by other things. We recommend talking with your health care provider to determine if muscle cramps, or any other symptoms you have, might be a sign of a magnesium deficiency or something else.
Can magnesium help prevent migraine headaches?
Research shows that people who get migraine headaches tend to have lower levels of magnesium than those who don’t. This suggests—but doesn’t prove—that consuming more magnesium might decrease the chance of getting migraines.
According to a few small studies, taking magnesium supplements (about 300 mg twice a day) alone or in combination with medication might help prevent migraines. But this should be done only under the guidance of a health care provider because taking too much magnesium in supplement form can cause problems. If you want to try magnesium for migraine headaches, we recommend talking with your health care provider.