What does magnesium do, and which foods contain it?
Magnesium is a mineral that is a component of bones and teeth, and it contributes to the normal function of the muscle and nervous system, electrolyte balance, energy-yielding metabolism and protein synthesis. Foods with magnesium are easy to find: pumpkin seeds, almonds, dark leafy greens, dried beans, soy milk and brown rice. The Thai Reference Daily Intake (Thai RDI) for magnesium is 310 mg a day.
In short:
- Benefits: a component of bones and teeth; contributes to normal muscle and nerve function, electrolyte balance, energy-yielding metabolism and protein synthesis
- Foods: pumpkin seeds, chia seeds, almonds, spinach, dried beans, soy milk and brown rice
- Daily amount: Thai RDI 310 mg
- Watch out for: magnesium from food is not a problem for healthy people, but high doses from supplements or medicines can cause diarrhoea
What is magnesium, and where is it in the body?
According to the US National Institutes of Health Office of Dietary Supplements (ODS), magnesium is an abundant mineral in the body. It occurs naturally in many plant and animal foods, and in some drinks and drinking water. The ODS describes magnesium as a cofactor (a helper that enzymes need in order to work) in more than 300 enzyme systems, and a review of magnesium basics likewise describes it as a cofactor in numerous enzyme reactions inside cells.
Why is it called a major mineral, and how does it differ from zinc or iron?
MedlinePlus, from the US National Library of Medicine, divides minerals into two groups. Macrominerals, which the body needs in larger amounts, are calcium, phosphorus, magnesium, sodium, potassium, chloride and sulfur. Trace minerals, needed only in small amounts, include iron, copper, iodine and zinc. The Thai daily reference amounts show the difference: 310 mg for magnesium against 11 mg for zinc. Trace minerals matter just as much; the body simply needs far less of them. For more on zinc, see What is zinc, and what does it do for the body?
Most of it is in bone
The ODS says an adult body contains about 25 g of magnesium. Between 50% and 60% is in bone, and most of the rest is in soft tissues such as muscle. Less than 1% is in blood, and the body keeps that level under tight control. Almost all of the body's magnesium therefore sits inside cells or in bone.
The kidneys do most of the regulating
The kidneys are the main regulators of magnesium in the body. According to the ODS, they typically excrete about 120 mg into urine each day, and they excrete less when the body's magnesium is low.
What are the benefits of magnesium for the body?
Magnesium has several roles in the body. It is a component of bones and teeth, and it contributes to the normal function of muscles, the nervous system, electrolyte balance, energy-yielding metabolism and protein synthesis. In summary:
| Area | Role of magnesium |
|---|---|
| Bones and teeth | A component of bones and teeth |
| Bones | Contributes to the maintenance of normal bones |
| Teeth | Contributes to the maintenance of normal teeth |
| Muscles and nerves | Contributes to the normal function of the muscle and nervous system |
| Minerals in body fluids | Contributes to electrolyte balance |
| Energy | Contributes to normal energy-yielding metabolism |
| Protein | Contributes to normal protein synthesis |
Bones and teeth
Magnesium is part of the structure of bones and teeth, alongside other minerals, which fits with the body storing most of its magnesium in bone. Magnesium contributes to the maintenance of normal bones and teeth.
Muscles and the nervous system
Muscles and nerves work through signals passed along all the time, whether you are walking, lifting something or simply sitting still. Magnesium contributes to the normal function of the muscle and nervous system.
Electrolyte balance
Electrolytes are minerals dissolved in the body's fluids, such as sodium, potassium, calcium and magnesium itself. Magnesium contributes to electrolyte balance.
Energy and protein
Food has to go through metabolism before it becomes energy the body can use, and the body is constantly building new protein for its tissues. Magnesium contributes to normal energy-yielding metabolism and to normal protein synthesis.
How do magnesium, calcium and vitamin D relate to each other?
The three are often discussed together for bones because each has its own role. Magnesium is a component of bones and teeth; calcium is needed for the maintenance of normal bones and teeth; and vitamin D contributes to the normal absorption of calcium and phosphorus and to the maintenance of normal bones. The Thai daily reference amounts are 1,000 mg for calcium and 15 µg for vitamin D. Read more in What is calcium, and how much do you need? and How does the body get vitamin D in a sunny country?
Which foods contain magnesium?
Foods high in magnesium include seeds and nuts such as pumpkin seeds, chia seeds, almonds and cashews; dark leafy greens such as spinach; dried beans and soya; and wholegrains such as brown rice. The ODS notes that, in general, foods containing dietary fibre also provide magnesium. The Nutrition Source at the Harvard T.H. Chan School of Public Health adds that fish, poultry and beef contain magnesium too.
Magnesium content of selected foods
The figures below come from the ODS table, which is based on the US Department of Agriculture's FoodData Central database, per the serving shown. Varieties and cooking methods in Thailand may give somewhat different amounts.
| Food | Serving | Magnesium (mg) |
|---|---|---|
| Pumpkin seeds, roasted | 1 ounce (about 28 g) | 156 |
| Chia seeds | 1 ounce (about 28 g) | 111 |
| Almonds, dry roasted | 1 ounce (about 28 g) | 80 |
| Spinach, boiled | ½ cup | 78 |
| Cashews, dry roasted | 1 ounce (about 28 g) | 74 |
| Peanuts, oil roasted | ¼ cup | 63 |
| Soy milk, plain or vanilla | 1 cup | 61 |
| Black beans, cooked | ½ cup | 60 |
| Edamame, shelled, cooked | ½ cup | 50 |
| Peanut butter, smooth | 2 tablespoons | 49 |
| Potato, baked with skin | 3.5 ounces (about 100 g) | 43 |
| Brown rice, cooked | ½ cup | 42 |
| Yoghurt, plain, low fat | 8 ounces (about 227 g) | 42 |
| Banana | 1 medium | 32 |
| Milk | 1 cup | 27 |
| Salmon, farmed, cooked | 3 ounces (about 85 g) | 26 |
| Avocado, cubed | ½ cup | 22 |
| Chicken breast, roasted | 3 ounces (about 85 g) | 22 |
| Broccoli, chopped and cooked | ½ cup | 12 |
| White rice, cooked | ½ cup | 10 |
Seeds, nuts, beans and leafy greens give a relatively large amount per serving. Meat, dairy and most fruit give less, but they still add to the day's total.
How much magnesium do several foods add up to?
This example adds up figures from the table above to show how much magnesium a few everyday foods supply together, compared with the Thai daily reference amount of 310 mg.
| Food | Serving | Magnesium (mg) |
|---|---|---|
| Brown rice, cooked | ½ cup | 42 |
| Spinach, boiled | ½ cup | 78 |
| Soy milk | 1 cup | 61 |
| Almonds, dry roasted | 1 ounce (about 28 g) | 80 |
| Total | 261 (about 84% of 310 mg) |
The rest of the day's food, such as meat, dairy and fruit, adds more on top.
How different are brown rice and white rice?
In the same table, half a cup of cooked brown rice has 42 mg of magnesium and the same amount of white rice has 10 mg. The ODS explains that refining grains in ways that remove the nutrient-rich germ and bran substantially lowers the magnesium content. In Thailand, where rice is eaten at almost every meal, swapping in brown or hand-milled rice for some meals is a simple way to get more magnesium from food.
Does cooking or processing remove magnesium?
Some processing lowers magnesium substantially, and grain refining, described above, is the clearest example. The Nutrition Source also notes that food processing can reduce the magnesium in plant foods. Choosing whole grains, beans and seeds that have been processed less is therefore an easy way to get more magnesium from food.
Drinking water contains magnesium too
The ODS notes that tap, mineral and bottled water can be sources of magnesium, but the amount varies widely by source and brand, from about 1 mg per litre to more than 120 mg per litre.
The body absorbs roughly 30–40%
According to the ODS, the body typically absorbs about 30% to 40% of the magnesium in food and drinks. The figures in the table are the amounts in the food, not the amounts the body ends up using.
How can you add magnesium to Thai meals?
There is no need to change the whole menu. Small changes to meals you already eat add up, for example:
- Cook brown or hand-milled rice instead of white rice for some meals
- Add roasted peanuts to a yam salad or som tam, or sprinkle pumpkin seeds on a salad
- Put more dark leafy greens into clear soups and stir-fries
- Have soy milk, tofu or dried beans as part of a meal
- Snack on unsalted almonds or cashews instead of sweets
Each food supplies only part of the total, so eating a varied diet from several food groups matters more than relying on any single food. The UK's NHS says people should be able to get all the magnesium they need from a varied and balanced diet.
How much magnesium do you need a day?
The Thai Reference Daily Intake (Thai RDI) for magnesium, for the general population aged 3 and over, is 310 mg a day. This is Thailand's daily reference amount.
The upper limit counts only supplements and medicines
The ODS gives a US Tolerable Upper Intake Level (UL) of 350 mg a day for adults. It covers only magnesium from dietary supplements and medicines, and does not include magnesium found naturally in food and drinks. Because it counts only those sources, it cannot be compared directly with the Thai RDI, which covers magnesium from all sources.
What does each number count?
| Number | Sources counted | What it means | Source |
|---|---|---|---|
| 310 mg a day | All sources | Thai daily reference amount, ages 3 and over | Thai RDIs |
| 350 mg a day | Supplements and medicines only | Upper limit for adults | US value (ODS) |
| More than 400 mg for a short time | High doses from supplements | Can cause diarrhoea | UK NHS |
Zinc is counted differently: its upper limit includes every source, food included.
Can you get too much from food?
The ODS says too much magnesium from food does not pose a health risk in healthy people, because the kidneys eliminate the excess in urine.
Who is more likely to get too little magnesium?
The ODS says dietary surveys in the United States show that many people take in less magnesium than the US recommended amounts, with men over 70 and teenage boys and girls the most likely to have low intakes. The groups more likely to fall short, and why:
| Who | Why | Source |
|---|---|---|
| People who eat few whole grains, legumes, seeds and dark leafy greens | These foods are the main sources, and refining grains removes much of the magnesium | ODS |
| Older adults | They take in less from food, absorb less from the gut and lose more in urine as they age | ODS |
| People who drink a lot of alcohol regularly | They often eat less, absorb less and lose more magnesium in urine | ODS, The Nutrition Source |
| People who take certain medicines regularly | Some medicines increase the amount of magnesium the body loses | ODS |
| People whose digestive health is being looked after by a doctor | They may absorb less magnesium from the gut | ODS |
What happens if you don't get enough magnesium?
In healthy people, eating somewhat too little magnesium usually causes no noticeable change. The Nutrition Source explains that when the body's magnesium runs low, it holds on to what it has by excreting less in urine and absorbing more from the gut. The ODS says that low magnesium with symptoms, caused by low intake alone, is uncommon in otherwise healthy people because the kidneys limit how much is lost.
When can magnesium levels actually fall?
The ODS says habitually low intake over a long period, or large losses from certain health problems, heavy regular drinking or certain medicines, can lower the body's magnesium. Early changes are non-specific and have many possible causes, so you cannot tell on your own whether magnesium is involved. If you are concerned, talk to a doctor.
Does a blood test tell the whole story?
Not entirely. Less than 1% of the body's magnesium is in blood, and The Nutrition Source notes that a normal blood level may not reflect the total amount in the body, since most of it is in tissue and bone. If you are concerned about magnesium, talk to a doctor, who can look at the wider picture.
What should you keep in mind about magnesium?
Most points to watch concern large amounts of magnesium that do not come from food, and use alongside medicines.
Why does a lot of magnesium cause diarrhoea?
The ODS says high doses of magnesium from supplements or medicines often cause diarrhoea, sometimes with nausea and abdominal cramping. The reason is that magnesium salts that are not absorbed draw water into the intestine and colon by osmosis. This is a physical property of magnesium salts. The NHS notes that taking high doses of magnesium (more than 400 mg) for a short time can cause diarrhoea. Magnesium from food does not cause this in healthy people, because the kidneys remove the excess.
High doses from supplements or medicines
The ODS notes that some medicines contain magnesium as an ingredient, so these count too if you use them. The US upper limit of 350 mg includes magnesium from these medicines.
Very high doses of zinc affect magnesium
The ODS notes that very high doses of zinc from supplements (142 mg a day) can interfere with magnesium absorption and disrupt the body's magnesium balance.
Regular medication
Some medicines can interact with magnesium, and some can increase the amount of magnesium lost in urine. If you take medication regularly, do not decide on your own to add or cut anything; ask a doctor or pharmacist.
If you are pregnant, breastfeeding, take regular medication or are under a doctor's care, speak to a doctor or pharmacist before taking dietary supplements.
Dietary supplements are not intended to prevent, treat or cure any disease.
Frequently asked questions
Which foods are high in magnesium?
What are the benefits of magnesium for the body?
How much more magnesium does brown rice have than white rice?
How much magnesium do you need a day?
Can you get too much magnesium from food?
Why does a lot of magnesium cause diarrhoea?
Who is more likely to get too little magnesium?
Does cooking or processing reduce magnesium?
Does mineral water really contain magnesium?
How is magnesium related to muscles?
What is the difference between magnesium and calcium?
- NIH Office of Dietary Supplements: Magnesium (Health Professional Fact Sheet) ↗
- NIH Office of Dietary Supplements: Magnesium (Consumer Fact Sheet) ↗
- Harvard T.H. Chan School of Public Health, The Nutrition Source: Magnesium ↗
- NHS: Vitamins and minerals – Others (magnesium) ↗
- MedlinePlus (US National Library of Medicine): Minerals ↗
- Jahnen-Dechent W, Ketteler M. Magnesium basics. Clin Kidney J 2012 (PubMed) ↗
- NIH Office of Dietary Supplements: Zinc (Health Professional Fact Sheet) ↗
- US Department of Agriculture: FoodData Central ↗
- Ministry of Public Health Notification No. 447 (B.E. 2566)
- Ministry of Public Health Notification No. 445 (B.E. 2566) on Nutrition Labelling – Thai RDIs (Annex 3)
We use cookies to improve performance and give you a better experience on this website. If you accept, we can show you content that better matches your interests. You can change your consent at any time via “Cookie settings”. Cookie policy
