How to find the key of a song: 3 methods and when each fails
Published
Find a song's key from its chords, by ear with the home-note test or with a free key finder for audio files, and avoid the relative major/minor trap.
There are three reliable ways to find the key of a song. From the chords: list every chord, find the key whose seven chords contain them all, and check which chord the song lands on. By ear: hum the note where the music feels at rest; that note is the tonic, and the key is named after it. From an audio file: drop your demo or a song file you own into the free song key and BPM finder, which estimates the key in your browser. Whichever you use, watch for the relative trap: C major and A minor share all seven notes, so the chords alone can’t tell them apart. The home note decides.
| Method | What you need | Best when | Fails when |
|---|---|---|---|
| From the chords | A chord sheet, or the chords you play | You already play the song | It borrows chords or changes key |
| By ear | Your voice and an instrument or a note finder | You only have the recording | The music never settles on one note |
| Key finder | An audio file (MP3, WAV, M4A or AAC) | You have your own demo or export | Relative keys, modal songs, key changes |
Method 1: find the key from the chords
Every major key builds seven chords on its scale, always with the same pattern of qualities: I ii iii IV V vi vii°. Uppercase numerals are major chords, lowercase are minor, and vii° is diminished (rare in pop). Here are the six keys guitarists meet most often:
| Key | Major chords (I, IV, V) | Minor chords (ii, iii, vi) | vii° | Relative minor |
|---|---|---|---|---|
| C | C, F, G | Dm, Em, Am | B° | A minor |
| G | G, C, D | Am, Bm, Em | F♯° | E minor |
| D | D, G, A | Em, F♯m, Bm | C♯° | B minor |
| A | A, D, E | Bm, C♯m, F♯m | G♯° | F♯ minor |
| E | E, A, B | F♯m, G♯m, C♯m | D♯° | C♯ minor |
| F | F, B♭, C | Gm, Am, Dm | E° | D minor |
The last column is the catch: each row is also the chord set of the minor key built on its vi chord, with exactly the same notes. If your song uses another key, you’ll find the notes, chords and signature of all 24 major and minor keys.
- Write down every chord in the song, once each. Strip the extras: Am7 counts as Am, Dsus4 as D, G/B as G.
- Find the row that contains all of them, or nearly all. One or two outsiders are normal; four or five mean you’re in the wrong row.
- Look for V→I. A major chord falling to the chord a fifth below it (D→G, A→D, E→A) is the strongest “arriving home” move there is. The chord it lands on is usually the tonic.
- Check the last chord and, less reliably, the first. Most songs end on the tonic; many start elsewhere.
Worked example: G major or E minor?
Here’s an original chord sheet, the kind you scribble for a new song:
Verse: Em C G D (x2)
Chorus: C D G Em
C D G
Outro: C D G
The chords are Em, C, G and D. Only the G row contains all four: C is out because its D chord is minor, and D is out because it has no C. But that row is also E minor, and the verse starts on Em. Tie-breakers: the chorus and the outro go D→G, which is V→I in G, and the song ends on G. Verdict: G major. The Em that opens the verse is the vi chord darkening it, not the key.
Hear it in the chord player. Both loops use notes of the same scale; only the chord they return to changes. G–C–D–G in G major lands on G after D, while Em–C–D–Em in E minor lands on Em. Hum along to each: you’ll settle on G in the first and on E in the second.
Chords outside the row don’t automatically mean a new key. A song in C often borrows Fm or B♭ from C minor, and minor-key songs usually make their fifth chord major (E instead of Em in A minor) because it pulls harder back home. Treat them as color while the rest fits one row. If you found a shape by trial and error and don’t know its name, mark the frets or keys in the chord finder.
Method 2: find the key by ear with the home-note test
The tonic is the note the music wants to come back to. You don’t need theory to hear it; you need to stop the song in the right place.
- Play the chorus and stop at the end of a phrase, ideally the last line of the song.
- Hum the note that feels finished, the one that would make a good last note. If unsure, hold one note through the whole chorus: the tonic rarely clashes and sounds like “the end” every time a phrase closes.
- Name the note. Find it on a keyboard or guitar string, or sing it into what note am I singing, which shows the note name while you hold it.
- Decide major or minor. Play the major and the minor chord on that note (A and Am, say) along with the chorus. The one that blends gives the key’s quality.
Try it on two short examples that use almost the same notes: the white keys of the piano, plus one G♯ in the E chord of the second.
What to listen for: after the count-in (0:00–0:02), a new chord every 2.5 seconds: C at about 0:02, G at 0:05, Am at 0:07 and F at 0:10, then the loop again from 0:12. The last F, from about 0:20, is left hanging. Hum the note that would finish the clip: it’s C. The Am sounds sadder, but the loop keeps pointing back to C.
What to listen for: a slower count-in (0:00–0:03), then a new chord about every 3.4 seconds: Am at 0:03, Dm at 0:07, Am at 0:10 and E at 0:14, and the loop again from 0:17. The final E, from about 0:27, leans hard toward Am: hum the note that resolves it and you’ll land on A. Nearly the same notes as the first clip, a different home. That’s the relative trap in one minute.
When it’s between a major key and its relative minor, four checks settle it:
- The last chord. G or Em?
- The chord before the arrival. D→G points to G major. B or B7→Em points to E minor; G major has Bm, never B.
- The home note you hummed.
- The melody’s last note, which usually sits on the tonic.
If you have sheet music: count the sharps or flats
The key signature at the start of each staff narrows it down to a major key and its relative minor. If you have never read one, start with how key signatures work.
- Sharps always come in the order F♯, C♯, G♯, D♯, A♯, E♯, B♯. Go up a half step from the last one: one sharp (F♯) is G major, three sharps (up to G♯) is A major.
- Flats come in the reverse order, B♭, E♭, A♭, D♭, G♭, C♭, F♭, and the second-to-last one names the key: three flats is E♭ major. One flat is F major; none at all is C major.
- Major or relative minor? Look at the final chord and bass note. One sharp and a final E minor chord means E minor.
| Key signature | Major key | Relative minor |
|---|---|---|
| None | C | A minor |
| 1♯ | G | E minor |
| 2♯ | D | B minor |
| 3♯ | A | F♯ minor |
| 4♯ | E | C♯ minor |
| 1♭ | F | D minor |
| 2♭ | B♭ | G minor |
Method 3: use a key finder on an audio file
When the song exists as a file, such as your own demo, an exported voice memo or a song file you own, the song key and BPM finder estimates the key in seconds. Choose an MP3, WAV, M4A or AAC file: the first four minutes are analyzed inside your browser, and the file is never uploaded. It can’t read YouTube or Spotify links; it needs the audio itself.
How a key finder works, in plain words
- It counts notes, not melodies. The audio is cut into short slices, and each slice into frequencies. Every frequency is filed under one of the 12 note names, whatever the octave. Added up, that gives 12 numbers, a chromagram or pitch class profile: how much C, how much C♯, and so on. This finder counts the bass register twice, because bass lines sit on chord roots.
- It compares that profile with 24 templates, one per major and minor key. The classic templates come from listening experiments by Carol Krumhansl and Edward Kessler (1982): listeners rated how well each note fit after a scale or chord, and the tonic scored highest, then the fifth and the third. This finder uses the profiles David Temperley proposed in 1999, and it also checks which chords appear and whether the song starts or ends on the tonic chord.
- The best match wins, and the runner-up is kept.
Other detectors work on the same idea: the documentation of Essentia, an open-source audio analysis library, describes a key algorithm that correlates a pitch class profile with key profiles and reports how much stronger the best estimate is than the second.
What confuses a key finder
- Relative keys. C major and A minor share their notes, so their profiles differ only in emphasis. It’s the most common wrong answer, and usually half right.
- Modal songs. A G–F–C loop that keeps coming back to G is G Mixolydian: G is home, but the notes are those of C major, so a finder may say C major. A Dm–G vamp (D Dorian) can come back as C major for the same reason.
- Key changes. The finder averages the whole file, so a last chorus that jumps from G to A splits the vote.
- No clear tonic. Drones, two-chord loops that never resolve and tracks that are mostly drums give the profile little to hold on to.
- Tuning. An instrument tuned well away from standard pitch smears each note between two names.
Why the page shows a second key
When the top two candidates score close together, the finder shows both instead of pretending to be sure. “or A minor (same notes)” means the runner-up is the relative key; “also possible: D major” means another key almost fits, often a sign of borrowed chords, a modal loop or a key change. Settle it with Method 2. The page also shows the tempo, with half and double values; what BPM means explains which one to keep.
Why the key matters when you write songs
- Capo. Knowing a song is in A tells a guitarist they can play G shapes with the capo on the 2nd fret. The capo chart gives the fret and shapes for all 12 keys.
- Your voice. Enter your range and the melody’s lowest and highest notes in what key should I sing in: it lists the keys that fit, with a capo position for each. The chord sheet maker then transposes the chords.
- A bridge in a related key. Every key has five close neighbors whose signatures are the same or differ by one sharp or flat: its relative, the keys on IV and V, and their relatives. For G major: E minor, C, D, A minor and B minor. A bridge that leans on Em, or treats D as a temporary home, sounds new without sounding lost. The bridge guide has seven ways to write one, and chord progressions for songwriting has loops to try in any key.
- Telling the band. “Key: G · 92 BPM · capo 2” at the top of the sheet saves the first minutes of every rehearsal; the lyric and chord sheet guide shows where it goes.
Where Zoundroom fits: the key and BPM in the song’s note
Once you know the key, write it where you’ll see it next time you pick up the song. In Zoundroom each song is a project that holds its recordings, lyrics, notes and files, so open the song’s note and put one line at the top, “Key: G major · 92 BPM · capo 2 (G shapes)”, above the lyric and the chords. Import the demo you just analyzed into the same project, or record a new take inside the note with the app on iOS or Android: the audio lands at the cursor, right under the chorus it belongs to. Anyone you invite to the project opens that note and knows the key, the tempo and the capo before pressing play. Zoundroom doesn’t detect keys or tempos and has no tuner; the key finder is a free tool that runs in your browser, and Zoundroom is where the answer stays with the song.
Frequently asked questions
Is the key of a song always its first chord?
No. Plenty of songs start on IV, V or vi, like the worked example above, which opens on Em in a song in G. The last chord is a better clue, and the chord the song lands on after V→I is the best one.
How do I find the key of a song on Spotify?
You can’t put a Spotify track into a key finder: the finder needs an audio file, and Spotify’s User Guidelines forbid copying, ripping or recording its content. Use your ear while it plays (hum the home note and name it with the note finder), or match the chords from a songbook against the table above.
How do I know if a song is major or minor?
Play the major and the minor chord on the home note along with the song and keep the one that blends. Then check the chord before the song resolves: a major chord a fifth above the tonic, such as B before Em, usually means minor. Don’t judge by mood alone; plenty of sad songs are in major.
What is a relative key?
A major and a minor key that share the same notes and key signature, with the minor tonic three half steps below the major one: C major and A minor, G major and E minor, F major and D minor. What differs is which chord sounds like home.
Can a song have two keys?
Yes. Many songs modulate, for example by raising the last chorus a whole step. Name the key of each section and write the change on the chord sheet (“Last chorus: A”). A key finder gives one blended answer per file, so check each section by ear or analyze a shorter export of each part.
Sources
- Robert Hutchinson, Music Theory for the 21st-Century Classroom, “7.2 Diatonic Chords in Major”: the quality pattern M-m-m-M-M-m-° of the triads in a major key. Checked September 27, 2026. musictheory.pugetsound.edu
- Robert Hutchinson, Music Theory for the 21st-Century Classroom, “2.3 Major Key Signatures”: a half step above the last sharp, and the second-to-last flat, give the major key. Checked September 27, 2026. musictheory.pugetsound.edu
- Robert Hutchinson, Music Theory for the 21st-Century Classroom, “3.2 Minor Key Signatures”: a relative minor shares the key signature of its major key, three half steps below it. Checked September 27, 2026. musictheory.pugetsound.edu
- Robert Hutchinson, Music Theory for the 21st-Century Classroom, “22.1 Modulation” and “22.3 Key Relationships”: modulation as a change of key, and the five closely related keys of any key. Checked September 27, 2026. musictheory.pugetsound.edu
- Open Music Theory, “Key signatures”: the order of sharps and, read backward, of flats. Checked September 27, 2026. openmusictheory.github.io
- Carol L. Krumhansl and Edward J. Kessler, “Tracing the dynamic changes in perceived tonal organization in a spatial representation of musical keys”, Psychological Review 89(4), 1982: the probe-tone ratings behind major and minor key profiles. Bibliographic record checked September 27, 2026. ovid.com
- David Temperley, “What’s Key for Key? The Krumhansl-Schmuckler Key-Finding Algorithm Reconsidered”, Music Perception 17(1), 1999: pitch-class distributions compared with a key profile for each key, and revised profile values. Checked September 27, 2026. online.ucpress.edu
- Essentia documentation, “Key”: key estimation by correlating a pitch class profile (HPCP) with key profiles, with the relative strength of the first and second estimates. Checked September 27, 2026. essentia.upf.edu
- Spotify, “Spotify User Guidelines”: copying, ripping and recording content from the service are not allowed. Checked September 27, 2026. spotify.com