Low magnesium levels can deplete your energy. Magnesium can also increase the quality of your sleep helping you feel rested and energized. Leafy green vegetables, legumes, beans, nuts and whole grains are high in magnesium. Some conditions can deplete magnesium such as diabetes, irritable bowel syndrome or celiac disease. If you have one of these conditions, consult your doctor about magnesium supplements.