Why Magnesium Matters
Magnesium is an essential mineral involved in more than 300 enzymatic reactions in the body. Its reach extends across energy metabolism (ATP synthesis), muscle contraction and relaxation, nerve signal transmission, blood sugar regulation, blood pressure maintenance, protein synthesis, and DNA repair. About 50 to 60 percent of the body's magnesium is stored in bone, with the rest distributed across muscle, soft tissue, and blood.
The trouble is that magnesium shortfalls are common. Analyses of the US National Health and Nutrition Examination Survey (NHANES) have found that nearly half of adults fall short of the recommended intake, and cardiologist James DiNicolantonio and colleagues, in a 2018 review published in the journal Open Heart titled Subclinical magnesium deficiency, argued that inadequate magnesium intake in Western-style diets is a hidden risk factor for cardiovascular and metabolic disease.
How intake compares to recommended targets
Under South Korea's 2020 Dietary Reference Intakes, adult men are advised to get 350 to 370 mg of magnesium a day, and adult women 280 mg. Yet national nutrition survey data repeatedly shows actual intake landing around 70 to 80 percent of that target, and the shortfall tends to be worse in people who eat mostly refined grains and processed foods, drink alcohol frequently, or rely heavily on coffee. Related reading: Iron Deficiency Symptoms and Foods to Restore Levels
Causes and Risk Factors
Magnesium deficiency rarely comes down to simply eating too little. Problems can arise at any of three stages: intake, absorption, and excretion. Related reading: B-Complex Vitamins for Fatigue and Energy Metabolism
Intake-related factors
- A diet built around refined grains: Milling whole grains into white rice or white flour strips away roughly 80 percent of their magnesium along with the germ and bran.
- Heavy reliance on processed and instant foods: These contain markedly less magnesium than whole, minimally processed foods.
- Extreme dieting: Low-calorie diets that cut back on vegetables, nuts, and whole grains make it easy to fall short.
Factors that reduce absorption
- Intestinal disease: Crohn's disease, chronic diarrhea, and celiac disease interfere with magnesium absorption in the small intestine.
- Long-term acid-suppressing medication: Extended use of proton pump inhibitors (PPIs) can lower magnesium absorption.
- Vitamin D insufficiency: Vitamin D helps the intestine absorb magnesium, so low vitamin D status reduces absorption efficiency.
Factors that increase excretion
- Heavy alcohol use: Alcohol accelerates magnesium loss through the kidneys.
- High caffeine intake: Its diuretic effect can increase how much magnesium is lost in urine.
- Intense exercise and sweating: Magnesium is also lost through sweat, so athletes and people who train hard need more of it.
- Diabetes: Elevated blood sugar can trigger osmotic diuresis, which increases magnesium excretion in urine.
- Diuretics and certain antibiotics: These can reduce magnesium reabsorption in the kidneys.
- Stress and aging: Chronic stress raises cortisol, which promotes magnesium loss, and intestinal absorption efficiency also tends to decline with age.
Symptoms and Self-Assessment
Magnesium deficiency often develops gradually, so early on it tends to show up as vague, hard-to-place symptoms.
Early signs (mild deficiency)
- Subtle twitching in the eyelids, fingers, or calves (fasciculation)
- Mild fatigue and low energy
- Reduced appetite and mild nausea
- More frequent mild headaches or migraines
Moderate symptoms
- Nighttime leg cramps (waking up with a charley horse in the calf)
- Recurring muscle tightness and stiffness
- Poorer sleep quality, with frequent light waking
- Increased anxiety and mood swings
- Heart palpitations
Self-assessment checklist
If four or more of the following apply to you, it is worth reviewing your diet and considering a blood test. Read more: Vitamin D Deficiency Symptoms and Foods to Restore Levels
- Your eyelids or fingers twitch at least twice a week
- You get calf cramps at night regardless of whether you exercised that day
- You drink coffee or alcohol often
- Your diet leans heavily on refined carbohydrates and processed foods
- You feel tired and low-energy without an obvious reason
- You wake up often or sleep lightly
- You feel unusually sensitive to stress and prone to anxiety
Treat this checklist as a starting point, not a diagnosis. Serum magnesium reflects less than 1 percent of the body's total magnesium, so a normal blood level does not rule out a deficiency at the cellular level.
When You Need Medical Care
Most mild magnesium deficiency improves with dietary changes, but the situations below call for a physician's evaluation and blood work.
Seek care right away if you notice
- Severe muscle rigidity or tetany: Hands or feet cramping into a clawed position that will not release
- Arrhythmia or severe palpitations: Low magnesium has been linked to ventricular arrhythmias
- Marked weakness or numbness
- Seizures
See a doctor within two weeks if
- Nighttime leg cramps happen three or more times a week
- Fatigue or eyelid twitching persists for more than four weeks despite dietary changes
- You have an underlying condition such as diabetes, chronic kidney disease, or intestinal disease and your muscle symptoms are worsening
- You are on long-term diuretics or acid suppressants and new muscle or nerve symptoms appear
How it gets diagnosed
A doctor will typically use the following tests to pin down the cause. Related reading: Foods to Eat If You Get Muscle Cramps Often
- Serum magnesium test: Normal range is roughly 1.7 to 2.2 mg/dL, though it does not fully capture cellular deficiency
- Red blood cell magnesium test: Considered a better reflection of the body's stored magnesium than a serum test
- Electrocardiogram (ECG): Checks for arrhythmia or QT interval abnormalities
- Accompanying electrolyte panel: Potassium and calcium levels are checked too, since magnesium status is closely tied to how the body handles both
Magnesium-Rich Foods and How to Supplement
Most people can cover their magnesium needs through food alone. The table below lists common magnesium-rich foods, their content per 100 g, and how that compares with the recommended intake for adult men (370 mg). Recommended reading: Electrolyte Balance: The Roles of Sodium, Potassium, and Magnesium
| Food (per 100 g) | Magnesium content | % of recommended intake |
|---|---|---|
| Roasted almonds | about 270 mg | about 73% |
| Cashews | about 250 mg | about 68% |
| Dark chocolate (70%+ cacao) | about 230 mg | about 62% |
| Spinach, blanched | about 87 mg | about 24% |
| Black beans, cooked | about 70 mg | about 19% |
| Oats, dry | about 138 mg | about 37% |
| Quinoa, cooked | about 64 mg | about 17% |
| Avocado | about 29 mg | about 8% |
| Banana (1 medium, about 118 g) | about 32 mg | about 9% |
| Salmon, grilled | about 30 mg | about 8% |
What a day of eating might look like
Oatmeal and banana at breakfast, sauteed spinach with tofu at lunch, a handful of almonds as a snack, and black bean rice with grilled fish at dinner will naturally cover a large share of the daily recommendation.
When a supplement makes sense
If food alone is not enough, or if deficiency symptoms are clear, a supplement is worth considering. Absorption and side-effect profiles differ by form.
- Magnesium citrate: Relatively well absorbed and widely used. Taking too much can cause a laxative effect.
- Magnesium glycinate: Gentle on the stomach and often chosen for sleep support.
- Magnesium oxide: Cheap for the amount of elemental magnesium it provides, but absorption tends to be comparatively low.
- Magnesium chloride: Available both as an oral supplement and in topical forms such as oils and creams.
A commonly cited safe upper limit for supplemental magnesium is 350 mg of elemental magnesium per day, and anyone with reduced kidney function should check with a doctor before taking a supplement.
Exercise, Muscle Cramps, and Magnesium's Role
Magnesium is a key regulator of the balance between muscle contraction and relaxation. Calcium carries the signal that triggers contraction; magnesium works by regulating calcium channels so the muscle can relax again afterward. When that balance is disrupted, a muscle can stay locked in a contracted state, which is what a cramp actually is.
Tips for before, during, and after exercise
- A light snack two to three hours before training: Something like a banana or a handful of nuts delivers both magnesium and potassium.
- Fluids and electrolytes during exercise: For long sessions with heavy sweating, an electrolyte drink can help replace magnesium alongside sodium and potassium.
- Stretching afterward: Slowly holding a stretch in the calves and hamstrings for 15 to 30 seconds helps prevent cramping.
What the research says about magnesium and performance
A 2017 review in the journal Nutrients by Yijia Zhang and colleagues at Indiana University, titled Can Magnesium Enhance Exercise Performance?, gathered evidence that supplementing magnesium in people who are deficient can improve strength and exercise performance. The same review noted that the benefit was not clear in people whose magnesium status was already adequate, which suggests the payoff from supplementing depends heavily on whether a deficiency exists in the first place.
If nighttime leg cramps keep happening
- Stretch your calves for five to ten minutes before bed
- Drink enough fluids before sleep, but avoid caffeine and alcohol in the afternoon and evening
- Increase dietary magnesium for two weeks and track whether anything changes
- If cramps continue, get a blood test to check magnesium, potassium, and calcium levels
Near-Infrared Care and Muscle Relaxation Routines
If magnesium supports muscle relaxation from inside the cell, near-infrared LED works from outside the skin as a wellness tool that can support blood flow and general conditioning in a given muscle area. Combining the two gives you more ways to build out a post-exercise recovery routine.
Why people pair the two
- Supports circulation: Some reports suggest near-infrared exposure can help blood flow in the treated area, which is why more people are adding it to their post-workout routine.
- Easy to turn into a habit: It takes only a short session at home, which makes it easier to stick with consistently.
- Works alongside dietary magnesium: Pairing food-based intake with a physical care routine can support overall muscle condition management.
Tips for using it at home
If you are using a near-infrared LED healthcare device like CIRIUS, keep the following in mind.
- Apply for 10 to 15 minutes to areas that tend to tighten after exercise, such as the calves, thighs, and shoulders
- Keep an appropriate distance from the skin and follow the usage time and frequency in the product manual
- Pairing it with a magnesium-rich dinner and pre-bed stretching makes it easier to build a consistent evening routine
Near-infrared care is best treated as a supportive conditioning tool rather than a way to treat any disease, and persistent or severe pain should always be evaluated by a doctor first.
Habits That Improve Absorption
How well your body uses magnesium can depend on what you eat alongside it and when you take it.
Combinations that help absorption
- Pairing with vitamin D: Vitamin D helps the gut absorb magnesium, so sun exposure or eating oily fish alongside magnesium-rich foods can help.
- Balanced protein intake: Adequate protein intake is associated with better magnesium absorption efficiency.
- How you cook vegetables: Blanching leafy greens like spinach lowers their oxalate content, reducing one of the factors that interferes with mineral absorption.
Factors that get in the way
- Excessive fiber supplements: Taking too much can interfere with mineral absorption.
- Taking high-dose calcium supplements at the same time: Calcium and magnesium share part of the same absorption pathway, so taking large amounts of both together can cause them to compete with each other; spacing them out helps.
- Excess sodium intake: This can increase how much magnesium is lost through urine.
Timing your intake
If sleep is the goal, one to two hours before bed tends to work well; for exercise-related cramp prevention, before or after training makes sense; for general supplementation, splitting the dose with dinner is a common recommendation. Spreading intake across the day rather than taking one large dose reduces gastrointestinal discomfort and can improve absorption efficiency.
Long-Term Prevention Strategies
The best way to prevent magnesium deficiency is not to lean on a specific supplement but to shift your overall diet toward whole grains, vegetables, and nuts.
Dietary strategy
- Swap white rice for brown rice, oats, or mixed grains at least three or four times a week
- Eat a handful of nuts (about 20 to 30 g) as a daily snack
- Include vegetables, especially dark leafy greens, at every meal
- Cut back on processed foods and refined carbohydrates and increase the share of whole foods
Lifestyle habits
- Keep caffeine intake to two or three cups a day
- Limit alcohol to two drinking days a week or fewer
- Build regular sleep and relaxation habits, such as meditation or light exercise, to manage chronic stress
- If you are on long-term acid suppressants or diuretics, check your electrolyte levels periodically
Regular checkups
- Ask for an electrolyte panel as part of your annual physical
- If you have a chronic condition such as diabetes or kidney disease, track magnesium levels with your physician
- During periods of heavy training or heavy sweating, consciously increase your dietary intake
Magnesium Myths and Facts
Myth: eating a banana is all the magnesium you need
Reality: a banana contains only about 27 mg of magnesium per 100 g, which is fairly low. Almonds, cashews, spinach, and dark chocolate are far denser sources. Bananas are a great source of potassium, but they are not the best choice if magnesium specifically is what you are after.
Myth: more magnesium supplement is always better
Reality: even in people with normal kidney function, excess supplemental magnesium can cause diarrhea and abdominal cramping. In people with reduced kidney function, it can lead to a serious complication called hypermagnesemia, so supplements should stay within the recommended upper limit and be discussed with a professional when needed.
Myth: leg cramps always mean magnesium deficiency
Reality: nighttime leg cramps can come from dehydration, overexertion, poor venous circulation, certain medication side effects, or pregnancy, not just low magnesium. If increasing magnesium intake does not help, it is worth looking into other causes.
Myth: a normal blood test means your magnesium is fine
Reality: about 99 percent of the body's magnesium is stored in bone and inside cells, with less than 1 percent circulating in blood. Because the body prioritizes keeping blood levels within a normal range, cellular stores can be low even when a standard serum test comes back normal. If symptoms are clear, additional testing such as a red blood cell magnesium test is worth considering.
Myth: magnesium can substitute for a sleep medication
Reality: a randomized controlled trial by Behnood Abbasi and colleagues at Isfahan University of Medical Sciences in Iran, published in 2012 in the Journal of Research in Medical Sciences, found that magnesium supplementation improved sleep quality measures in older adults. That said, its mechanism differs from sedative sleep medications, and the same effect cannot be assumed in people who are not deficient to begin with.


