It may be more about what's missing from the song than what's there.
Last month neuroscientists at Aarhus University in Denmark published a study showing that danceable grooves have just the right amount of gaps or breaks in the beats. Your brain wants to fill in those gaps with body movement, says the study's lead author, Maria Witek.
"Gaps in the rhythmic structure, gaps in the sort of underlying beat of the music — that sort of provides us with an opportunity to physically inhabit those gaps and fill in those gaps with our own bodies," she says.
A few years ago, Witek set out to figure out which songs got people onto the dance floor.
She created an online survey and gave people drum patterns to listen to. Some had really simple rhythms with regular beats. Others had extremely complex rhythms, with lots of gaps where you'd expect beats to be. Finally there were drumming patterns that fell in the middle of those two extremes. They have a regular, predictable beat, but also some pauses or gaps.
Witek says that people all over the world agreed on which drum patterns made them most want to dance: "Not the ones that have very little complexity and not the ones that had very, very high complexity," she says, "but the patterns that had a sort of a balance between predictability and complexity."
These rhythms offer enough regularity so that we can perceive the underlying beat, Witek and her team reported in the journal PLOS ONE. But they also need enough gaps or breaks to invite participants to synchronize to the music.
Jelle van de WallYouTube
So which popular songs on the radio today have this optimal amount of complexity?
"I think the recent single by Pharrell, 'Happy,' is a very good example," Witek says.
The song is layered with predictable beats and complex, syncopated ones. The drums, the piano, the clapping and even Pharrell's voice create inviting gaps, she says.
But Pharrell isn't the only one who knows about this trick. Classic dance tunes in disco, funk, hip-hop and rhythm and blues also hit this sweet spot of syncopation, Witek says.
"Michael Jackson, Stevie Wonder — those guys have a lot of tracks which seem to have this balance between predictability and complexity when it comes to the rhythmic structure," she says.
And don't forget about Ray Charles. His 1950s hit "I've Got a Woman" made everybody want to hit the dance floor.
But it's not just a song's syncopation that gets you to go from tapping your foot in your chair to standing up and full-out dancing. It's also the song's layers of rhythm, says neuroscientist Daniel Levitin at McGill University.
"In 'I've Got a Woman,' the drums are keeping a very steady rhythm. The piano is syncopated and the vocals are exquisitely nuanced in time," Levitin says. "It's very difficult to sing along with him [Ray Charles] exactly the way he does it."
So we don't sing with Charles. Instead we want to move with him.
"The more rhythmically complex the music is ... the easier it is to engage different body parts," Levitin says, "because they can be synchronizing with different aspects of the music."
So you're swinging your shoulders with the snare drums. You're bobbing your head with the piano. "And you might be wiggling your hips in half-time or something like that," he says.
Before you know it, you're up out of your chair and doing the twist.