Home / Blog / Music theory

Sharps and flats explained

Music theory · December 2, 2026 · 2 min read

Sharps and flats confuse a lot of beginners because one key can have two different names. The good news: the idea behind them is simple, and once you see it the naming makes sense.

Half steps: the smallest move

The distance from any key to the very next key — white or black — is a half step (also called a semitone). From E to F is a half step, because there's no black key between them. From C to C♯ is also a half step.

A sharp (♯) means "one half step higher". A flat (♭) means "one half step lower". That's all the symbols mean.

One key, two names

The black key between C and D is one half step above C and one half step below D. So it can be called C♯ or D♭. These are called enharmonic names — different spellings of the same sound.

So which one do you use? It depends on the scale you're in. A scale uses each letter name once. In D major, the notes are D, E, F♯, G, A, B, C♯ — every letter appears once, so the black keys are written as sharps. In F major, the notes are F, G, A, B♭, C, D, E — again one of each letter, so that black key is written as B♭, not A♯.

White keys can be sharp or flat too

Because a sharp just means "one half step up", a white key can sometimes have a sharp or flat name. E♯ is the same key as F, and C♭ is the same key as B. You'll rarely need these, but they appear in some keys so that each letter name is used once.

Sharps and flats in a DAW

Most DAWs label the black keys of the piano roll with sharps only (C♯, D♯, F♯, G♯, A♯) to keep things simple. That's fine — the sound is identical. When you read a chord chart that says B♭ and your piano roll says A♯, they're the same key.

A useful trick: counting half steps

Lots of music theory boils down to counting half steps:

  • A whole step is two half steps (C to D).
  • A major third is four half steps (C to E).
  • A perfect fifth is seven half steps (C to G).
  • An octave is twelve half steps (C to the next C).

If you can count half steps on a keyboard, you can build any scale or chord without memorising them all.

Summary

Sharps raise a note by a half step, flats lower it by a half step, and every black key has both a sharp and a flat name. Use whichever name keeps each letter appearing once in your scale — and don't worry when your DAW shows a different spelling, because it's the same sound.

Try it in MelodyCourse

The lesson Sharps & flats lets you hear and practise this idea hands-on, with instant feedback — free, in your browser.

Open the lessons

Keep reading