Migraines are no fun, but there may be an easy way to treat it, and all you have to do (if you live in the right state) is pop on down to the local dispensary.

A new study published in the journal Brain Sciencessays the majority of people using cannabis to ease their migraines could benefit from smoking a little reefer.

The study, called “Migraine Frequency Decrease Following Prolonged Medical Cannabis Treatment: A Cross-Sectional Study,” finds pretty much exactly what it sounds like. Out of 145 migraine patients aged 34 to 54 who participated in the study, 61% said they saw a reduction of monthly migraines of 50% or more.

And that’s not all. Participants also reported lower disability from migraines, an overall lower impact from their migraine attacks, better sleep quality and lower intake of opioids and triptans than subjects who didn’t use cannabis treatment.

“These findings indicate that MC [medical cannabis] results in long-term reduction of migraine frequency in [more than] 60% of treated patients and is associated with less disability and lower antimigraine medication intake,” the authors of the study wrote, as reported by High Times.

That’s good news for sufferers of migraines, who make up 12% of the U.S. population including 18% of American women.

Researchers believe the effect of cannabis use on migraine attacks is related to its relationship with serotonin in the body, writing, “migraine is classified as a pain condition. Mechanistically, endocannabinoids have been shown to have an inhibitory effect on serotonin receptors in vivo, which is shown to modulate pain and emetic responses.”

In other words, weed can suppress your pain response, which is the same reason it is shown to be used as an opioid substitutein people suffering from chronic pain.

Photo via Flickr/Jose Navarro