Tap a steady beat with your left hand. With your right, tap three times in the same stretch of time. Your hands will fight, and for a moment it feels impossible. Then it clicks, and you are playing one of the oldest tricks in music: two rhythms at once that never agree.

Two clocks, one bar

Take one bar of music and cut it into 2 equal steps. Now cut the same bar into 3 equal steps. Played together, the two sets of hits start on the same instant, then drift apart: the 2-clock ticks at one half, the 3-clock at one third and two thirds. They do not meet again until the bar restarts. That pairing is called three against two, or a 3:2 polyrhythm.

Try it below. The two rings turn together: coral dots are one rhythm, teal dots the other. Press play, and change the numbers.

Sound needs a tap on Play first (browsers block autoplay). Sliders work silently too.

The hidden grid

Why do the two rhythms feel so alien to each other? Because they need a ruler with finer marks than either of them. To write 3:2 down at all you chop the bar into 6 equal slots, the smallest number that both 2 and 3 divide into. The 3-rhythm lands on slots 0, 2 and 4. The 2-rhythm lands on slots 0 and 3. Only slot 0 is shared.

Count the distinct sounds you actually hear: slots 0, 2, 3 and 4. That is four hits in an uneven pattern, long, short, short, long-ish. Teachers give it a mouth-shape such as "nice cup of tea", and once your tongue knows it, your two hands can follow. The grid under the rings in the toy above rebuilds this for any pair you choose.

The rule is simple. For two rhythms of a and b hits, the grid has as many slots as the least common multiple of a and b. For 4:3 that is 12 slots, and the two rhythms share only the first. If a and b have a common factor, as in 4:2, they share more slots and the pattern is much less tense. Try 4:2 with the buttons: everything the 2-rhythm plays is also played by the 4-rhythm.

A rhythm that is a fight on purpose

Cross-rhythm is the name for this kind of fight when it drives an entire piece, not just a flourish. Ethnomusicologist A.M. Jones coined the term in 1934, and 3:2 is often called the most significant rhythmic cell in sub-Saharan music. In a typical setup, the dancers step the two main beats while the drums spin the three.

It travelled. Mongo SantamarĂ­a's 1959 "Afro Blue" is built on a 3:2 bass pattern, and John Coltrane's 1963 version turns it upside down, with a swung waltz underneath. Classical pianists meet 4:3 in Chopin's Fantaisie-Impromptu, where groups of four are laid against groups of three through the outer sections.

Try this

Set 3:2 and press play. Follow only the coral hits for a few bars, then only the teal. Now try to hold both. Next set 4:3 and notice how long the pattern takes to come back round: the playhead must travel the whole ring before the dots line up again. Last, slide both to the same number, say 5:5. The two rings collapse into one rhythm, because nothing is left to disagree about.

That is the whole secret. A polyrhythm is not clever notation or a drummer's trick. It is two perfectly regular clocks, each easy on its own, that share only a starting line. The surprise lies in how long the grid between them has to be.