Learn Piano Game Play free
Home › Guides › Scales and keys › How do you find the key of a piece of music?

How do you find the key of a piece of music?

Start with the key signature, which narrows the key to two options (a major key or its relative minor). Then check the last note and any extra sharps or flats to decide which one it is.

Every piece of music has a home note, called the tonic, that feels like the place the music wants to end. The key is built around that note. You can find it in a few minutes with three clues: the key signature, the ending, and the accidentals (sharps or flats that are not in the key signature). None of this needs perfect pitch or years of theory.

Step 1: Read the key signature

The key signature is the group of sharps or flats at the start of each line, right after the clef. It tells you which notes are sharp or flat all through the piece. Each signature fits exactly two keys: one major and one minor, called relative keys because they share the same notes.

Key signatureMajor keyRelative minor
No sharps or flatsC majorA minor
1 sharp (F sharp)G majorE minor
2 sharps (F, C)D majorB minor
3 sharps (F, C, G)A majorF sharp minor
4 sharps (F, C, G, D)E majorC sharp minor
1 flat (B flat)F majorD minor
2 flats (B, E)B flat majorG minor
3 flats (B, E, A)E flat majorC minor
4 flats (B, E, A, D)A flat majorF minor

You do not have to memorize the table. Two shortcuts work for every major key:

To get the relative minor, go down three half steps from the major key, or start on the sixth note of the major scale. From C major that lands on A, so A minor.

Step 2: Look at how the piece ends

Now you have two candidates, so you need to pick one. Look at the last note in the bass (the lowest line) and the final chord. Most pieces end on the tonic, so if the signature says C major or A minor and the piece ends on a long A, A minor is very likely.

The first note and first chord are also good hints, but less reliable. Many pieces start somewhere else on purpose.

Step 3: Check the accidentals

Minor keys leave a clue. In many minor pieces the seventh note of the scale is raised by a half step so the music pulls strongly to the tonic. This is the harmonic minor sound, and the raised note shows up as an accidental, not in the key signature.

So if a piece has no sharps or flats in the signature and you keep seeing G sharp, think A minor. If you see F sharp and C sharp in the signature and A sharp keeps appearing, think B minor. To hear how the raised notes change the scale, read natural, harmonic and melodic minor. You can also look at the notes of A minor next to its relative, C major.

A quick example: Fur Elise

Beethoven's Fur Elise has no sharps or flats in its signature, so it is C major or A minor. The melody keeps returning to A, G sharp shows up often, and the opening section ends on A. That all points to A minor. If you want to see those notes on a keyboard, Fur Elise is one of the public-domain songs in the free browser game Keyfall, where each falling note shows its letter name.

The step-by-step checklist

  1. Find the key signature and count the sharps or flats.
  2. Use the shortcut (or the table) to name the major key and its relative minor.
  3. Look at the last bass note and the last chord. Does it match the major key or the minor one?
  4. Scan for repeated accidentals. A raised seventh note suggests minor.
  5. Check the main chords. In a major key, the three most common are built on the first, fourth and fifth notes. In C major those are C, F and G.
  6. If two clues disagree, trust the ending and the chords over the first note.

When it gets tricky

Some pieces do not settle neatly. A piece can modulate, which means it moves to a new key partway through, often with new accidentals or a new key signature in the middle of the page. In that case, name the key for each section. Very short pieces, such as simple nursery rhymes, sometimes never leave the first few notes of the scale, so the ending is your best clue.

Some music also uses modes or scales that do not fit major or minor at all. Folk tunes and some older pieces are examples, and teachers may label them differently. If the home note does not feel major or minor, it might be one of the modes of the major scale.

Finally, listen. Play the note you think is the tonic, then sing or play the piece's melody. If your note sounds like the place everything resolves, you probably have it right. Reading and listening together will make this faster each time you try it.

More about scales and keys

Piano scales boring? Here is how to make them funWhat is the black key pentatonic scale on piano?What is the correct fingering for the C major scale on piano?What is the circle of fifths, and how do you use it on piano?Do You Really Need to Learn Scales for Piano?Which piano scales are easiest to learn first?How long does it take to learn all the piano scales?How long should you practice scales each day?

FAQ

What is the difference between a key and a key signature?

The key is the home note and scale a piece is built around. The key signature is the set of sharps or flats written at the start of the music that matches that key (and its relative minor).

How can I tell if a piece is major or minor?

Check the final chord and last bass note first, since most pieces end on the tonic. Then look for a raised seventh note appearing as an accidental, which is a common sign of minor.

Can two different keys have the same key signature?

Yes. Each major key shares its signature with a relative minor, for example C major and A minor. The ending, the chords and the accidentals show which one the piece is in.

Why does my piece have sharps that are not in the key signature?

Those are accidentals. They can come from a raised note in a minor key, a passing note, or a short move to another key. Repeated accidentals often hint at the real key.

What if the key signature changes in the middle of a piece?

The piece has moved to a new key, so apply the same steps to each section. Composers often return to the original key near the end.

Do I need to know the key to play a piece?

You can play without naming it, but knowing the key helps you predict which notes are sharp or flat and makes reading and fingering easier. Many players find it speeds up learning new pieces.

Practise it on your own piano. Keyfall is a free piano game: notes fall toward the keys and you play them on a digital piano, keyboard, phone or computer.

Play free