I understand that an easy way to determine the 'key' of a piece of music is to either look at the last sharp within the key signature and add a half step (semitone), or look at the second to last flat. But I am wondering why is this the case?

What about going around the circle of fifths (Starting at C Major) causes the next key in succession to add a sharp to the 7th scale degree? Any insight is greatly appreciated.

  • 6
    Not an answer, but pertinent. Learning 'keys' this way is flawed. True, the last flat is the leading note, etc., but there's only 12, for Heaven's sake. We leaned a heck of a lot more than that learning the alphabet ! Make it a mnemonic, if you like, or just learn the list in order. Most of us recognise key signatures from playing pieces in the signed keys. It's no big deal - or shouldn't be!
    – Tim
    Jan 12, 2022 at 13:06
  • Although those tricks are useful starting points, @Tim's correct in that the eventual end goal should be memorization of the key signatures. It's so much more efficient once you can do that!
    – user45266
    Jan 13, 2022 at 3:45
  • 1
    To add to other comments: it's not even about "memorizing" ... it's about "remembering". When you use something often enough, you will remember it. And that's more robust and adaptible than cute mnemonics (which are easy enough to mis-remember!). :) Jan 13, 2022 at 20:05
  • I disagree that memorization should be the goal. The goal should be understanding the underlying pattern so that the need to memorize is reduced as much as possible. For example I could memorize the multiplication table for 9's or realize that 9 =10-1, so every time the tens digit increases the ones digit decreases. 09, 18, 27 ... ones digit is 9,8,7 ... tens digit is 0,1,2, etc. Same with key signatures which is strongly like counting by 9's, except it's 2 accidentals for each whole step up. Cmajor has zero accidentals, D=2, E=4, F#=6, etc. (con't) Jan 15, 2022 at 0:21
  • (con't) The key down from C is Fmajor ... has '-1' sharp (1 flat), G has 1# (added 2 to -1), A=3, B=5#'s etc. I figured this out from the music theory learning shortcut I figured out in 2017. YouTube videos are forthcoming. Jan 15, 2022 at 0:24

4 Answers 4


Adding sharps / Removing flats

Consider the following definition of a major scale (W = Whole Step; H = Half step):


This gives us scale degrees and intervals between as follows:

1 W 2 W 3 H 4 W 5 W 6 W 7 H 8

Now we're going to start the "next" major scale beginning on degree 5 of the previous scale. Thus things map as follows:

starting scale: 5 W 6 W 7 H 1 W 2 W 3 H 4 W 5
"new" scale     1 W 2 W 3 H 4 W 5 W 6 W 7 H 8

Notice that all the intervals line up except for degrees 3-4-5 or the original scale, which correspond to 6-7-8 of the new scale. 3-4-5 is H-W; whereas we want W-H. This is achieved by raising scale degree 4 of the original scale a half step.

Put simply: The sharp introduced as one goes around the circle of fifths is always the leading-tone (i.e., scale degree seven, or, one step before the tonic) of the new scale.

Adding a sharp is "the same" as subtracting a flat, which is why when key signatures switch from sharps to flats, the number of flats in the key signature is reduced until there are none and the circle has returned to C major.

As a brief example, Bb major has two flats: Bb and Eb. The next step in the circle of fifths is F major, which has only Bb. The Eb from Bb major was "sharped" to create the leading tone for F major, leaving only Bb. The Bb is then sharped to result in C major.

Adding flats / Removing sharps

A similar logic shows why the second-to-last flat also shows the key.

Again, the major scale:

1 W 2 W 3 H 4 W 5 W 6 W 7 H 8

This time, the new scale begins on the fourth degree of the old scale (i.e., the circle of fourths — the "backwards" circle of fifths).

starting scale: 4 W 5 W 6 W 7 H 1 W 2 W 3 H 4
"new" scale     1 W 2 W 3 H 4 W 5 W 6 W 7 H 8

Now the "wrong" intervals are 6-7-1 of the old scale, which correspond to 3-4-5 of the new one. To fix the problem, we lower the old scale's leading tone — that is, the "new" flat corresponds to the fourth degree of the new scale. Put another way, the new flat is always a fourth above the new scale's tonic. But that tonic was itself scale degree four of the scale before that one: i.e., the second-to-last flat.

For example:

  • C Major = 0 flats
  • Go up a fourth (to F) and add a flat to the fourth scale degree (Bb).
  • F Major = 1 flat (and that flat, Bb, is up a fourth from the tonic)
  • Go up another fourth (to Bb) and add a flat to the fourth scale degree (Eb)
  • Bb Major = 2 flats, with the second-to-last being Bb, the tonic.
  • Go up another fourth (to Eb) ... oh, Eb is the last flat of the previous key, so it will become the second-to-last flat in this new key.
  • And so on.

If I have not said it hundreds of times, it is because I have said it thousands of times. Makes me rather nostalgic of my teaching days.

The flat keys always count four steps past its name. It is how the circle of fourths work for the keys with flats in them.

The circle of fifths count 5 steps forward for the new key and then 4 steps forward - FROM THE SAME PLACE YOU STARTED AT! - for the new sharp.

Of course, like it has always been new keys keep old sharps and flats.

The easiest way to learn keys is to have a good theory teacher do key signatures drills with you until you know them. Yes, what you say is true, but it is not how it should be taught.

Music Theory Pedagogy 101 in a nutshell.


I understand that an easy way to determine the 'key' of a piece of music is to either look at the last sharp within the key signature and add a half step (semitone), ...

Technically, when the sharp is added to the key signature it signifies that tone becomes the leading tone and so the half step above that will be the tonic... provided the mode is major.

How is that supposed to work if the mode is minor? Now you need a new rule of thumb that says the minor tonic will be a whole step below "the last sharp."

...or look at the second to last flat.

How does that work with a key signature of one flat? There is no second to last flat in that case.

That rule also give no consideration whether the mode is major or minor?

Technically, adding a flat to the key signature signifies that tone is the subdominant when the mode is major, and in the minor mode it will be the minor submediant.

This isn't how you read key signatures. You just check the count of sharps or flats. And to know the tonic, you usually just look at the first bar or final cadence. But the details of finding the tonic are really a separate issue.

The first huge flaw in that "easy way" is it makes no distinction about mode, major or minor. The second flaw is in an attempt to make it "easy" it glosses over the detail that you still need four "rules" to cover the basic cases of key signatures of either sharps or flats and either major or minor mode.

By the time you make that "easy way" actually work you've done just as much work as learning the key signatures.

The typical thing for teachers to do seems to be rote memorization, like what Neil Meyer suggests in his answer. I think it's better to learn them in context through actual playing. At the very least make scale practice the same time to memorize key signatures. Instead of scale practice you could use simple classical stuff, like Czerny's Recreations, or a hymnal, to find lots of material in keys of zero to three sharps or flats.

The other reason to not use rote learning for key signatures is because it's more of a system than random facts. You should try to understand key signatures in a systematic way. When key signatures get to five or more sharps or flats they become more difficult. But you should understand why they become difficult.

This is my break down of key signatures, getting more difficult moving left to right, adding more sharps or flats...

enter image description here

"Common key signatures" and "enharmonic region" are labels I made up. I don't think you will find a chart like this in a textbook.

Broadly speaking key signatures get complicated when there are five or more sharps and flats, and for the most part those keys are the ones where the sharps or flats also apply to the tonic, because those keys can be respelled to various enharmonic equivalents.

That enharmonic equivalency does not come up in key signatures of four or less sharps or flats. For example, the key C# minor, the tonic does take a sharp, but there are only four sharps in the key signature. This key is pretty common. It also doesn't have a practical enharmonic equivalent. It's enharmonic equivalent would be Db minor, a theoretical keys signature that uses a double flat!

enter image description here

Here is a visual arrangement of key signatures that lists all practical key signatures along with their enharmonic equivalents...

enter image description here

...theoretically the chart is infinite. You could keep expanding to the left and right forever moving in perfect fifths, but those theoretical keys will have double, triple, etc sharps/flats which is impractical. The practical key signatures use 7 or less sharps/flats. You could say the number of key signatures is infinite, but the ones that are practical is a tiny, finite slice of them.

You should notice the symmetry of that chart. You can apply a similar symmetry at the keyboard. Start on the piano key for F#Gb and then move ascending/descending from in contrary motion in half steps. Each side of that F#/Gb pivot will render keys to the left and right which are the same number of sharps/flats...

TONIC:   ...Eb   E    F    F#/Gb   G    Ab   A ...
KEY SIG: ...3b   4#   1b   6#/6b   1#   4b   3#...
            |    |    |            |    |    |
            |    |    |------------|    |    |
            |    |                      |    |
            |    |----------------------|    |
            |                                |

Even though the musical system of 7 letters, 12 chromatic tones, and the layout of black and white piano keys seems a bit of a muddle, there is a definitely symmetry to it all, if you view it from the right perspective. But, most textbooks and teachers don't present these symmetries.

I don't mean to throw too much theory at you. The main points are...

  • learn the musical alphabet in perfect fifths ascending and descending
  • understand relative major/minor and enharmonic equivalency
  • learn common keys of 0-4 sharps/flats through simple performance exercises
  • be aware of the enharmonic complications of keys with 5 or more sharps/flats

If you embrace the idea of playing in all keys as an essential musical skill, just combine key signature learning with scale practice. By the time you have learned to play all of your scales you will know all the key signatures. If you don't embrace this idea, you will probably be forever befuddled by key signatures.

  • In the next few weeks I'll make some videos using my 'two-handed music theory calculator'. Anyone will be instantly able to figure out how many sharps or flats, what they are, where they are, the chords of the scale, how to figure out a scale from a few notes or chords, etc. Jan 13, 2022 at 6:02
  • @RandyZeitman - I hope for a "calculator breaks down" result or a result that spews out the chromatic scale or close to it for scale results for chromatic chord progressions like Bbm-Bm-Bbm-Am (start of "You Will Know Our Names" from Xenoblade Chronicles, piece actually manages to stay in B flat minor despite stuff like this).
    – Dekkadeci
    Jan 13, 2022 at 13:05
  • @RandyZeitman, sounds like Chisanbop. Why not learn music from music? Jan 13, 2022 at 13:35
  • Actually it just starts with two hands to create a pattern. Good point. "Why not learn music from music?" It doesn't teach music. It's a shortcut method to simplify understanding the relationship between notes, scales, chords and harmony. There's no analysis. Jan 13, 2022 at 17:59

Look at the major scale intervals


Starting with CMajor the notes are CDEFGAB(C).

The EF and BC fall on the H's so there's no sharps or flats.

But the next key up starts at position 5, but then the EF doesn't fall on an H but instead a W. So a half step is needed on note 7.

In Gmajor the 6 and 7th notes are E and F# where as in C they were A-B (a whole, no accidentals needed).

The distance is the same ... 12 half notes per octave but as each key starts at the fifth note, and the pattern is 2W,H,3W,H the notes have to change to fit the pattern as only BC and EF are half tones.

Not the answer you're looking for? Browse other questions tagged or ask your own question.