Learn to read · 5 min read

How to Find the Key of a Song, by Ear, from the Chords or Online

Find the key of any song by ear with the home-note test, from its chords, from the key signature or with a free key finder, and tell major from minor.

By Audio2MIDI.org

On this page
  1. 01What "the key of a song" means
  2. 02Method 1: By ear, with the home-note test
  3. 03Method 2: From the chords
  4. 04Method 3: From sheet music
  5. 05Method 4: With a key finder
  6. 06Camelot codes, for DJs
  7. 07When the answer isn't simple
  8. 08Common mistakes
  9. 09Questions people ask

The key of a song is the note it treats as home, plus whether it sounds major or minor. Knowing it lets you play along, transpose for a singer, pick the right capo or harmonica, or mix two tracks without a clash.

You don't need perfect pitch to find it. This guide covers four ways, from humming to sheet music to a free key finder, and the cases where the answer isn't simple.

What "the key of a song" means

A key has two parts:

  • The tonic, the home note. Music feels finished when it lands there.
  • The scale, usually major or minor, which decides the other notes the song uses and its mood.

There are 12 possible home notes and two common scales, so 24 keys. Each major key shares all seven notes with one minor key, its relative minor. C major and A minor use exactly the same white keys on a piano; only the home note is different.

CDEFGABC
C major: the home note is C. Tap a note to hear it.
ABCDEFGA
A minor: the same notes, but A is home. Tap a note to hear it.

That's why "which notes does the song use?" isn't enough on its own. The question is which note feels like home.

Method 1: By ear, with the home-note test

  1. 1

    Listen to an ending

    Play the end of a chorus, or the very end of the song. Pause on the last chord.

  2. 2

    Hum the home note

    Hum the note that feels like the music has arrived, the one you could hold forever without the song wanting to move on. Most people can do this even without training.

  3. 3

    Name the note

    Find the note you're humming on a keyboard or guitar, or sing it into the free Pitch Detector, which shows its name.

  4. 4

    Major or minor?

    Play the chord built on that note in both versions, for example A major and A minor, along with the song. One will fit; the other will clash.

Method 2: From the chords

If you know the chords, for example from a chord chart, the key is usually easy to work out. In a major key, three chords are major, three are minor and one is diminished, always in the same order:

DegreeIiiiiiIVVvivii°
C majorCDmEmFGAmB°
G majorGAmBmCDEmF♯°
D majorDEmF♯mGABmC♯°
F majorFGmAmB♭CDmE°

A song using C, F, G and Am is in C major, or in A minor if Am feels like home. Clues that help:

  • The first and last chord are very often the tonic.
  • Major songs lean on the I, IV and V chords. Minor songs lean on i, iv and v, and often borrow a major V (E major in A minor) because it pulls so strongly back home.
  • One odd chord doesn't change the key. Songs often borrow a chord from outside it.

The free Chord Finder can name the chords in a recording if you don't know them, and the circle of fifths shows which chords belong to each key.

Method 3: From sheet music

The sharps or flats at the start of each line, the key signature, narrow the key to two options: a major key and its relative minor. One sharp means G major or E minor; two flats mean B♭ major or G minor. Our guide to reading sheet music has the full key signature chart.

To decide between the two:

  • Look at the last note in the bass. Pieces almost always end on the tonic.
  • Look for a raised seventh. Minor-key music often sharpens the seventh note: G♯ in A minor, D♯ in E minor. A key signature with no sharps or flats plus lots of G♯s points to A minor.

Method 4: With a key finder

A key finder listens to the whole file, measures which notes the music leans on, and compares that with all 24 keys. It's quick, and it's a good check on your ear.

MIDI files give the most reliable result, because the finder can count the actual notes instead of estimating them from the sound.

Camelot codes, for DJs

DJs often use Camelot codes instead of key names. Each key gets a number from 1 to 12 and a letter: B for major, A for minor. Keys with the same number are relatives and share notes (8B is C major, 8A is A minor), and keys one number apart are a fifth apart. Mixing between matching or neighboring codes usually sounds smooth. The Camelot wheel lays all 24 out.

When the answer isn't simple

  • Key changes. Many songs move up a half step or a whole step for the final chorus, or use another key for the bridge. Check sections separately.
  • Modal songs. Some songs use a mode rather than plain major or minor. The traditional "Scarborough Fair" is in Dorian (minor with a raised sixth); the fiddle tune "Old Joe Clark" is Mixolydian (major with a lowered seventh). Key finders report the nearest major or minor key.
  • Blues and rock. Songs built on dominant seventh chords (I7, IV7, V7) are named after the I chord, even though the melody bends between major and minor.
  • Detuned recordings. Bands sometimes tune down a half step, so a song played with E shapes sounds in E♭. Older recordings can also run slightly fast or slow. Trust what you hear, not the chord shapes.

Common mistakes

  • Taking the first chord as the key every time. It's a good guess, not a rule. The ending is a better clue.
  • Confusing relative keys. C major and A minor share every note; the home note decides.
  • Forgetting the capo. "Capo 3, G shapes" means the song sounds in B♭.
  • Over-trusting a single result. If a key finder and your ear disagree, check the second-most-likely key; it's often the relative major or minor.

With a little practice, the home-note test takes seconds. Use the chords and the key finder to confirm it, and you'll rarely be wrong.

FAQ

Questions people ask

Listen to the end of a chorus and hum the note that sounds like home, where the melody wants to stop. Find that note on an instrument or with a pitch detector; that is the key’s home note. Then decide whether the song sounds major or minor. A key finder does the same estimate from the audio file in seconds.

Play or hum the home note and listen to the chord built on it: a bright, settled chord means major; a darker, sadder one means minor. In the chords, a major key centers on a major chord and a minor key on a minor chord. A major key and its relative minor share the same notes, so the home note decides which one it is.

Yes. Many songs change key, often moving up a half step or a whole step for the last chorus. Others use a different key for the bridge. A key finder reports the key that dominates the file, so check the sections separately if the song modulates.

A capo changes the sounding key, not the shapes you play. With a capo on the second fret, G-shape chords sound in A major. A tab that says “capo 2, key of G” means the song sounds in A.

They are good at clear major and minor songs and on MIDI files, where the notes are exact. They struggle with relative major and minor pairs, modal songs, songs that change key and heavily detuned recordings. Treat the result as a strong suggestion, and check the second-most-likely key the finder offers.

Camelot codes number the 24 keys for DJs. B means major and A means minor, and keys with the same number share notes: 8B is C major and 8A is A minor. Keys one number apart, such as 8B and 9B, are a fifth apart and usually mix smoothly.

Try Song Key Finder on your own file

Free in your browser, no account needed.