When taken within recommended doses, magnesium is safe for most people. However, excessive intake may cause diarrhea or stomach discomfort.