A lot of people are unable to sleep and if you are one of those that find yourself tossing and turning during the middle of the night, trying over and over again to get to sleep, there might be a simple solution: sex.

Mache Seibel, M.D., the editor of My Menopause Magazine and professor at University of Massachusetts Medical School, says that sex is the “oldest tranquilizer in the world.” “The more sex you have, the more sleep you’ll get,” he says. “Sleep comes naturally when both body and mind are relaxed and free of stress. Once you’re rested and focusing on the pleasure of the moment, you’ll be hard pressed to keep thinking about all those random thoughts that were keeping your brain too active to fall asleep.”

Seibel adds: “During sexual activity, the oxytocin released with hugging, stimulation, and orgasm can increase feelings of calm and safety and cortisol levels drop; both are prerequisites for optimizing sleep. During orgasm, there is also an increased release of prolactin, which gives a heavy somnolence, helping you fall asleep faster and more efficiently.”

He also says to remember “S.O.S.” as a prescription for snoozing: stress, orgasm, sleep.

Here are some of his sex-to-sleep tips:

What do you think? Is the perfect solution?