I’ll be honest: magnesium was one of those nutrients I barely thought about until I hit a stretch of long workdays, too much coffee, and not nearly enough real meals. I was sleeping badly, getting annoying muscle twitches in my eyelid, and feeling more run-down than usual. It turns out magnesium is involved in more than 300 enzyme reactions in the body, including muscle function, nerve signaling, blood sugar regulation, and making energy from food. When levels run low, the signs can be subtle at first, which is why so many people shrug them off.

If you’ve been wondering whether your body is trying to get your attention, this is what to look for. I’m going to walk through 11 common signs of magnesium deficiency, starting with the one that often shows up earliest, plus what can cause low magnesium, how much you actually need, the best food sources, and when it makes sense to talk with a doctor instead of trying to fix it on your own.

1. The first warning sign: muscle twitches, cramps, or eyelid fluttering

One of the earliest and most common signs of low magnesium is small, repetitive muscle twitching. For a lot of people, it starts with an eyelid that won’t stop fluttering for a few seconds at a time, a foot cramp in bed, or a calf muscle that tightens after a normal walk. Magnesium helps muscles relax after they contract. When levels dip, muscles can become more excitable, which is why twitching and cramping often show up early.

In my case, the eyelid twitch was the clue I ignored for about 2 weeks. I blamed stress, screen time, and lack of sleep, which honestly were probably part of the picture. But if twitching is happening regularly, especially along with cramps or tightness, it’s worth paying attention. Severe deficiency can even lead to numbness, tingling, or more dramatic muscle spasms.

2. Ongoing fatigue that doesn’t match your schedule

Everybody gets tired, especially if you’re juggling work, family, errands, and trying to cook something besides cereal for dinner. But magnesium-related fatigue tends to feel disproportionate. You may sleep 7 to 8 hours and still wake up feeling flat, or hit a wall by 2 p.m. even after breakfast and coffee. That’s because magnesium is needed to produce ATP, the body’s main energy molecule.

If your energy has been low for more than 1 to 2 weeks and there’s no obvious reason like illness, a drastic change in sleep, or intense exercise, nutrient gaps are one possibility to consider. Fatigue alone does not prove deficiency, but paired with cramps, weakness, or poor sleep, it becomes more meaningful.

3. Weakness during normal daily activities

Low magnesium can also show up as muscle weakness, not just cramps. This can feel like climbing one flight of stairs is harder than usual, carrying grocery bags feels more tiring, or your usual workout suddenly feels like you lost 20% of your strength. In more significant deficiency, this weakness can be noticeable even without exercise.

Part of the reason is that muscles need magnesium to contract and relax properly. If you’re eating enough calories but still feel physically underpowered, it’s worth looking at magnesium intake along with protein, iron, vitamin D, and overall hydration.

4. Trouble sleeping or staying asleep

Magnesium plays a role in nervous system regulation and may help support healthy sleep by influencing relaxation pathways and melatonin regulation. People with low magnesium sometimes report difficulty falling asleep, waking during the night, or feeling mentally “wired” even when physically tired.

I notice this most when my meals get sloppy for a week or two. Lots of takeout, not enough beans, greens, nuts, or whole grains, and suddenly I’m awake at 3 a.m. making a mental grocery list. Sleep problems can have many causes, of course, but if poor sleep shows up alongside twitching and irritability, magnesium deserves a spot on the checklist.

5. Increased anxiety, irritability, or feeling on edge

Magnesium helps regulate nerve function, so low levels can affect mood and stress response. Some people describe it as feeling unusually restless, short-tempered, or easily overwhelmed by things they would normally handle fine. This doesn’t mean every anxious day is caused by magnesium deficiency, but low intake can be one contributing factor.

If your stress is already high, magnesium may matter even more. Chronic stress can influence eating habits, sleep, and sometimes magnesium balance itself, creating a not-so-fun cycle. I’ve definitely had seasons where “grab whatever’s fastest” eating left me feeling more frazzled than usual.

6. Headaches or migraines

Frequent headaches are another possible sign. Magnesium is involved in nerve transmission and blood vessel function, and some research suggests magnesium deficiency may play a role in migraines for certain people. If you’re getting headaches several times a week, especially with muscle tension or poor sleep, it may be worth discussing magnesium with your healthcare provider.

Some clinicians use magnesium supplements in specific migraine situations, but the dose matters. Common supplemental amounts range from 200 to 400 milligrams per day, depending on the person and the product, and too much can cause diarrhea or interact with medications. That’s one reason I prefer starting with food unless a clinician recommends otherwise.

7. Irregular heartbeat or heart palpitations

Magnesium supports normal heart rhythm. When levels are too low, some people notice palpitations, skipped beats, or a pounding sensation in the chest. This is not something to brush off. Heart symptoms can have many causes, some of them serious, including medication effects, thyroid problems, dehydration, anemia, or heart conditions.

If you have chest pain, shortness of breath, fainting, dizziness, or a sustained rapid or irregular heartbeat, seek medical care right away. Mild palpitations can happen with stress or caffeine, but recurring heart rhythm symptoms should not be self-diagnosed as “just magnesium.”

8. Numbness or tingling

As deficiency becomes more significant, nerve-related symptoms can appear. You might notice tingling in the hands, feet, or face, or a pins-and-needles sensation that comes and goes. Magnesium helps nerves send signals properly, so disrupted levels can affect normal sensation.

This symptom has a long list of possible causes, including vitamin B12 deficiency, diabetes, anxiety, nerve compression, and medication side effects. If numbness or tingling is persistent, one-sided, or getting worse, it’s time for a medical evaluation rather than a guess.

9. Nausea or loss of appetite

Lower appetite and mild nausea can happen with magnesium deficiency, especially as it becomes more pronounced. The tricky thing is that if you feel queasy and eat even less, your intake can drop further. It becomes one of those cycles that quietly snowballs over several days or weeks.

Because nausea is so nonspecific, I wouldn’t hang a diagnosis on this symptom alone. But when it shows up together with weakness, cramps, and fatigue, it can fit the picture.

10. High blood pressure or poor blood sugar control

Magnesium helps support blood vessel function and insulin action. Low intake has been linked with a higher risk of hypertension and problems with blood sugar regulation over time. This is less likely to be the symptom you feel first, but it can show up in lab trends or blood pressure readings before you connect the dots nutritionally.

If you have prediabetes, type 2 diabetes, or high blood pressure, it’s especially worth reviewing your diet with your doctor or a registered dietitian. People with diabetes can lose more magnesium in urine, which raises the risk of deficiency.

11. Seizures, severe spasms, or major symptoms mean urgent care

At the severe end, very low magnesium can cause seizures, significant muscle spasms, personality changes, or dangerous heart rhythm problems. These are not “wait and see” symptoms. They require urgent medical attention and often lab work and treatment right away.

Most people are not dealing with that level of deficiency, but I think it’s important to say clearly: magnesium matters, and serious symptoms should never be handled with a supplement and a Google search alone.

What puts someone at risk for magnesium deficiency

Low magnesium can happen from not getting enough in food, but it’s often more complicated than that. Risk factors include gastrointestinal conditions such as Crohn’s disease, celiac disease, and chronic diarrhea, because these can reduce absorption. Type 2 diabetes, alcohol use disorder, and kidney issues can also affect magnesium balance.

Certain medications can contribute too. Common examples include some diuretics, proton pump inhibitors used for acid reflux, and certain antibiotics or chemotherapy drugs. Age can matter as well. As adults get older, intake may decrease while absorption drops. If any of these apply to you, it’s smart to bring them up with your healthcare provider.

How much magnesium adults need each day

For most adults, the Recommended Dietary Allowance is about 310 to 320 milligrams per day for women and 400 to 420 milligrams per day for men. Needs can be higher in pregnancy, generally around 350 to 360 milligrams per day depending on age.

You do not need to memorize that. The practical takeaway is this: if your meals are light on beans, lentils, nuts, seeds, whole grains, leafy greens, and dairy or fortified foods, it’s pretty easy to fall short over time.

The best food sources of magnesium

This is the part I actually love, because food fixes are usually more realistic than people think. Pumpkin seeds are one of the best sources, with roughly 150 to 170 milligrams in 1 ounce, which is about 28 grams or a small handful. Almonds give around 75 to 80 milligrams per ounce. Cooked spinach can provide about 150 milligrams per cup. Black beans offer roughly 120 milligrams per cooked cup, and peanut butter gives about 50 milligrams in 2 tablespoons.

Other helpful options include edamame, cashews, chia seeds, oats, quinoa, brown rice, avocado, yogurt, dark chocolate with a high cocoa percentage, and fortified breakfast cereals. On busy weekdays, I try to build magnesium in without overthinking it: oatmeal with chia seeds at breakfast, a turkey and spinach wrap at lunch, and black bean tacos or a grain bowl at dinner. A couple of small upgrades can add 100 to 200 milligrams in a day pretty easily.

What to do if you think you’re low

Start with your plate. For 1 to 2 weeks, aim to include 1 magnesium-rich food at each meal. That could look like 1 cup cooked oatmeal plus 1 tablespoon chia seeds at breakfast, a salad with 1/2 cup chickpeas at lunch, and 1 cup black beans or 1 cup cooked spinach at dinner. Add a 1-ounce serving of almonds or pumpkin seeds as a snack. This is a practical way to improve intake without turning your routine upside down.

Hydration matters too, especially if cramps are part of the picture. Dehydration and low electrolytes can overlap in symptoms. And if your meals have been heavy on ultra-processed foods and light on produce, beans, and whole grains, even a modest reset can help within several days.

Should you take a magnesium supplement?

Maybe, but not blindly. Supplements can be helpful if a clinician confirms low intake, deficiency, or a situation where your needs are higher. Magnesium glycinate and magnesium citrate are common forms. Citrate may be more likely to loosen stools, while glycinate is often chosen for better tolerance, though individual experiences vary.

The tolerable upper intake level from supplements, not food, is 350 milligrams per day for adults for routine over-the-counter use because higher amounts can cause diarrhea and stomach upset. Some medical situations use more than that, but only under supervision. People with kidney disease need extra caution because they may not clear magnesium properly.

How magnesium deficiency is diagnosed

This part surprises a lot of people: diagnosis is not always straightforward. A standard serum magnesium blood test can be helpful, but it does not always reflect total body magnesium accurately because most magnesium is stored in bones and tissues, not floating in the blood.

Doctors usually look at the full picture: symptoms, diet, health history, medications, and sometimes additional labs such as calcium, potassium, kidney function, and blood sugar. If your symptoms are ongoing, don’t be discouraged if the answer takes a little digging.

When to call your doctor

Make an appointment if you’ve had persistent muscle cramps, twitching, weakness, fatigue, headaches, or sleep problems for more than 2 to 3 weeks, especially if you also have digestive issues, diabetes, heavy alcohol use, or take medications that can affect magnesium. It’s also worth checking in if you’ve been relying on antacids or acid-reducing medicines for months.

Get urgent care right away for chest pain, fainting, seizures, severe confusion, trouble breathing, or significant heart palpitations. Those symptoms need prompt evaluation, whether magnesium is involved or not.

A simple weeknight plan to boost magnesium without overhauling your life

When life gets busy, I do better with a repeatable system than with big health goals. One easy template is this: breakfast with oats or yogurt, lunch with beans or greens, dinner with a whole grain plus legumes, and one nuts-or-seeds snack. For example, Monday could be oatmeal with pumpkin seeds, a quinoa salad with chickpeas, and salmon with brown rice and spinach. Tuesday could be yogurt with chia, a turkey sandwich on whole grain bread with avocado, and black bean enchilada bowls.

It doesn’t have to be perfect to be effective. If you recognize a few of these signs in yourself, especially the early muscle twitching and cramps, start by looking at your daily intake before you panic. Sometimes the body’s first warning signs are small, but they’re still worth listening to.