Adequate levels of magnesium are essential for the absorption and metabolism of calcium and vitamin D. Magnesium neutralizes acid, which helps balance your bodyís chemistry when you take calcium to avoid some of the associated side effects of calcium supplements.