Magnesium is found in a wide range of foods, especially green vegetables, grains, nuts, legumes and chocolate. However, the bad news is that it can be difficult to get an adequate supply of magnesium from your diet.