Getting rid of muscle cramps. You need magnesium. Dried fruits (dates, figs, apricots) are ideal for active people. Eat more vegetables, especially dark leafy greens like broccoli and kale, almonds, and raw chocolate (raw cacao) all of which are high in both calcium and magnesium.