QUICK ANSWER

A sharp raises a written note letter by one semitone, a flat lowers it by one semitone, and a natural restores the unaltered letter where needed. Find the staff letter and octave before applying the sign. A key signature establishes the default alterations; in ordinary modern notation, a local accidental usually affects the same pitch and octave until the bar line or another accidental.

Key points to remember

  • An accidental changes sound without changing the written letter position.
  • A sharp or flat is not always a black piano key.
  • Read the key signature and the current bar together.
  • Enharmonic spellings can share a piano key but have different musical roles.

What do sharp, flat and natural signs change?

A note's staff position gives its letter and octave. An accidental changes the pitch associated with that spelling. A sharp raises the natural letter by one semitone, a flat lowers it by one semitone, and a natural restores the natural form where an alteration would otherwise apply.

Find the letter first, then apply the sign. F-sharp is written at an F position, not at a G position. This matters when you write scales, chords and intervals: the spelling communicates musical structure as well as a sound.

Find a semitone on the piano

A semitone, or half step, is the distance between adjacent piano keys, including both black and white keys. From C to the black key immediately above is C-sharp. From D to that same black key below is D-flat. In ordinary equal-tempered piano tuning, C-sharp and D-flat share a key.

Do not assume every sharp is a black key. E-sharp sounds on the F key, and B-sharp on C. Likewise, C-flat sounds on B and F-flat on E. There is no intervening black key between E and F or between B and C, so those natural-letter pairs are already a semitone apart.

WORKED EXAMPLE

C → C♯ is one semitone up. D → D♭ is one semitone down. E → E♯ also moves one semitone up, to the piano key usually called F.

Written pitch and an equal-tempered piano key
Written noteChange from the natural letterPiano key also called
C♯C raised by one semitoneD♭
D♭D lowered by one semitoneC♯
E♯E raised by one semitoneF
C♭C lowered by one semitoneB
F♮ after F♯Restore unaltered FF

How do local accidentals interact with the key?

A key signature supplies recurring sharps or flats for note letters across the passage. A local accidental beside a note changes that pitch in the immediate context. For example, G major's signature supplies F-sharp, while an F-natural sign in a bar requests a different pitch.

In ordinary modern notation, the local accidental applies to that pitch in the same octave for the remainder of the bar unless another sign changes it. A note in another octave is not automatically covered by that local sign. New bars normally return to the key signature's instruction.

Read cancellations, courtesy signs and ties

A natural sign can cancel a sharp or flat that came from the key signature or from a previous local accidental. If a bar begins with F-sharp and later needs F-natural, write the natural at the later F. If it then returns to F-sharp in the same bar, another sharp is needed.

Some scores include courtesy accidentals to prevent confusion, especially after a bar line or a recent alteration. These reminders may appear in parentheses. Read them as helpful clarification, while still checking the full key and bar context. A tie continuing over a bar line sustains the original sound; a newly attacked note afterwards needs its own context check.

Choose a spelling that fits the music

Enharmonic spellings can share a sound on an equal-tempered keyboard but have different musical roles. In a G-major scale, the note before G is F-sharp, not G-flat. Using F-sharp lets every scale letter appear once and makes the rising step to G easy to see.

When editing a score, preserve a spelling that fits its key, chord and melodic direction. A program may choose a different accidental name when importing MIDI because MIDI pitch numbers do not preserve the original letter spelling. Listen to the sound, but also inspect whether the written line makes musical sense.

Check the same pattern in C and G major

Write a short natural-note pattern in C major. Change one F to F-sharp and notice whether a later F in the same bar also needs that sound. Then return to F-natural with a natural sign. Count the rhythm separately so that the pitch exercise does not obscure the bar structure.

Try the same pattern in G major. Now F-sharp is already supplied by the signature, so the local instructions change. This comparison shows why an accidental cannot be interpreted correctly without reading what came before it.

Try it yourself

In G major, what does an unmarked F4 normally sound? If F4 has a natural sign in a bar, what does a later unmarked F4 in that same bar normally sound?

Show the answer

The key signature makes the first F4 an F♯4. After a local natural sign, the later F4 in the same bar is normally F-natural, unless another accidental changes it.

Common questions

Are C-sharp and D-flat the same note?

They use the same key on an equal-tempered piano, but have different written spellings. A scale, chord or interval may require one spelling to show its musical structure.

Does a sharp carry into the next bar?

A local sharp normally stops applying at the bar line. The key signature then resumes. A tied continuation keeps its original sound, so check that context separately.

Put this lesson into practice

Browse all learning guides →