Disclosed are magnesium-containing oxytocin peptide formulations or compositions comprising an oxytocin peptide and a magnesium salt that produces synergistic analgesia when used in treating pain. Also disclosed are methods for the treatment of pain (such as migraine headache) comprising co-administration of an oxytocin peptide and a magnesium salt.