Learn Piano Game Play free
Home › Guides › Scales and keys › What is a key signature on the piano?

What is a key signature on the piano?

A key signature is the group of sharps or flats written at the start of each line of music, and it tells you which notes to play sharp or flat for the whole piece. It also hints at the key the music is in, so you know which scale it is built from.

If you have ever looked at sheet music and noticed little # or b symbols sitting next to the clef before the first note, you have found the key signature. It looks like a small detail, but it changes how you read every note that follows.

This guide explains what a key signature does, how to read one, and a few simple tricks for naming the key without memorizing a huge chart.

What a key signature does

A sharp raises a note to the very next key to the right, and a flat lowers it to the very next key to the left. Many pieces use the same few sharps or flats again and again. Instead of writing a sign beside every one of those notes, the composer writes them once at the start.

Two rules matter most:

If a note needs to be different from the signature, the composer writes a sign right next to it. That is called an accidental. An accidental only lasts until the end of that measure, then the key signature takes over again. A natural sign cancels a sharp or flat for the moment.

Why music has keys

Most simple songs are built from one scale. For example, a piece in G major mostly uses the notes of the G major scale, which has one sharp: F#. The key signature is a shortcut that lists the sharps or flats of that scale. The piece's "home note" is usually the first note of the scale, and music in that key tends to sound settled when it lands there.

That is why a key signature is useful for you as a player. If you see one sharp, you already know your hands will be working around G major (or its partner, E minor), and you can prepare before you play a single note.

Sharp key signatures

Sharps always appear in the same order: F, C, G, D, A, E, B. A common memory phrase is "Father Charles Goes Down And Ends Battle." Each new key adds the next sharp in the list.

Major keyNumber of sharpsSharps
C major0none
G major1F#
D major2F#, C#
A major3F#, C#, G#
E major4F#, C#, G#, D#
B major5F#, C#, G#, D#, A#

The pattern keeps going up to seven sharps, but these are the ones you will meet first.

Flat key signatures

Flats appear in the reverse order: B, E, A, D, G, C, F. That spells the word "BEAD" followed by G, C, F. A phrase works too: "Battle Ends And Down Goes Charles's Father."

Major keyNumber of flatsFlats
F major1Bb
Bb major2Bb, Eb
Eb major3Bb, Eb, Ab
Ab major4Bb, Eb, Ab, Db
Db major5Bb, Eb, Ab, Db, Gb

For a full list of scales you can match with these signatures, see the list of all major scales.

Two tricks for naming the key

You do not need to guess the key. These shortcuts work for major keys:

  1. Sharp keys: find the last sharp in the signature, then go up one half step. The last sharp in a three sharp signature is G#, and one half step above G# is A. So the key is A major.
  2. Flat keys: the key is the second to last flat. With three flats (Bb, Eb, Ab), the second to last is Eb, so the key is Eb major.

There are two things to remember. One flat (F major) has no second to last flat, so you simply learn that one. And no sharps or flats means C major (or A minor).

The minor key twist

Every key signature fits two keys: a major key and a minor key that share the same notes. They are called relative keys. The relative minor starts three half steps below the major key's home note. So no sharps or flats can mean C major or A minor, one sharp can mean G major or E minor, and one flat can mean F major or D minor.

To tell which one you are in, listen to the music and look at the first and last notes, which often point to the home note. In minor, the composer often adds an accidental that is not in the signature (such as a raised seventh note), which is another clue. Our guide to relative major and minor keys goes deeper.

How to practice reading key signatures

Keyfall, the free game at learnpianogame.com, can help with the playing side: every falling note shows its letter name, and Starter mode waits for you and shows which key to press. Use it for fun practice alongside your sheet music, not instead of learning to read it. A teacher can also check that your fingering and reading habits are sound.

Start with C, G, D, F and Bb. Those cover a large share of beginner music, and once the sharp and flat orders feel familiar, the other keys follow the same pattern.

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

How many key signatures are there?

There are 15 major key signatures (from seven flats to seven sharps, including none). Each is shared by one major and one minor key, though some pairs sound identical on the piano, such as F# major and Gb major.

Do I have to memorize all the key signatures?

Not at once. Learn the order of sharps and flats and the two naming tricks, then memorize the common keys as you meet them in your music.

What does it mean if there are no sharps or flats?

The piece is probably in C major or A minor, which use only the white keys. Check for accidentals and the home note to tell which.

Does a key signature affect every octave?

Yes. If F is sharp in the signature, every F on the keyboard is played as F sharp, no matter how high or low it is written.

How do I know if a song is major or minor?

Look at the signature for two possible keys, then check the final note and listen to the mood. Minor pieces often use extra accidentals that are not in the signature.

Can the key signature change in the middle of a piece?

Yes. A new signature may appear at the start of a later line or section, and it replaces the old one. Sometimes natural signs are shown to cancel the old sharps or flats.

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