Calcium and magnesium contribute to normal energy-yielding metabolism as well as to normal muscle function. Calcium is also needed for the maintenance of normal bones, while magnesium contributes to normal functioning of the nervous system and to normal protein synthesis.