According to a new study, researchers have found that sex is a better way of partially or completely getting rid of headaches than painkillers.

Headaches can no longer be used as an excuse for not having sex. In fact, sex has been found to be an effective cure for splitting headaches. In a study, researchers from the University of Munster in Germany, have found that sexual activities could help people, especially those with migraine to get "partial or complete relief" for headaches.

During the study, researchers found that people who suffered from migraine and had sex during an episode of attack saw immediate improvement in symptoms and 20 in a hundred people reported no pain at all after having sex.

The study, which was published in Cephalalgia, the journal of the International Headache Society, also noted that many males who are migraine suffers use "sexual activity as a therapeutic tool."

Researchers explained that while having sex the body releases a brain chemical, scientifically known as endorphins, which work as a natural painkiller.

"The majority of patients with migraine or cluster headache do not have sexual activity during headache attacks," the Telegraph quoted the authors of the study as saying. "Our data suggest, however, that sexual activity can lead to partial or complete relief of headache in some migraine and a few cluster headache patients. Our results show that sexual activity during a migraine attack might relieve or even stop an attack in some cases, and that sexual activity in the presence of headache is not an unusual behavior."

For the study, anonymous questionnaires to 800 random migraine patients and 200 similar cluster headache sufferers were sent out. These questionnaires mainly contained questions on experiences with sexual activity during a headache attack and how sex influenced headache intensity.

The results of the study showed that 34 percent of migraine sufferers and 31 percent of patients with cluster headaches engaged in sexual activity during an attack. While 60 percent of these participants reported an "improvement of their migraine attack", 37 percent reported an "improvement of their cluster headache attack."

"The majority of patients with migraine or cluster headache do not have sexual activity during headache attacks," researchers wrote in the study. "Our data suggest, however, that sexual activity can lead to partial or complete relief of headache in some migraine and a few cluster headache patients."