Skip to content

Medical emergency? What to do

Diet and Nutrition

Magnesium in DietFunctions and Sources

What food source is the nutrient found in?

Magnesium is found in nuts, soybeans, legumes and whole grains. It is also found in seafood, dark green vegetables, cereals, bananas, and milk. Following are some foods and the amount of magnesium in them:

  • spinach (1/2 cup) = 80 milligrams (mg)
  • peanut butter (2 tablespoons) = 50 mg
  • black-eyed peas (1/2 cup) = 45 mg
  • milk, low fat (1 cup) = 40 mg

How does the nutrient affect the body?

Magnesium is an important mineral in bone structure. Magnesium works together with calcium and phosphorus to form bones. It is also found in muscle, body fluids and soft tissue, such as the heart and kidneys. Magnesium helps change carbohydrates, proteins, and fats to energy. It is involved in muscle relaxation and contraction, as well as nerve transmission.

Magnesium helps prevent dental cavities by holding calcium in tooth enamel. It is needed to help prevent coronary artery disease and irregular heartbeats, or arrhythmias. It also helps to regulate body temperature. Because magnesium helps the body use calcium properly, getting enough magnesium after menopause helps promote healthy bones and avoid osteoporosis.

Author: Kimberly Tessmer, RD, LDReviewer: Jane Hemminger, RD, LDDate reviewed: 04/02/01

This article was last medically reviewed in 2001. Medical knowledge and treatments change. Use it as background, and talk to your doctor about your own situation.

When to get help

Reading is for later. These need care now.

Call 911 or go to an emergency department if you or someone with you has any of these:

  • Chest pain or pressureEspecially with breathlessness, sweating or pain in the arm, jaw or back. It can be a heart attack.
  • Face drooping, arm weakness, slurred speechSigns of a stroke. Note the time they started: treatment works best within hours.
  • Severe trouble breathingIncluding a severe allergic reaction with swelling of the lips, tongue or throat.
  • Thoughts of suicideCall or text 988 (Suicide & Crisis Lifeline, US) any time, day or night.

Outside the US, call your local emergency number.

See a doctor within days

  1. 01A new lump, or a sore that does not healMost lumps are harmless, but anything that grows or lasts more than a few weeks should be checked.
  2. 02Unexplained weight loss or lasting fatigueLosing weight without trying, or tiredness that does not lift, can have many causes worth finding.
  3. 03A new medicine and new symptomsSide effects and interactions are common. Ask your pharmacist or prescriber before you stop anything.

General guidance only. If you are unsure how urgent a symptom is, call your doctor or a nurse advice line.