Magnesium
What it does
Magnesium is widely available in food, but many people miss it when diets are low in whole grains, legumes, nuts, seeds, and greens. It supports muscle and nerve function, energy metabolism, blood pressure regulation, glucose metabolism, and bone health.
Magnesium intake from food can vary widely depending on whole grains, legumes, nuts, seeds, leafy greens, and overall food quality. The recommended intake is 310 to 420 mg, and the ideal range shown here is 310 to 420 mg. The 350 mg upper limit applies only to supplemental magnesium, not magnesium from food.
Magnesium works across many systems, with particularly important roles in muscle and nerve function, energy production, and metabolic regulation.
Muscle and nerve function. Magnesium helps regulate muscle contraction and relaxation. Calcium drives contraction, while magnesium helps support the relaxation phase and keeps signaling balanced. This is why magnesium status can affect muscle tension, though it is not a simple cure for cramps.
Energy metabolism. Magnesium is involved in ATP production and utilization. ATP is the energy currency of cells, and magnesium is needed for many of the enzymes that make and use it.
Blood pressure regulation. Magnesium helps regulate blood vessel tone and vascular function. Adequate magnesium status supports healthy blood pressure, though magnesium alone is not a blood pressure treatment.
Glucose metabolism. Magnesium is involved in insulin signaling and glucose handling. Low magnesium status has been associated with insulin resistance, though the relationship is complex.
Bone health. About 60% of the body’s magnesium is stored in bone. Magnesium is part of the bone mineral matrix and works alongside calcium, vitamin D, and vitamin K in bone metabolism.
Why magnesium can be inconsistent
Magnesium intake depends heavily on food quality and dietary patterns.
Whole grains provide more magnesium than refined grains. Magnesium is concentrated in the germ and bran of grains. Refining removes most of it, which means white bread, white rice, and refined cereals provide much less magnesium than their whole-grain equivalents.
Legumes, nuts, and seeds are concentrated sources. Beans, lentils, almonds, cashews, pumpkin seeds, and sunflower seeds all provide meaningful amounts of magnesium. People who eat these foods regularly tend to have higher magnesium intake.
Leafy greens provide magnesium, but amounts vary. Spinach, Swiss chard, and other dark leafy greens contain magnesium, though not as much as nuts or seeds per serving.
Water hardness affects magnesium intake. Hard water contains more magnesium and calcium than soft water. In areas with hard water, drinking water can contribute a modest amount of magnesium to daily intake.
Soil quality affects plant magnesium content. Magnesium content in crops depends partly on soil magnesium levels, which can vary by region and farming practices.
Who may need to pay closer attention
Some people are more likely to have inconsistent magnesium intake than others:
- people eating mostly refined grains instead of whole grains
- people who eat few legumes, nuts, seeds, or leafy greens
- people with digestive conditions that affect mineral absorption
- people taking diuretics or proton pump inhibitors long-term
- people with type 2 diabetes, whose magnesium needs may be higher
- older adults, whose magnesium absorption may decline with age
- people who exercise heavily and lose magnesium through sweat
None of these factors guarantees deficiency. They are simply reasons to pay closer attention.
Best food sources
Magnesium is widely distributed in plant foods, with particularly high amounts in nuts, seeds, legumes, and whole grains.
| Food | Magnesium per serving |
|---|---|
| Pumpkin seeds (1 oz) | ~150 mg |
| Almonds (1 oz) | ~80 mg |
| Spinach, cooked (1 cup) | ~155 mg |
| Cashews (1 oz) | ~75 mg |
| Black beans, cooked (1/2 cup) | ~60 mg |
| Edamame, cooked (1/2 cup) | ~50 mg |
| Brown rice, cooked (1 cup) | ~85 mg |
| Avocado (1 medium) | ~60 mg |
The whole-grain factor. A serving of brown rice provides roughly 85 mg of magnesium, while the same amount of white rice provides only about 20 mg. Whole-wheat bread provides roughly double the magnesium of white bread. This pattern holds across most grain products.
How much do you need?
Standard RDA
310 to 320 mg per day for adult women and 400 to 420 mg per day for adult men. The range accounts for age, with slightly higher targets after age 30. Pregnancy raises the target to 350 to 360 mg per day, and lactation raises it to 310 to 320 mg per day.
Individual context matters
People who eat whole grains, legumes, nuts, seeds, and leafy greens regularly tend to meet magnesium needs without much planning. Those eating mostly refined grains and few plant foods may have lower intake.
Upper limit for supplements only
350 mg per day from supplemental magnesium for adults. This limit applies only to magnesium from supplements and fortified products, not to magnesium naturally present in food. For most healthy adults, the main issue from high supplemental magnesium is diarrhea and GI upset. Serious toxicity is uncommon but can occur with very high intakes or impaired kidney function.
Forms and absorption
When magnesium appears in supplements, the form affects absorption, tolerance, and how the body uses it.
Magnesium glycinate and bisglycinate
Well-absorbed forms that are often better tolerated than other forms. Less likely to cause loose stool. Commonly used in general magnesium supplements.
Magnesium citrate
Well absorbed and often used in supplements. Can have a mild laxative effect, which some people experience as loose stool at higher doses.
Magnesium oxide
Contains high amounts of elemental magnesium per dose, but is poorly absorbed. More likely to cause loose stool. Often used in products where the laxative effect is intentional.
Magnesium malate
Reasonably well absorbed. Often used in products marketed for muscle or energy support, though evidence for form-specific benefits is limited.
GI tolerance matters
Magnesium supplements commonly cause loose stool at higher doses, especially with forms like oxide and citrate. Starting with a lower dose and taking magnesium with food can help improve tolerance. If GI upset occurs, switching to a form like glycinate may help.
Nutrient context
Calcium
Magnesium and calcium work together in muscle and nerve function. Calcium drives contraction, while magnesium helps regulate relaxation and signaling. Both matter for normal function.
Vitamin D
Magnesium is involved in vitamin D metabolism. The body uses magnesium in the process of converting vitamin D into its active forms, which is one reason magnesium status can affect how well the body uses vitamin D.
Closing the gap
Magnesium is widely available in food, but intake can vary depending on whether diets include whole grains, legumes, nuts, seeds, and greens. The goal is not to chase high doses or treat magnesium like a cure-all. It is to understand whether magnesium-rich foods are showing up consistently enough in your routine.
Those adjustments might include working in foods like whole grains, beans, nuts, seeds, or leafy greens more regularly. When food is not enough, a modest magnesium supplement can help, but high-dose magnesium supplements often cause GI upset and are rarely necessary for most people.
See how magnesium shows up in your usual diet →
The information on this page is educational and does not constitute medical advice. Talk to a qualified healthcare provider before making changes to your supplement regimen or interpreting lab results.
Browse nutrients
Vitamins
Fat-soluble
Water-soluble