9
 min read

What Does Magnesium Do for the Body? Essential Functions Explained

Written by
Bolt Pharmacy
Published on
16/2/2026

Magnesium is the fourth most abundant mineral in the human body, acting as an essential cofactor in over 300 enzymatic reactions. This vital nutrient supports energy production, muscle and nerve function, bone health, and cardiovascular regulation. Approximately 25 grams of magnesium reside in the body—60% in bones, 39% in soft tissues and muscles, and just 1% in blood. Without adequate magnesium, cells cannot efficiently produce ATP, the body's primary energy source. Understanding magnesium's diverse roles helps explain why deficiency affects multiple systems, from energy levels to heart rhythm.

Summary: Magnesium acts as an essential cofactor in over 300 enzymatic reactions, supporting energy production, muscle and nerve function, bone health, and cardiovascular regulation throughout the body.

  • Magnesium is required for ATP synthesis, making it indispensable for cellular energy production and all bodily functions.
  • The mineral regulates muscle contraction and relaxation by working alongside calcium, and maintains normal heart rhythm through control of cardiac electrical activity.
  • Approximately 60% of body magnesium resides in bone tissue, where it influences bone density, structural integrity, and the activity of bone-forming cells.
  • Magnesium modulates neurotransmitter release and nerve impulse conduction, supporting cognitive function, mood regulation, and the body's stress response.
  • UK Reference Nutrient Intake is 300 mg daily for men and 270 mg for women aged 19-64 years, typically achievable through a balanced diet.
  • Long-term proton pump inhibitor use can cause severe hypomagnesaemia; the MHRA recommends monitoring in at-risk patients taking these medications.

What Does Magnesium Do for the Body?

Magnesium is the fourth most abundant mineral in the human body and serves as an essential cofactor in over 300 enzymatic reactions. This vital nutrient plays a fundamental role in maintaining normal physiological function across multiple organ systems, from energy production at the cellular level to the regulation of muscle contraction and nerve transmission.

The body contains approximately 25 grams of magnesium, with roughly 60% stored in bone tissue, 39% in soft tissues and muscles, and only 1% in blood serum. Serum magnesium levels are tightly regulated, though serum measurements may not always reflect total body stores. Magnesium acts as a natural calcium antagonist, helping to regulate the balance between these two minerals, which is crucial for proper muscle function, including the heart muscle.

Without adequate magnesium, the body cannot efficiently produce adenosine triphosphate (ATP), the primary energy currency of cells. This mineral is also essential for DNA and RNA synthesis, protein formation, and the maintenance of electrical gradients across cell membranes. These gradients are critical for nerve impulse conduction, muscle contraction, and normal heart rhythm. Understanding magnesium's multifaceted roles helps explain why deficiency can manifest in such diverse ways, affecting everything from energy levels to cardiovascular health.

The UK Reference Nutrient Intake (RNI) for magnesium is 300 mg daily for men and 270 mg for women aged 19-64 years. A balanced diet typically provides sufficient magnesium for most healthy adults.

Essential Functions of Magnesium in Human Health

Energy metabolism and cellular function represent magnesium's most fundamental role. As a cofactor for enzymes involved in ATP synthesis, magnesium is indispensable for converting food into usable energy. Every ATP molecule must be bound to magnesium to be biologically active, meaning that without sufficient magnesium, cellular energy production becomes compromised. This affects all bodily functions, from basic metabolic processes to physical performance and cognitive function.

Cardiovascular health depends significantly on adequate magnesium levels. The mineral helps regulate heart rhythm by controlling the electrical activity of cardiac muscle cells and maintaining proper calcium balance. Magnesium may help blood vessels relax and some studies suggest it may modestly support healthy blood pressure, though evidence is mixed. A balanced diet containing magnesium-rich foods is generally recommended as part of overall heart health, but specific cardiovascular benefits should not be overstated.

Musculoskeletal function relies heavily on magnesium for both muscle contraction and bone health. Magnesium works alongside calcium to regulate muscle function—calcium triggers contraction whilst magnesium promotes relaxation. In bone tissue, magnesium influences the activity of osteoblasts and osteoclasts (cells responsible for bone formation and resorption) and affects the structural integrity of bone crystals. Approximately 60% of the body's magnesium resides in bone, where it contributes to bone density and strength.

Nervous system regulation is another critical function. Magnesium modulates neurotransmitter release and NMDA receptor activity, which are involved in learning, memory, and mood regulation. The mineral has a natural calming effect on the nervous system, helping to regulate the stress response. Additionally, magnesium plays a role in glucose metabolism and insulin sensitivity. While observational studies suggest associations between magnesium status and metabolic health, there are no specific recommendations from NICE regarding magnesium supplementation for diabetes prevention.

Signs Your Body May Need More Magnesium

Magnesium deficiency, known clinically as hypomagnesaemia (typically defined as serum magnesium <0.7 mmol/L), can develop gradually and may initially present with subtle, non-specific symptoms. Early signs often include fatigue, weakness, and reduced appetite. Many people experience muscle cramps, particularly in the legs at night, or muscle twitches and spasms. These occur because magnesium deficiency increases neuromuscular excitability, making muscles more prone to involuntary contractions. Some individuals report restless legs syndrome, which may be associated with suboptimal magnesium status, though there is no definitive causal link established.

Neurological and psychological symptoms can emerge as deficiency progresses. These may include irritability, anxiety, difficulty concentrating, and mood changes. Some people experience numbness or tingling sensations, particularly in the extremities, due to altered nerve function. Some studies have associated headaches and migraines with low magnesium levels, though evidence is limited and NICE does not routinely recommend magnesium supplementation for migraine prevention. Discuss with your GP if you experience frequent migraines.

Cardiovascular manifestations of magnesium deficiency can include palpitations and irregular heartbeat (arrhythmias). Seek urgent medical attention if you experience severe palpitations, chest pain, significant arrhythmias, seizures, severe muscle weakness, or fainting, as these could indicate serious magnesium deficiency or other medical conditions requiring immediate care.

Risk factors for magnesium deficiency include gastrointestinal disorders (such as Crohn's disease or coeliac disease) that impair absorption, type 2 diabetes, chronic alcohol use, and certain medications. The MHRA has highlighted that long-term use of proton pump inhibitors (PPIs) can cause severe hypomagnesaemia in some patients. Some diuretics can also increase magnesium loss. Older adults are at increased risk due to reduced dietary intake, decreased absorption, and increased urinary losses. If you experience persistent symptoms suggestive of magnesium deficiency, consult your GP, who can arrange appropriate blood tests and investigate underlying causes. While supplements are available over the counter, it's advisable to discuss with a healthcare professional before starting them, particularly if you have kidney problems or take other medications.

How to Get Enough Magnesium Through Diet

A balanced, varied diet typically provides adequate magnesium for most people, and food sources are generally preferable to supplements as they provide magnesium alongside other beneficial nutrients and fibre. Green leafy vegetables are excellent sources, with spinach, kale, and Swiss chard containing particularly high amounts. The magnesium content in these vegetables is partly due to chlorophyll, the green pigment that contains a magnesium atom at its centre. A 100g serving of cooked spinach provides approximately 80mg of magnesium.

Nuts and seeds rank among the richest dietary sources of magnesium. Almonds, cashews, and Brazil nuts are particularly good choices, as are pumpkin seeds and sunflower seeds. Just 30g of almonds provides around 80mg of magnesium, representing roughly a quarter of the daily requirement. These foods also supply healthy fats, protein, and other minerals, making them valuable additions to a balanced diet.

Whole grains and legumes contribute significantly to magnesium intake. Brown rice, quinoa, oats, and wholemeal bread contain substantially more magnesium than their refined counterparts, as the mineral is concentrated in the outer layers of grains that are removed during refining. Beans, lentils, and chickpeas are also excellent sources, with a 100g serving of black beans providing approximately 70mg of magnesium. These foods additionally offer fibre, B vitamins, and plant-based protein.

Other valuable sources include dark chocolate (with 70% cocoa or higher), avocados, fatty fish such as mackerel and salmon, and bananas. Mineral water can also contribute to magnesium intake, with some brands containing significant amounts.

Practical dietary tips for optimising magnesium intake include choosing whole grains over refined products, incorporating a handful of nuts or seeds into daily meals, eating at least five portions of varied fruits and vegetables daily (as recommended by the NHS), and including legumes in meals several times weekly. Cooking methods matter—boiling vegetables in large amounts of water can leach magnesium, so steaming or consuming raw vegetables when appropriate helps preserve mineral content.

If you choose to take a magnesium supplement, the NHS advises that 400 mg/day or less is unlikely to cause harm in most people. Higher doses can cause diarrhoea and other side effects. Supplements should be avoided or used with caution if you have kidney disease. Take magnesium supplements at least 2 hours apart from certain medications including levothyroxine, tetracycline antibiotics, quinolone antibiotics, and bisphosphonates, as magnesium can reduce their absorption. Report any suspected side effects from supplements to the MHRA Yellow Card Scheme.

Frequently Asked Questions

What are the main signs of magnesium deficiency?

Early signs include fatigue, muscle cramps (particularly at night), muscle twitches, weakness, and reduced appetite. As deficiency progresses, neurological symptoms such as irritability, anxiety, numbness, or tingling may develop, alongside cardiovascular manifestations like palpitations or irregular heartbeat.

Which foods are the best sources of magnesium?

Green leafy vegetables (spinach, kale), nuts and seeds (almonds, cashews, pumpkin seeds), whole grains (brown rice, quinoa, oats), and legumes (beans, lentils, chickpeas) are excellent sources. Dark chocolate (70% cocoa or higher), avocados, and fatty fish also provide significant amounts.

How much magnesium should adults consume daily?

The UK Reference Nutrient Intake is 300 mg daily for men and 270 mg for women aged 19-64 years. The NHS advises that magnesium supplements of 400 mg/day or less are unlikely to cause harm in most people, though dietary sources are generally preferable.


Disclaimer & Editorial Standards

The health-related content published on this site is based on credible scientific sources and is periodically reviewed to ensure accuracy and relevance. Although we aim to reflect the most current medical knowledge, the material is meant for general education and awareness only.

The information on this site is not a substitute for professional medical advice. For any health concerns, please speak with a qualified medical professional. By using this information, you acknowledge responsibility for any decisions made and understand we are not liable for any consequences that may result.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Block quote

Ordered list

  1. Item 1
  2. Item 2
  3. Item 3

Unordered list

  • Item A
  • Item B
  • Item C

Text link

Bold text

Emphasis

Superscript

Subscript

Book a discovery call

and discuss your eligibility for the Fella Program

Book your free call