We’ve all been there — that sudden, stabbing pain in your head after eating ice cream or sipping a frozen drink too fast. It’s quick, intense, and oddly universal. Known as “brain freeze,” this fleeting headache is officially called sphenopalatine ganglioneuralgia. Though it sounds complicated, the reason behind brain freeze is surprisingly simple — it’s your body’s way of reacting to a rapid temperature change inside your mouth.

When you take in something very cold, it touches the roof of your mouth (the palate), an area filled with sensitive blood vessels and nerves. The sudden chill causes those blood vessels to constrict, or narrow. Then, as your mouth warms back up, the vessels quickly expand again. This rapid contraction and dilation trigger pain signals that travel along the trigeminal nerve — a major nerve responsible for sensations in your face. Because that nerve also connects to your forehead, your brain interprets the pain as coming from your head rather than your mouth. That’s why it feels like an instant, piercing headache centered behind your eyes or forehead.

Interestingly, scientists view brain freeze as a useful tool for understanding headaches in general. The same nerve pathways and blood vessel reactions involved in brain freeze can also play a role in migraines and cluster headaches. By studying how brain freeze occurs, researchers can gain insight into how to manage or even prevent other forms of head pain.

So, why does brain freeze go away so quickly? As soon as the temperature inside your mouth returns to normal, the blood vessels stabilize and the pain disappears — usually within 20 to 30 seconds. You can speed up the process by pressing your tongue or thumb against the roof of your mouth, which helps warm the area faster. Drinking something room temperature can also help ease the sensation.

In a way, brain freeze is your body’s overreaction to an extreme — a safety mechanism to warn you that something is too cold too fast. While it’s completely harmless, it’s a reminder that even a simple pleasure like ice cream can set off a surprisingly complex chain reaction in your nervous system. Next time you feel that sudden chill in your skull, you’ll know exactly what’s happening — and that science is behind every bite.