Magnesium in Your Diet

Time to Read: About 1 minute

This information explains how to add the right amount of magnesium to your diet to stay healthy.

What is magnesium?

Magnesium is a mineral in the body that:

  • Helps keep your heart rhythm steady
  • Helps maintain normal muscle and nerve function
  • Works with other minerals to maintain strong bones and teeth
  • Helps keep you healthy

The best way to add magnesium to your diet is through different foods. You can also get magnesium as a supplement orally (by mouth) or intravenously (IV, through a vein).

Low levels of magnesium in the body can be caused by:

  • Chronic (long-term) or excessive vomiting (throwing up) or diarrhea (loose or watery bowel movements)
  • Having problems absorbing nutrients in the stomach or kidneys
  • Not eating enough food with magnesium
  • Taking some medications, such as certain diuretics (medications that help you urinate (pee)), antibiotics, thyroid medications, proton pump inhibitors, or chemotherapies. These medications can increase the loss of magnesium through urine (pee).
 

How much magnesium do I need every day?

If your magnesium level is low, your doctor, nurse practitioner (NP), or physician assistant (PA) may give you a prescription for a magnesium supplement to take by mouth or you may be given it through an IV.

The table below from the National Institutes of Health (NIH) shows the daily recommended amounts of magnesium for children and adults.

Age
(years)
Males
(mg/day)
Females
(mg/day)
Pregnant Females
(mg/day)
Lactating Females
(mg/day)
1 to 38080N/A*N/A
4 to 8130130N/AN/A
9 to 13240240N/AN/A
14 to 18410360400360
19 to 30400310350310
31 to 50420320360320
51 or older420320N/AN/A

What are food sources of magnesium?

Eating foods with magnesium can help increase the amount in your body. Eating a variety of whole grains, legumes (such as peas and beans), and dark green, leafy vegetables every day will help you get your daily recommended amount of magnesium. You can also get magnesium from drinking water. Water, including tap, mineral, or bottled, can have up to 120 mg of magnesium, depending on the brand of water and where it came from. The table below lists foods and the amount of magnesium in each one.

 
FoodServing SizeAmount of Magnesium (mg) DV** (%)
Almonds (dry roasted)1 ounce8020
Spinach (boiled)½ cup7820
Cashews (dry roasted)1 ounce7419
Peanuts (oil roasted)¼ cup6316
Shredded wheat cereal2 rectangular biscuits6115
Soymilk (plain, vanilla)1 cup6115
Black beans (cooked)½ cup6015
Soybeans (shelled, cooked)½ cup5013
Peanut butter (smooth)2 tablespoons4912
Bread, whole wheat2 slices4612
Avocado, cubed1 cup4411
Potato (baked with skin)3.5 ounces4311
Yogurt, plain, low fat8 ounces4211
Brown rice (long-grain, cooked)½ cup4211

*N/A=Not Applicable

**DV=Daily Value. A DV is a percentage of the total daily recommended amount. A food that provides 20% of the DV per serving is high in magnesium.

How can I speak with a dietitian?

If you have any questions or concerns about your diet while you’re in the hospital, ask to see a dietitian. You can also call 212-639-7312 to speak to or schedule an appointment with a dietitian.

Last Updated

January 10, 2019

Learn about our Health Information Policy.

Tell us what you think

Tell us what you think

Your feedback will help us improve the educational information we provide. Your care team cannot see anything you write on this feedback form. Please do not use it to ask about your care. If you have questions about your care, contact your healthcare provider.

While we read all feedback, we cannot answer any questions. Please do not write your name or any personal information on this feedback form.

Questions Yes Somewhat No
Please do not write your name or any personal information.