Medically reviewed by Alex Yampolsky, PharmD Magnesium is needed for various body functions, including producing energy, bone ...