Skip to content

Music theory

How to find the key of a song by ear, from chords or with software

Find the note the song comes home to: hum along and hold the note that sounds finished, usually the last note of the chorus. Match it on an instrument. That note is the tonic. Then decide whether the song is major or minor by testing the note three or four frets above it. The tonic plus major or minor is the key.

Estimate the key with Key & BPM
Sattari Key & BPM showing C major, Camelot 8B and 120 BPM for a demo track

What a key actually is

A key is two things: a home note, called the tonic, and the scale of seven notes built on it. In the key of G major, G is home and the notes are G A B C D E F♯. The melody and chords wander away from G and return to it, and the return is what makes a phrase sound finished.

So finding the key is two questions. Which note is home? And is the scale built on it major or minor? Everything below is a way of answering one of those two.

Find the home note by ear

  1. Play the song and hum or sing along with the chorus. You do not need to sing well.
  2. Stop the music at the end of a section and hold the note that feels like the natural place to land. If the note you are holding feels like it wants to move somewhere else, slide to where it wants to go.
  3. Keep humming that note and find it on a guitar, a keyboard or a piano app. Move one fret or key at a time until the instrument and your voice match.
  4. Test it. Play that note low and let it ring while the song plays. If it sits comfortably under most of the song, especially the last chord, you have the tonic. If it clashes at the points where the song sounds most settled, try the note a fourth or fifth away, which are the most common wrong guesses.

The last chord of a song is the tonic chord most of the time, and the first chord often is. Neither is a rule. Plenty of songs start away from home, and some never land on it at all.

Decide whether it is major or minor

From the tonic, play the note four frets (four semitones) higher along with the song. Then try the note three frets higher. Only one of them will fit. If four fits, the key is major. If three fits, it is minor. That note is called the third, and it is the whole difference between a major and a minor key.

Do not judge by mood alone. Sad songs are written in major keys and upbeat songs in minor keys all the time.

Every major key has a relative minor that uses exactly the same seven notes, starting three semitones lower: C major and A minor, G major and E minor, and so on. This is the most common way to get a key wrong, for people and for software. The notes cannot tell them apart. Only the home note can. If the song rests on C, it is C major; if it rests on A, it is A minor.

Work it out from the chords

If you have the chords from a chart or by ear, the key is the one scale that contains them all. In any major key, the chords built on the first, fourth and fifth notes are major, the ones on the second, third and sixth are minor. Three major chords two and a half and three and a half steps apart, like G, C and D, point straight to one key.

KeyIIVVviRelative minor
C majorCFGAmA minor
G majorGCDEmE minor
D majorDGABmB minor
A majorADEF♯mF♯ minor
E majorEABC♯mC♯ minor
F majorFB♭CDmD minor
B♭ majorB♭E♭FGmG minor

A song using G, C, D and Em is in G major or E minor. Which one depends on where it rests. If you are reading chords from a guitar chart with a capo, the real key is higher than the chord shapes by one semitone per fret of capo: G shapes with a capo on the 2nd fret sound in A.

Read it from the key signature

Sheet music states the key at the start of every line as a group of sharps or flats. Each signature belongs to one major key and its relative minor. With sharps, the major key is one semitone above the last sharp. With flats, the major key is the second-to-last flat. One flat is F major.

SignatureMajor keyMinor key
No sharps or flatsC majorA minor
1 sharpG majorE minor
2 sharpsD majorB minor
3 sharpsA majorF♯ minor
4 sharpsE majorC♯ minor
5 sharpsB majorG♯ minor
6 sharpsF♯ majorD♯ minor
1 flatF majorD minor
2 flatsB♭ majorG minor
3 flatsE♭ majorC minor
4 flatsA♭ majorF minor
5 flatsD♭ majorB♭ minor
6 flatsG♭ majorE♭ minor

To choose between the major and the minor, look at the last note or chord of the piece, and look for a raised seventh: a minor-key piece often sharpens the note just below its tonic, such as G♯ appearing throughout a piece with no sharps in the signature, which points to A minor.

Use software, then check it

Key detection software measures how much of each of the twelve notes is in the recording and compares that to the pattern of each key. It is fast and works on songs you cannot play yet. It is also guessing, in the same places people do: it confuses a key with its relative major or minor, and with the keys a fifth above or below.

Sattari Key & BPM reports one key for the whole track, a second choice when the result was close, and a label saying whether the evidence was strong or tentative. Treat a tentative result as two candidates to test, not as an answer.

The test is the drone. Play the song and hold the suggested tonic underneath it. The right key sounds settled against that note through most of the song. The wrong one rubs. Key & BPM can play the drone for the detected key and for the second choice so you can compare them directly.

When there is no single answer

Some songs change key, often lifting a step for the final chorus. Find the key of each section separately. Software that reports one key per track will pick whichever section dominates.

Some songs use a mode: the notes of a major scale but with a different home note. A song with the notes of C major that rests on D is in D Dorian, and one that rests on G is in G Mixolydian. Tools will usually name the related major or minor key, which gives you the right notes but the wrong home.

Some recordings are not at standard pitch. Guitars tuned a half step down, tape that ran slightly fast, or deliberate pitch shifting can leave a song between two keys. If every note you try is a little off, tune your instrument to the recording, or accept the nearest key.

Songs also borrow chords from outside the key for colour. One or two outside chords do not change the key. The home note still decides.