What are accidentals in music, and how long do they last?
An accidental is a sharp, flat or natural sign written beside a single note to change its pitch. It lasts until the end of that measure, and only for that same note at the same pitch.
If you have ever seen a little sharp or flat sign sitting in front of a note in the middle of a piece, you have met an accidental. The name sounds like a mistake, but it is nothing of the sort. It simply means the composer wants a note changed from what the key signature says, just for a moment.
The good news is that the rules are short and consistent. Once you know them, accidentals stop being surprises on the page.
The five accidental signs
There are five signs you can meet. The first three are common from the start. The last two show up later.
- Sharp: raises the note by one half step (the very next key to the right).
- Flat: lowers the note by one half step (the very next key to the left).
- Natural: cancels a sharp or flat, so you play the plain note again.
- Double sharp: raises the note by two half steps, which is one whole step.
- Double flat: lowers the note by two half steps.
A half step is the distance to the nearest key, whether that key is black or white. So the half step above E is F, and the half step above B is C, with no black key in between.
| Sign | What it does | Example on the keyboard |
|---|---|---|
| Sharp | Up one half step | F becomes F sharp, the black key to the right of F |
| Flat | Down one half step | B becomes B flat, the black key to the left of B |
| Natural | Cancels a sharp or flat | F sharp becomes F again |
| Double sharp | Up two half steps | F double sharp sounds the same as G |
| Double flat | Down two half steps | B double flat sounds the same as A |
The sign is written before the note, on the same line or space, but when you say it you say the letter first: "F sharp", not "sharp F".
How long does an accidental last?
The standard rule is simple: an accidental lasts until the next bar line. That means to the end of the measure it appears in. If you are unsure what a measure is, our guide to measures and bar lines covers it.
Two details matter here:
- It affects the same note again. If an F sharp appears early in a measure, any later F on that same line or space in that measure is also sharp, even though the sign is not repeated.
- It stops at the bar line. In the next measure, that F goes back to whatever the key signature says.
There is one common exception. If a note with an accidental is tied across the bar line, the tie keeps the same pitch, so the held note stays sharp or flat. Any new note after it in the new measure follows the normal rules again.
To help you, editors often add a courtesy accidental (also called a cautionary accidental) in the next measure, sometimes in brackets. It is a reminder, not a change. If you see a natural sign that seems unnecessary, this is often why.
Does it carry over to other octaves?
Strictly speaking, no. An accidental applies to one exact pitch, meaning one line or space on the staff. An F sharp in the right hand does not automatically make the F an octave lower sharp as well.
In practice, many composers and editors add a reminder sign in the other octave to avoid confusion, but not all of them do. Teachers also vary in how strictly they explain this. The safe habit is to look at each note and ask whether it has its own sign or a sign earlier in the measure on exactly the same line or space.
Accidentals and key signatures
A key signature puts sharps or flats at the start of the piece, and they apply to every octave all the way through. An accidental is a temporary change on top of that.
Here is how they work together. In G major the key signature has F sharp. If a natural sign appears before an F in the middle of a measure, you play F natural for the rest of that measure. In the next measure, F is sharp again. An accidental can also add a sharp or flat that is not in the key at all, which is common in minor keys and in classical pieces that briefly move to another key.
If key signatures still feel slippery, how to memorize key signatures is a good next read.
Finding accidentals on the piano
Most sharps and flats are the black keys. A sharp is the black key just to the right of a note, and a flat is the black key just to the left. That is why one black key has two names: F sharp and G flat are the same key. This is called an enharmonic pair, and the composer picks the spelling that fits the key.
Some accidentals land on white keys:
- E sharp is the same key as F.
- B sharp is the same key as C.
- F flat is the same key as E.
- C flat is the same key as B.
These look odd at first but follow the same rules. For more help locating the black keys, see how to find sharps and flats on piano.
Tips for practicing with accidentals
- Scan each measure before you play and mark every accidental with a pencil.
- Ask yourself which later notes in that measure it affects: the same letter, on the same line or space.
- Say the note names out loud while you play slowly, including the sharp or flat.
- Watch the bar line. Remind yourself that the note goes back to normal in the next measure.
- Repeat the tricky measure a few times at a slow speed before putting it back into the full piece.
Games can help the rules sink in through repetition. In Keyfall, the free browser game on learnpianogame.com, every falling note shows its letter name, and a piece like Fur Elise has black keys early in the melody, so you can see and hear how a note is changed. It is a practice tool and does not replace a teacher, but it gives you plenty of low-pressure repetition.
With a little practice, accidentals become just another thing your eyes check automatically, like the clef or the time signature.
More about reading music
FAQ
Why are they called accidentals?
They are notes that happen outside the key signature, so they were seen as "accidental" extras. They are fully intentional, and the composer wrote them on purpose.
Does a natural sign always cancel a key signature sharp or flat?
Yes, for the rest of that measure. In the next measure the key signature applies again unless another accidental appears.
Do accidentals apply to the same note in a different octave?
Normally not. An accidental affects only the exact line or space it is written on, though editors often add a reminder in the other octave.
What does a courtesy accidental mean?
It is a reminder sign, sometimes in brackets, placed in the next measure to avoid confusion. It does not change anything, it just confirms what the note should be.
Is a flat the same as a sharp on the piano?
Sometimes the same key has two names, such as F sharp and G flat. The sound is the same on a piano, but the spelling depends on the key of the music.
What happens to an accidental on a tied note?
The tied note keeps its sharp or flat even when it crosses the bar line, because it is the same sounding note. The next new note in that measure follows the normal rules.
Practise it on your own piano. Keyfall is a free piano game: notes fall toward the keys and you play them on a digital piano, keyboard, phone or computer.
Play free