Magnesium for Erectile Dysfunction: Your Complete Guide. If your erectile dysfunction stems from any kind of circulatory problem, ranging from hardened arteries to high blood pressure, magnesium is very likely a win. . If your ED is caused by low testosterone, magnesium can help address that as well.