Nutrition
9 Signs of Magnesium Deficiency: Symptoms, Causes, Testing and How to Fix It
A physician's evidence-based guide to low magnesium. The nine ways it shows up, why a normal blood test can miss it, the root causes draining your stores, and the foods, forms and doses that refill them.

Magnesium deficiency is a shortfall of the body's fourth most abundant mineral 1, and it usually announces itself through muscles, sleep, mood and heart rhythm before it ever shows up on a blood test. Magnesium is a cofactor for more than 300 enzymatic reactions and is essential to ATP metabolism, muscle contraction, blood pressure regulation and nerve transmission 1. The limit worth stating plainly up front: low dietary intake is well documented at the population level, while confirming deficiency in one individual is truly difficult, because the standard test measures a small circulating fraction rather than what is inside your cells.
- Well studied as a nutrient, thinly studied as a diagnosis. Magnesium's biochemistry is settled science. The best way to detect a mild shortfall in a given person is not.
- A shortfall, not a disease. It sits underneath other problems more often than it stands alone, which is why it gets missed.
- The top drivers are intake, stress, medications and gut absorption. Almost half of the US population took in less magnesium from food than required in 2005-2006 2.
- Food does the heavy lifting, supplements close the gap. Pumpkin seeds and greens move your intake permanently. The right supplement form moves it faster.
Few nutrient questions come up in my practice as often as this one. Someone arrives with tight traps that never release, a mind that will not switch off at 11 p.m., an eye twitch, a flutter in the chest during a stressful week, and a blood panel their doctor called completely normal. They have usually been told there is nothing wrong. What I see instead is a pattern of symptoms sitting on top of a mineral that most modern diets no longer deliver in the amounts bodies were built to expect.
In my 20 years of clinical practice, the thing that has changed most about magnesium is not the biochemistry but the food supply and the stress load feeding into it. I have watched patients with years of unexplained cramping, insomnia and anxiety turn a corner within weeks of correcting their magnesium, and I have also watched people take the wrong form for six months and get nothing but loose stools. One fact reframes the whole subject: magnesium is the second most abundant cation inside your cells and is involved in over 600 enzymatic reactions, a higher tally than the more than 300 cited above because reviews count the reactions differently, yet it is rarely measured at all 3. This guide walks through the nine signs, the root causes underneath them, how the testing works, and the five-step repletion plan I use.
Magnesium is a cellular mineral doing its work inside your cells, which is why the symptoms of running low often arrive long before a standard lab flags anything.
Less than 1% of your body's magnesium is in the blood, though, so symptoms can show up long before your labs show you're deficient.Dr. Josh Axe, DC, DNM, CNS
A shortfall of magnesium, the mineral your cells use to make and spend energy
Real and common as a dietary shortfall; harder to confirm as an individual diagnosis, because standard serum testing reflects less than 1 percent of body magnesium
Muscle cramps and tightness, fatigue, poor sleep, anxiety, headaches, palpitations
Low intake, chronic stress, certain medications, alcohol and refined sugar, gut malabsorption, diabetes
People on PPIs or diuretics, people with type 2 diabetes, heavy drinkers, older adults, anyone with a malabsorptive gut condition
The Dr. Axe magnesium repletion plan: test, eat it back in, plug the drains, replete, recheck
5 Things to Understand About Magnesium Deficiency
Five ideas carry the rest of this guide, so read them once before the details: magnesium deficiency is common as a dietary shortfall, it works through many systems rather than one, it usually has several causes stacked together, it responds well to correction, and food leads while supplements assist.
- It is common as a shortfall. Almost half the US population was consuming less magnesium from food than required in 2005-2006, down from 56 percent a few years earlier 2.
- It is a mineral shortfall with downstream effects. Magnesium sits underneath muscle function, sleep, blood pressure, glucose handling and bone, so a shortfall rarely produces one clean symptom.
- It is almost always multifactorial. Low intake, stress, alcohol, medications and gut absorption stack. Pulling one lever usually is not enough.
- It is correctable. Of all the nutrient gaps I see, this is among the most responsive, and often within two to six weeks.
- Diet leads, supplements assist. The evidence for magnesium supplementation is real but modest, and it is strongest in people who were short to begin with.
What Is Magnesium Deficiency?
Magnesium deficiency means your body has less magnesium than its cells need to run normally. Magnesium is a cofactor for more than 300 enzymatic reactions, it is required for ATP metabolism, and it regulates muscular contraction, blood pressure, insulin metabolism, cardiac excitability and nerve transmission 1. When levels fall, those are exactly the systems that complain first.
It helps to know where the mineral lives. Magnesium is the second most abundant cation inside your cells, and only a small fraction circulates in the blood at any moment 3. Bone and soft tissue hold the bulk of it. Your kidneys are very good at defending the circulating pool, which means the number on a blood panel can sit comfortably mid-range while tissue stores quietly draw down.
That is the part I want you to carry away from this section. Magnesium is a cellular mineral doing cellular work, so a blood test is a look at the hallway rather than the rooms. If you want a deeper view of everything the mineral does day to day, our full guide to magnesium's role in the body covers the territory.
Is Magnesium Deficiency Real, or Overdiagnosed?
Yes, severe magnesium deficiency is real and medically accepted, and milder shortfalls are much harder to prove in one person. Hypomagnesemia has documented causes, including diuretics, proton pump inhibitors, calcineurin inhibitors, EGFR inhibitors, and inherited forms involving TRPM6, claudin 16 and CNNM2 3. That is where many internet claims run ahead of the evidence.
Start with what is solid. Population intake data is unambiguous: 48 percent of the US population consumed less magnesium from food than the requirement in 2005-2006, improved from 56 percent in 2001-2002 2. Low magnesium intake and blood levels have been associated with type 2 diabetes, metabolic syndrome, elevated C-reactive protein, hypertension, atherosclerotic disease, osteoporosis and migraine 2.
Now the nuance. Low intake at the population level is not the same claim as "you personally are deficient," and I want to be careful not to blur them. There is no widely adopted consensus cutoff for cellular magnesium testing, so what a functional workup gives you is a stronger signal rather than a verdict. As I put it on the show, "Less than 1% of your body's magnesium is in the blood, though, so symptoms can show up long before your labs show you're deficient." That statement is about the limits of the test, not a license to diagnose yourself from a symptom list.
The useful way to hold both is this. Treat magnesium as a likelihood rather than a yes or no. If your intake is low, your stressors are high, you are on a depleting medication, and you have several of the nine signs below, the probability is high enough to act on with food and a modest, well tolerated dose, while you and your clinician rule out the other things that produce the same symptoms.
Get medical care right away if you have a seizure, muscle spasms that lock up your hands or face, a fainting episode, chest pain, a fast or irregular heartbeat that will not settle, severe or persistent vomiting, or new confusion. Severe magnesium imbalance can produce neuromuscular, cardiac and nervous system disorders, and these symptoms need same-day evaluation rather than a supplement 13.
How Magnesium Deficiency Develops
Deficiency develops when intake falls below need while losses climb, and then it feeds itself. Low intake from a refined diet sets the floor. Stress, alcohol, high glucose and certain medications raise the losses. Because magnesium is required for the stress response and for sleep, the shortfall then worsens the very things that are draining it.
Here is the sequence I see most often. Intake drops first, usually quietly, as whole foods give way to refined ones. The kidneys compensate and hold serum magnesium steady by pulling from tissue and bone. Symptoms start in the tissues with the highest demand: skeletal muscle, the nervous system and the heart. Sleep degrades. Stress hormones rise, urinary magnesium losses rise with them, and the reader now has less magnesium available for the very systems that would calm the loop down.
The magnesium depletion loop. Intake sets the floor, stress and losses do the tightening, and the loop feeds itself because magnesium is required for the stress response it is being spent on 13.
The reassuring half of the picture is that this loop runs in both directions. Break any single link and the rest loosen. Raise intake and the kidneys stop borrowing. Sleep better and the urinary losses fall. In practice, people who address two links at once tend to feel different within a few weeks rather than a few months.
The 9 Signs of Magnesium Deficiency
The nine most common signs are muscle cramps and tightness, fatigue, poor sleep, anxiety and low mood, headaches or migraines, high blood pressure, heart palpitations, tingling and numbness, and weakening bones. Nausea and loss of appetite are early, missed signs, and I group the ten signs I cover on the podcast into these nine patterns most people recognize.
| Sign | System involved | What people usually notice |
|---|---|---|
Muscle cramps, tightness, twitches | Neuromuscular | Tight traps and shoulders, calf cramps at night, eyelid twitch |
Fatigue and weakness | Energy metabolism | Tired for no clear reason, heavy limbs, poor exercise recovery |
Trouble sleeping | Nervous system | Hard to fall asleep, wired at bedtime, waking at 3 a.m. |
Anxiety, irritability, low mood | Nervous system | Short fuse, racing mind, feeling on edge |
Headaches and migraines | Neurovascular | More frequent attacks, headaches that linger |
Higher blood pressure | Vascular tone | Creeping readings at checkups |
Heart palpitations | Cardiac excitability | Skipped beats or flutters, often during stressful weeks |
Tingling and numbness | Nerve conduction | Pins and needles in hands and feet |
Weakening bones | Bone mineral | Falling bone density on a scan, fractures from minor falls |
These symptoms overlap with a long list of other conditions, from thyroid disease to anemia to sleep apnea, so treat them as a prompt to look closer, not a diagnosis on their own. The useful question is not whether you can find yourself on this list. It is what is driving the pattern, which is what the rest of this guide is about.
1. Muscle cramps, tightness and twitching
What it feels like. Traps and shoulders that never release, calf cramps that wake you, an eyelid that flickers for days. Why it happens. Magnesium regulates muscular contraction and neuromuscular conduction, and it opposes calcium at the level of the muscle fiber 1. What to track. When cramps happen, what you drank, how hard you trained. First steps. Food first, then an evening dose of a well absorbed form.
Here is the limit, and it matters. A Cochrane review of 11 trials in 735 people found that magnesium is unlikely to provide clinically meaningful cramp prevention for older adults with ordinary night cramps, and the pregnancy-related literature is conflicting 4. Those trials enrolled people with cramps, not people with proven deficiency, so they answer a different question than the one you are asking. Correcting a shortfall you have is not the same intervention as taking magnesium because you cramp. If cramps are your only symptom and your intake is good, magnesium is unlikely to be your answer.
2. Fatigue and weakness
What it feels like. Sluggish in a way that sleep does not fix. Why it happens. Magnesium is crucial for ATP metabolism 1, and ATP is only biologically usable when it is bound to magnesium. As I describe it on the show, "Magnesium is involved in energy production. Without it, you can feel tired, weak, or sluggish for no clear reason." What to test. RBC magnesium, alongside ferritin, thyroid and B12, because those produce the same complaint. First steps. Rule out the big mimics, then replete.
3. Trouble sleeping
What it feels like. Lying down tired and switching on. Why it happens. Magnesium supports nervous system stability and the transition into rest. What to track. Sleep onset time, consistency, caffeine timing. First steps. An evening dose of magnesium glycinate, 30 to 60 minutes before bed.
The evidence here is real but modest, and I would rather you hear that from me than discover it later. A meta-analysis of three trials in 151 older adults found magnesium shortened the time to fall asleep by about 17 minutes compared with placebo, while total sleep time improved by 16 minutes and did not reach significance 5. All three trials carried moderate to high risk of bias, and the authors graded the certainty low to very low 5. Seventeen minutes is worth having from something this cheap and this safe. It is not a sleep medication, and it will not out-argue a 10 p.m. phone habit. Magnesium glycinate is the form with the most clinical support for this use.
4. Anxiety, irritability and low mood
What it feels like. A short fuse, a racing mind, a body that will not stand down. Why it happens. Magnesium governs nerve transmission and nervous system excitability 1, and low levels have been associated with mood symptoms. What to test. RBC magnesium, plus thyroid and iron studies. First steps. Evening glycinate, and address the stress load that is spending it.
One randomized trial of 126 adults with mild to moderate depression found that 248 mg a day of elemental magnesium for six weeks improved depression scores by a net 6.0 points and anxiety scores by a net 4.5 points, with effects visible within two weeks 6. Read that one carefully: it was open-label with no placebo, which inflates apparent benefit in mood research more than in almost any other field. I treat it as encouraging rather than conclusive. If you are on psychiatric medication, add magnesium as a support and review it with your prescribing doctor rather than changing anything yourself.
5. Headaches and migraines
What it feels like. More attacks per month, or headaches that linger behind tight neck and shoulder muscles. Why it happens. Magnesium influences neurovascular tone and neurotransmitter signaling, and low levels have been associated with migraine 12. What to track. Attack frequency per month over 8 to 12 weeks. First steps. A trial at prophylactic doses, with your doctor if you already take migraine medication.
This is the strongest symptom-level evidence in the whole article. In a double-blind, placebo-controlled trial of 81 adults, 600 mg a day of trimagnesium dicitrate for 12 weeks cut attack frequency by 41.6 percent, compared with 15.8 percent on placebo 7. Days with migraine and use of rescue medication both fell significantly. Note the price of admission: diarrhea occurred in 18.6 percent and gastric irritation in 4.7 percent 7. That dose is well above what most people need for general repletion, and it belongs in a conversation with your clinician rather than a self-experiment.
6. Higher blood pressure
What it feels like. Usually nothing, which is the problem. Why it happens. Magnesium participates in blood pressure regulation and vascular tone 1. My own framing is simple: magnesium helps relax blood vessels, and without enough of it your pressure may rise. What to test. Home blood pressure readings over two weeks, plus RBC magnesium. First steps. Diet first, and keep taking any prescribed antihypertensive unless your doctor tells you otherwise.
Expect a modest effect, not a replacement. Across 34 randomized double-blind trials in 2,028 people, magnesium at a median 368 mg a day for a median three months lowered systolic pressure by 2.00 mm Hg and diastolic by 1.78 mm Hg 8. That is real and it is small. Separately, in a meta-analysis of seven prospective studies covering 241,378 participants, each 100 mg a day increment in dietary magnesium was associated with an 8 percent lower risk of total stroke and a 9 percent lower risk of ischemic stroke 9. That is an observed association from cohort data, not proof that magnesium prevents strokes. If your readings are high, work the whole picture, using a broader magnesium strategy as one lever among several.
7. Heart palpitations and irregular rhythm
What it feels like. Skipped beats, flutters, a heart that announces itself during a hard week. Why it happens. Magnesium regulates cardiac excitability, and imbalance can produce cardiac disorders 1. What to test. This one gets a clinician, not a supplement bottle. Ask for an ECG, electrolytes including potassium, and thyroid testing. First steps. Get evaluated first, then correct intake.
8. Tingling and numbness
What it feels like. Pins and needles in hands and feet, sometimes around the mouth. Why it happens. Magnesium is required for normal nerve transmission and neuromuscular conduction 1. What to test. RBC magnesium plus B12, since B12 deficiency causes the same symptom and needs its own treatment. First steps. Test before you treat, because guessing wrong here costs you time on a nerve problem.
9. Weakening bones
What it feels like. Nothing at all until a scan or a fracture. Why it happens. Magnesium is a structural component of bone and participates in the handling of calcium and vitamin D, and low magnesium status has been associated with osteoporosis 2. What to test. Bone density scanning on the schedule your doctor recommends, plus vitamin D and RBC magnesium. First steps. Cover magnesium alongside calcium and vitamin D rather than loading calcium alone. This matters especially for women at midlife, which is why we cover magnesium's role in women's health separately.
Symptom Pattern Finder: What Your Signs Point To
The timing and clustering of your symptoms narrows the likely driver faster than any single test. Match the row that sounds most like your week, then work the first steps listed beside it. Use this as a starting point for a conversation with a clinician rather than as a diagnosis you make on your own.
| If your pattern looks like this | Most likely drivers | First steps |
|---|---|---|
Cramps and twitching after hard training or hot weather | Low intake plus sweat and fluid losses | Raise food intake, check overall electrolytes, replete in the evening |
Symptoms started within months of a new prescription | Medication-driven loss, especially PPIs or diuretics | Review the medication list with your prescribing doctor, test magnesium |
Wired at night, tight traps, worse in high-stress stretches | Stress-driven urinary loss | Evening magnesium, plus stress load and sleep timing |
Cramps or palpitations after heavy drinking weeks | Alcohol-related loss and low intake | Cut alcohol load, replete, recheck |
Loose stools, celiac or Crohn's history, unexplained fatigue | Gut malabsorption | Treat the underlying gut condition, test magnesium, use a gentle form |
High blood sugar with frequent urination and fatigue | Diabetes-related urinary loss | Glucose workup with your doctor, replete alongside it |
Nothing obvious, but diet is mostly refined foods | Low dietary intake | Food first, seeds and greens daily |
What Causes Magnesium Deficiency? The Root Causes
In the order I see them, the drivers are low dietary intake, chronic stress, magnesium-depleting medications, refined sugar and alcohol, gut malabsorption, type 2 diabetes and, less commonly, inherited transport defects. The most-missed one is chronic stress, because it is invisible on a lab report and it raises losses at the same time it raises demand.
| Root driver | How it does the damage |
|---|---|
Low dietary intake from refined foods and depleted soil | Intake falls below requirement; almost half the US population was below the requirement in 2005-2006 |
Chronic stress | Raises urinary magnesium loss while raising the demand for magnesium-dependent reactions |
Medications | Diuretics, proton pump inhibitors, calcineurin inhibitors and EGFR inhibitors are documented causes of hypomagnesemia |
Alcohol and refined sugar | Increase renal losses and displace magnesium-rich foods from the diet |
Gut malabsorption | Celiac disease, Crohn's disease and bowel resection reduce absorption across the intestine |
Type 2 diabetes | Higher glucose increases urinary magnesium loss, and low magnesium worsens insulin handling in turn |
Inherited transport defects | Mutations in TRPM6, claudin 16 and CNNM2 cause hereditary forms of hypomagnesemia |
Every row above except stress and sugar is documented in the physiology literature: the intake mechanism 2, the cellular-distribution and hereditary-transport mechanisms 3, drug-induced hypomagnesemia 3, and the glucose-insulin relationship 10. The stress and refined-sugar rows reflect my clinical position and the mechanism, and they have less direct trial evidence behind them than the medication and malabsorption rows do. I would rather tell you which rows are which than present a flat list.
Magnesium Deficiency by Root Cause
Each root cause below carries its own signature, its own mechanism and its own first move, and most people who stay deficient are dealing with more than one at once. Read them in order, since they are ranked by how often I see them driving the problem in practice.
Low intake and a depleted food supply
What it feels like. Nothing specific, which is exactly why it persists. Why it happens. Modern eating patterns lean on refined grains and processed foods, which lose magnesium in processing. Almost half the US population took in less than the required amount from food in 2005-2006, improved from 56 percent in the prior survey period 2. What to track. Three days of truthful food logging, looking specifically for seeds, nuts, legumes and dark leafy greens. First steps. Pumpkin seeds, dark leafy greens and avocado daily, which is the food trio I lean on most.
Chronic stress
What it feels like. Tight traps, a mind that will not settle, worse symptoms in your hardest weeks. Why it happens. The stress response spends magnesium and increases urinary loss, so demand rises as supply falls. What to track. Whether your symptoms track your workload rather than your diet. First steps. Magnesium in the evening, plus the unglamorous work of protecting sleep and downshifting before bed.
Magnesium-depleting medications
What it feels like. New cramping, fatigue or palpitations that began within months of a new prescription. Why it happens. Diuretics, proton pump inhibitors, calcineurin inhibitors and EGFR inhibitors are documented causes of drug-induced hypomagnesemia 3. On the show I also flag diabetes medications, antibiotics and birth control as depleters worth watching. What to test. Serum and RBC magnesium, and bring your full medication list. First steps. Review the list with the doctor who prescribed it. Never stop or change a prescription on your own, and note that magnesium can interfere with the absorption of some drugs, so spacing matters.
Alcohol and refined sugar
What it feels like. Cramps, palpitations and poor sleep that follow heavy stretches. Why it happens. Both raise losses and crowd out magnesium-dense foods. What to track. Weekly alcohol volume against symptom days. First steps. Reduce the load first. Repleting into an ongoing drain is slow work.
Gut malabsorption and type 2 diabetes
What it feels like. Longstanding digestive symptoms, or high blood sugar with fatigue. Why it happens. Intestinal absorption and renal handling both govern magnesium balance 3, and the relationship with glucose runs both ways. Magnesium supplementation reduced fasting glucose in people with diabetes across nine trials, and improved post-glucose-load readings in people at high risk, while the insulin resistance change was a trend only 10. What to test. RBC magnesium alongside the workup for the underlying condition. First steps. Treat the upstream condition, and choose a gentle, well absorbed form so you are not adding to loose stools. If you are navigating several gaps at once, our guide to the nutrient deficiencies that cluster together is a useful companion.
How Is Magnesium Deficiency Tested?
Standard serum magnesium is the test most doctors run, and it is the weakest option for detecting a mild shortfall, because only a small fraction of body magnesium circulates in blood 3. Hypomagnesemia is diagnosed when serum falls below the lab's reference range, which catches the serious cases but misses the milder, chronic shortfalls this test struggles with.
My position, stated plainly so you can weigh it: I use RBC magnesium, which measures magnesium inside red blood cells, as the more informative test. In my view, serum magnesium can look normal while your cells are running low, and red blood cell magnesium comes closer to showing what is happening where magnesium does its work, inside the cell. The counterweight you deserve to hear is that no major consensus body has adopted RBC magnesium as a validated diagnostic standard with an agreed cutoff, and serum magnesium is not routinely measured in patients at all 3. So treat RBC magnesium as a better signal, not as a verdict.
| Test | What it measures | What it cannot tell you |
|---|---|---|
Serum magnesium | The circulating fraction, which is a small share of body magnesium | Whether tissue and cellular stores are drawn down |
RBC magnesium | Magnesium inside red blood cells, a closer reflection of cellular status | A validated deficiency threshold, because no consensus cutoff is established |
Symptom pattern plus intake history | Likelihood, in context | Confirmation, on its own |
Response to repletion | Whether correcting intake changes your symptoms over 4 to 8 weeks | Anything, if you change five things at once |
How We Chose These Labs
We included tests that are widely available through standard labs, that measure magnesium directly rather than inferring it, and that a clinician can interpret in context. We excluded hair mineral analysis and other unvalidated panels marketed for mineral status. Where a test lacks an agreed reference threshold, we say so in the same breath as the recommendation. Ask your own clinician which of these fits your situation and your insurance.
Conditions Linked to Low Magnesium
The evidence behind each condition linked to low magnesium ranges from a well established, replicated effect down to a single promising trial with no placebo arm, and treating every line below as equally solid would be a mistake. Each association is graded by the strength of its evidence rather than presented as uniform.
| Condition | Strength of link | What the evidence shows |
|---|---|---|
Migraine | Strong Strong | A double-blind RCT found 600 mg daily cut attack frequency 41.6 percent versus 15.8 percent on placebo over 12 weeks |
Hypertension | Moderate Moderate | Pooled RCTs show a small but real reduction of about 2.0 mm Hg systolic and 1.8 mm Hg diastolic |
Type 2 diabetes | Moderate Moderate | Higher intake is associated with 22 percent lower risk in cohorts; supplementation lowers fasting glucose in people with diabetes |
Insomnia in older adults | Moderate Moderate | Sleep onset shortened by about 17 minutes, on low to very low certainty evidence |
Depression and anxiety | Emerging Emerging | One open-label randomized trial found meaningful improvement, without a placebo control |
Stroke | Emerging Emerging | An association only; each 100 mg daily of dietary intake tracked with 8 percent lower total stroke risk in cohorts |
The link I watch most closely in practice is the one with type 2 diabetes, because it runs in both directions. Higher dietary magnesium was associated with a 22 percent lower risk of developing type 2 diabetes across 13 cohorts covering 536,318 people, with each 100 mg a day increment carrying a 14 percent lower risk 11. Note the wording: those are associations from observational cohorts, and they were significant in overweight participants but not in normal-weight ones 11. On the treatment side, supplementation did lower fasting glucose in people who already have diabetes 10. Put together, magnesium looks like a genuine part of glucose regulation and a poor candidate for a standalone diabetes therapy.
The Best Diet for Restoring Magnesium
Seeds, dark leafy greens, legumes, nuts and cacao are the densest everyday sources, and food is the only intervention that fixes the underlying intake problem. Avocado is a moderate source that pairs magnesium with potassium. Daily targets run near 400 mg for men 19-30 (higher after 30), 310 mg for women, and 350 mg in pregnancy.
The ideal magnesium-supportive eating pattern
- Seeds daily, pumpkin seeds first. They are the densest everyday plant source most people will eat, and a small handful moves your daily total meaningfully.
- A dark leafy green at two meals. Magnesium sits at the center of the chlorophyll molecule, so the greener and leafier, the better the yield.
- Legumes several times a week. Black beans and lentils bring magnesium alongside fiber, which supports the glucose side of the picture.
- Nuts as the default snack. Almonds and cashews are convenient and dense, which matters more than optimal on a Tuesday afternoon.
- Avocado most days. It is a moderate source, and it travels with potassium, which is the other electrolyte often short in the same people.
- Real cacao rather than candy. Dark chocolate is a legitimate source. Milk chocolate is mostly sugar, which works against you.
- Cut the refined sugar and moderate the alcohol. Both increase losses, and no food plan outruns an open drain.
| Food | Relative magnesium density | Practical note |
|---|---|---|
Pumpkin seeds | Highest of the common whole foods | A small handful is the single easiest upgrade |
Almonds and cashews | High | Portable, easy to overeat, still worth it |
Cooked spinach and Swiss chard | High once cooked down | Volume drops on cooking, so density per forkful rises |
Dark chocolate, 70 percent and above | High | Choose cacao content over sweetness |
Black beans and lentils | Moderate to high | Also brings fiber for glucose control |
Avocado | Moderate | Pairs magnesium with potassium |
Plain yogurt and kefir | Moderate | Useful if you tolerate dairy |
Bananas and figs | Moderate | Convenient rather than dense |
Refined grains, white bread, most packaged snacks | Low | Processing strips magnesium out |
The Best Magnesium Supplements and Forms
Form decides how much magnesium you absorb and how your gut responds. Glycinate is my first choice for sleep and stress, threonate supports cognitive use, citrate and malate are solid general options, and oxide is poorly absorbed and better suited to constipation than repletion. Supplements support the plan; they do not replace fixing the intake and the drains.
How We Ranked These Supplements
We ranked by absorption, by tolerability at the doses people take, by the quality of the human evidence for the specific use, and by how well the form matches the symptom being treated. Forms sold mainly for bowel effects were ranked lower for repletion even where they are cheap and widely available.
| Form | Best suited to | Notes on absorption and tolerance |
|---|---|---|
Magnesium glycinate | Sleep, stress, anxiety, general repletion | Well absorbed and gentle on the gut; roughly 14 percent elemental magnesium by weight |
Magnesium threonate | Cognitive and brain-focused use | Marketed for brain uptake; less studied than glycinate |
Magnesium citrate | General repletion | Well absorbed; loosens stools at higher doses |
Magnesium malate | General repletion, daytime use | Reasonable absorption; often chosen for daytime dosing |
Magnesium chloride | General repletion, mood research | The form used in the depression trial described earlier |
Magnesium sulfate (Epsom salt) | Baths and soaks | Traditional topical use; oral use is a strong laxative |
Magnesium oxide | Constipation | Poorly absorbed, which is why it works as a laxative and fails as a repletion strategy |
A few practical points that save people months. Read the elemental magnesium on the label rather than the total compound weight, because a 1,000 mg glycinate capsule delivers roughly 140 mg of actual magnesium. Start at 100 to 200 mg and increase gradually with food. For sleep, take it 30 to 60 minutes before bed, which is when its calming effect is most useful. For general repletion, take it with a meal and split larger amounts into two doses for comfort and absorption. Standard guidance puts the upper limit for supplemental magnesium at 350 mg a day without medical supervision, which is separate from what you get from food.
The reason glycinate leads my list is the pairing: magnesium bound to glycine, and glycine itself is a calming amino acid, which makes the combination well suited to evening use. If you want the full comparison across brands and forms, our magnesium supplements guide goes deeper, and we have dedicated breakdowns of magnesium malate, magnesium chloride and where magnesium oxide does and does not belong.
Conventional Treatment for Magnesium Deficiency
Conventional care treats confirmed hypomagnesemia with oral magnesium salts, and with intravenous magnesium when levels are dangerously low or symptoms are severe. That is the right approach for the severe end of the spectrum, and nothing in this guide replaces it.
If a blood test confirms low magnesium, expect your doctor to look for the cause before reaching for a supplement, because drug-induced and malabsorptive causes both change the plan 3. When a medication is responsible, the decision is a clinical one about whether the drug can be changed, dose-adjusted or continued with monitoring. That decision belongs to you and your prescriber together.
Side effects of oral repletion are mostly gastrointestinal and dose-dependent. Diarrhea and gastric irritation were the main adverse events in the migraine trial at 600 mg a day 7, and minor gastrointestinal effects were more common on magnesium than placebo across the cramp trials 4. Magnesium can also interfere with the absorption of several drug classes, so spacing doses matters and is worth asking your pharmacist about. Anyone with reduced kidney function should not supplement magnesium without medical supervision, because the kidneys are what protect you from getting too much.
The plain close on this section: correcting the number is one part of the work, and it leaves the door open to relapse if the reason you were low in the first place is still running.
What Traditional Medicine Says About Low Magnesium
Traditional systems had no concept of magnesium as an element, but they used magnesium-rich foods, mineral springs and salt soaks for exactly the complaints we now associate with low magnesium. Tight muscles, restlessness and poor sleep were treated with mineral bathing and with calming, mineral-dense preparations long before the chemistry existed to name why.
The mapping onto modern mechanism is straightforward in places and speculative in others. Mineral bathing is the clearest overlap, because soaking in magnesium sulfate remains a widely used comfort measure for sore, cramping muscles. I use Epsom salt baths two to three times a week with patients carrying a lot of muscular tension, and I am candid that the evidence for meaningful transdermal absorption is thin. The relaxation is real, the mineral repletion is not the part I would count on.
Traditional food practice maps more convincingly. Seeds, legumes, leafy greens and whole unrefined grains are staples across nearly every traditional diet, and they are also the highest magnesium foods in the modern database. The practice arrived at the right foods without knowing the mineral. What modern data added is the reason: those same eating patterns supply the intake that refined diets no longer do 2.
The Dr. Axe Magnesium Repletion Plan
Five steps, in this order: test what reflects your cells, eat it back in, plug the drains, replete with a form you absorb, then recheck and hold the gains. The order matters, because repleting into an open drain is the most common reason people conclude that magnesium does not work for them.
Ask for serum magnesium, because it catches the serious cases, and ask about RBC magnesium for a closer look at cellular status 3. Bring your medication list to the appointment. If testing is not available to you, proceed on the pattern and the intake history, and treat it as a probability rather than a diagnosis.
Pumpkin seeds, dark leafy greens and avocado, daily, plus legumes and nuts through the week. This is the step that fixes the actual problem, because the population-level driver is intake below requirement 2. Give it four weeks before you judge it.
Reduce alcohol and refined sugar. Take the stress load seriously, since it raises urinary losses. Review any diuretic, proton pump inhibitor or other depleting medication with your prescribing doctor, because these are documented causes of hypomagnesemia 3 and they are also the one lever you must not pull by yourself.
Start at 100 to 200 mg of elemental magnesium and increase gradually, with food. Glycinate in the evening for sleep and stress, 30 to 60 minutes before bed. Split larger amounts into two doses. Keep supplemental magnesium at or below 350 mg a day unless a clinician is supervising, and skip oxide if repletion rather than bowel movement is your goal. Epsom salt soaks two to three times a week are a pleasant adjunct, not the main event.
Reassess symptoms at four to six weeks, and retest if your first test was abnormal. Then keep the food pattern, because magnesium stores refill slowly and drain steadily. Most people who relapse do so because they treated step 4 as the whole plan.
Preventing Low Magnesium From Coming Back
Relapse is the norm when the food pattern reverts, because the drivers behind low intake are structural rather than temporary. The intake data makes the point: 48 percent of the US population was below requirement in 2005-2006, and 56 percent in the survey period before that 2. Those are not numbers that describe a passing dietary fad.
The habits that hold are unremarkable and effective. Keep seeds and nuts visible and pre-portioned. Anchor a leafy green to two specific meals rather than to good intentions. Watch the stretches where alcohol, travel and stress stack, because those are the weeks that empty the tank. Reassess after any new prescription, especially a PPI or a diuretic, and ask your doctor to check magnesium during routine bloodwork if you are on one long term. If you have type 2 diabetes or a malabsorptive gut condition, treat magnesium as ongoing maintenance rather than a one-time correction.
Myths vs. facts
A normal magnesium blood test rules out deficiency
Serum reflects a small circulating fraction, and it is not routinely measured in the first place
Magnesium fixes night cramps for everyone
A Cochrane review found it unlikely to provide meaningful cramp prevention in older adults with ordinary cramps
A 1,000 mg capsule delivers 1,000 mg of magnesium
Glycinate is roughly 14 percent elemental magnesium, so that capsule delivers around 140 mg
All magnesium supplements are basically the same
Absorption and gut effects differ sharply; oxide is poorly absorbed and glycinate is well tolerated
More magnesium is always better
Past your needs the extra mostly causes loose stools, and supplemental intake above 350 mg a day warrants medical guidance
When to See a Doctor
Get evaluated the same day for seizures, locked muscle spasms, fainting, chest pain, a persistently irregular or racing heartbeat, persistent vomiting or new confusion. Severe magnesium imbalance can produce neuromuscular, cardiac and nervous system disorders, and those belong in a clinic rather than in a supplement plan 13.
Your symptoms have persisted beyond four to six weeks of a genuine dietary effort
You take a diuretic, a proton pump inhibitor or another medication associated with magnesium loss
You have celiac disease, Crohn's disease, a history of bowel resection, or chronic diarrhea
You have type 2 diabetes, reduced kidney function, or you are pregnant
You have numbness or tingling that is worsening or spreading
You are considering doses above 350 mg a day of supplemental magnesium
| If you | Recommendation |
|---|---|
Have red-flag symptoms listed above | Seek same-day medical care |
Have reduced kidney function | Do not supplement magnesium without medical supervision |
Take a depleting medication | Ask your prescriber to test magnesium and review the regimen; do not stop it yourself |
Have several signs and a low-magnesium diet | Food first, a modest supplement, reassess at four to six weeks |
Have one mild symptom and a good diet | Magnesium is a less likely explanation; look for another cause |
The Bottom Line on Magnesium Deficiency
Low magnesium is one of the most correctable problems I encounter. It is common as a dietary shortfall, it is hard to confirm in one person with the tests we have, and it produces a cluster of symptoms that get individually medicated far more often than they get collectively explained.
Work the five steps: test what reflects your cells, eat it back in, plug the drains, replete with a form you absorb, then recheck and hold the gains. Give it four to six weeks before you judge it, and keep your expectations calibrated to the evidence, which shows real but modest effects for blood pressure and sleep and a stronger effect for migraine. If your symptoms are persistent, worsening, or include anything on the red-flag list, get evaluated rather than guessing. This guide is education, not personal medical care, and the conditions that mimic low magnesium, including thyroid disease, anemia, B12 deficiency and cardiac arrhythmia, need ruling out by a clinician who can examine you.
About the Author
Dr. Josh Axe, DC, DNM, CNS is a doctor of natural medicine, clinical nutritionist and author with more than two decades of experience helping patients identify and correct the nutrient deficiencies behind fatigue, poor sleep, muscle complaints and metabolic problems. Magnesium is among the minerals he tests and corrects most often in practice. Read more about Dr. Axe.
Frequently asked questions
What are the first signs of magnesium deficiency?
Muscle tightness, cramps and twitching usually arrive first, along with fatigue and trouble sleeping. Nausea and loss of appetite are early signs people often miss because they attribute them to something else.
Can a blood test detect magnesium deficiency?
It can detect the severe form. A standard serum test measures the small circulating fraction rather than what is inside your cells, so mild chronic shortfalls can hide behind a normal result 3. RBC magnesium gives a closer look, though there is no agreed diagnostic cutoff for it.
How long does it take to correct magnesium deficiency?
Symptoms often shift within two to six weeks, while tissue stores refill more slowly. Give any plan a solid four to six weeks before judging it.
What is the best magnesium for sleep?
Magnesium glycinate, taken 30 to 60 minutes before bed. In older adults, magnesium shortened the time to fall asleep by about 17 minutes compared with placebo, on low certainty evidence 5.
How much magnesium should I take a day?
Total intake targets sit near 400 mg for men ages 19 to 30 (slightly higher after 30), 310 mg for women and 350 mg in pregnancy, counting food. For supplements specifically, standard guidance caps unsupervised intake at 350 mg a day.
Does magnesium lower blood pressure?
Modestly. Across 34 randomized trials, a median 368 mg a day for three months lowered systolic pressure by 2.00 mm Hg and diastolic by 1.78 mm Hg 8. Keep taking any prescribed medication and review changes with your doctor.
Does magnesium help with anxiety?
There is early support. An open-label trial in 126 adults found meaningful improvement in anxiety and depression scores over six weeks 6, though the lack of a placebo control means the effect size should be read cautiously.
Can magnesium prevent migraines?
It has the best evidence of any symptom in this guide. A double-blind trial found 600 mg a day cut attack frequency by 41.6 percent versus 15.8 percent on placebo over 12 weeks, with diarrhea in about one in five participants 7.
Why do I get leg cramps even though I take magnesium?
Because cramps have several causes, and magnesium only helps if a magnesium shortfall is one of them. A Cochrane review found little benefit for ordinary night cramps in older adults 4.
Which foods are highest in magnesium?
Pumpkin seeds lead the list of everyday whole foods, followed by nuts, cooked leafy greens, legumes and high-cacao dark chocolate.
Can you take too much magnesium?
From food, essentially no. From supplements, yes. Excess mainly causes diarrhea, and people with reduced kidney function can accumulate magnesium to dangerous levels, which is why they need supervision.
Does magnesium interact with medications?
Yes, in both directions. Several drug classes deplete magnesium 3, and magnesium can reduce absorption of some medications, so spacing doses matters. Review your list with your pharmacist or doctor.
Is magnesium deficiency linked to diabetes?
Should I take magnesium with vitamin D?
I pair them. Magnesium is involved in vitamin D metabolism, and in practice I see people start high-dose vitamin D alone and develop new magnesium-type symptoms. Discuss the combination with your clinician if you are on prescribed vitamin D.
Do Epsom salt baths raise magnesium levels?
They are relaxing and traditional, and the evidence for meaningful absorption through skin is thin. Use them as an adjunct, not as your repletion strategy.
Does stress cause magnesium deficiency?
Stress raises urinary magnesium loss while raising demand, which is why symptoms so often track your hardest weeks. This is a mechanism-based position rather than a claim from randomized trials.
Freshness & update log
September 2026 (audit pass) — Corrected the relative magnesium-density order of dark chocolate and black beans/lentils in the food table so it does not invert the two foods' known density. Added the missing age-band qualifier to the RDA figures for men in the diet section and the FAQ, since the 400 mg figure applies specifically to men 19-30. Added "inherited transport defects" to the root-causes intro sentence so it matches the table beneath it. Corrected a citation on the root-causes closing paragraph so cellular-distribution and hereditary-transport mechanisms cite the physiology review [3] rather than the population-intake papers [1][2].
September 2026 — Second-pass edit. Sourced the Quick Answer and Key Takeaways block at first appearance, which moved most references' first citation to the top of the page and required renumbering 1 to 11 by true first-appearance order (7 of 11 numbers changed; the migraine trial reference kept its number since it was already first in sequence). Split five merged multi-source markers into separate adjacent brackets. Upgraded seven reference-list links from PubMed abstract pages to their DOIs; kept PubMed links for the four records where the DOI on file did not match the paper or none was returned. Removed eight instances of banned editorial vocabulary and two instances of software-register phrasing describing dose increases. Converted one direct quotation to attributed paraphrase because its exact wording carried banned vocabulary. Removed a duplicate internal link to the magnesium supplements page. Spot-verified 6 of 11 PubMed sources (55 percent) against the primary record; all matched. 11 studies cited, unchanged.
January 2026 — Full rewrite under Dr. Axe's byline. Added the root-cause map, the symptom pattern finder, the testing comparison, the five-step repletion plan, and the graded linked-conditions table. Replaced three previously uncited claims with verified primary sources, corrected the type 2 diabetes risk figure to the published value and reframed it as an association, added the Cochrane counterpoint on muscle cramps, and removed the peroxynitrite and 30-day osteoporosis claims as unsupported. 11 studies cited.
Next review — January 2027, or sooner if a consensus body establishes a validated cellular magnesium threshold.
References
- Gröber U, Schmidt J, Kisters K. Magnesium in prevention and therapy. Nutrients. 2015;7(9):8199-8226.
- Rosanoff A, Weaver CM, Rude RK. Suboptimal magnesium status in the United States: are the health consequences underestimated? Nutr Rev. 2012;70(3):153-164.
- de Baaij JH, Hoenderop JG, Bindels RJ. Magnesium in man: implications for health and disease. Physiol Rev. 2015;95(1):1-46.
- Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020;9:CD009402.
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complement Med Ther. 2021;21(1):125.
- Tarleton EK, Littenberg B, MacLean CD, Kennedy AG, Daley C. Role of magnesium supplementation in the treatment of depression: a randomized clinical trial. PLoS One. 2017;12(6):e0180067.
- Peikert A, Wilimzig C, Köhne-Volland R. Prophylaxis of migraine with oral magnesium: results from a prospective, multi-center, placebo-controlled and double-blind randomized study. Cephalalgia. 1996;16(4):257-263.
- Zhang X, Li Y, Del Gobbo LC, et al. Effects of magnesium supplementation on blood pressure: a meta-analysis of randomized double-blind placebo-controlled trials. Hypertension. 2016;68(2):324-333.
- Larsson SC, Orsini N, Wolk A. Dietary magnesium intake and risk of stroke: a meta-analysis of prospective studies. Am J Clin Nutr. 2012;95(2):362-366.
- Veronese N, Watutantrige-Fernando S, Luchini C, et al. Effect of magnesium supplementation on glucose metabolism in people with or at risk of diabetes: a systematic review and meta-analysis of double-blind randomized controlled trials. Eur J Clin Nutr. 2016;70(12):1354-1359.
- Dong JY, Xun P, He K, Qin LQ. Magnesium intake and risk of type 2 diabetes: meta-analysis of prospective cohort studies. Diabetes Care. 2011;34(9):2116-2122.
This article is for educational purposes and is not a substitute for diagnosis or treatment by a qualified clinician. Symptoms attributed to low magnesium overlap substantially with thyroid disease, iron deficiency anemia, vitamin B12 deficiency, sleep disorders, cardiac arrhythmia and kidney disease, all of which require medical evaluation to rule out. Do not start, stop or change any prescription medication based on this article. If you have reduced kidney function, are pregnant, or take diuretics, proton pump inhibitors, antibiotics, bisphosphonates or thyroid medication, talk with your doctor or pharmacist before adding magnesium.

