When you ask “what key is this song in?”, you’re really asking two things: which notes the music mostly uses, and which one sounds like home. A key is that home base: a tonic note that sounds like rest, and a scale of seven notes around it. In C major, C is home and the white keys carry most of the melody and harmony.
Software answers with a pitch-class profile. For audio, it measures how much energy each of the 12 pitch classes, C through B, carries across the song, regardless of octave. For MIDI, it adds up the notes directly, weighted by how long and how loud they are. Then it compares the profile with templates for all 24 major and minor keys and picks the closest match. This is the Krumhansl–Schmuckler method, named for the music psychologists behind it; the templates come from listening experiments.
MIDI gives cleaner input because there’s no guessing about which notes sound. Audio adds drums, noise, overtones and reverb to the picture, so the profile is fuzzier and the result is an estimate.
The Camelot wheel, BPM and harmonic mixing
The Camelot wheel arranges the 24 keys like a clock. Each hour, 1 to 12, holds a minor key (A) and its relative major (B): 8A is A minor, 8B is C major. It’s the circle of fifths renumbered for DJs: one step clockwise moves the tonic up a fifth, one step counterclockwise moves it down a fifth.
From 8A you can usually move to 7A or 9A, a fifth apart, or to 8B, the relative major, without the keys clashing. Jump across the wheel, say from 8A to 2A, and melodies and basslines start to fight.
Key is half of a mix; tempo is the other half. That’s why the result shows BPM next to the key: two tracks one step apart on the wheel and a few BPM apart usually blend with little pitch-shifting. If a tempo reads half or double what you hear, BPM Finder can correct it or let you tap along.
Treat Camelot codes as a starting point. Two tracks in compatible keys can still clash if their melodies sit on the same notes, and plenty of memorable transitions break the rule. Use the code to shortlist, then trust your ears.
Relative keys, modes and why key finders disagree
Every major key shares its notes with a minor key three half steps below: C major and A minor, G major and E minor. The notes are identical; only the home note changes. That’s why relative major/minor mix-ups are the most common key-finder disagreement. Listen for the chord the song resolves to at the end of a chorus. If it’s A minor, the song is in A minor, even if C major chords are everywhere.
Modal songs add another wrinkle. A Dorian groove in D uses the notes of C major but treats D as home, and a Mixolydian rock song in G uses those same notes with G as home. Most key finders, this one included, report the nearest major or minor key. Blues often lands between major and minor, because its dominant seventh chords and blue notes pull both ways.
Tools also use different templates, tuning references and analysis windows, and some weigh the bass line more heavily than others. When two key finders disagree, it’s usually between related keys: a relative major and minor, or two keys a fifth apart. Those are the two to check by ear.
Using the key: chords, transposing and soloing
Once you know the key, the scale and its chords follow. In C major the diatonic chords are C, Dm, Em, F, G, Am and B°. In A minor they’re Am, B°, C, Dm, Em, F and G, and many songs borrow E or E7 from the harmonic minor to strengthen the pull back home.
Singers can use the key to transpose: if a song in E major sits too high, try D or C. Guitarists can pick a scale for a solo, or a capo position that makes the chords easier. To see the chords a song actually uses, run it through Chord Finder; to change the key of a score or MIDI file, use Transpose Sheet Music.

