Sharps, flats, and key signatures
A sharp or a flat changes a note by a semitone, and the key signature at the start of each line changes some notes for the whole piece. If you name the notes without them, many names come out wrong: in G major every F is F♯. This page explains the signs and the rules for how far they reach.
The signs
| Sign | Name | What it does | Example |
|---|---|---|---|
| ♯ | Sharp | Raises the note a semitone | F → F♯ |
| ♭ | Flat | Lowers the note a semitone | B → B♭ |
| ♮ | Natural | Cancels a sharp or flat (from the key signature or earlier in the measure) | F♯ → F |
| 𝄪 | Double sharp | Raises the note two semitones | F → F𝄪 (sounds as G) |
| 𝄫 | Double flat | Lowers the note two semitones | B → B𝄫 (sounds as A) |
Key signatures
The sharps or flats right after the clef are the key signature. They apply to every note with that name, in every octave, on every line, until a new key signature appears. They are always written in the same order: sharps F C G D A E B, flats B E A D G C F. So one sharp is always F♯, and two flats are always B♭ and E♭.
| Key signature | Notes it changes | Major key | Minor key |
|---|---|---|---|
| none | — | C major | A minor |
| 1 sharp | F♯ | G major | E minor |
| 2 sharps | F♯ C♯ | D major | B minor |
| 3 sharps | F♯ C♯ G♯ | A major | F♯ minor |
| 4 sharps | F♯ C♯ G♯ D♯ | E major | C♯ minor |
| 5 sharps | F♯ C♯ G♯ D♯ A♯ | B major | G♯ minor |
| 6 sharps | F♯ C♯ G♯ D♯ A♯ E♯ | F♯ major | D♯ minor |
| 7 sharps | F♯ C♯ G♯ D♯ A♯ E♯ B♯ | C♯ major | A♯ minor |
| 1 flat | B♭ | F major | D minor |
| 2 flats | B♭ E♭ | B♭ major | G minor |
| 3 flats | B♭ E♭ A♭ | E♭ major | C minor |
| 4 flats | B♭ E♭ A♭ D♭ | A♭ major | F minor |
| 5 flats | B♭ E♭ A♭ D♭ G♭ | D♭ major | B♭ minor |
| 6 flats | B♭ E♭ A♭ D♭ G♭ C♭ | G♭ major | E♭ minor |
| 7 flats | B♭ E♭ A♭ D♭ G♭ C♭ F♭ | C♭ major | A♭ minor |
Every key signature, the notes it changes, and the major and minor key that use it.
A quick way to name the key: with sharps, the major key is one semitone above the last sharp (last sharp F♯ → G major). With flats, it is the second-to-last flat (B♭ E♭ → B♭ major); one flat is F major.
Accidentals: until the bar line
A sharp, flat, or natural written in front of a note (an accidental) lasts until the end of the measure, for that note at that height. After the bar line the key signature applies again. Two exceptions catch many readers:
- Ties: a note tied over the bar line keeps its accidental. The note after the bar line is the same sound continued.
- Courtesy accidentals: many scores repeat a sign in the next measure, sometimes in brackets, as a reminder. It changes nothing.
How the names are written
The sign goes after the name: F♯ (“F sharp”), B♭ (“B flat”). In Do Re Mi it is Fa♯ and Si♭, in Japanese ファ♯ and シ♭. F♯ and G♭ sound the same on a piano but are written differently; the name follows what is written. See the note name chart for other languages.
In Note Namer
Note Namer names each note with its sharp or flat already applied: the key signature, the accidentals earlier in the measure, and ties are all taken into account, so a G major score gets F♯ everywhere. When you transpose, the key signature changes and the names follow the new key. If the key signature itself was read wrong, every name in the piece changes with it; check the first line against the paper (see how to fix reading mistakes).