Magnesium supports pregnancy in several important ways, from helping your baby’s bones and brain develop to protecting against dangerous blood pressure complications like preeclampsia. Pregnant women need 350 to 400 mg of magnesium daily, depending on age, yet many fall short of that target through diet alone. Here’s what magnesium actually does during pregnancy, where the evidence is strong, and where it’s more nuanced than supplement marketing suggests.
Protection Against Preeclampsia and Seizures
The most well-established medical use of magnesium in pregnancy is preventing seizures in women with preeclampsia, a condition marked by dangerously high blood pressure. Magnesium sulfate, given intravenously in hospital settings, is the standard treatment for this purpose worldwide. It works through several pathways at once: it relaxes blood vessel walls by blocking calcium from entering smooth muscle cells, which lowers blood pressure. It also triggers the release of nitric oxide, a molecule that widens blood vessels further.
Beyond blood pressure, magnesium protects the brain during preeclampsia by reinforcing the blood-brain barrier, the layer of cells that controls what passes from the bloodstream into brain tissue. When blood pressure spikes, that barrier can weaken and allow fluid to leak into the brain, causing swelling. Magnesium tightens the junctions between those cells and reduces that leakage. It also raises the seizure threshold by blocking receptors that respond to glutamate, the brain’s main excitatory chemical signal. This combination of vascular, barrier, and anticonvulsant effects is why magnesium sulfate remains the first-line treatment for eclampsia prevention, even though it has been used for decades.
Fetal Brain and Bone Development
Magnesium is essential for DNA, RNA, and protein synthesis, which means it’s involved in virtually every aspect of fetal growth. About 60% of your body’s magnesium is stored in bone, so adequate intake supports the mineralization of your baby’s developing skeleton. The remaining magnesium is split between muscle and soft tissue, where it participates in hundreds of enzymatic reactions.
For babies born very early, magnesium has a specific neuroprotective role. When given to mothers before preterm delivery (before 32 weeks), magnesium sulfate reduces the risk of cerebral palsy and other brain injuries in the newborn. It does this partly by blocking the same glutamate receptors mentioned above. In a preterm baby’s brain, oxygen deprivation can trigger a cascade of excessive signaling that damages neurons. Magnesium interrupts that cascade. It also reduces inflammation by lowering oxidative stress and decreasing the production of inflammatory molecules. This is now a standard part of care in many hospitals when very preterm birth is anticipated.
Leg Cramps: Popular Claim, Weak Evidence
Leg cramps are one of the most common reasons pregnant women reach for magnesium supplements, but the research here is surprisingly thin. A controlled trial of 132 pregnant women with first-trimester leg cramps compared 300 mg of magnesium citrate daily to a placebo over four weeks. Both groups saw roughly the same improvement: cramps decreased by about 27% in the magnesium group and 33% in the placebo group. The difference was not statistically significant. Among women who still had cramps, the number of episodes per week was also similar between groups.
This doesn’t mean magnesium is useless for cramps in every individual, but it does mean that the strong placebo response makes it hard to credit magnesium specifically. If you’re taking magnesium for leg cramps and feel it helps, the supplement is generally safe at recommended doses. Just know the scientific backing isn’t as solid as many wellness sources imply.
How Much You Need
The recommended daily allowance for magnesium during pregnancy varies slightly by age. If you’re 14 to 18, the target is 400 mg per day. For ages 19 to 30, it’s 350 mg. For ages 31 to 50, it’s 360 mg. These numbers include magnesium from all sources: food, fortified products, and supplements combined.
Deficiency can be surprisingly hard to spot. In documented cases of low magnesium during pregnancy, several women had no symptoms at all despite significantly depleted levels on blood tests. When symptoms do appear, they can include muscle twitching, joint pain, and fatigue, which are easy to dismiss as normal pregnancy discomfort. Severe deficiency has been linked to intrauterine growth restriction, low amniotic fluid, and low magnesium levels in newborns, which can disrupt the baby’s calcium regulation in the first week of life.
Best Food Sources
You can cover a large portion of your daily magnesium through food. The most concentrated sources per serving are seeds and nuts. Pumpkin seeds lead the pack at 150 mg per ounce, and chia seeds provide 111 mg per ounce. Almonds deliver 80 mg per ounce, cashews 72 mg, and peanuts 49 mg.
Cooked greens are another strong option: a half cup of spinach has 78 mg, and Swiss chard comes in at 75 mg. Black beans and quinoa each provide about 60 mg per half cup. An entire avocado contains 58 mg, and a medium potato with the skin gives you 48 mg. Even a square of dark chocolate (70% cocoa or higher) adds 64 mg per ounce. A breakfast of shredded wheat cereal (56 mg per cup) with low-fat yogurt (42 mg per 8 ounces) and a banana (32 mg) gets you to roughly 130 mg before lunch.
Choosing a Supplement Form
If your diet falls short, several forms of supplemental magnesium are used in pregnancy. Clinical trials have tested magnesium citrate, magnesium oxide, magnesium gluconate, magnesium aspartate, and magnesium stearate in pregnant women. Citrate is one of the more commonly recommended forms because it dissolves well and is relatively easy to absorb. Oxide contains more elemental magnesium per pill but is absorbed less efficiently, and it can have a laxative effect, which some women actually find helpful for pregnancy constipation.
Gastrointestinal side effects like nausea or loose stools are the most common complaint with any form, though clinical trials found no significant difference in digestive symptoms between magnesium and placebo groups. Some women stopped taking supplements because the tablets were difficult to swallow, which is worth considering if you already deal with pregnancy-related nausea. Splitting your dose across meals can help with both absorption and stomach comfort.
One important distinction: the tolerable upper intake level for supplemental magnesium (meaning magnesium from pills, not food) is 350 mg per day for adults. Magnesium from food does not count toward this cap because your body regulates absorption from dietary sources more effectively. Going significantly over the supplement limit can cause diarrhea, cramping, and in rare cases, more serious toxicity.

