Conditions · Nutrient Deficiencies
Magnesium Deficiency Symptoms: 9 Signs, Tests & How to Fix It
The nine ways low magnesium shows up, why a standard blood test can miss it, and how food, the right form and the right dose bring your levels back.

What does "magnesium deficiency" mean on this page?
A blood level below 0.75 mmol/L (about 1.8 mg/dL) is called hypomagnesemia.1 This page also covers the quieter, long-running shortfall researchers call subclinical deficiency, when your cells run low while your blood test still reads normal.7 If any red flag applies, go straight to When to get care.
Magnesium is the mineral your body uses to relax muscles, calm nerves, steady your heartbeat, handle stress, control blood sugar and make energy. When a mineral-poor diet, stress or other drains run it low, you feel it as tight muscles and cramps, tiredness, poor sleep, anxiety, headaches or a fluttering heartbeat, and a standard blood test often still reads normal. So test the magnesium inside your cells, eat magnesium-rich foods first, and match a supplement to your result.
- Why labs miss it: less than 1% of your body's magnesium is in your blood serum, so ask for red blood cell (RBC) magnesium. The optimal range is 5.5 to 6.5 mg/dL.12
- Food first: an ounce of pumpkin seeds has 168 mg of magnesium and a cup of cooked spinach 157 mg; adults need 310 to 420 mg a day.31
- How much and when: if your test shows you're low, 300 to 400 mg of magnesium glycinate in the evening, about an hour before bed.4
- Sleep: in a placebo-controlled trial of 153 adults with poor sleep, insomnia scores fell 28% on magnesium glycinate and 18% on placebo over 4 weeks.5
- Migraine: in a placebo-controlled trial of 81 adults, 600 mg of magnesium a day cut attacks 41.6%, against 15.8% on placebo.6
- Kidney disease is the one group that must check first, because impaired kidneys can't clear extra magnesium.1
The most common signs of magnesium deficiency are tight muscles and cramps, fatigue and weakness, low appetite and nausea, tingling or numbness, an irregular heartbeat, anxiety or low mood, rising blood pressure, trouble sleeping, and headaches.18 They tend to be quiet signs that most people blame on stress or getting older.8 Maybe you're tired for no clear reason, your shoulders never fully let go, or sleep won't come when you need it.
So how can one mineral be behind so many different signs? As I said on my show, "Magnesium is a crucial mineral that affects almost every function of the body."8 It works like a master key that turns on energy inside your cells.8 Your body also uses it in more than 300 enzyme systems, including the ones behind muscle and nerve function, blood sugar control and blood pressure.1 So when magnesium runs low, the strain shows up wherever that work happens: in your muscles, your nerves and mood, your sleep and your heartbeat.
The 25 Root-Cause Bloodwork Markers That Matter Most
The cellular medicine guide to optimal ranges, root causes, and the exact actions to take.
- Why optimal is not the same as normal
- 25 markers explained
- Cellular, nutrient, hormone, heart and gut markers
Free with your Dr. Axe account
View the protocol →
Is magnesium one of your top 5?
What's your biggest goal right now?
The shortfall is common, and you can correct it. Nearly half of Americans eat less magnesium than they need, and the usual blood test looks at only a tiny share of what's in your body.1 Pumpkin seeds, leafy greens, beans and the right supplement form can bring your levels back.
This guide covers the nine signs, how a shortfall builds, what drains magnesium, the test that looks inside your cells, and the food, forms and doses that restore it. If your main complaint is that you're always tired, that guide covers the other causes worth checking alongside magnesium.
Less than 1% of your body's magnesium is in the blood, so symptoms can show up long before your labs show you're deficient.Dr. Josh Axe, DC, DNM, CNSFrom The #1 Mineral for Sleep That 48% of People Lack, The Dr. Josh Axe Show (2026), at 7:53
What is magnesium deficiency?
Magnesium deficiency means your body has less magnesium than it needs for the enzyme systems that run your muscles, nerves, heart rhythm and energy.1 Your cells can run short well before a blood test shows it.17
Magnesium does five main jobs in your body. It calms nerve signaling, lets muscles relax after they contract, steadies your heart rhythm, helps turn food into usable energy and signals your brain that it's safe to rest.8 Keep that list in mind, because each of those jobs lines up with one of the signs below.
An adult body holds about 25 grams of magnesium. About 50% to 60% of it sits in your bones, and most of the rest is inside the cells of your muscles and other soft tissues. Less than 1% is in your blood serum.1 Think of that small blood share as your checking account and your bones and cells as savings, and your body guards the checking balance closely. Healthy kidneys excrete about 120 mg of magnesium a day and hold more back when you run low, and your bones release magnesium to keep the blood level steady.19 That protection is good design, but it's also why a shortfall can hide on a routine blood test for a long time: the checking balance looks fine while your savings run down.
Get the free 25 Root-Cause Bloodwork Markers guide
RBC magnesium is one of the 25 markers in this free guide. It lays out:
- The optimal range for RBC magnesium, beside the conventional lab range
- The root causes behind a low result, from acid blockers to stress
- The foods, forms and habits that bring it back up
Free with your Dr. Axe account (email or Google). You'll also get the protocol's short email series and the Dr. Axe newsletter; unsubscribe anytime.
Open the free guide →How common is low magnesium?
Low magnesium intake is common: in national survey data from 2013 to 2016, 48% of Americans got less magnesium from food and drinks than they need, and men over 70 and teenagers were the most likely to fall short.18
That's nearly one American in two, but it's harder to say how many people are low inside their bodies, because the national health survey hasn't measured blood magnesium since 1974.1 The standard serum range of 0.75 to 0.95 mmol/L was also set from the spread of values in people presumed healthy, and a 2016 perspective from an expert panel argues that a subclinical deficiency can sit inside that range.7 So a normal serum result can still hide a shortfall inside your cells.
The everyday shortfall is the slow, long-running kind, and it starts on your plate, with a mineral-poor diet. Severe deficiency from diet alone is uncommon in otherwise healthy people, because healthy kidneys hold on to magnesium when intake runs low. When it does appear, it usually traces to a health condition, a medication or heavy alcohol use.1 Testing tells you which one you're dealing with.
What are the signs of magnesium deficiency?
The nine signs to watch for are tight muscles and cramps, fatigue and weakness, low appetite and nausea, tingling or numbness, an irregular heartbeat, anxiety or low mood, rising blood pressure, trouble sleeping, and headaches or migraines.18 Loss of appetite, nausea, fatigue and weakness tend to come first. Numbness, tingling, cramps and heart-rhythm changes follow as a shortfall deepens.1
If two or more of these sound like you, keep reading, because the foods and the right supplement forms to correct a shortfall come later on this page.8 Each of these signs can have other causes too, so test, don't guess.
1. Tight muscles, cramps and twitches
Muscles that stay tight, especially the trap muscles across the tops of your shoulders, head my list of signs.8 That's because magnesium moves calcium and potassium across your cell membranes, which your nerves and muscles need in order to fire and then relax. As a deficiency deepens, cramps and involuntary muscle contractions set in.1 A cramp is like a fist that clenches and won't open, and if calf cramps wake you at night, or your muscles twitch or your shoulders never let go, that fits the pattern.
As I explained in a 2024 episode, cramps can also mean low potassium, but either way it's an electrolyte shortfall, and magnesium is the most likely one.10 So ask for RBC magnesium and potassium together, and read our guide to low potassium if your levels come back low.
Testing first matters here, because the cramp trials so far enrolled people with cramps rather than people tested low in magnesium. A 2020 Cochrane review pulled together 11 trials. In older adults with everyday nighttime leg cramps (3 placebo-controlled trials, 177 people), weekly cramps fell about 10 percentage points more on magnesium than on placebo after 4 weeks, a gap small enough to be chance. In pregnancy, results vary: of three placebo-controlled trials, one found fewer and milder cramps.11 For tight, sore muscles, a warm Epsom salt soak is a simple place to start, and the food list below rebuilds your stores.
2. Fatigue and weakness
Feeling tired, weak or sluggish for no clear reason is one of the earliest signs of a shortfall.18 The reason a mineral can leave you drained comes down to ATP, the energy molecule your cells spend all day long. As I explained on my show, "ATP is only biologically active when it's bound to magnesium."8 Much of what we call ATP is really magnesium-ATP, so when magnesium runs low, your energy production feels it.81 That's the master key from earlier, and without enough of it, your cells can't fully use the energy they make.
Tiredness has many possible causes, and our guide to always feeling tired walks through the full workup. For your next blood draw, test RBC magnesium alongside ferritin, a vitamin D test and B12.
3. Low appetite and nausea
Loss of appetite and nausea, sometimes with vomiting, are among the first signs of low magnesium.1 You may simply notice that you're not hungry, or that your stomach feels unsettled for no clear reason. It can work the other way, too, since ongoing digestive trouble can itself cause a shortfall: chronic diarrhea from conditions such as Crohn's disease and celiac disease drains magnesium over time.1 If digestive trouble is your main sign, put RBC magnesium on your test list early.
4. Tingling and numbness
Tingling and numbness, especially in your hands and feet, show up as a deficiency deepens.18 Magnesium helps keep your nerve signaling steady, and a severe deficiency can pull blood calcium and potassium down with it.1 But low B12 causes the same pins and needles, and our guide to vitamin B12 deficiency explains why methylmalonic acid (MMA), a marker of B12 status, is the better B12 test. So test MMA at the same draw as your magnesium.
5. An irregular heartbeat
Your heart is a muscle too, and magnesium helps regulate its rhythm. Abnormal heart rhythms and spasms of the heart's arteries are signs of a worsening deficiency.18 The Framingham Heart Study followed 3,530 adults for up to 20 years. People in the lowest quarter for blood magnesium were about 50% more likely to develop atrial fibrillation, a common irregular rhythm, than those with higher levels. That's a link found by following people over time, and it held after the researchers set aside people taking diuretics.12
If you notice skipped beats or a fluttering feeling during a stressful week, that's worth testing for, so put RBC magnesium on your next blood draw.
6. Anxiety, low mood and stress
Magnesium calms nerve signaling and tells your brain it's safe to rest, so it makes sense that there's growing evidence linking low magnesium to anxiety and depression.8 The trials point the same way. In a University of Vermont trial, 126 adults with mild to moderate depression spent 6 weeks taking 248 mg of magnesium a day, as magnesium chloride, and 6 weeks without it. Each person tried both, and people knew which treatment they got. Among the 112 people whose results could be analyzed, depression scores fell 6.0 points and anxiety scores 4.5 points more on magnesium. The change showed up within 2 weeks, too, and it held regardless of people's starting magnesium level.13
You don't have to rely on one trial, either, because a 2023 pooled analysis of 7 placebo-controlled trials in 325 adults with depression found a large drop in depression scores on magnesium.14 For anxiety, a 2017 review of 18 studies found magnesium eased self-reported anxiety in 4 of the 8 studies of anxious people, though the reviewers rated the quality of those studies as poor.15
Stress runs both ways, too: I describe stress as a sponge that pulls magnesium out of your body.8 A 2020 review describes the same loop: stress raises the magnesium you lose, and low magnesium leaves you more reactive to stress.16 If anxiety and low mood travel with your other signs, see our natural remedies for anxiety and the free Stress, Anxiety & Mood protocol. For anxiety in particular, I recommend magnesium glycinate or magnesium threonate.8
7. Rising blood pressure
Magnesium helps relax your blood vessels, and without enough of it, your blood pressure may rise.10 It works like a garden hose: squeeze it and the pressure inside climbs, and when you loosen your grip, it eases. In my High Blood Pressure Protocol, low magnesium and potassium are one of the eight root drivers of high blood pressure, because these minerals relax vessel walls and balance sodium.17
If your magnesium starts low, the trials show bigger drops. A 2025 pooled analysis in the journal Hypertension gathered 38 randomized trials with 2,709 people. Each trial lasted at least 4 weeks, and magnesium was typically given at about 365 mg a day for about 12 weeks. Across all 38 trials, systolic pressure fell 2.81 points and diastolic pressure 2.05 points more than on placebo. In the 8 trials of people with low magnesium, systolic pressure fell 5.97 points and diastolic pressure 4.75, about twice the overall drop. In people with normal blood pressure, the change wasn't significant. But if you already take medicine for high blood pressure, note that in people like you, systolic pressure fell 7.68 points.18
Blood pressure fell about twice as much when magnesium started low
For the full food and lifestyle plan, see these natural ways to lower blood pressure. To start, check your blood pressure at home, test RBC magnesium and potassium, and put a magnesium-rich food on your plate at every meal.17
8. Trouble sleeping
Magnesium has a calming effect on your nervous system, and low levels can make it harder to fall asleep or stay asleep.8 A 2025 German trial tested the form I use for sleep. It randomly assigned 155 adults aged 18 to 65 with poor sleep to 250 mg of magnesium a day as magnesium glycinate (bisglycinate) or a placebo for 4 weeks. Neither the people nor the researchers knew who got what. Among the 153 analyzed, insomnia scores fell 28% on magnesium and 18% on placebo, a small but significant difference. And in a follow-up look, people who reported eating less magnesium at the start tended to improve more, the same pattern the blood-pressure trials showed.5
Insomnia scores fell 28% on magnesium glycinate and 18% on placebo
An earlier placebo-controlled trial was set up the same way, with neither side knowing who got what. It gave 46 older adults with insomnia 500 mg of magnesium a day, as magnesium oxide, for 8 weeks. Magnesium improved their insomnia scores, sleep efficiency and the time it took to fall asleep. It also raised the sleep hormone melatonin and lowered cortisol.19 A 2026 review of 12 trials found the results varied, with modest benefits for some sleep measures in some adults.20
Our guides to magnesium for sleep and natural sleep aids cover the rest of a good night. As for the form, magnesium glycinate is the first nutrient my Deep Sleep Protocol says to start with, at 300 to 400 mg about an hour before bed.4
9. Headaches and migraines
I put lingering headaches right alongside tight trap muscles as a warning sign.8 Most forms of magnesium can help headaches, because they all have a relaxing effect.21 For migraine, the trial results are encouraging. In a multicenter German trial, 81 adults aged 18 to 65 with migraine tracked their attacks for 4 weeks first and then took 600 mg of magnesium a day, as magnesium citrate, or a placebo for 12 weeks. As in the sleep trial above, neither side knew who got what. In weeks 9 to 12, migraine attacks fell 41.6% on magnesium and 15.8% on placebo, compared with each group's first month of tracking, so the drop on magnesium was well over twice the drop on placebo. Migraine days and the use of headache medicine fell significantly too. Diarrhea was the most common side effect, in 18.6% of the people taking magnesium.6
For more help, see how to get rid of a migraine and our guide to tension headaches. For frequent headaches, I recommend about 500 to 600 mg of magnesium at a time, as a chelate, threonate or citrate powder.21
When a shortfall lasts for years
Your bones hold about half of your body's magnesium, and magnesium helps build bone and activate vitamin D.122 As I said on my show, "Long-term magnesium deficiency can contribute to the development of osteoporosis."8 Population studies link higher magnesium intake to higher bone density.1 See the best foods for bone health for the minerals that work alongside it.
Long-term intake also tracks with type 2 diabetes and stroke risk. In 13 studies that followed 536,318 people over time, those who ate the most magnesium had a 22% lower risk of type 2 diabetes than those who ate the least.23 In 7 such studies of 241,378 people, each extra 100 mg of magnesium a day went with an 8% lower risk of stroke.24 That extra amount is less than the ounce of pumpkin seeds in the food table below. Studies like these show a link rather than proof of cause, and the food section below is the everyday way to raise your intake.
How does magnesium deficiency develop?
A magnesium shortfall starts with what you eat and what drains you, and because your body keeps your blood level steady for as long as it can, the shortfall hides well at first. Here's how it builds:
Nearly half of Americans eat less magnesium than they need, and refining grains strips much of it out.1
Diuretics, long-term acid blockers, high blood sugar, heavy drinking and gut conditions raise the magnesium you lose or cut what you absorb, and stress and low magnesium feed each other.116
Your kidneys hold magnesium back and your bones release some, so your blood level stays in a tight range.19
Your stores run down, in what researchers describe as a hidden shortfall that can sit inside the normal serum range while your cells run low.7
Appetite, energy and strength dip first; cramps, tingling and heart-rhythm changes come later.1
What causes low magnesium?
Low magnesium comes from taking in too little, losing too much, or both. As I put it on my show, we're living with calorie excess and mineral scarcity, and refined foods make the gap wider.81 That's how you can eat plenty and still run short.
What drains magnesium, and where to start
| Cause | How it lowers magnesium | Where to start |
|---|---|---|
A refined, mineral-poor diet | Refining grains removes the germ and bran, and much of the magnesium with them1 | Seeds, greens and beans every day; whole grains in place of refined ones |
Long-term acid blockers (PPIs) | Taken for more than a year, they can lower blood magnesium; low levels turned up in 19.4% of users against 13.5% of non-users across 16 observational studies125 | RBC magnesium with your regular bloodwork |
Loop and thiazide diuretics | RBC magnesium and potassium with your regular bloodwork | |
High blood sugar or type 2 diabetes | Extra glucose in the kidneys raises urine output, and more magnesium leaves with it1 | Fasting insulin and HbA1c with your magnesium test |
Heavy alcohol use | Low magnesium is common with long-term heavy drinking1 | Cut back, then retest |
Gut conditions | Chronic diarrhea and poor fat absorption in Crohn's and celiac disease drain magnesium over time1 | Heal the gut and retest |
Older age | Absorption from the gut falls and losses through the kidneys rise1 | Food at every meal, and RBC magnesium with your regular bloodwork |
Hard training and heavy sweating | You lose magnesium in sweat, which is why I count athletes and anyone who sweats a lot, in workouts or a sauna, among the people most likely to run low10 | A magnesium-rich meal after a hard workout or a sauna session |
Stress raises magnesium losses, and low magnesium raises stress reactivity16 | Daily down-time, sleep and a warm soak | |
Vitamin D taken without magnesium | Your body needs magnesium to activate vitamin D, and my bloodwork protocol lists vitamin D dosing without magnesium support as a root cause of low RBC magnesium222 | Pair vitamin D with magnesium |
How do you test for magnesium deficiency?
Ask for red blood cell (RBC) magnesium, which measures the magnesium inside your red blood cells. The optimal range is 5.5 to 6.5 mg/dL, against a conventional lab range of 4.0 to 6.4.2 Serum magnesium, the standard blood test, catches dangerously low levels but can read normal while your cells run low.17
If you've been told your magnesium is normal while the signs keep coming, it may be because serum magnesium has little connection to the total amount in your body, since your body keeps the blood level steady.1 That's why I ask for RBC magnesium, which gives a closer look at what's inside your cells.8 Magnesium isn't part of a routine blood panel, though, so you usually have to ask for it by name.1
Serum magnesium can look normal while your cells are running low.Dr. Josh Axe, DC, DNM, CNSFrom The #1 Mineral for Sleep That 48% of People Lack, The Dr. Josh Axe Show (2026), at 13:17
In the table below, you'll see the optimal range first. Conventional lab ranges are built to catch disease, but optimal ranges are narrower, so they flag a shortfall earlier, like a smoke alarm that sounds at the first wisp of smoke.2 In a 2011 systematic review of 21 supplementation and depletion studies, serum, RBC and urine magnesium all moved with changes in magnesium intake.27 Still, no single magnesium test is perfect, so read your results alongside your symptoms.1
Magnesium tests, and how to read them
| Test | What it tells you | Range |
|---|---|---|
RBC magnesium | The magnesium inside your red blood cells | Optimal 5.5 to 6.5 mg/dL; conventional 4.0 to 6.4 mg/dL2 |
Serum magnesium | The small share in your blood | Conventional 0.75 to 0.95 mmol/L (about 1.8 to 2.3 mg/dL); an expert panel proposes 0.85 mmol/L (about 2.1 mg/dL) as the lower limit197 |
24-hour urine magnesium | How much your kidneys are letting go | Read alongside your blood results; healthy kidneys excrete less when your body runs low101 |
Because cramps, tingling and tiredness overlap with other gaps, test potassium, vitamin D (25-hydroxy) and MMA for B12 at the same draw.102 See our guide to vitamin D deficiency for what a low result means, and a functional medicine practitioner can read the full picture with you.
Already have bloodwork?
RBC magnesium, potassium, vitamin D and MMA are the numbers that matter most here. Upload your results and get a plain-English read of where they sit against optimal ranges.
See the cellular bloodwork panel
Analyze your bloodwork free →What foods are highest in magnesium?
Pumpkin seeds, cooked spinach, quinoa, chia seeds, mackerel, almonds, cashews, dark chocolate and black beans are among the richest everyday sources. An ounce of pumpkin seeds has 168 mg of magnesium and a cup of cooked spinach 157 mg.3 Adults need 310 to 420 mg a day.1
Food is the first medicine for a mineral shortfall. I want you getting the bulk of your magnesium from food, because magnesium-rich foods also bring the B6, calcium and other nutrients that work alongside it.8 I call magnesium the lifeblood of plants because it sits at the very center of chlorophyll, the green pigment plants use to capture sunlight. That's why dark leafy greens such as spinach and Swiss chard carry so much of it.8 Seed-bearing plants and fruit trees were the first foods God gave people in Scripture: "And God said, Behold, I have given you every herb bearing seed, which is upon the face of all the earth, and every tree, in the which is the fruit of a tree yielding seed; to you it shall be for meat" (Genesis 1:29, KJV).
Magnesium in everyday foods. Per 100 g values are from USDA FoodData Central; per-serving values are calculated from them using the serving weights shown.3
| Food | Serving | Magnesium per serving | Per 100 g |
|---|---|---|---|
Pumpkin seeds, dried | 1 ounce (28.35 g) | 168 mg | 592 mg |
Spinach, boiled | 1 cup (180 g) | 157 mg | 87 mg |
Quinoa, cooked | 1 cup (185 g) | 118 mg | 64 mg |
Chia seeds | 1 ounce (28.35 g) | 95 mg | 335 mg |
Mackerel, Atlantic, cooked | 3 ounces (85 g) | 82 mg | 97 mg |
Almonds, dry roasted | 1 ounce (28.35 g) | 79 mg | 279 mg |
Cashews, dry roasted | 1 ounce (28.35 g) | 74 mg | 260 mg |
Lentils, boiled | 1 cup (198 g) | 71 mg | 36 mg |
Dark chocolate, 70% to 85% cacao | 1 ounce (28.35 g) | 65 mg | 228 mg |
Black beans, boiled | ½ cup (86 g) | 60 mg | 70 mg |
1 whole (201 g) | 58 mg | 29 mg |
On a plate, an ounce of pumpkin seeds, a cup of cooked spinach and half a cup of black beans add up to 385 mg of magnesium, close to a full day for most adults.31 Pumpkin seeds are one of the richest food sources of magnesium, and they bring zinc too.8 I suggest steaming spinach or sautéing it in extra virgin olive oil with garlic and sea salt.8
Our full list of foods high in magnesium has more ideas, but two of the magnesium-rich meals I shared on my show make it easy to start. Try wild-caught salmon with quinoa, sautéed greens and a little dark chocolate for dessert. Or make a tuna salad over arugula and spinach with extra virgin olive oil, beans, avocado, pumpkin seeds and apple cider vinegar.8
Which magnesium supplement is best for a deficiency?
Match the form to your goal: magnesium glycinate for sleep and anxiety, a food-based magnesium chelate for everyday use, malate for low energy and sore muscles, threonate for brain health and citrate for short-term constipation.8 Magnesium oxide is poorly absorbed. Only about 4% of it was absorbed in a study of healthy volunteers that tracked the magnesium in their urine.28
I take magnesium nearly every day, mostly a food-based chelate and magnesium glycinate, and the biggest difference I've noticed is in my sleep.8 About the food-based form, I said on my show, "I recommend it the most to patients."8 Glycinate is magnesium bound to the amino acid glycine, and it's one of the forms least likely to upset your digestion.8 Forms that dissolve well in liquid are absorbed more completely, and the NIH lists aspartate, citrate, lactate and chloride as better absorbed than oxide and sulfate.1 That's why the form on the label matters.
Common forms of magnesium and their best matches
| Form | Best matched to | Good to know |
|---|---|---|
Sleep and anxiety | Gentle on digestion; the form in the 2025 sleep trial above85 | |
Multi-amino magnesium chelate | Overall daily support and longevity | The most food-based form, and the one I take most8 |
Low energy and sore muscles | Bound to malic acid8 | |
Magnesium L-threonate | Brain health, memory and anxiety | My pick alongside glycinate for anxiety8 |
Magnesium citrate | Short-term constipation | |
Magnesium chloride | Low mood, the use it was tested for | Better absorbed than oxide, per the NIH; the form in the Vermont mood trial113 |
Epsom salt (magnesium sulfate) | Warm soaks for tight, sore muscles | Dissolved in the bath10 |
Magnesium oxide | Not a form I typically recommend |
Magnesium oxide isn't a form I typically recommend, because it's poorly absorbed and can upset digestion.10 Our guides to types of magnesium and magnesium supplements cover what to look for on the label. And when you want to unwind, I recommend a warm Epsom salt bath, soaking for about 20 minutes.8 My bloodwork protocol suggests magnesium baths two to three times a week.2
How much magnesium should you take for a deficiency?
Start with food: adults need 310 to 420 mg of magnesium a day from all sources.1 If your test shows you're low, I recommend 300 to 400 mg of magnesium glycinate in the evening, about an hour before bed.426
The Recommended Dietary Allowance depends on your age and sex:1
| Group | Magnesium a day |
|---|---|
| Men 19 to 30 | 400 mg |
| Men 31 and older | 420 mg |
| Women 19 to 30 | 310 mg |
| Women 31 and older | 320 mg |
| Pregnancy (adults) | 350 to 360 mg |
| Breastfeeding (adults) | 310 to 320 mg |
In Heal Your Cells, Dr. Will Cole and I list magnesium glycinate or chelate at 300 to 400 mg a day of elemental magnesium, ideally in divided doses or at night for relaxation.26 What does elemental mean? It's the mineral itself rather than the weight of the whole compound, like weighing the passenger instead of the whole car. It's also the number the Supplement Facts panel lists, so add it up along with any magnesium in your multivitamin.1
Vitamin D and magnesium work like teammates: magnesium helps activate vitamin D, so take them together.822 Our guide to how much vitamin D to take covers the other half of that pair.
Expect the changes to come gradually: in the trials above, mood scores improved within 2 weeks, insomnia scores by 4 weeks, and the migraine trial measured its result in weeks 9 to 12.1356 Then retest RBC magnesium to confirm your levels are back in range.
A simple plan to restore your magnesium
Five steps: test, eat, plug the drains, supplement to your result and retest.
Take a warm Epsom salt bath two to three times a week, then retest RBC magnesium to confirm your levels are back in range.2
When to get care
Get medical care right away for a seizure, chest pain, fainting, a racing or irregular heartbeat that won't settle, or sudden confusion. These can come with a severe deficiency.1 Kidney disease, medications and the supplement limit are covered below.
A seizure: call 9111
Chest pain, fainting, or a racing or irregular heartbeat that won't settle: call 9111
Sudden confusion or a change in personality1
Vomiting or diarrhea that keeps you from holding down food or fluids
After taking magnesium supplements, laxatives or antacids: low blood pressure, nausea, flushing, muscle weakness, trouble breathing or an irregular heartbeat, which can mean too much magnesium1
Medications. If you take any of these, don't stop or change a prescription on your own; work with the doctor who prescribed it.
- Acid-blocking proton pump inhibitors (PPIs): Taken for more than a year, they can lower magnesium. The FDA advises checking magnesium before long-term use and periodically after, and in about a quarter of the low-magnesium cases it reviewed, supplements alone didn't bring levels back up.1 Ask your prescriber to check your magnesium, and see the free Acid Reflux & GERD protocol for the food side.
- Diuretics: Loop and thiazide diuretics raise the magnesium you lose in urine, while potassium-sparing diuretics reduce it.1
- Tetracycline and quinolone antibiotics: Magnesium binds them, so take the antibiotic at least 2 hours before or 4 to 6 hours after a magnesium supplement.1
- Bisphosphonates for bone loss: Keep magnesium supplements at least 2 hours apart from them.1
- Blood-pressure medicine: Magnesium lowered blood pressure in trials, so your prescriber may need to adjust your dose as your numbers improve.18
Supplement cautions:
Kidney disease. Healthy kidneys clear extra magnesium, but impaired kidneys can let it build up to toxic levels, so check with the doctor who manages your kidney disease before you take any magnesium supplement.1
The supplement limit. The upper limit for magnesium from supplements is 350 mg a day for adults; food doesn't count toward it. Because typical migraine-prevention doses run above it, the NIH advises taking them under a health care provider's direction.1
Loose stools. High doses from supplements often cause diarrhea, and magnesium carbonate, chloride, gluconate and oxide are the forms most often reported to cause it. If the top of the 300 to 400 mg range loosens your stools, stay closer to 300 mg or switch forms.1
Pregnancy and breastfeeding. Adults need 350 to 360 mg a day in pregnancy and 310 to 320 mg while breastfeeding, and food is the place to start; if you take a magnesium supplement while pregnant or nursing, confirm the dose with your OB.1
The bottom line
The bottom line on magnesium deficiency
Low magnesium is common, it hides well, and it's very fixable. The nine signs on this page, from tight muscles and poor sleep to anxiety and a fluttering heartbeat, can all trace back to one root cause: you're running low on the mineral your muscles, nerves, heart and cells run on. If several sound like you, it's time to test, so ask for RBC magnesium. The optimal range is 5.5 to 6.5 mg/dL.
Start with food: pumpkin seeds, cooked greens, beans, quinoa, nuts and a little dark chocolate. Plug the drains you can, like refined grains, heavy drinking, high blood sugar and constant stress. If your test shows you're low, take 300 to 400 mg of magnesium glycinate in the evening, about an hour before bed. The migraine, blood-pressure and sleep trials are encouraging, and in the blood-pressure trials, the gains were larger in people who started low.
Refill the magnesium your body has been quietly spending, and it can get back to the work of keeping you steady, rested and strong.
Get the free 25 Root-Cause Bloodwork Markers guide
RBC magnesium, vitamin D, MMA and 22 more markers, with optimal ranges, root causes and the actions to take. Have recent bloodwork? Analyze it free. Free with your Dr. Axe account (email or Google). You'll also get the protocol's short email series and the Dr. Axe newsletter; unsubscribe anytime.
Open the free guide →Magnesium deficiency: frequently asked questions
What are the first signs of magnesium deficiency?
What is the best test for magnesium deficiency?
Can you have a magnesium deficiency with normal blood work?
What causes magnesium deficiency?
Can low magnesium cause anxiety?
Low magnesium is linked to anxiety and low mood, and magnesium can help. In a trial of 126 adults with mild to moderate depression, 6 weeks of 248 mg a day as magnesium chloride lowered anxiety scores 4.5 points more than 6 weeks without it, among the 112 analyzed. Each person tried both and knew which was which.13 For anxiety, I recommend magnesium glycinate or magnesium threonate.8
Can low magnesium cause heart palpitations?
It can. Abnormal heart rhythms are a sign of worsening deficiency.1 And in a study that followed 3,530 adults for up to 20 years, those with the lowest blood magnesium were about 50% more likely to develop atrial fibrillation.12 A racing heartbeat that won't settle is a red flag for prompt care, but skipped beats that come with your other signs are a reason to test RBC magnesium.
Does magnesium help with headaches and migraines?
Yes. In a placebo-controlled trial of 81 adults with migraine, 600 mg of magnesium a day cut attacks 41.6% by the last month of a 12-week course, against 15.8% on placebo.6
Can low magnesium raise blood pressure?
Does magnesium help you sleep?
Which magnesium is best for a deficiency?
How much magnesium should I take for a deficiency?
How long does it take to fix a magnesium deficiency?
What foods are highest in magnesium?
Pumpkin seeds lead the everyday list at 168 mg an ounce, followed by cooked spinach at 157 mg a cup, quinoa, chia seeds, mackerel, almonds, cashews, dark chocolate and black beans.3
Who is most likely to be low in magnesium?
People with type 2 diabetes, gut conditions such as Crohn's or celiac disease, or long-term heavy alcohol use are the most likely to run low, along with older adults.1 Long-term use of acid blockers or diuretics raises the risk too.1 I'd add athletes and anyone who sweats heavily, because magnesium leaves the body in sweat.10
Can you take too much magnesium?
Yes, from supplements. High doses often loosen stools, so if yours loosen, cut back or switch forms. And if you have kidney disease, magnesium can build up to toxic levels, so check with your doctor first.1 Magnesium from food doesn't cause that problem in healthy people, because the kidneys clear the extra, and the 350 mg a day upper limit counts supplements only.1
Freshness & update log
October 28, 2026 — Rewrote and expanded the September 22, 2026 version of this page. Kept the nine signs, the root causes that drain magnesium, the RBC magnesium test, warm Epsom salt soaks for tight muscles and the seeds, greens and beans at the center of the food plan, because each holds up in Dr. Axe's own teaching and in the research. The pull quote now carries its episode and time, and a second quote on serum testing comes from the same episode. Added the trial results for migraine, blood pressure in people who start low, sleep with magnesium glycinate and mood; the optimal range for RBC magnesium; a USDA food table; the forms and doses Dr. Axe recommends, with his episode sources; two charts; a step-by-step diagram of how a shortfall builds; one safety section; and the free 25 Root-Cause Bloodwork Markers guide. Updated the 48% intake figure to the 2013 to 2016 national survey and matched the sleep-study summary to the trials it describes. Removed the myths table, an unsourced 2-to-6-week timeline and the separate traditional and conventional treatment sections.
References
- Office of Dietary Supplements, National Institutes of Health. Magnesium: Fact Sheet for Health Professionals. Updated January 6, 2026.
- Axe J, Cole W. The 25 Root-Cause Bloodwork Markers That Matter Most. DrAxe.com protocol. 2026. Marker 11, RBC magnesium (functional range 5.5 to 6.5 mg/dL; conventional lab range 4.0 to 6.4 mg/dL; root causes; actions, including magnesium baths 2 to 3 times a week).
- U.S. Department of Agriculture, Agricultural Research Service. FoodData Central (SR Legacy): Seeds, pumpkin and squash seed kernels, dried (FDC 170556); Spinach, cooked, boiled, drained, without salt (FDC 168463); Nuts, almonds, dry roasted, without salt added (FDC 170158); Nuts, cashew nuts, dry roasted, without salt added (FDC 170571); Chocolate, dark, 70-85% cacao solids (FDC 170273); Beans, black, mature seeds, cooked, boiled, without salt (FDC 173735); Seeds, chia seeds, dried (FDC 170554); Avocados, raw, all commercial varieties (FDC 171705); Fish, mackerel, Atlantic, cooked, dry heat (FDC 175120); Lentils, mature seeds, cooked, boiled, without salt (FDC 172421); Quinoa, cooked (FDC 168917). Accessed October 8, 2026.
- Axe J. The Deep Sleep Protocol: The 30-Day Healing Protocol. DrAxe.com. 2026. "Top 8 sleep nutrients" (p. 20): magnesium glycinate, 300 to 400 mg, 1 hour before bed.
- Schuster J, Cycelskij I, Lopresti A, Hahn A. Magnesium Bisglycinate Supplementation in Healthy Adults Reporting Poor Sleep: A Randomized, Placebo-Controlled Trial. Nat Sci Sleep. 2025;17:2027-2040. doi:10.2147/NSS.S524348. PMID:40918053
- 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-63. doi:10.1046/j.1468-2982.1996.1604257.x. PMID:8792038
- Costello RB, Elin RJ, Rosanoff A, Wallace TC, Guerrero-Romero F, Hruby A, et al. Perspective: The Case for an Evidence-Based Reference Interval for Serum Magnesium: The Time Has Come. Adv Nutr. 2016;7(6):977-993. doi:10.3945/an.116.012765. PMID:28140318
- Axe J. The #1 Mineral for Sleep That 48% of People Lack. The Dr. Josh Axe Show, Episode 329. February 16, 2026. Quoted or paraphrased lines at 0:00, 0:57, 3:38, 5:31, 7:27, 7:53 (pull quote), 8:14, 10:01, 10:36, 10:45, 11:08, 12:09, 13:17 (pull quote), 16:23, 19:33, 21:29, 24:21, 28:30, 30:48, 32:24, 33:48, 34:27 and 35:01. YouTube: https://www.youtube.com/watch?v=J1vB4UTuW6I
- Elin RJ. Assessment of magnesium status for diagnosis and therapy. Magnes Res. 2010;23(4):S194-8. PMID:20736141
- Axe J. 10 Signs You Have a Magnesium Deficiency (How to Boost Magnesium Naturally). The Dr. Josh Axe Show. October 22, 2024. Lines at 3:37, 5:42, 6:36, 7:44, 8:08 and 16:07. YouTube: https://www.youtube.com/watch?v=vgNbX00pJec
- Garrison SR, Korownyk CS, Kolber MR, Allan GM, Musini VM, Sekhon RK, et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020;9(9):CD009402. doi:10.1002/14651858.CD009402.pub3. PMID:32956536
- Khan AM, Lubitz SA, Sullivan LM, Sun JX, Levy D, Vasan RS, et al. Low serum magnesium and the development of atrial fibrillation in the community: the Framingham Heart Study. Circulation. 2013;127(1):33-8. doi:10.1161/CIRCULATIONAHA.111.082511. PMID:23172839
- 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. doi:10.1371/journal.pone.0180067. PMID:28654669
- Moabedi M, Aliakbari M, Erfanian S, Milajerdi A. Magnesium supplementation beneficially affects depression in adults with depressive disorder: a systematic review and meta-analysis of randomized clinical trials. Front Psychiatry. 2023;14:1333261. doi:10.3389/fpsyt.2023.1333261. PMID:38213402
- Boyle NB, Lawton C, Dye L. The Effects of Magnesium Supplementation on Subjective Anxiety and Stress-A Systematic Review. Nutrients. 2017;9(5):429. doi:10.3390/nu9050429. PMID:28445426
- Pickering G, Mazur A, Trousselard M, Bienkowski P, Yaltsewa N, Amessou M, et al. Magnesium Status and Stress: The Vicious Circle Concept Revisited. Nutrients. 2020;12(12):3672. doi:10.3390/nu12123672. PMID:33260549
- Axe J. The High Blood Pressure Protocol. DrAxe.com; 2026. p. 7, "Root Causes: The Eight Drivers" (driver 2, magnesium and potassium); p. 11, "Step 2 · Remineralize" (a magnesium-rich food at every meal).
- Argeros Z, Xu X, Bhandari B, Harris K, Touyz RM, Schutte AE. Magnesium Supplementation and Blood Pressure: A Systematic Review and Meta-Analysis of Randomized Controlled Trials. Hypertension. 2025;82(11):1844-1856. doi:10.1161/HYPERTENSIONAHA.125.25129. PMID:41000008
- Abbasi B, Kimiagar M, Sadeghniiat K, Shirazi MM, Hedayati M, Rashidkhani B. The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial. J Res Med Sci. 2012;17(12):1161-9. PMID:23853635
- Lopresti AL, Smith SJ, Drummond PD. Magnesium Supplementation for Sleep in Adults: A Systematic Review of Randomized Controlled Trials. J Diet Suppl. 2026;23(5):553-581. doi:10.1080/19390211.2026.2719670. PMID:42661485
- Axe J. Natural Fixes for Frequent Headaches, Hormone Imbalance, and Infertility. The Dr. Josh Axe Show. November 28, 2023. Lines at 2:53. YouTube: https://www.youtube.com/watch?v=xnuOd0siKOM
- Uwitonze AM, Razzaque MS. Role of Magnesium in Vitamin D Activation and Function. J Am Osteopath Assoc. 2018;118(3):181-189. doi:10.7556/jaoa.2018.037. PMID:29480918
- 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-22. doi:10.2337/dc11-0518. PMID:21868780
- 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-6. doi:10.3945/ajcn.111.022376. PMID:22205313
- Srinutta T, Chewcharat A, Takkavatakarn K, Praditpornsilpa K, Eiam-Ong S, Jaber BL, et al. Proton pump inhibitors and hypomagnesemia: A meta-analysis of observational studies. Medicine (Baltimore). 2019;98(44):e17788. doi:10.1097/MD.0000000000017788. PMID:31689852
- Axe J, Cole W. Heal Your Cells. Avery; 2026. Magnesium (glycinate or chelate), 300 to 400 mg a day of elemental magnesium, in divided doses or at night (pp. 345 and 367); drug-nutrient depletion table, proton pump inhibitors and diuretics (p. 25).
- Witkowski M, Hubert J, Mazur A. Methods of assessment of magnesium status in humans: a systematic review. Magnes Res. 2011;24(4):163-80. doi:10.1684/mrh.2011.0292. PMID:22064327
- Firoz M, Graber M. Bioavailability of US commercial magnesium preparations. Magnes Res. 2001;14(4):257-62. PMID:11794633
This article is for educational purposes. See our medical disclaimer.


