Key Signatures

A key signature is the group of sharps or flats written at the start of every staff, right after the clef. It tells you which notes are sharp or flat all the way through the music, and which key the music is in: one major key, or its relative minor.

By Dan Vrancic, music theory teacher · Reviewed October 2026

Key signature chart

There are 15 major key signatures: C major with none, seven with sharps and seven with flats. Every signature is shared by a major key and its relative minor, so the same 15 signatures cover 30 keys.

Sharp keys

  • C major

    A minor · no sharps or flats

  • G major

    E minor · 1 sharp

  • D major

    B minor · 2 sharps

  • A major

    F♯ minor · 3 sharps

  • E major

    C♯ minor · 4 sharps

  • B major

    G♯ minor · 5 sharps

  • F♯ major

    D♯ minor · 6 sharps

  • C♯ major

    A♯ minor · 7 sharps

Flat keys

  • F major

    D minor · 1 flat

  • B♭ major

    G minor · 2 flats

  • E♭ major

    C minor · 3 flats

  • A♭ major

    F minor · 4 flats

  • D♭ major

    B♭ minor · 5 flats

  • G♭ major

    E♭ minor · 6 flats

  • C♭ major

    A♭ minor · 7 flats

SharpsMajor keyRelative minor
0C majorA minor
1G majorE minor
2D majorB minor
3A majorF♯ minor
4E majorC♯ minor
5B majorG♯ minor
6F♯ majorD♯ minor
7C♯ majorA♯ minor
FlatsMajor keyRelative minor
1F majorD minor
2B♭ majorG minor
3E♭ majorC minor
4A♭ majorF minor
5D♭ majorB♭ minor
6G♭ majorE♭ minor
7C♭ majorA♭ minor

Three pairs of keys sound the same but are spelled differently: B and C♭, F♯ and G♭, C♯ and D♭. These are enharmonic keys.

The order of sharps and flats

Sharps are always added in one fixed order, and flats in the reverse of that order. A signature with three sharps always has the first three sharps, never any others.

Order of sharps

  1. FFather
  2. CCharles
  3. GGoes
  4. DDown
  5. AAnd
  6. EEnds
  7. BBattles

Order of flats

  1. BBattles
  2. EEnd
  3. AAnd
  4. DDown
  5. GGoes
  6. CCharles’
  7. FFather

The circle of fifths

Put the keys in order by their signatures and they form the circle of fifths. Start at C major, with no sharps or flats. Each step up a perfect 5th (C, G, D, A, E, B, F♯, C♯) adds one sharp. Each step the other way, down a 5th (C, F, B♭, E♭, A♭, D♭, G♭, C♭), adds one flat. The sharps and flats join at the bottom, where B and C♭, F♯ and G♭, and C♯ and D♭ sound the same.

See it built step by step, pick any key and hear its scale, and print a chart in our interactive circle of fifths.

How to identify a key signature

You do not need to memorize the chart. Two short rules name the major key of almost any signature.

  1. Sharps: last sharp, up a semitone

    Find the last sharp in the signature and go up to the next letter name. Three sharps end on G♯; the next letter up is A, so the key is A major.
  2. Flats: the second-to-last flat

    The second-to-last flat is the name of the key, flat included. Four flats end B♭, E♭, A♭, D♭; the second-to-last is A♭, so the key is A♭ major.
  3. Learn two by heart

    No sharps or flats is C major. One flat has no second-to-last flat, so learn it: F major.

Sharps

A major: 3 sharps

The last sharp is G♯. One letter up is A.

Flats

A♭ major: 4 flats

The second-to-last flat is A♭.

To go the other way, from a key to its signature, use the same rules backwards. How many sharps in E major? E has to be one letter above the last sharp, so the last sharp is D♯: F♯, C♯, G♯, D♯. That is four sharps.

Try it: name the key

Question 1 of 6

Which major key has this signature?

Major or minor?

A signature on its own cannot tell you whether a piece is in the major key or its relative minor. Look at the music instead:

  • The raised 7th. Minor keys usually raise their 7th note with an accidental. A piece with one sharp and frequent D♯s is probably in E minor, not G major.
  • First and last notes. Melodies and pieces tend to begin and end on the tonic, the note the key is named after.

The relative minor's tonic is always three semitones (a minor third) below the major key's tonic: G major and E minor share one sharp.

See it step by step

The interactive explainer from Lesson 9, with sound. Step through it at your own pace.

Practice online

Endless free questions with instant feedback, no sign-up needed.

Practice on paper

Free printable worksheets on this topic, each with an answer key.

Key signature worksheets with answer keys

Key Signature Cheat Sheet

All 15 key signatures with their major and relative minor keys, the order of sharps and flats, and the two shortcuts that name any key. One printable page, free.

Open the cheat sheet

Questions about key signatures

How many key signatures are there?
There are 15 major key signatures: C major with no sharps or flats, seven with sharps (G, D, A, E, B, F♯, C♯) and seven with flats (F, B♭, E♭, A♭, D♭, G♭, C♭). Each one is shared by a relative minor key, so 15 signatures cover 30 keys.
Which key has no sharps or flats?
C major, and its relative minor, A minor.
What is the order of sharps?
F, C, G, D, A, E, B. A common way to remember it is “Father Charles Goes Down And Ends Battles.” A key signature with three sharps always has the first three: F♯, C♯ and G♯.
What is the order of flats?
B, E, A, D, G, C, F: the order of sharps backwards. Read the same sentence backwards: “Battles End And Down Goes Charles’ Father.”
How do you find the key of a signature with sharps?
Take the last sharp and go up one letter name, a semitone higher. Three sharps end on G♯, so the key is A major.
How do you find the key of a signature with flats?
The second-to-last flat is the name of the key. Four flats are B♭, E♭, A♭, D♭; the second-to-last is A♭, so the key is A♭ major. One flat is the exception to learn by heart: F major.
How can you tell if a piece is in a major or a minor key?
The signature alone cannot tell you, because a major key and its relative minor share one. Look at the music: minor keys usually raise their 7th note with an accidental (G♯ in A minor), and pieces tend to begin and end on the tonic chord.

Members get · Rankings

See where you rank

Your Theory Tempo climbs from Grave to Prestissimo as you get faster, and every sprint shows how you compare with other players.

Watch Dan teach key signatures. 2 video lessons at the staff and the keyboard, with lesson notes and a graded quiz at the end.

In the course: Lesson 9: Key Signatures (free), Lesson 10: Key Signatures Revisited