If you’re regularly taking vitamin D, include foods rich in magnesium like almonds, spinach, pumpkin seeds, and avocados.