Diagnosis typically involves keeping a headache diary to track the timing of migraines in relation to the menstrual cycle. A healthcare provider may also perform a physical exam and review the patient's medical history. In some cases, additional tests like MRI or CT scans may be conducted to rule out other causes of headaches.