Is Sex Good for Headaches or Can It Cause Them?

Sex can relieve headaches for a meaningful number of people, particularly migraine sufferers. In one observational study of migraine patients who had sex during an attack, 60% reported improvement, and 70% of those experienced moderate to complete relief. The effect is real, backed by plausible biology, but it doesn’t work for everyone, and for some people sex actually makes headaches worse.

Why Sex Can Relieve Pain

During sexual arousal and especially at orgasm, your brain releases a surge of endorphins, which are your body’s natural painkillers. These chemicals act on the same receptors as opioid medications, dulling pain signals and producing feelings of euphoria. At the same time, your body floods with oxytocin, which boosts endorphin levels further and reduces anxiety by calming fear responses in the brain. Together, these chemicals create a temporary but potent analgesic effect.

The pain-relieving boost from these hormones doesn’t require a partner. The key research on this topic encompasses all sexual activity, including masturbation. One case report published in Neurology Asia specifically documented masturbation and orgasm as an effective migraine treatment for a patient who used it repeatedly with consistent results.

Migraines vs. Cluster Headaches

The type of headache you have changes the odds of sex helping. For migraines, the data is more encouraging. Among migraine patients who tried sexual activity during an attack, 60% improved, and relief appears to come from the endorphin release that builds throughout arousal and peaks at climax. About a third of those patients reported that sex made things worse, so it’s not a guaranteed remedy.

Cluster headaches tell a different story. Only 37% of cluster headache patients who had sex during an attack reported improvement, while 50% said it made their headache worse. The odds are essentially a coin flip toward worsening. However, among the smaller group who did improve, the relief tended to be dramatic: 91% of them experienced moderate to complete relief. For cluster headaches, orgasm specifically seems to matter. Researchers have theorized that orgasm may stimulate the same deep brain area targeted by medical devices used to treat cluster headaches.

Does Orgasm Matter?

For migraines, the endorphin release that builds during arousal likely contributes to pain relief even before climax. But for cluster headaches, reaching orgasm appears to be the critical factor. This distinction matters practically: if you’re dealing with a migraine, even partial sexual activity may offer some benefit. With a cluster headache, the evidence points more narrowly toward climax as the mechanism of relief.

Gender Differences in Relief

Men and women don’t appear to benefit equally, at least in terms of how often they use sex as a headache strategy. Among migraine patients who found relief through sexual activity, over a third of men went on to use it as a regular tool for managing attacks, compared to about 14% of women. Whether this reflects a genuine biological difference in effectiveness or simply differences in willingness to try it during a painful episode isn’t fully clear from the data.

When Sex Causes Headaches Instead

For some people, sex is the trigger rather than the cure. Sex headaches are a recognized condition that comes in two forms: a dull ache in the head and neck that builds alongside arousal, or a sudden, severe, throbbing headache that strikes just before or at the moment of orgasm. Some people experience both types together.

Most sex headaches last at least several minutes, but some linger for hours or even two to three days. They tend to appear in clusters over a period of about six months, then disappear for a year or more. They’re four times more common in men and typically first show up around age 40. Some people only ever have a single episode.

These headaches are usually harmless on their own. But a sex headache accompanied by loss of consciousness, vomiting, a stiff neck, or severe pain lasting more than 24 hours can signal something more serious and warrants medical attention.

Practical Takeaways

If you get migraines, there’s roughly a 60% chance that sexual activity during an attack will help, with most of those experiencing meaningful relief. That’s a better success rate than many people expect, and it’s driven by the same brain chemistry that makes painkillers work. If you get cluster headaches, the odds are lower and the risk of worsening is higher, but the payoff for those it helps tends to be substantial.

The relief is temporary, tied to the duration of the hormonal surge rather than any lasting change in headache patterns. It won’t replace other management strategies for chronic headaches, but as a drug-free option during an acute attack, the evidence supports giving it a try, particularly for migraines. The main caveat: about a third of migraine sufferers and half of cluster headache sufferers find that sex makes the pain worse, so your own experience will be the best guide.