- Magnesium is involved in hundreds of processes, including muscle and nerve function and heart rhythm.
- Adults need around 270 to 300 mg a day; nuts, seeds, wholegrains, pulses and leafy greens are good sources.
- Low levels are more likely with gut losses, heavy drinking, poorly controlled diabetes and some medicines.
- Taking 400 mg or less a day from supplements is unlikely to cause harm; higher doses commonly cause diarrhoea.
In this article
What magnesium does
Magnesium is a mineral involved in more than 300 processes in the body. It helps:
- Muscles contract and relax, including the heart
- Nerves send signals
- Turn food into energy
- Build bones and teeth
- Keep the heart’s rhythm steady
- The parathyroid glands regulate calcium
How much do you need?
Adults need about 300 mg a day for men and 270 mg a day for women. Most people who eat a varied diet get enough.
Good food sources
| Food | Notes |
|---|---|
| Nuts — almonds, cashews, Brazil nuts | A small handful provides a useful amount |
| Seeds — pumpkin, sunflower, chia, flax | Pumpkin seeds are especially rich |
| Wholegrains — wholemeal bread, oats, brown rice | Refining grains removes much of the magnesium |
| Pulses — beans, lentils, chickpeas | Also great for fibre |
| Leafy green vegetables — spinach, kale | Magnesium is part of chlorophyll |
| Dark chocolate | Higher-cocoa varieties contain more |
Who is more likely to be low
Severe deficiency is uncommon in healthy people. Low magnesium is more likely with:
- Ongoing diarrhoea or vomiting, or conditions such as coeliac or Crohn’s disease
- Heavy drinking
- Poorly controlled diabetes, which increases magnesium lost in urine
- Some medicines, including long-term proton pump inhibitors (such as omeprazole) and some diuretics
- Older age, as absorption falls and kidney losses rise
Signs of low magnesium
Mild deficiency may cause no symptoms. As levels fall, people may notice tiredness, weakness, muscle twitches, cramps, tremor, loss of appetite or nausea. Severe deficiency can cause abnormal heart rhythms and seizures and is a medical problem. Low magnesium often occurs with low potassium and calcium.
What the evidence says about popular uses
| Claim | What the research shows |
|---|---|
| Better sleep | Some small studies suggest a modest effect; evidence is weak overall |
| Leg cramps | For common night cramps in older adults, magnesium is unlikely to help |
| Migraine | Some evidence for prevention; discuss with your GP |
| Constipation | Some forms have a laxative effect — this is why high doses cause diarrhoea |
If poor sleep is your concern, the basics matter most: see our guide to sleep and weight, which covers practical sleep habits.
Taking a supplement safely
- The NHS advises that 400 mg or less a day from supplements is unlikely to cause harm.
- Diarrhoea is the most common side effect, especially with magnesium oxide and higher doses.
- Kidney disease: people with reduced kidney function can build up magnesium — ask your GP before taking it.
- Medicines: magnesium can reduce the absorption of some antibiotics and osteoporosis medicines. Take them at different times and check with a pharmacist.
Testing
Magnesium is included in our vitamins and minerals blood test, along with vitamin D, B12, folate, calcium and a full iron profile. Women can book the same panel here. Because most magnesium is stored inside cells and bones, our clinical team interprets the result alongside your symptoms and other markers.
Check your levels first
A vitamins and minerals blood test measures vitamin D, B12, folate, iron stores and more — so any next step is based on your results, not guesswork.
See our blood tests →Related services at Well MediCare
Frequently asked questions
Does magnesium help you sleep?
Some small studies, mainly in older adults, suggest a modest benefit, but the evidence is weak overall. Good sleep habits have stronger evidence. If you are low in magnesium, correcting it is sensible.
Does magnesium help leg cramps?
For typical night-time leg cramps in older adults, reviews of the research have found that magnesium is unlikely to help. It may help when cramps are caused by low magnesium.
Which type of magnesium supplement is best?
Forms such as magnesium citrate and glycinate tend to be absorbed better than magnesium oxide, which is more likely to have a laxative effect. The dose of elemental magnesium on the label matters most.
Can a blood test show low magnesium?
A blood test is the standard check and will pick up significant deficiency. Because most magnesium is stored in bones and cells, a normal blood level does not completely rule out low body stores.
This article is general health information and does not replace advice from your GP or another healthcare professional who knows your history. If you have symptoms that worry you, contact your GP or NHS 111; in an emergency call 999. Any treatment is only provided after an assessment shows it is suitable for you.



