Skip to content
EarChord

Song key finder

Drop a track and read its key. The chord progression comes with it, which is usually the fastest way to confirm the key is right.

How the key is worked out

The key comes from the same chromagram used for chord detection. Averaging pitch-class energy over the whole track produces a profile of how much each of the twelve notes is used, and that profile is compared against the 24 key profiles from the Krumhansl-Schmuckler experiments, which measured how strongly listeners associate each note with each key.

The best-matching key wins, and the confidence comes from how far ahead of the runner-up it is. A track that fits two keys almost equally well is genuinely ambiguous, not a failure of the measurement.

Relative keys and modulation

C major and A minor contain the same seven notes, so no method that counts pitch classes can fully separate them. What separates them is emphasis: which chord the music keeps returning to. If the reported key looks wrong, glance at the chord timeline - the chord that starts and ends sections is usually the tonic.

Only one key is reported for the whole track. A song that modulates for the last chorus gets the key it spends most of its time in, and the chord timeline is where you will see the change.

Checking the key from the chords yourself

Every major key has the same six triads available to it: three major chords on the first, fourth and fifth degrees and three minor chords on the second, third and sixth. In C major that is C, F and G plus Dm, Em and Am; in G major it is G, C and D plus Am, Bm and Em. If the chord list on the timeline fits inside one of those families, that is very likely the key, and the reported key should be the same family.

To tell a major key from its relative minor, look at where the song comes to rest. A song built on Am, F, C and G that keeps landing on Am at the end of sections is in A minor; the same four chords landing on C are in C major. In a minor key, a major chord on the fifth degree (E major in A minor) is a strong clue, because the natural minor scale would have made it minor.

Song key finder: questions

Why does it say A minor when I hear C major?
Those two keys use the same notes, so pitch-class evidence alone cannot separate them. Look at which chord the sections resolve to on the timeline; that is your tonic.
Does it detect modes like Dorian or Mixolydian?
Not as such. Modal music is reported as the major or minor key with the closest note content, which for a Mixolydian song is usually the major key a fifth below.