Although sex headaches can occur at any point during sexual activity, the two types actually have different causes. When necessary, doctors may prescribe a nonsteroidal anti-inflammatory drug NSAID called indomethacin that can reduce pain. Suggested prevention methods include losing weight, increasing exercise, and taking a more passive role during sexual intercourse. What causes a sex headache? Prevention Sometimes sex headaches can be prevented by stopping sexual activity before orgasm. Or you might have what's considered an orgasmic headache, which is more like a "sudden explosive headache" that hits right at the moment that you reach orgasm. The patients participated in interviews regarding their headaches and described certain aspects of the condition, such as frequency of occurrence, symptoms of distress, etc. And the sooner you mention it, the sooner you can get back to more fun activities — like having orgasms. If sexual headaches occur during partnered intercourse , open and honest communication between partners can help ensure a more comfortable and positive experience for all involved. Movement makes orgasm headaches worse. However, there is a higher chance of incidence if one is tired, stressed, or engaging in sexual intercourse several times in rapid succession. Doctors aren't exactly sure, but one theory is that sex is similar to physical exertion , which can cause the blood vessels in your skull to dilate and lead to a headache. Assuming that there's nothing more major causing your sex headaches, your doctor may prescribe a beta blocker to prevent them from coming on, according to the Mayo Clinic. Some doctors recommend that you stop having sex before you orgasm , or chill out and be more passive, but that's not always necessary, says Rachel Needle , PsyD, a licensed psychologist and director of Modern Sex Therapy Institutes. Treatment Fortunately, most sexual headaches tend to disappear on their own over time.