Health Library
April 23, 2026
Question on this topic? Get an instant answer from August.
The magnesium in your body powers over 300 reactions, including muscle contractions, managing blood sugar, and deep sleep, but around 50% of US adults aren't getting enough. It's not a pill. Eating the right foods with magnesium throughout the week will supply most adults without pills, side effects or confusion.
This article explains which foods have the most magnesium, and how much you need at your life stage, what low levels feel like, and when food-based magnesium doesn't cut it. The data are from the National Institutes of Health and USDA, the studies from peer-reviewed journals of nutrition and sleep. The idea is to help you develop a few easy habits to ease the shortfall, without having to do an equation at every meal.
Your body needs magnesium all the time, but stores only a little. Around 60% is stored in your bones. The remainder is found in muscles, soft tissues and a small but critical amount in your bloodstream. It helps your nerves transmit signals, your muscles relax after a contraction, your heart beat regularly, and your cells use nutrients to produce energy. It also helps keep your blood pressure and blood sugar levels steady and helps make DNA and protein.
Our bodies don't produce magnesium. You must get it from food or supplements. If you don't get enough over a period of weeks or months, your body will start to draw magnesium from your bones to maintain healthy blood levels. This explains why it's easy to have normal blood levels but low magnesium stores, making it a less-than-ideal vitamin to monitor.
According to NIH data, nearly half of U.S. adults consume less magnesium than recommended. It's most common in adults 70 and older, adolescents, and those who eat a diet high in processed foods. Chronic insufficient magnesium predicts increased risk of type 2 diabetes, hypertension, migraine and osteoporosis.
Daily magnesium needs change with age, sex, and pregnancy. The numbers below come from the NIH Office of Dietary Supplements and represent the Recommended Dietary Allowance (RDA), the amount that meets the needs of nearly all healthy people in each group.
|
Group |
Daily magnesium (mg) |
|
Men, 19 to 30 |
400 |
|
Men, 31 and older |
420 |
|
Women, 19 to 30 |
310 |
|
Women, 31 and older |
320 |
|
Pregnant women, 19 to 30 |
350 |
|
Pregnant women, 31 and older |
360 |
|
Breastfeeding women |
310 to 320 |
|
Teens, 14 to 18 (boys) |
410 |
|
Teens, 14 to 18 (girls) |
360 |
|
Adults over 70 |
320 to 420 |
Most adults fall about 100 mg short of these targets each day. Closing that gap usually takes one or two intentional swaps, like adding a handful of pumpkin seeds to breakfast or trading white rice for quinoa at dinner.
Foods high in magnesium include pumpkin seeds, chia seeds, almonds, cashews, spinach, black beans, edamame, dark chocolate, avocado, salmon, tofu, and whole grains like brown rice and oats. Pumpkin seeds top the list at around 168 mg per ounce, nearly half a day's worth. Most people who eat across these groups daily reach their target without tracking.
The list below comes from USDA FoodData Central and represents typical serving sizes. Magnesium content varies slightly by brand, soil quality, and preparation, but the rankings are consistent.
|
Food |
Serving |
Magnesium (mg) |
% Daily value |
|
Pumpkin seeds, roasted |
1 oz (about 28 g) |
168 |
40% |
|
Chia seeds |
1 oz |
111 |
26% |
|
Almonds, roasted |
1 oz |
80 |
19% |
|
Spinach, boiled |
1/2 cup |
78 |
19% |
|
Cashews, roasted |
1 oz |
74 |
18% |
|
Black beans, cooked |
1/2 cup |
60 |
14% |
|
Edamame, shelled |
1/2 cup |
50 |
12% |
|
Peanut butter |
2 tbsp |
49 |
12% |
|
Brown rice, cooked |
1/2 cup |
42 |
10% |
|
Salmon, Atlantic, cooked |
3 oz |
26 |
6% |
|
Avocado |
1 medium |
58 |
14% |
|
Dark chocolate (70 to 85%) |
1 oz |
65 |
15% |
|
Tofu, firm |
1/2 cup |
53 |
13% |
|
Banana |
1 medium |
32 |
8% |
|
Yogurt, plain low-fat |
1 cup |
42 |
10% |
|
Oats, dry |
1/2 cup |
60 |
14% |
A practical day looks like this: oatmeal with chia seeds at breakfast (110 mg), a spinach salad with pumpkin seeds and avocado at lunch (220 mg), and salmon with brown rice at dinner (70 mg). That's around 400 mg, exactly what most adults need.
Different magnesium-rich foods carry different secondary benefits. If you're eating to address a specific issue, lean toward the foods rich in magnesium that match it.
For sleep and muscle relaxation, lean on almonds, pumpkin seeds, oats, and tart cherries. Magnesium foods for sleep work best when paired with a small amount of carbohydrate, which helps tryptophan reach the brain. A small bowl of oatmeal with almond butter an hour before bed is one of the better-studied combinations. A 2022 review in Sleep found that adults with higher magnesium intake fell asleep faster and reported better sleep quality, though the effect was modest.
For migraine prevention, the American Academy of Neurology lists magnesium as a Level B (probably effective) preventive when intake is consistently adequate. Spinach, swiss chard, pumpkin seeds, and dark chocolate are practical anchors.
For muscle cramps and exercise recovery, banana, yogurt, edamame, and tofu pair magnesium with potassium and protein, the trio most linked to faster recovery in active adults.
For blood sugar control, whole grains, beans, and nuts have the strongest evidence. A 2017 meta-analysis in Nutrients covering more than 530,000 adults found that each 100 mg increase in daily magnesium was associated with a 9% lower risk of developing type 2 diabetes.
A health companion app like August AI can help you track which foods you're eating, log symptoms like cramps or sleep quality day to day, and notice whether your magnesium-rich habits actually move the needle for you.
The best sources of magnesium change a bit if you're vegan, gluten-free, low-FODMAP, or have kidney disease.
For vegans and vegetarians, this is less of a problem because the highest sources (seeds, nuts, beans, leafy greens, whole grains, dark chocolate) are all vegetarian foods. Iron and B12 are more of a concern than magnesium.
The gluten-free miss out on wheat bread, pasta and cereals, which contain a lot of magnesium when whole-grain. Quinoa, buckwheat, brown rice, oats (must be certified gluten-free) and millet are now common.
IBS diets (low-FODMAP) avoid some beans and nuts. Tofu, peanut butter, salmon, spinach and chia seeds remain safe and provide most nutrients.
High magnesium may not be a goal for those with chronic kidney disease. Impaired kidneys have trouble excreting magnesium and levels can rise.
Mild deficiency is often silent. As levels fall further, the earliest symptoms are muscle spasms (particularly in the calves), eyelid twitches, fatigue that is not relieved by sleep, irritability and difficulty sleeping. With severe deficiency, there may be numbness, tingling, irregular heart beat, and seizures but these do not occur in healthy adults.
The usual blood test is a serum magnesium, which is maintained even with low stores. Red blood cell (RBC) magnesium is a more accurate test but not standard. If you have recurring cramps or fatigue and the blood test shows "normal" levels, ask your doctor about an RBC test.
You're at higher risk of low magnesium if you have certain health conditions or take certain medications. These include type 2 diabetes, alcohol abuse, inflammatory bowel disease (Crohn's, ulcerative colitis), celiac disease, chronic use of acid suppressors (omeprazole, esomeprazole) for over a year and diuretics for hypertension. These folks need to be at the higher end of the RDA for magnesium and should talk to their doctor regularly.
The magnesium from food vs supplement question comes up a lot, and the honest answer is that food wins for most people. Magnesium absorbs better when it arrives with fiber, protein, and other minerals from whole foods. It also comes without the digestive side effects (loose stools, cramping) that high-dose supplements can cause.
Supplements have a real role in three situations. First, when a doctor confirms low magnesium through testing. Second, when you live with a condition (IBD, celiac, long-term PPI use) that limits absorption. Third, when you're treating a specific issue like migraine prevention, where research supports doses higher than food alone usually delivers.
If you do supplement, magnesium glycinate and magnesium citrate are the most absorbable common forms. Magnesium oxide, the cheapest, absorbs poorly and is mostly used as a laxative. Avoid daily intake above the tolerable upper limit of 350 mg from supplements (the food limit is much higher and not a concern). Talk to your doctor before starting if you take blood pressure medications, antibiotics, or have kidney issues.
Most magnesium gaps close with food alone, but some symptoms warrant a medical check rather than a grocery list. Book a visit if you have muscle cramps lasting more than two weeks, persistent fatigue, irregular heartbeats, frequent migraines, or numbness and tingling in your hands or feet. These can be signs of low magnesium, but they also overlap with thyroid problems, vitamin D deficiency, and electrolyte imbalances that need testing to sort out.
Call 911 or go to the nearest emergency room for chest pain, an irregular heartbeat with dizziness or fainting, severe muscle weakness, seizures, or confusion. These can indicate severely low magnesium or a separate cardiac or neurological issue that needs immediate care.
For symptoms that feel off but aren't urgent, August AI lets you describe what you're experiencing in plain language and helps you decide whether to wait, book a routine visit, or seek urgent care. It saves the conversation so you can share it with your doctor at your next appointment.
Frequently Asked Questions
Can I get enough magnesium from food alone?
Yes, for most healthy adults. Eating a handful of pumpkin seeds, a serving of leafy greens, a half cup of beans or whole grains, and a square of dark chocolate across a typical day covers the full RDA of 310 to 420 mg. People with absorption issues, certain medications, or chronic illness may need supplements.
What food has the most magnesium per serving?
Pumpkin seeds top the list at 168 mg per ounce, about 40% of the daily value. Chia seeds (111 mg per ounce), almonds (80 mg per ounce), and cooked spinach (78 mg per half cup) come next. Adding even one of these to a daily meal usually closes most magnesium gaps without supplements.
Does cooking destroy magnesium in foods?
Mostly no. Magnesium is heat-stable, so roasting, baking, and grilling don't reduce it much. Boiling vegetables in water can leach 30 to 40% of the magnesium into the cooking liquid, which then gets poured down the drain. Steaming, sautéing, or using the cooking water for soups and sauces preserves more.
How long does it take to fix low magnesium with diet?
Mild deficiency usually corrects within 4 to 6 weeks of consistent intake at or above the RDA. Severe deficiency confirmed by blood testing may take 3 to 6 months and often needs supplementation under medical guidance. Symptoms like muscle cramps and sleep quality often improve within the first 2 weeks.
Are magnesium supplements safe to take every day?
For healthy adults, supplements up to 350 mg per day from pills are generally safe. Higher doses can cause diarrhea, nausea, and cramping. People with kidney disease, heart block, or those on certain antibiotics or blood pressure medications should talk to a doctor first. Food sources have no such limit.
Get clear medical guidance
on symptoms, medications, and lab reports.
Download August today. No appointments. Just answers you can trust.