Most adults need between 310 and 420 mg of magnesium daily, and the best way to get it is through a combination of magnesium-rich foods and, if needed, a well-chosen supplement. The strategy that works depends on your diet, your digestive health, and how you prepare your food.
How Much You Actually Need
The recommended daily intake varies by age and sex. Men 19 to 30 need 400 mg per day, and that rises to 420 mg after age 31. Women 19 to 30 need 310 mg, increasing to 320 mg after 31. During pregnancy, the target is 350 to 400 mg depending on age. These numbers represent total magnesium from all sources: food, water, and supplements combined.
Best Food Sources
Seeds and nuts are the most concentrated dietary sources of magnesium. Pumpkin seeds, almonds, cashews, and peanuts all deliver substantial amounts per handful. Dark leafy greens like spinach and Swiss chard are another reliable source, as are black beans, edamame, and whole grains. Dark chocolate is surprisingly high in magnesium too, making it one of the more enjoyable ways to close a gap in your intake.
Building meals around these foods can get you most or all of the way to your daily target. A breakfast with oatmeal and pumpkin seeds, a lunch with black beans and spinach, and a snack of almonds covers significant ground. The key is variety, because no single food delivers your full daily requirement in one sitting.
Cooking Methods Matter
How you prepare food affects how much magnesium survives to your plate. Cooked foods retain only about 60 to 70 percent of the minerals found in their raw form. The biggest losses come from boiling vegetables and discarding the water, or soaking sliced foods. Steaming, roasting, and stir-frying preserve more magnesium than boiling. If you do boil greens or vegetables, using that cooking water in soups or sauces recaptures some of what leached out.
What Blocks Absorption From Food
Phytates, compounds found naturally in whole grains, legumes, and seeds, bind to magnesium and form insoluble complexes your gut can’t absorb. The more phytate present, the less magnesium you take in. Soaking, sprouting, or fermenting grains and legumes before cooking breaks down phytates and frees up more magnesium for absorption. High doses of other minerals like zinc, iron, and calcium can also compete with magnesium for absorption, but this effect only kicks in at unnaturally high supplemental doses. At the levels found in a normal diet, the interference is negligible.
Choosing a Magnesium Supplement
If food alone isn’t enough, supplements can fill the gap. But not all forms are equally useful. The two broad categories are organic salts (like magnesium citrate, glycinate, and malate) and inorganic salts (like magnesium oxide). This distinction matters more than most supplement labels suggest.
Organic forms dissolve more readily and are consistently better absorbed. Magnesium citrate is one of the most widely available and well-studied organic options. Magnesium glycinate is popular for its gentle effect on the stomach, making it a good choice if other forms cause digestive discomfort. Magnesium oxide, despite containing more elemental magnesium per pill, has poor solubility and significantly lower bioavailability. You’re getting a higher number on the label but absorbing less of it.
That said, the form of magnesium isn’t the only thing that determines how well a supplement works. The overall formulation, including what other ingredients are in the tablet or capsule, also plays a role. Some organic magnesium supplements test poorly for absorption despite their category advantage. Reading third-party testing results or choosing established brands helps avoid this problem.
When and How Much to Supplement
For people who have trouble sleeping, taking 250 to 500 mg of magnesium at bedtime is a common recommendation. A Mayo Clinic integrative medicine specialist suggests trying a nightly dose for three months to evaluate whether it improves your ability to fall or stay asleep. If sleep isn’t your concern, timing matters less. Taking magnesium with food generally improves tolerance and reduces the chance of stomach upset.
The upper limit for supplemental magnesium (not counting what you get from food) is 350 mg per day for adults. Going above this doesn’t cause serious harm in most people, but it commonly triggers diarrhea, nausea, and cramping. Magnesium from food does not carry this risk, because your body regulates absorption more effectively when minerals arrive in a food matrix.
Splitting your supplement dose into two smaller amounts taken at different times of day can improve absorption compared to one large dose. Your intestines absorb magnesium through two pathways: a passive route that works at any intake level and an active transport system that handles smaller amounts more efficiently. Flooding the system all at once means more passes through unabsorbed.
Conditions That Drain Magnesium
Some people struggle to maintain adequate magnesium levels no matter how well they eat. Chronic alcohol use impairs kidney function and accelerates magnesium excretion through urine. Malabsorption conditions like celiac disease and Crohn’s disease reduce the gut’s ability to take in magnesium in the first place. These situations often require higher supplemental doses and ongoing monitoring.
Several common medications also deplete magnesium. Long-term use of proton pump inhibitors (PPIs), the acid-reducing drugs many people take for heartburn, reduces magnesium absorption in the gut. Certain diuretics increase how much magnesium your kidneys excrete. Some antibiotics and chemotherapy agents can lower levels as well. If you take any of these medications regularly, your baseline magnesium needs are higher than the standard recommendations suggest, and a supplement becomes more important.
Signs You’re Not Getting Enough
Early magnesium deficiency is subtle. Muscle cramps, especially in the legs, are one of the first signs. Fatigue that doesn’t improve with rest, loss of appetite, and nausea are common. As deficiency deepens, you may notice numbness or tingling, an irregular heartbeat, or mood changes like increased anxiety or irritability. Because these symptoms overlap with many other conditions, low magnesium is easy to miss and worth considering if you have risk factors like a restricted diet, digestive issues, or relevant medications.
Standard blood tests aren’t always reliable for detecting magnesium deficiency because less than 1 percent of your body’s magnesium circulates in the blood. Levels can appear normal even when your tissues and bones are depleted. If your symptoms and risk factors point toward deficiency, increasing magnesium through food and supplements is a reasonable first step regardless of test results.

