Hemexa
Guide

Magnesium: Benefits, Deficiency, Dosage and Best Food Sources

Educational only; not medical advice

Learn what magnesium does, the signs of deficiency, food sources, supplement forms, recommended intake, blood-testing limitations, side effects and medication interactions.

Your annual baseline includes 77+ signature markers (77 for men, 81 for women), including 13 calculated insights from your lab results. Measured draws depend on sex (64–68). Fast-moving markers are tested again on your included six-month retest.

Overview

Quick Answer

Magnesium is an essential mineral involved in hundreds of processes in the body. It helps produce energy, regulate nerves and muscles, maintain a normal heartbeat, support bones and manage blood glucose.

Many people consume less magnesium than recommended. However, low dietary intake is not always the same as a clinical deficiency, and taking extra magnesium does not benefit everyone equally.

Magnesium supplements are most likely to help people whose intake or magnesium status is low. Food should usually be the main source.

Overview

Key Takeaways

  1. Magnesium supports energy production, muscles, nerves, bones and normal heart function.

  2. Symptoms such as fatigue, cramps and poor sleep can have many causes and do not prove magnesium deficiency.

  3. Serum magnesium is the most common blood test, but it does not fully measure the magnesium stored in tissues.

  4. Magnesium supplements are more likely to help when dietary intake or magnesium status is low.

  5. Evidence for sleep, exercise performance and blood-glucose benefits is mixed.

  6. Different supplement forms vary in absorption and digestive effects.

  7. Magnesium can interact with some medicines. Review your full medication and supplement list with a clinician or pharmacist.

  8. People with kidney disease should speak to a healthcare professional before taking magnesium.

Basics

What Is Magnesium?

Magnesium is an essential mineral. Your body cannot produce it, so it must come from food, drinks or supplements.

Around half to 60% of the body's magnesium is stored in bones. Most of the rest is found inside muscles and other tissues. Less than 1% is present in the blood.

Bones

Around half to 60% of the body's magnesium is stored in bone tissue.

Muscles and tissues

Most of the remainder is found inside muscles and other soft tissues.

Blood

Less than 1% is present in the blood, so serum levels may not reflect total body stores.

Enzyme roles

Magnesium helps enzymes carry out important reactions, including:

  • Producing cellular energy
  • Building proteins and DNA
  • Regulating nerve signals
  • Contracting and relaxing muscles
  • Maintaining a normal heartbeat
  • Supporting glucose metabolism
  • Regulating blood pressure
  • Supporting bone formation
  • Helping activate and process vitamin D

Because magnesium is involved in so many processes, severe deficiency can affect several body systems. But this does not mean that taking more magnesium than you need will improve every function.

How it works

How Does Magnesium Work?

Energy production

Magnesium helps activate ATP, the molecule cells use for energy. It is also involved in reactions inside mitochondria, which convert nutrients into usable energy. A serious magnesium deficiency can contribute to fatigue and weakness. However, fatigue alone does not mean someone needs magnesium.

Nervous-system function

Magnesium helps control the movement of minerals across cell membranes and supports normal nerve communication. It also affects systems involving NMDA receptors and GABA-related signalling. These systems help regulate how excitable or calm the nervous system is. This provides a possible explanation for magnesium's relationship with relaxation and sleep. However, a biological explanation does not prove that magnesium supplements improve sleep for everyone.

Muscle function

Magnesium works with calcium and other electrolytes to control muscle contraction and relaxation. Severe deficiency may cause cramps, twitching or muscle contractions. However, ordinary muscle cramps can also result from fatigue, dehydration, exercise, medication use and other medical conditions.

Cardiovascular function

Magnesium is involved in electrical conduction in the heart, normal heart rhythm, cardiac muscle contraction, blood-vessel tone, blood-pressure regulation, and potassium and calcium movement across cells. It is more accurate to describe these specific functions than to make the broad claim that magnesium simply "supports heart health."

Bone and vitamin D metabolism

Magnesium contributes to bone structure and helps regulate calcium, vitamin D and parathyroid hormone. The body needs magnesium for enzymes involved in vitamin D activation and metabolism. However, this does not mean every person taking vitamin D automatically needs a magnesium supplement.

Benefits

Evidence-Based Potential Benefits

1. Maintaining normal muscle function

Meeting your magnesium requirements supports normal muscle function. Supplementation may help when cramps or weakness are related to low intake, increased losses or a confirmed deficiency. There is limited evidence that magnesium supplements prevent common muscle cramps in people who already have adequate magnesium status.

2. Sleep and relaxation

Magnesium is involved in nervous-system signalling, which is why it is often marketed for sleep. Some small studies suggest it may modestly improve certain sleep measures, particularly in older adults or people with low magnesium intake. However, the overall evidence remains limited and inconsistent. Magnesium should not be presented as a proven treatment for insomnia.

Persistent sleep problems may be related to:

  • Stress or anxiety
  • Sleep apnoea
  • Caffeine or alcohol
  • Poor sleep habits
  • Medication use
  • Pain
  • Other health conditions

Magnesium may be one small part of the solution, but it should not replace proper assessment.

3. Exercise performance

Magnesium is necessary for energy production and muscle function. If someone has inadequate magnesium intake, correcting it may help restore normal function. However, there is little evidence that taking extra magnesium improves strength, endurance or recovery when magnesium status is already adequate.

Athletes and people with physically demanding jobs should also consider:

  • Total calorie intake
  • Carbohydrate intake
  • Protein
  • Hydration
  • Sodium and other electrolytes
  • Sleep
  • Training load

4. Blood pressure and cardiovascular function

Magnesium contributes to blood-vessel function and blood-pressure regulation. Some clinical trials suggest supplementation can produce a small average reduction in blood pressure. However, results vary, and magnesium should not replace prescribed medication or broader cardiovascular risk management. Magnesium-rich foods are part of a healthy diet, but these foods also provide fibre, potassium and other beneficial nutrients.

5. Bone health

Magnesium contributes to normal bone formation and mineral metabolism. Higher magnesium intake has been associated with better bone mineral density in some studies. However, there is not enough evidence to say that magnesium supplements prevent or treat osteoporosis on their own.

Bone health also depends on:

  • Resistance exercise
  • Calcium
  • Vitamin D
  • Protein
  • Hormonal health
  • Smoking
  • Alcohol intake

6. Blood-glucose regulation

Magnesium participates in insulin signalling and glucose metabolism. People with poorly controlled diabetes may lose more magnesium in their urine. Observational studies also associate higher dietary magnesium intake with a lower risk of type 2 diabetes. However, this does not prove that magnesium supplements prevent diabetes. Supplementation is more likely to help when intake or magnesium status is low.

7. Migraine prevention

Magnesium may reduce migraine frequency in some people. The evidence is limited, but potential benefit may be greater for certain groups, including some people who experience migraine with aura. Not everyone benefits, and the doses used in migraine research can be higher than normal supplement doses. These doses may cause diarrhoea and should be discussed with a healthcare professional.

Who should supplement

Who May Benefit from Magnesium?

A magnesium supplement may be worth considering for people who:

Diet and intake

  • Consume few magnesium-rich foods
  • Follow a restrictive diet
  • Have a confirmed low serum magnesium result

Health and absorption

  • Have chronic diarrhoea
  • Have a condition that reduces nutrient absorption
  • Have undergone certain types of intestinal surgery
  • Have poorly controlled diabetes

Medications and clinical guidance

  • Use medicines that increase magnesium loss
  • Have chronic heavy alcohol use
  • Have a clinician-recommended reason for supplementation

Older adults may also have a higher risk of inadequate intake.

Athletes, heavy sweaters and people with poor sleep do not automatically need magnesium. Their diet, health, hydration and symptoms should be considered together.

Deficiency

Signs of Magnesium Deficiency

Early signs may include

  • Reduced appetite
  • Nausea
  • Fatigue
  • Weakness
  • Vomiting

More serious deficiency may cause

  • Muscle cramps or contractions
  • Muscle twitching
  • Numbness
  • Tingling
  • Abnormal heart rhythm
  • Behavioural or mental changes
  • Seizures in severe cases

Low magnesium can also occur together with low potassium or calcium.

These symptoms are not specific to magnesium. They should not be used to diagnose a deficiency without medical assessment.

Symptoms such as abnormal heart rhythm, severe weakness, confusion, or seizures need urgent medical assessment.

Testing

Can Blood Testing Measure Magnesium Accurately?

Magnesium is difficult to assess because most of it is stored in bones and inside cells rather than in the blood.

Serum magnesium

Serum magnesium is the most common blood test. A normal result makes severe deficiency less likely, but it does not fully measure magnesium stored in bones and inside cells.

Tissue storage

Most magnesium is stored in bones and inside cells rather than in the blood. This is why blood results alone cannot give a complete picture of magnesium status.

RBC magnesium

RBC magnesium may provide additional information, but it is not a perfect test and has not been proven to be the best routine test for everyone.

Nutrition

Best Food Sources of Magnesium

Food should generally be the first option.

Pumpkin SeedsChia SeedsAlmondsCashewsSpinachBlack BeansChickpeasEdamameOatsBrown RiceWhole GrainsAvocadoDark ChocolatePeanut Butter

Pumpkin seeds are one of the richest common food sources. Nuts, seeds, legumes, whole grains and leafy green vegetables can make a large contribution to daily intake.

Refining grains can remove magnesium-rich parts of the grain. Whole grains therefore usually contain more magnesium than refined grain products.

Dosage

How Much Magnesium Do Adults Need?

Recommended daily intake from all sources, including food and supplements:

GroupDaily intake
Men aged 19-30400 mg
Men aged 31 and older420 mg
Women aged 19-30310 mg
Women aged 31 and older320 mg
PregnancyApproximately 350-360 mg, depending on age
BreastfeedingApproximately 310-320 mg, depending on age

These values align with Australian and New Zealand recommended dietary intakes for adults.

The recommended daily intake is not the same as a recommended supplement dose. For example, someone who gets 300 mg from food may not need a 300 mg supplement.

In Australia and New Zealand, the upper level for magnesium from supplements and magnesium-containing medicines is generally 350 mg per day for adults. This limit does not include magnesium naturally found in food.

Higher doses may be used under professional supervision for selected conditions.

Dosage

Best Time to Take Magnesium

There is no proven best time for everyone.

With food

Taking magnesium with food may reduce stomach discomfort.

Split doses

Splitting a larger dose into two smaller doses can improve tolerance.

Evening trial

Some people take it in the evening when trialling it as part of a sleep routine.

Consistent timing

Taking it at a consistent time can improve adherence. Medication timing may be more important than the time of day.

Taking magnesium before bed does not automatically make it an effective sleep treatment.

Safety

Medications and Interactions

Magnesium supplements can interact with prescription medicines, over-the-counter antacids, laxatives, and other supplements. Review your full list with a clinician or pharmacist.

Medicines that can lower magnesium

Proton pump inhibitors (PPIs), some diuretics, and certain other medicines can reduce magnesium absorption or increase urinary losses over time. People on long-term therapy may need monitoring rather than self-supplementation alone.

Antibiotics

Magnesium can bind to tetracycline and fluoroquinolone antibiotics and reduce their absorption. Separate doses by several hours unless your pharmacist or doctor advises otherwise.

Blood pressure and heart medicines

Magnesium may add to the blood-pressure-lowering effect of some antihypertensive drugs. People on these medicines should discuss supplementation with a clinician.

Other supplements and medicines

High-dose zinc can compete with magnesium absorption. Magnesium may also interact with bisphosphonates, thyroid hormone, and muscle relaxants. Tell your doctor and pharmacist about all supplements, antacids, and laxatives you use.

This is not a complete list. A pharmacist or GP can review your medicines before you start or change magnesium supplements.

Safety

Safety and Side Effects

Common side effects

  • Diarrhoea
  • Nausea
  • Abdominal cramps
  • Stomach discomfort

Kidney disease

The kidneys clear excess magnesium. People with reduced kidney function have a higher risk of hypermagnesemia and should not supplement without medical advice.

High doses

Very high supplemental doses can cause dangerous hypermagnesemia, especially when kidney function is impaired. This is uncommon with standard over-the-counter doses in healthy adults.

When to seek urgent care

Seek urgent medical attention for symptoms such as severe weakness, difficulty breathing, very slow heart rate, fainting, or persistent abnormal heart rhythm, especially if you take magnesium supplements or have kidney disease.

Common digestive side effects increase with higher doses and vary by supplement form. Always discuss supplementation with a clinician if you have kidney disease, heart disease, or take regular prescription medicines.

FAQ

Frequently Asked Questions

Is magnesium good for sleep?
It may help some people, particularly when intake is low. However, evidence is limited and inconsistent, and magnesium is not a proven treatment for chronic insomnia.
Which magnesium form is best?
There is no single best form. Citrate, chloride and lactate are relatively soluble. Glycinate is commonly chosen for digestive tolerance. Oxide is less well absorbed and is more commonly used for constipation.
Can I take magnesium every day?
Many adults can safely take an appropriate daily amount. However, not everyone needs a supplement. Consider how much you already receive from food, multivitamins, antacids and other products.
Can food provide enough magnesium?
Yes. Many people can meet their needs through a diet rich in seeds, nuts, legumes, whole grains and leafy green vegetables.
Does a normal blood result mean my magnesium is adequate?
For most clinical purposes, a normal serum magnesium result suggests you do not have severe deficiency. However, serum does not fully reflect total body stores, and persistent symptoms still need proper medical assessment rather than self-supplementation.
Can magnesium interact with my medicines?
Yes, in some cases. PPIs, diuretics, certain antibiotics, blood pressure medicines, thyroid hormone, bisphosphonates, and other drugs can interact with magnesium. Ask your GP or pharmacist to review your full medicine and supplement list.
Is RBC magnesium better than serum magnesium?
RBC magnesium may provide additional information, but it is not a perfect test and has not been proven to be the best routine test for everyone.
Should I take magnesium with vitamin D?
Magnesium is involved in vitamin D metabolism, but this does not mean both supplements must always be taken together. Aim for adequate magnesium intake and seek professional advice when using high-dose vitamin D.
Can magnesium improve exercise performance?
Correcting inadequate magnesium may restore normal function. Taking extra magnesium has not consistently improved performance in people who already consume enough.

How Hemexa fits

How Hemexa Can Help

Fatigue, poor sleep, headaches, muscle cramps and reduced energy can have many causes. These symptoms should not automatically be blamed on magnesium deficiency.

Serum magnesium on the baseline panel

Hemexa includes serum magnesium on the annual baseline panel as part of 77+ signature markers in the vitamins and minerals category, alongside vitamin D, B12, folate, and zinc.

Understand what blood testing can and cannot show

Serum magnesium is the standard pathology test, but it does not fully measure magnesium stored in bones and inside cells. Hemexa presents results with this limitation in mind so members can discuss them with their clinician rather than treating a single result as a complete answer.

Connect supplements to your results

When you log magnesium supplements in the member app, Hemexa links intake to your serum result and broader nutrient markers. This supports informed conversations with your GP about whether supplementation is appropriate.

Sources

References

National Institutes of Health, Office of Dietary Supplements. (2026). Magnesium: Fact sheet for health professionals. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/

de Baaij, J. H. F., Hoenderop, J. G. J., & Bindels, R. J. M. (2015). Magnesium in man: Implications for health and disease. Physiological Reviews, 95(1), 1-46. DOI: 10.1152/physrev.00012.2014, https://doi.org/10.1152/physrev.00012.2014

Workinger, J. L., Doyle, R. P., & Bortz, J. (2018). Challenges in the diagnosis of magnesium status. Nutrients, 10(9), 1202. DOI: 10.3390/nu10091202, https://doi.org/10.3390/nu10091202

Zhang, X., Li, Y., Del Gobbo, L. C., Rosanoff, A., Wang, J., Zhang, W., & Song, Y. (2016). Effects of magnesium supplementation on blood pressure: A meta-analysis of randomized double-blind placebo-controlled trials. Hypertension, 68(2), 324-333. DOI: 10.1161/HYPERTENSIONAHA.116.07664, https://doi.org/10.1161/HYPERTENSIONAHA.116.07664

Arab, A., Rafie, N., Amani, R., & Shirani, F. (2023). The role of magnesium in sleep health: A systematic review of available literature. Biological Trace Element Research, 201(1), 121-128. https://pubmed.ncbi.nlm.nih.gov/35184264/

National Health and Medical Research Council and New Zealand Ministry of Health. (2017). Nutrient Reference Values for Australia and New Zealand: Magnesium. https://www.nrv.gov.au/nutrients/magnesium

Garrison, S. R., Allan, G. M., Sekhon, R. K., Musini, V. M., & Khan, K. M. (2012). Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews, (9), CD009402. https://doi.org/10.1002/14651858.CD009402.pub2

Biomarker guide

Vitamin D blood test Australia

25-hydroxyvitamin D testing in Australia: deficiency ranges in nmol/L, Medicare vs private costs, when to test, supplementation, and how to order.

Read guide →

Testing guide

Biomarker testing Australia

How biomarker testing works in Australia: Medicare vs private panels, common marker categories, pathology networks, and membership options with retesting.

Read guide →

Testing guide

Preventative blood test Australia

How preventative blood testing works in Australia: Medicare vs private panels, what markers to include, costs, GP-reviewed requests, and retest cadence.

Read guide →

Biomarker guide

hs-CRP test Australia

High-sensitivity CRP testing in Australia: inflammation and cardiovascular risk, hs-CRP vs standard CRP, typical costs, Medicare coverage, reference ranges in mg/L, and when to retest.

Read guide →

Ready for membership built around your blood?

Start your membership in the member app. Or browse all 77+ markers before you decide.