Technically called sphenopalatine ganglioneuralgia, ice cream headaches are related to migraines.
The pain of a brain freeze, also know as an ice cream headache, comes from your body’s natural reaction to cold. When your body senses cold, it was to conserve heat. One of the steps it takes to accomplish this is constricting the blood vessels near your skin. With less blood flowing near your skin, less heat is carried away from your core, keeping you warm.
The same thing happens when something really cold hits the back of your mouth. The blood vessels in your palate constrict rapidly. When the cold goes away (because you swallowed the ice cream or cold beverage), they rapidly dilate back to their normal state.
This is harmless, but a major facial nerve called the trigeminal lies close to your palate and this nerve interprets the constriction/dilation process as pain. The location of the trigeminal nerve can cause the pain to seem like its coming from your forehead. Doctors believe vessel constriction/dilation is the cause of the intense pain of a migraine headache.
Next time you’ve got brain freeze, you can think about the extra blood flowing through your brain!
One way to prevent brain freeze is to stop the cold food or drink touching the roof of your mouth. This means that your body won’t think that your brain is getting cold.
If migraines work in the same way, drugs that constrict blood flow could help to treat them.