This study aimed to evaluate the relationship between migraine, tension-type headache (TTH), and magnesium (Mg) in order to shed light on possible treatment and prophylaxis options. The file registration information of patients under the age of 18 who presented with headache complaints and were diagnosed with migraine and TTH according to the International Classification of Headache Disorders Criteria was retrospectively scanned. A total of 156 patients, 93 (60%) female and 63 (40%) male, were included in the study. No difference was detected between the Mg, vitamin D, and calcium levels of the migraine group, TTH group, and control group. We think that our study is important for investigating the relationship between migraine, tension headache, Mg, calcium, and vitamin D. It needs to be supported by more clinical and laboratory studies, to enable new treatment perspectives.