Skip to main content

Magnesium: Benefits, Types, Food & Dosage

Medically reviewed by Kristianne Hannemann, PharmD. Last updated on March 25, 2025.

Quick Summary: What You’ll Learn

Table of Contents

  1. Introduction: Why Magnesium Matters
  2. How Magnesium Supports Your Health
  3. Signs You’re Low on Magnesium
  4. Best Magnesium-Rich Foods
  5. Should You Take a Supplement?
  6. Choosing the Best Magnesium Type
  7. The Right Daily Dosage
  8. Magnesium and Medications
  9. Side Effects & Safety
  10. Frequently Asked Questions
  11. Final Thoughts

1. Introduction: Why Magnesium Matters

Magnesium plays a crucial role in over 300 biochemical processes in the body, supporting nerve and muscle function, maintaining a steady heartbeat, and strengthening bones. It also aids in energy production, protein synthesis, and blood glucose regulation.

While magnesium is naturally found in foods like leafy greens, nuts, seeds, and whole grains, many individuals turn to supplements to ensure adequate intake. The increasing interest in magnesium supplementation stems from its potential benefits for various health conditions.

Before starting a magnesium supplement, consulting a healthcare provider is essential to determine the appropriate dosage and ensure its suitability for individual health needs. Proper guidance helps prevent potential interactions or side effects.

2. How Magnesium Supports Your Health

Magnesium is crucial for many functions in the body. Research is ongoing to learn more about how magnesium affects our health and wellbeing. It is known to play a role in the following health conditions:

3. Signs You’re Low on Magnesium (And What to Do About It)

Low magnesium levels can be difficult to detect in its early stages. At first, there may be no obvious symptoms that you are low on magnesium. However, recognizing the signs and understanding the risk factors can help you maintain optimal magnesium levels for overall health. In general, normal blood levels of magnesium are between 1.8 mg/dL and 2.2 mg/dL.

Symptoms of Low Magnesium

Magnesium deficiency may manifest in various ways. Symptoms of low magnesium levels include:

Hidden Causes of Low Magnesium and Risk Factors

Several factors can contribute to low magnesium levels. Some groups of people are at a higher risk for having low magnesium levels, such as those with the following health conditions:

Diagnosing Magnesium Deficiency

Detecting magnesium deficiency can be challenging, as magnesium levels in the blood don't always reflect total body magnesium content. However, healthcare providers may use several methods to check magnesium in the body:

Your healthcare provider will also ask you about specific symptoms that are related to low magnesium levels, such as abnormal heart rhythm and tingling in the arms or legs.

What to Do About Low Magnesium

If you suspect low magnesium levels, contact your healthcare provider. They can order tests and help you determine if you are deficient in magnesium, figure out the cause, and recommend proper treatment.

Treatment options for low magnesium levels may include:

Remember, while magnesium supplementation can be beneficial, it's essential to consult with a healthcare professional before starting any new supplement regimen. This is especially important if you have pre-existing health conditions or are taking medications.

4. The Best Magnesium-Rich Foods (And How to Get Enough)

Magnesium is found naturally in a large variety of foods. While it is possible to get enough magnesium from diet alone, it is estimated that 48% of the United States population consume less than what is recommended. Choosing foods that are high in magnesium can help boost your levels.

What Foods are High in Magnesium?

Magnesium is found in many different foods, including animal- and plant-based foods. It is also found in certain drinks. Good sources of magnesium include:

Factors Affecting Magnesium Absorption

In general, only up to 40% of the magnesium consumed through diet is absorbed into the body. Certain factors can increase or decrease how much magnesium is absorbed.

Some health conditions, such as gastrointestinal disorders and alcohol use disorder, can cause less magnesium to get absorbed from food and drink. Excessive alcohol consumption in particular can damage the lining of the intestines, which can impair the absorption of nutrients like magnesium. Alcohol also acts as a diuretic, which means it increases urine production and loss of magnesium.

Dietary factors that are thought to affect magnesium absorption include:

For example, too much vitamin D, phosphorus, and calcium in the diet can lead to increased magnesium loss. Oxalates that are found in foods like rhubarb, beets, and in drinks like coffee can attach to magnesium and prevent it from getting absorbed.

Certain medications and supplements can affect magnesium absorption, too. Some types of fiber can attach to minerals, including magnesium. This prevents the magnesium from getting into the body.

Should You Take a Magnesium Supplement or Get It From Food?

The decision to take a magnesium supplement or rely on dietary sources depends on individual circumstances. Obtaining magnesium from food sources is generally the preferred and safest method:

There are, however, certain situations where magnesium supplements may be beneficial:

When choosing a magnesium supplement, it is important to read the label and check for quality. Choose supplements that have been third-party verified by reputable organizations for potency and contaminants. These include NSF, UL Solutions, or US Pharmacopeia (USP).

6. Choosing the Best Magnesium Supplement for Your Needs

Different magnesium types serve different purposes, and absorption varies. There are several different types of magnesium found in supplements, including inorganic and organic forms. Organic forms of magnesium are bound to carbon-containing molecules, like amino acids. Inorganic forms are bound to inorganic compounds like oxides or chlorides.

Studies show that organic forms of magnesium are better absorbed than inorganic forms. This is why you will find that organic forms of magnesium usually contain less magnesium compared to inorganic forms. Inorganic forms of magnesium may also cause digestive issues, such as diarrhea. Some examples of each type are listed below.

Organic magnesium:

Inorganic magnesium:

Studies have shown that the following forms of magnesium are better absorbed than magnesium oxide and magnesium sulfate:

Additionally, certain types of magnesium may be better to treat specific conditions. For example, magnesium glycinate is made up of magnesium and the amino acid glycine. Glycine has been shown in studies to have sleep-promoting effects, making magnesium glycinate a good choice for relaxation and sleep. Studies on the different types of magnesium are limited. More research is needed to understand how different types of magnesium affect the body and help with different health conditions.

Quick-Reference Magnesium Chart

Health Concern Magnesium Type Why?
Better Sleep & Stress Relief Magnesium Glycinate Well-absorbed, supports relaxation
Muscle Cramps & Recovery Magnesium Malate Supports muscle function
Digestion & Constipation Magnesium Oxide, Magnesium Hydroxide Acts as a gentle laxative
General Health & Absorption Magnesium Chloride Well-absorbed

Capsules, powders, or liquids—which form absorbs best?

You can find magnesium in many different dosage forms over the counter, including capsules, tablets, powders, and liquids. There are pros and cons to all of the different dosage forms. Which form is best for you depends on individual factors and preferences.

In general, powder and liquid forms of magnesium get absorbed faster compared to tablets and capsules. This is because it usually takes longer for tablets and capsules to break down in your stomach before the magnesium can get absorbed.

Dosage Form Pros Cons
Tablets
  • Less messy than powder or liquid forms
  • Some can be split in half
  • Some have a bitter taste
  • May be difficult to swallow
Capsules
  • Usually have no taste
  • Absorbed more quickly than tablets
  • Can be difficult to swallow
  • Cannot be opened
Powder
  • Easy to transport
  • Easier to swallow
  • Can be messy
  • Must be mixed with liquid
Liquid
  • Easy to swallow
  • May be flavored for better taste
  • Can be messy
  • Dosing errors more common

What About Topical Magnesium?

There is limited research on how effective topical magnesium preparations like creams and oils are on raising magnesium levels in the body. It is not clear how much magnesium is absorbed through the skin. One study showed a slight increase in magnesium levels in people who used a topical magnesium cream containing 56 mg of magnesium compared to those using a cream without magnesium. However, the difference was not significant.

Many people use Epsom salt (magnesium sulfate) in baths as a soak for muscle pain and inflammation, but there is again not enough evidence that shows this is effective. The calming effects are likely due to the warm bath itself instead of the Epsom salt since magnesium doesn’t seem to get through the skin very effectively.

Use topical magnesium products with caution, because there is not enough research to back up their effectiveness. Similar to other supplements found over the counter, these products are not regulated the same way as prescription medications. This means they may contain different amounts of magnesium than what is advertised, or contain other ingredients that are not listed on the packaging. Talk to your healthcare provider if you need help finding a high-quality, topical magnesium product.

7. How Much Magnesium is Too Much? The Right Daily Dosage

The amount of magnesium you need depends on your gender assigned at birth, age, health conditions, medications, and whether you are pregnant or breastfeeding. For example, children need less magnesium each day than seniors. Check with your healthcare provider to find out how much magnesium you need to maintain healthy levels in your body.

The Food and Nutrition Board (FNB) at the Institute of Medicine of the National Academies recommends certain daily amounts of magnesium for people in different age groups. These recommendations, known as Recommended Dietary Allowances, meet requirements for about 98% of healthy adults.

Recommended Dietary Allowances (RDAs) for Magnesium

Age Male Female Pregnant Breastfeeding
Birth to 6 months 30 mg* 30 mg*    
7–12 months 75 mg* 75 mg*    
1–3 years 80 mg 80 mg    
4–8 years 130 mg 130 mg    
9–13 years 240 mg 240 mg    
14–18 years 410 mg 360 mg 400 mg 360 mg
19–30 years 400 mg 310 mg 350 mg 310 mg
31–50 years 420 mg 320 mg 360 mg 320 mg
51+ years 420 mg 320 mg    

These amounts may be different if you have certain health conditions or are taking medications that affect the amount of magnesium in your body.

Can You Take Too Much Magnesium?

People with healthy kidneys are able to regulate how much magnesium stays in their body from their diet. This is because the kidneys get rid of extra magnesium through the urine. People with kidney problems and those taking magnesium supplements need to be more careful about getting too much magnesium.

The recommended maximum amounts of magnesium for those taking extra magnesium in supplements or medications are listed below. Keep in mind that these amounts are in addition to what you are already getting through your diet. If you have certain health conditions, your provider might recommend other amounts for you than what is listed in the table below.

Age Maximum Amount of Supplemental Magnesium
1-3 years 65 mg
4-8 years 110 mg
9 years and older 350 mg

Taking too much magnesium can lead to an overdose. Signs of overdose include:

If you experience severe symptoms such as irregular heartbeat or difficulty breathing, seek immediate medical attention.

How to balance magnesium from food and supplements

Too much magnesium from foods and drinks is rarely a problem. This is because our kidneys do a great job at making sure there is just the right amount in our body. However, it is important to pay attention to how much magnesium you get from supplements or medications. Check the labels and write down how much you get in a day from these sources so you do not take too much.

8. Magnesium and Medications: What You Need to Know

Magnesium can interact with various medications. Here’s what you need to know about common potential interactions.

Which Medications Interact with Magnesium?

Examples of medications that have the potential to interact with magnesium include:

How to Take Medications Safely With Magnesium

In some cases, there are things you can do to minimize interactions between your medication and magnesium:

Always share a list of your medications and supplements with a healthcare professional so they can help you screen for interactions. They can also offer guidance on how to manage potential interactions.

9. Is Magnesium Safe? Side Effects & Who Should Avoid It

While magnesium is essential, too much can cause issues. It can cause side effects ranging from mild to life-threatening. Here’s how to use it safely.

Common side effects

The most common side effects of magnesium are stomach-related issues, and include:

Side effects usually occur at higher doses. They are also more common with inorganic forms of magnesium, such as magnesium oxide.

Taking too much magnesium can lead to life-threatening side effects, like difficulty breathing and irregular heartbeat. Talk to your healthcare provider to find out what a safe amount of magnesium is for you.

Who Should Be Cautious With Magnesium Supplements?

Having certain health conditions can put you at a higher risk of having too much magnesium in your body. This can increase your risk of side effects. Always consult your healthcare provider if any of the following apply to you:

Is Magnesium Safe During Pregnancy?

Magnesium requirements are generally higher during pregnancy. The recommended daily amount of magnesium during pregnancy is 350 mg to 400 mg, depending on your age. Pregnant teens need more magnesium than pregnant adults. Many prenatal vitamins already contain some magnesium, so it is important to keep track of how much you are getting from supplemental sources to avoid taking too much.

Some research suggests that magnesium supplementation during pregnancy may have positive effects, such as reduced risk of growth restriction and preeclampsia. However, too much magnesium can be harmful. If you are pregnant, it is important to consult with your healthcare provider before starting any supplements – including magnesium.

10. Frequently Asked Questions

When is the best time to take magnesium, morning or night?

The best time of day to take magnesium depends on your health goals and individual needs. While timing can enhance specific benefits, maintaining a consistent routine is more important for stable magnesium levels in the body. Many studies show the full benefits of magnesium occur after long-term use.

Should I take magnesium with or without food?

It is generally recommended to take magnesium with food to help lower the chances for an upset stomach and increase the absorption of the mineral into your body. If you take magnesium on an empty stomach, you increase the risk for common stomach side effects like diarrhea, nausea and abdominal cramping.

Does magnesium help with headaches and migraines?

The current evidence supports a role for magnesium in both the prevention and treatment of headache disorders, particularly migraines. Multiple clinical trials and meta-analyses demonstrate that magnesium supplementation can reduce the frequency and intensity of migraine attacks, while intravenous magnesium shows promise for acute treatment.

Does magnesium help with restless leg syndrome (RLS)?

The evidence regarding magnesium's effectiveness for restless leg syndrome presents a complex picture. While some research suggests a beneficial effect, particularly for individuals with magnesium deficiency, other studies find no significant correlation between magnesium levels and RLS severity.

Does magnesium help with weight loss?

While magnesium alone will not lead to significant weight loss, its ability to regulate blood sugar levels, reduce inflammation, improve gut health, boost metabolism, and enhance sleep quality makes it a valuable component of a holistic approach to weight management. Individuals with magnesium deficiencies or related conditions may benefit most from supplementation or dietary adjustments.

Can magnesium help with menopause symptoms?

A placebo-controlled study showed that 800 mg to 1,200 mg per day of magnesium oxide did not have a significant effect in reducing hot flash symptoms in menopausal women with a history of breast cancer. A smaller study did show a positive effect with 400 mg to 800 mg, but did not include a placebo (control) group. Further research is needed in a more generalized population.

How long does magnesium citrate take to work?

According to the information provided with magnesium citrate liquid products, you can generally expect it to cause a bowel movement anywhere from 30 minutes to 6 hours after you drink it.

11. Final Thoughts: Should You Take Magnesium?

Magnesium is an essential mineral, but do you need a supplement? When deciding, there are several factors to consider and discuss with a healthcare professional.

If you are unsure, talk to your healthcare provider about your specific magnesium needs. They can order tests to check your magnesium level and recommend an amount that is safe for you to take.

Sources

  1. Allen, M. J., et. al. 2023. Magnesium. In: StatPeals [Internet]. Accessed March 23, 2025 at https://www.ncbi.nlm.nih.gov/books/NBK519036/
  2. Arab A., et. al. 2023. The Role of Magnesium in Sleep Health: a Systematic Review of Available Literature. In: Biol Trace Elem Res. DOI: https://doi.org/10.1007/s12011-022-03162-1
  3. Blancquaert, L., et. al. 2019. Predicting and Testing Bioavailability of Magnesium Supplements. In: Nutrients. DOI: https://doi.org/10.3390/nu11071663
  4. Coudray, C., et. al. 2003. Effects of dietary fibers on magnesium absorption in animals and humans. In: J Nutr. DOI: https://doi.org/10.1093/jn/133.1.1
  5. DiNicolantonio J. J., et. al. 2018. Subclinical magnesium deficiency: a principal driver of cardiovascular disease and a public health crisis. In: Open Heart. https://doi.org/10.1136/openhrt-2017-000668
  6. Gabapentin [package insert]. Updated December 2023. ACI Healthcare USA, Inc. Accessed March 23, 2025 at https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=7538e255-95df-4991-aae0-a90d709f1e95
  7. Gröber, U., et. al. 2019. Magnesium and Drugs. International Journal of Molecular Sciences. DOI: https://doi.org/10.3390/ijms20092094
  8. Gröber, U., et. al. 2017. Myth or Reality-Transdermal Magnesium? In: Nutrients. DOI: https://doi.org/10.3390/nu9080813
  9. Houston, M. 2011. The role of magnesium in hypertension and cardiovascular disease. In: J Clin Hypertens (Greenwich). DOI: https://doi.org/10.1111/j.1751-7176.2011.00538.x
  10. Kass, L., et. al.2017.  Effect of transdermal magnesium cream on serum and urinary magnesium levels in humans: A pilot study. In: PLoS One. https://doi.org/10.1371/journal.pone.0174817.
  11. Liu, M., et. al. 2019. Magnesium and liver disease. In: Ann Transl Med. DOI: https://doi.org/10.21037/atm.2019.09.70
  12. MedlinePlus. 2023. Magnesium in diet. Accessed March 20, 2025 at https://medlineplus.gov/ency/article/002423.htm
  13. MedlinePlus. 2023. Magnesium Blood Test. Accessed March 20, 2025 at https://medlineplus.gov/lab-tests/magnesium-blood-test/
  14. Moar, N. R., et. al. 2017. Effect of Magnesium Oxide Supplementation on Nocturnal Leg Cramps: A Randomized Clinical Trial. In: JAMA. DOI: https://www.doi.org/10.1001/jamainternmed.2016.9261
  15. Mori H., et. al. 2021. Magnesium Oxide in Constipation. In: Nutrients. DOI: https://doi.org/10.3390/nu13020421
  16. National Institutes of Health Office of Dietary Supplements. 2021. Magnesium Fact Sheet for Consumers. Accessed March 20, 2025 at https://ods.od.nih.gov/factsheets/Magnesium-Consumer/
  17. National Institutes of Health Office of Dietary Supplements. 2022. Magnesium Fact Sheet for Healthcare Professionals. Accessed March 20, 2025 at https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
  18. Negru, A. G., et. al. 2022. The Role of Hypomagnesemia in Cardiac Arrhythmias: A Clinical Perspective. In: Biomedicines. DOI: https://doi.org/10.3390/biomedicines10102356
  19. Nishikawa, M., et. al. 2018. The characteristics of patients with hypermagnesemia who underwent emergency hemodialysis. In: Acute Medicine and Surgery. DOI: https://doi.org/10.1002/ams2.334
  20. Noonan S. C., et. al. 1999. Oxalate content of foods and its effect on humans. In: Asia Pac J Clin Nutr. PMID: 24393738.
  21. Pardo, M. R., et. al. 2021. Bioavailability of magnesium food supplements: A systematic review. In: Nutrition. DOI: https://doi.org/10.1016/j.nut.2021.111294
  22. Pickering, G., et. al. 2020. Magnesium Status and Stress: The Vicious Circle Concept Revisited. In: Nutrients. DOI: https://doi.org/10.3390/nu12123672
  23. Razzaque MS. 2018. Magnesium: Are We Consuming Enough? In: Nutrients. DOI: https://doi.org/10.3390/nu10121863
  24. Spencer H, et. al. 1994. Inhibitory effects of zinc on magnesium balance and magnesium absorption in man. In: J Am Coll Nutr. DOI: https://doi.org/10.1080/07315724.1994.10718438
  25. Swaminathan R. 2003. Magnesium metabolism and its disorders. In: Clin Biochem Rev. PMID: 18568054; PMCID: PMC1855626.
  26. Werner T, et. al. 2019. Assessment of bioavailability of Mg from Mg citrate and Mg oxide by measuring urinary excretion in Mg-saturated subjects. In: Magnes Res. DOI: https://doi.org/10.1684/mrh.2019.0457
  27. Zarean, E., etl. Al. 2017. Effect of Magnesium Supplement on Pregnancy Outcomes: A Randomized Control Trial. In: Adv Biomed Res. DOI: https://doi.org/10.4103/2277-9175.213879

Further information

Always consult your healthcare provider to ensure the information displayed on this page applies to your personal circumstances.