Magnesium is needed by every cell of the body. Half the body's magnesium resources are stored in cells, tissues and organs; half are combined with calcium and phosphorus in bone. It is needed for more than 300 biochemical reactions in the body. It helps maintain normal muscle and nerve function, keeps heart rhythm steady, and bones strong. It is also involved in energy metabolism and protein synthesis.