Home / Blog / Music theory

How to find your way around a piano keyboard

Music theory · December 2, 2026 · 3 min read

A piano keyboard can look like an endless row of identical keys, but it is built from one small pattern repeated over and over. Once you can see that pattern, you can find any note in seconds, on a real piano, a MIDI keyboard or the piano roll in your DAW.

The pattern of black keys

Look only at the black keys. They come in groups of two and groups of three, alternating all the way up the keyboard. Those groups are your landmarks. You never have to count from the bottom of the piano; you just find the nearest group.

  • The white key directly to the left of a group of two black keys is C.
  • The white key directly to the left of a group of three black keys is F.

From C, the white keys go C, D, E, F, G, A, B, and then you arrive at the next C. Music only uses seven letter names, A to G, and then they start again.

Twelve keys, then it repeats

If you count every key from one C to the next — white and black — you get twelve. Those twelve notes are all the notes Western music uses. Everything higher or lower on the keyboard is the same twelve notes again, just higher or lower. That repeat is called an octave, and the two Cs sound like "the same note" at different heights.

This is why learning one octave is enough. Every chord shape, scale and melody you learn in one octave works in all of them.

Middle C and note names with numbers

Because the pattern repeats, musicians add a number to say which octave they mean. The C near the middle of an 88-key piano is called C4, or middle C. The C above it is C5, the one below is C3. In a DAW's piano roll you'll see these names down the left edge, and MIDI gives middle C the number 60.

What the black keys are called

Each black key sits between two white keys and has two possible names. The black key between C and D can be called C sharp (C♯, a bit higher than C) or D flat (D♭, a bit lower than D). It is the same key either way; which name you use depends on the key of the song. Our post on sharps and flats explains when to use which.

A quick way to practise

  1. Find every C on the keyboard using the two-black-key groups.
  2. Find every F using the three-black-key groups.
  3. Pick a random white key and name it by counting from the nearest C or F.

Do this for a couple of minutes a day and within a week you'll name keys instantly. It is the single most useful skill for using a piano roll, because the piano roll is just a keyboard turned on its side.

Why it matters for producers

Even if you never plan to play piano, every melody, bass line and chord you write in a DAW sits on this grid. Knowing that C is beside the two black keys, that the pattern repeats every twelve notes and that each octave sounds like the same note higher up makes everything else — scales, chords, transposing a loop — far easier.

Try it in MelodyCourse

The lesson Meet the notes lets you hear and practise this idea hands-on, with instant feedback — free, in your browser.

Open the lessons

Keep reading