The experiment was not for the squirmish. Volunteers were made to itch like crazy on one arm, but not allowed to scratch. Then they were whisked into an M.R.I. scanner to see what parts of their brains lit up when they itched, when researchers scratched them and when they were finally allowed to scratch themselves.

The scientific question was this: Why does it feel so good to scratch an itch?

“It’s quite intriguing to see how many brain centers are activated,” said Dr. Gil Yosipovitch, chairman of dermatology at the Temple University School of Medicine and director of the Temple Center for Itch (he conducted the experiment while working at Wake Forest School of Medicine). “There is no one itch center. Everyone wants that target, but it doesn’t work in real life like that.”

Instead, itching and scratching engage brain areas involved not only in sensation, but also in mental processes that help explain why we love to scratch: motivation and reward, pleasure, craving and even addiction. What an itch turns on, a scratch turns off — and scratching oneself does it better than being scratched by someone else. The study results were published in December in the journal PLOS One.