Intravenous calcium, diuretics, or water pills may also be used to help the body get rid of excess magnesium. People with renal dysfunction or those who have had a severe magnesium overdose may require dialysis if they are experiencing kidney failure, or if magnesium levels are still rising after treatment.