Key signatures, explained

Open almost any piece of sheet music and you’ll see them right after the clef: a little cluster of sharps or flats, sitting on the staff before the first note. They look like a code, and if no one has explained them, it’s easy to skip past and hope they don’t matter. They do — that small group of symbols shapes every note in the piece, and reading it takes only a couple of tricks.

This article explains what a key signature is, why it’s there, and how to read one at a glance. You’ll learn the fixed order that sharps and flats always appear in, the memory devices that lock that order in, and two quick tricks for naming the key from the signature alone — so the next time you open a score, that cluster tells you exactly what key you’re in.

What is a key signature?

A key signature is the group of sharps or flats printed at the start of a staff, just after the clef, that applies to the whole piece. It tells you which notes to raise or lower every time they appear, without writing a symbol next to each one. Two sharps at the start, for example, means every F is played as F♯ and every C as C♯ — all the way through, on every line the music continues onto.

To read one, you do two things: note which sharps or flats it contains, then use a simple rule to name the key. A signature is always all sharps or all flats, never a mix, and the symbols always show up in the same fixed order. Once you know that order and the naming trick, a key signature stops being a code and becomes a label.

Why key signatures exist

They save an enormous amount of writing and reading. A single sharp or flat placed next to a note is called an accidental, and it only lasts for that one measure. If a piece leans on F♯ — and any piece in the key of G does — you would otherwise have to draw a sharp in front of every F, in every measure, for the entire score.

The key signature collects those recurring accidentals and states them once, up front. Instead of marking F♯ two hundred times, the composer writes one sharp on the F line at the start, and it’s understood to apply from then on. The page stays clean, and your eye is free to follow the melody instead of tripping over a symbol before every note.

Because the signature handles the notes that stay altered for the whole piece, an accidental written in the music now means something specific: a note that steps outside the key for a moment. The book chapter on using accidentals shows how the two systems work together on the page.

The order of sharps and the order of flats

Sharps and flats never appear at random. Sharps are always added in this order:

F C G D A E B

Flats are added in the exact reverse:

B E A D G C F

This is the single most useful thing to memorize about key signatures, because it never changes. A signature with one sharp always has F♯. Two sharps is always F♯ and C♯. Three is F♯, C♯, and G♯, and so on down the line — each new sharp is simply the next letter in the sequence. Flats work the same way, starting from B♭ and following B E A D G C F.

The two orders are mirror images, so remembering one gives you the other. Read F C G D A E B forward for sharps; read it backward — B E A D G C F — for flats. To lock them in, most musicians lean on a sentence where the first letters spell the order:

  • Sharps (F C G D A E B): “Father Charles Goes Down And Ends Battle.”
  • Flats (B E A D G C F): run that sentence backward — “Battle Ends And Down Goes Charles’ Father.”

The flats have an even simpler hook: B E A D G C F begins with the word BEAD, and the first four flats to appear are B♭, E♭, A♭, D♭. Learn whichever device sticks; you only need one direction, since the other is its reverse.

The order of sharps (F C G D A E B) and the order of flats (B E A D G C F) shown on the staff.

How to name the key from a sharp signature

Here’s the trick that does most of the work. In a sharp key, look at the last sharp in the signature — the rightmost one — and go up one half step. That note names the major key.

Say the signature has three sharps: F♯, C♯, G♯. The last one is G♯, and a half step above G♯ is A, so the key is A major. Try it with one sharp: the only sharp is F♯, a half step up is G, so one sharp means G major. The trick works because that final sharp is always the leading tone — the seventh note of the scale, which sits one half step below the key note and leans up into it. Find the last sharp, raise it a half step, and you’ve named the key.

How to name the key from a flat signature

Flat keys have a trick that’s even faster. Look at the second-to-last flat in the signature — the one just before the rightmost — and that note is the name of the major key. No half step, no math; the flat itself spells the answer.

Take a signature with four flats: B♭, E♭, A♭, D♭. The second-to-last is A♭, so the key is A♭ major. With three flats — B♭, E♭, A♭ — the second-to-last is E♭, so it’s E♭ major. This works for every flat key except the one with a single flat, which you memorize: one flat (B♭ alone) is F major. Everything from two flats up follows the second-to-last rule.

Two tricks, then, cover the whole system: for sharps, last sharp up a half step; for flats, name the second-to-last. Between them you can read any key signature on sight.

Major and its relative minor share a signature

There’s one wrinkle worth knowing early. A key signature doesn’t point to a single key — it points to two. Every major key shares its exact signature with a relative minor key, and nothing in the signature itself tells them apart.

The two sit a fixed distance apart: the relative minor starts three half steps below the major key note, on the sixth note of the major scale. An empty signature is C major, and also A minor; one sharp is G major, and equally E minor. Because the notes available are identical, you tell the two apart by ear — which note the music settles on and treats as home. A piece that keeps returning to A and sounds darker is in A minor, even though its signature reads like C major.

For now, the takeaway is simple: naming the major key from the signature also hands you its relative minor, three half steps down. The book chapter on introducing key signatures walks through hearing that major-or-minor difference in practice.

To name that relative minor straight from the signature, take the major key you just worked out and count down three half steps — a minor third. C major becomes A minor, G major becomes E minor, E♭ major becomes C minor. Sharp keys have an even quicker route: drop a whole step from the last sharp. The last sharp in two sharps is C♯, a whole step below is B, so two sharps is B minor as readily as it is D major.

A quick reference of common keys

Most music you’ll meet lives in the keys with only a few sharps or flats. Here are the common ones, each with its signature and its relative minor:

  • C major / A minor — no sharps or flats.
  • G major / E minor — one sharp (F♯).
  • D major / B minor — two sharps (F♯, C♯).
  • A major / F♯ minor — three sharps (F♯, C♯, G♯).
  • E major / C♯ minor — four sharps (F♯, C♯, G♯, D♯).
  • F major / D minor — one flat (B♭).
  • B♭ major / G minor — two flats (B♭, E♭).
  • E♭ major / C minor — three flats (B♭, E♭, A♭).
  • A♭ major / F minor — four flats (B♭, E♭, A♭, D♭).

Notice the pattern: each step down the list adds exactly one sharp or one flat, in the fixed order you already know. That regular spacing isn’t a coincidence — it’s the circle of fifths, the map of how all the keys relate to one another. We cover that wheel and the relationships it reveals in the circle of fifths; here it’s enough to see that the keys line up in a predictable order rather than a random pile.

Every key signature, from one sharp to seven flats

Everyday music rarely strays past four sharps or flats, but the system runs all the way to seven of each. As you keep adding accidentals in the fixed order, you eventually sharpen or flatten notes that are already natural letter-names — which is how you reach oddities like E♯ (in F♯ major) and B♯ (in C♯ major) among the sharps, or C♭ and F♭ at the flat extreme. Both naming tricks still hold at every step along the way.

The table below lists all fifteen signatures, from seven sharps through to seven flats, each with the notes it contains, its major key and its relative minor.

All fifteen key signatures with their major and relative-minor keys
AccidentalsSharps / flats namedMajor keyRelative minor
NoneC majorA minor
1 sharpF♯G majorE minor
2 sharpsF♯ C♯D majorB minor
3 sharpsF♯ C♯ G♯A majorF♯ minor
4 sharpsF♯ C♯ G♯ D♯E majorC♯ minor
5 sharpsF♯ C♯ G♯ D♯ A♯B majorG♯ minor
6 sharpsF♯ C♯ G♯ D♯ A♯ E♯F♯ majorD♯ minor
7 sharpsF♯ C♯ G♯ D♯ A♯ E♯ B♯C♯ majorA♯ minor
1 flatB♭F majorD minor
2 flatsB♭ E♭B♭ majorG minor
3 flatsB♭ E♭ A♭E♭ majorC minor
4 flatsB♭ E♭ A♭ D♭A♭ majorF minor
5 flatsB♭ E♭ A♭ D♭ G♭D♭ majorB♭ minor
6 flatsB♭ E♭ A♭ D♭ G♭ C♭G♭ majorE♭ minor
7 flatsB♭ E♭ A♭ D♭ G♭ C♭ F♭C♭ majorA♭ minor

One practical note for the left hand: in the bass clef the sharps and flats follow the same order but sit one line or space lower than they do in the treble clef. The first sharp, F♯, rides the second line from the top in bass clef rather than the top line, which keeps every accidental in the octave the lower staff is meant to sound.

A reference of common key signatures with the number of sharps or flats and the major key each names.

Put it into practice

Reading key signatures gets automatic faster than you’d expect, because there are only so many and they always follow the same order. The quickest way to cement it is to see the signature and its scale side by side. Our Scale Finder tool lets you pick a key and shows the exact sharps or flats it uses, so you can check your naming against the answer. And in MuseScore Studio — free at musescore.org — you can set any key signature on a blank score, write a few notes, and press play to hear how the whole piece sits in that key. To study how real pieces use their signatures, open and play back scores on musescore.com.

The short version

A key signature is the cluster of sharps or flats after the clef that applies to the entire piece, saving an accidental on every repeated note. Sharps always appear in the order F C G D A E B, and flats in the reverse, B E A D G C F. To name a sharp key, take the last sharp and go up a half step; to name a flat key, read off the second-to-last flat. Every signature stands for both a major key and its relative minor three half steps below, and the common keys line up neatly along the circle of fifths.

Frequently asked questions

What is a key signature in simple terms?

It’s the group of sharps or flats written at the start of a staff, right after the clef, that applies to the whole piece. It tells you which notes to raise or lower every time they appear, so the composer doesn’t have to mark each one individually.

How do I know what key a piece is in from the signature?

For a sharp key, look at the last sharp and go up one half step — that names the major key, so three sharps ending in G♯ is A major. For a flat key, the second-to-last flat is the key name — four flats ending in D♭ makes A♭ major. One flat on its own is F major, which you memorize.

Why don’t key signatures mix sharps and flats?

Each major and minor key is built from one consistent set of alterations that are either all sharps or all flats, never both. Mixing them would describe a different scale. That’s also why the sharps and flats each follow a single fixed order rather than appearing in any arrangement.

Can two keys have the same key signature?

Yes. Every signature belongs to both a major key and its relative minor, which sits three half steps lower. No sharps or flats is C major and A minor; one sharp is G major and E minor. You tell them apart by which note the music treats as home, not by the signature.

What’s the difference between a key signature and an accidental?

A key signature applies to the whole piece and is written once at the start of each staff. An accidental is a sharp, flat, or natural placed next to a single note, and it lasts only for the rest of that measure. Accidentals mark notes that step outside the key for a moment.

How many key signatures are there?

Fifteen in all: one with no sharps or flats (C major and A minor), seven built from sharps, and seven built from flats. Three of them overlap in sound as enharmonic pairs — B major and C♭ major, for instance, are the same keys on the keyboard spelled differently — so what you actually hear is twelve distinct key centers.