[header] How to get magnesium from food [title] Eat fruit rich in magnesium. [step] Tamarind and prickly pear are the fruits with the highest content of this nutrient. One fresh prickly pear contains 88 mg of magnesium. 
½ cup of tamarind contains 58 mg. A medium sized banana, for comparison, provides only 32 mg of magnesium.