Free online key signature finder
C majorno sharps or flatsScale: C · D · E · F · G · A · BRelative minor: A minor — same key signature.
Piano samples: Salamander Grand Piano (CC-BY 3.0)
A key signature is the group of sharps or flats written at the start of a staff that tells you which notes are raised or lowered throughout a piece. Pick a mode and a key and this tool draws that signature on the staff for you, lists the accidentals it uses, and spells out the scale.
Here’s what a key signature is, how to read the one on screen, and how to work out a key from the sharps or flats it carries.
How to use it
Choose a mode — major or minor — then pick a key. The tool draws that key’s signature on the staff, lists its sharps or flats in order, spells the scale from the tonic up to the octave, and names the relative key that shares the same signature. Press play to hear the scale so the notes on the page connect to a sound.
Why it helps
Reading music is far faster when you recognize the key at a glance instead of decoding accidentals note by note. Seeing the signature drawn on the staff, next to the scale it produces and the relative key beside it, ties the written shape to the notes you actually play. Once you know the pattern, you can name any key from its signature in a second.
What it shows
- The sharps or flats of the key, drawn on the staff in the correct order.
- The full scale, spelled with the right sharps or flats for that key.
- The relative major or minor that shares the same signature.
A key signature is a small group of sharps or flats printed at the very start of a staff, right after the clef. It is a shorthand: rather than writing an accidental next to every affected note, the composer states once, up front, which letters are always sharp or always flat for the whole piece. Read that signature correctly and you know the key, the scale, and which notes to raise or lower before you play a single note. Below is what a key signature is, the fixed order the sharps and flats always appear in, and the quick tricks for naming a key from its signature.
What a key signature tells you
Every major and minor key is built from a specific scale, and each scale needs a specific set of sharps or flats to keep its pattern of whole and half steps intact. Those required sharps or flats are exactly what the key signature collects and writes once at the front. A signature with one sharp means every F in the piece is played as F sharp unless a temporary accidental says otherwise; a signature with two flats means every B and every E is flattened. So the signature does two jobs at once: it saves ink, and it names the key.
The order of sharps and flats never changes
Sharps are always added to a key signature in the same fixed order: F, C, G, D, A, E, B. A key with one sharp has F sharp; a key with two has F sharp and C sharp; and so on down the list. Flats follow the exact reverse of that order: B, E, A, D, G, C, F. A key with one flat has B flat; two flats add E flat; and so on. Because the order is fixed, you never see a signature that skips a sharp or flat — they always accumulate from the start of the list, which is what makes reading them reliable.
A common way to remember the order of sharps is the sentence “Father Charles Goes Down And Ends Battle.” Read it backwards — “Battle Ends And Down Goes Charles’ Father” — and you have the order of flats. The two orders being mirror images of each other is not a coincidence: it falls straight out of the circle of fifths, described below.
All fifteen major keys at a glance
There are fifteen major key signatures — seven with sharps, seven with flats, and C major with neither. The table lists every one, the accidentals it uses in order, how many there are, and the minor key that shares its signature.
| Major key | Sharps or flats | Count | Relative minor |
|---|---|---|---|
| C major | none | 0 | A minor |
| G major | F♯ | 1 sharp | E minor |
| D major | F♯ C♯ | 2 sharps | B minor |
| A major | F♯ C♯ G♯ | 3 sharps | F♯ minor |
| E major | F♯ C♯ G♯ D♯ | 4 sharps | C♯ minor |
| B major | F♯ C♯ G♯ D♯ A♯ | 5 sharps | G♯ minor |
| F♯ major | F♯ C♯ G♯ D♯ A♯ E♯ | 6 sharps | D♯ minor |
| C♯ major | F♯ C♯ G♯ D♯ A♯ E♯ B♯ | 7 sharps | A♯ minor |
| F major | B♭ | 1 flat | D minor |
| B♭ major | B♭ E♭ | 2 flats | G minor |
| E♭ major | B♭ E♭ A♭ | 3 flats | C minor |
| A♭ major | B♭ E♭ A♭ D♭ | 4 flats | F minor |
| D♭ major | B♭ E♭ A♭ D♭ G♭ | 5 flats | B♭ minor |
| G♭ major | B♭ E♭ A♭ D♭ G♭ C♭ | 6 flats | E♭ minor |
| C♭ major | B♭ E♭ A♭ D♭ G♭ C♭ F♭ | 7 flats | A♭ minor |
How to name a sharp key from its signature
There is a fast trick for sharp keys. Look at the last sharp in the signature — the one furthest to the right. That sharp is the leading tone of the key, the note a half step below the tonic. So go up one half step from the last sharp and you have the name of the major key. If the last sharp is F sharp, a half step up is G, so the key is G major. If the last sharp is G sharp, up a half step is A, so the key is A major. It works for every sharp key because the last sharp added is always the seventh degree of the scale.
How to name a flat key from its signature
Flat keys have an even quicker shortcut. Look at the second-to-last flat — the one immediately before the final flat on the right. Its letter name is the name of the major key. A signature of B flat and E flat has B flat as its second-to-last flat, so the key is B flat major. A signature of B flat, E flat, and A flat has E flat second from the end, so the key is E flat major. The only key this cannot cover is F major, which has a single flat and so has no second-to-last one — you simply memorize that one flat means F major.
Relative major and minor
Every key signature belongs to two keys at once: a major key and a minor key that share the exact same sharps or flats. These are called relative keys. The relative minor sits three half steps — a minor third — below the major, on the sixth degree of the major scale. C major and A minor both use no sharps or flats; G major and E minor both use one sharp. They draw on the same seven notes and only differ in which note feels like home. That is why a signature alone cannot tell you whether a piece is major or minor: you also have to listen for, or look for, which note the music treats as its center. This tool names the relative key beside every signature so the pair is always in view.
Finding a minor key from its signature
Because a minor key shares its signature with a relative major, you can name it in two steps. First read the major key using the sharp or flat trick above, then count down a minor third — three half steps — to reach its relative minor. A signature with one sharp is G major, and three half steps below G is E, so the minor key is E minor. A signature with three flats is E flat major, and a minor third below is C, giving C minor. Switch the mode toggle here from major to minor and the tool does that step for you, keeping the signature the same while renaming the tonic.
The circle of fifths
Line the keys up by how many sharps or flats they carry and a pattern appears that musicians call the circle of fifths. Start at C major with no accidentals. Move up a perfect fifth to G and you add one sharp; up another fifth to D and you add a second; keep going and each step clockwise adds one more sharp. Go the other way from C — down a fifth to F — and you add a flat, then another with each step counter-clockwise. The circle explains why the sharps and flats appear in the order they do, why neighboring keys sound closely related (they share almost all their notes), and why the sharp and flat orders are mirror images. It is the single most useful map in music theory, and every key in the table above has a fixed spot on it.
Enharmonic keys
Look at the bottom of the sharp list and the bottom of the flat list and you will notice they meet. F sharp major, with six sharps, sounds identical to G flat major, with six flats — the same piano keys, spelled two different ways. Pairs like this are called enharmonic keys: C sharp major equals D flat major, and B major equals C flat major. Composers choose the spelling that is easier to read, which usually means the one with fewer accidentals or the one that fits the surrounding music. The pitches are the same; only the names on the page change. Seeing both spellings drawn out makes it clear why a key can go by two names.
Why keys use different signatures at all
It can seem strange that the same major sound needs seven sharps in one key and none in another. The reason is that the major scale is a fixed pattern of steps, and only C major happens to land that pattern entirely on the white keys. Start the same pattern on any other note and some steps fall on black keys, which have to be written as sharps or flats to keep the pattern correct. The key signature is simply the bookkeeping for which black keys a given starting note requires. That is also why the scale this tool spells changes its accidentals from key to key even though the shape of the scale never does.
How a signature is written on the staff
The position of each sharp or flat in a signature is fixed, not arbitrary. Engravers place them on specific lines and spaces in the standard order so that any reader recognizes the pattern instantly, and the sharps in particular follow a distinctive zig-zag shape up and down the staff. Because the layout is conventional, you learn to read a signature as a whole picture rather than counting individual symbols: two sharps in their usual spots simply looks like D major. The clef changes exactly where each accidental sits — a treble and a bass clef draw the same signature on different lines — but the order and the count stay identical, which is why the trick for naming a key works regardless of clef.
Major and minor share a signature but not a mood
Because a signature belongs to both a major key and its relative minor, the sharps or flats on the page cannot by themselves tell you the mood of the music. Two pieces can carry one sharp and sound completely different: one bright and settled in G major, the other darker and more serious in E minor. What decides the difference is which note the music circles back to and rests on. A quick way to tell them apart at sight is to glance at the final note or chord, which usually lands on the tonic, and to watch for the raised seventh that minor keys so often add, since that accidental appears beside notes rather than in the signature. This tool shows the relative pair together so the two readings of a single signature are always side by side.
Using it with the other tools
A key signature is the doorway to the rest of theory, so this tool pairs naturally with the others. Once you know a key, the scale finder shows every mode and variant built on its tonic, and the chord finder builds the chords that belong to it. To see which single accidental a given letter carries in a key, the accidental calculator answers that directly, and you can play any scale you find here on the virtual piano to hear it. When you want to test yourself, the key signature trainer flips the process around and asks you to name the key from its signature against the clock.
A quick method to read any signature
Put the pieces together and reading a signature becomes almost automatic. Count whether it uses sharps or flats and how many. If sharps, go up a half step from the last one for the major key; if flats, read the second-to-last flat’s name, remembering that one flat is F major. Decide from the music whether the piece is in the major key or its relative minor a third below. That is the whole method, and with a little practice the fifteen signatures in the table become as quick to recognize as letters of the alphabet.
Frequently asked questions
- What is a key signature?
- It is the set of sharps or flats written at the start of a staff, just after the clef. It states once which notes are raised or lowered for the whole piece, so you do not have to mark an accidental beside every affected note. It also tells you the key.
- What is the order of sharps and flats?
- Sharps are always added in the order F, C, G, D, A, E, B. Flats follow the exact reverse: B, E, A, D, G, C, F. The order never changes and the accidentals always accumulate from the start of the list, which is what makes a signature reliable to read.
- How do I find the key from a signature with sharps?
- Take the last sharp — the one furthest right — and go up one half step. That note names the major key. If the last sharp is F sharp, up a half step is G, so it is G major. The last sharp is always the leading tone, a half step below the tonic.
- How do I find the key from a signature with flats?
- Read the second-to-last flat: its letter name is the major key. A signature of B flat and E flat is B flat major. The one exception is a single flat, which is always F major since it has no second-to-last flat to read.
- What are relative major and minor keys?
- They share the same key signature but treat a different note as home. The relative minor sits a minor third — three half steps — below the major, on the major scale's sixth degree. C major and A minor both use no sharps or flats; G major and E minor both use one sharp.
- Why do some keys have two names, like F sharp and G flat major?
- They are enharmonic — the same pitches spelled two ways. F sharp major (six sharps) sounds identical to G flat major (six flats) on a keyboard. Composers pick whichever spelling is easier to read for the surrounding music; only the note names change, not the sound.
- How many key signatures are there?
- Fifteen major key signatures: seven with sharps, seven with flats, and C major with none. Each also serves as the signature for a relative minor key, so the same fifteen signatures cover all thirty major and minor keys.