Magnesium deficiency is usually identified through a blood test for serum magnesium, combined with symptoms and a look at your medical history — but serum magnesium is an imperfect marker, because less than 1% of the body's magnesium circulates in blood and levels can stay normal even when body stores are running low.
What doctors actually measure
- Serum (blood) magnesium — the standard first test. The usual reference range is roughly 0.75–0.95 mmol/L (about 1.8–2.3 mg/dL). Below that is called hypomagnesemia. It's cheap and widely available, which is why it's used, despite its limits.
- Urinary magnesium — a 24-hour urine collection, or a "magnesium loading test" where a dose is given intravenously and doctors measure how much is excreted. If the body holds onto most of it, stores were likely depleted. This test is considered more accurate but is rarely done outside research or specialist settings.
- Red blood cell (RBC) magnesium — sometimes offered, especially by private labs. Evidence that it reflects whole-body status better than serum is mixed and it isn't a validated standard.
- Related blood chemistry — low potassium and low calcium that don't correct with supplementation are classic clues that magnesium is the underlying problem.
There's broad agreement among researchers that no single routine test reliably captures total body magnesium. Because of that, clinicians often weigh risk factors heavily: poorly controlled diabetes, chronic alcohol use, long-term diarrhoea or Crohn's disease, and certain medications (proton pump inhibitors for reflux, loop and thiazide diuretics, some chemotherapy drugs).
Symptoms that prompt testing
Mild depletion often causes nothing noticeable. More pronounced deficiency can bring muscle cramps or twitching, fatigue, nausea, loss of appetite, numbness, and — in severe cases — abnormal heart rhythms or seizures. These symptoms are non-specific, so they point towards testing rather than confirming anything on their own.
If you suspect low magnesium, it's worth asking a doctor or pharmacist rather than self-treating, particularly if you take diuretics, PPIs, or have kidney disease — impaired kidneys can make magnesium supplements dangerous rather than helpful.
Food sources worth knowing
Most people who eat a varied diet get enough. Here's what USDA data shows for some magnesium-rich foods, per 100 g:
| Food | Magnesium (per 100 g) | Per typical serving |
|---|---|---|
| Pumpkin seed kernels, dried | 592 mg | ~166 mg per 28 g handful |
| Almonds | 270 mg | ~76 mg per 1 oz (28 g, ~23 kernels) |
| Spinach, raw | 79 mg | ~24 mg per 1 cup (30 g) |
| Black beans, cooked | 70 mg | ~120 mg per 1 cup (172 g) |
Adult daily recommendations sit around 310–420 mg depending on age and sex, so a cup of cooked black beans or a small handful of pumpkin seeds makes a real dent.
The practical takeaway
- A normal serum magnesium result does not rule out low body stores.
- Diagnosis is a judgement call combining blood work, symptoms, medications and conditions.
- If you're on long-term PPIs or diuretics, ask whether magnesium should be checked periodically.
- A registered dietitian can help you raise intake through food before supplements are considered.