Because magnesium deficiency affects every part of your body, low-level symptoms can be widespread and confusing. Depression, insomnia, anxiety, nervousness, mood swings, and weight gain are some of the symptoms. Get your nutrients tested periodically for correct diagnosis and medication.