Piano keys and notes: a map of the keyboard

A full piano has 88 keys, and at first glance they look like an endless wall of black and white. They aren’t. The whole keyboard is one small pattern of twelve keys, repeated over and over — so once you can read that pattern, you can name any key on the instrument.

Those 88 keys split into 52 white keys and 36 black keys. The white keys carry the seven letter names A through G; the black keys are the sharps and flats tucked between them, in the repeating groups of two and three you’ll learn to read below. The count is worth knowing, but not worth memorizing key by key — it falls straight out of the twelve-key pattern repeating across the range.

This guide is a map of the keyboard itself: the repeating group of white and black keys, how the black-key clusters let you name every white key on sight, the musical alphabet that runs A to G, how octaves and register numbers work (middle C is C4), and why the black keys carry two names each. It stays on the keys — for turning written notes on the staff into keys, see the companion guide linked below.

How are piano keys and notes arranged?

The keys are laid out as one twelve-note pattern that repeats up and down the whole instrument: seven white keys named with the letters A through G, and five black keys tucked between some of them. You find your place by the black keys, which sit in alternating groups of two and three. Once you can spot those groups, every white key has a fixed position relative to them — so naming a key is a matter of reading the pattern, not memorizing 88 separate names.

That one idea does most of the work. The rest of this guide unpacks it: the pattern, the landmarks, the letter names, the octaves, and the black keys.

One pattern, repeated

Look at any piano and you’ll see the black keys grouped in twos and threes, with that two-three grouping repeating all the way across. Each full repeat covers twelve keys — seven white and five black — and that block of twelve is the unit the whole keyboard is built from. The reason it repeats is that music is organized into octaves: after twelve keys, the pattern of pitches starts again one octave higher, with the same names in the same order.

So you never have to learn the keyboard as one long, unbroken row. Learn one twelve-key block — where each white and black key sits — and you’ve learned the entire instrument, because every other block is an exact copy.

One octave of a piano keyboard with the white keys labeled C to B and the two-black-key and three-black-key groups outlined, middle C marked.

Use the black keys as landmarks

The black keys are the fastest way to orient yourself, because their two-and-three grouping never changes. Find a group of two black keys, and the white key immediately to its left is always C. That single anchor is worth memorizing first, because C is where most beginners start and where the musical alphabet resets.

From C, the rest of the white keys in that block follow in order. Around the group of two black keys you get C, D, and E: C sits to the left of the pair, D sits between the two black keys, and E sits to the right. Around the group of three black keys you get F, G, A, and B: F is just to the left of the three, then G and A sit between them, and B sits to the right, right before the next C.

  • Group of two black keys — C (left of the pair), D (between them), E (right of the pair).
  • Group of three black keys — F (left of the trio), G and A (between them), B (right of the trio).

Because these relationships hold in every octave, you can drop your eyes anywhere on the keyboard, find the nearest group of two or three black keys, and name the white keys around it without counting from the end of the piano.

The musical alphabet runs A to G

Piano notes use only the first seven letters of the alphabet: A, B, C, D, E, F, and G. After G, the names start again at A. That’s why the white keys look like they repeat — they do. Every eighth white key has the same name as the one you started on, because you’ve come back to the same letter one octave higher.

Keeping the list to seven letters is what makes the keyboard learnable. You’re not naming dozens of unique keys; you’re cycling the same seven names through each octave, over and over, up and down the instrument.

Octaves and register numbers

Because each letter appears many times across the keyboard, there needs to be a way to say which C or which A you mean. Musicians do this by numbering the octaves, a system called scientific pitch notation. Each note name gets a number for the register it sits in, so the C nearest the middle of the keyboard is C4 — better known as middle C — and the C an octave above it is C5, the C below it C3, and so on.

On a standard 88-key piano, the lowest key is A0 and the highest is C8, which is why you’ll sometimes see a piano’s range written as “A0 to C8.” You don’t need to memorize every register number to play, but knowing that middle C is C4 gives you a fixed reference point — useful when a tool, a tutorial, or a score tells you to play a specific octave. Our Note Finder tool names any key you click, so you can check yourself as you learn the registers.

Key landmarks in scientific pitch notation

The reference points on a standard 88-key piano, low to high.
RegisterExampleNote
A0Lowest keyBottom of the 88-key range
C4Middle CReference point nearest the center
A4Concert A (440 Hz)The standard tuning pitch
C8Highest keyTop of the 88-key range
A full 88-key piano keyboard with each C labeled C1 to C8 from A0 to C8, and middle C (C4) highlighted.

The black keys: sharps and flats

The black keys are the notes that sit between the white keys, and each one takes its name from a white-key neighbor plus a symbol. A sharp (♯) raises a note by one half step — the smallest distance on the keyboard, from any key to the very next one. A flat (♭) lowers a note by one half step. So the black key just to the right of C is C♯ (C raised a half step), and that same black key is also D♭ (D lowered a half step).

That’s the part that surprises beginners: one black key has two names. C♯ and D♭ are the same key, and which name you use depends on the musical context — the key you’re playing in and how the note is functioning. Notes that sound the same but are written differently are called enharmonic, and the black keys are where you meet them first.

There are five black keys in each octave — C♯/D♭, D♯/E♭, F♯/G♭, G♯/A♭, and A♯/B♭ — which is exactly why the pattern breaks into a group of two and a group of three: there’s no black key between E and F, or between B and C, because those white keys are already only a half step apart.

The twelve notes in an octave

One octave from C to B: which notes are white keys, which are black, and the two names each black key carries.
NoteWhite or black keyEnharmonic name
CWhite
C♯ / D♭BlackC♯ = D♭
DWhite
D♯ / E♭BlackD♯ = E♭
EWhite
FWhite
F♯ / G♭BlackF♯ = G♭
GWhite
G♯ / A♭BlackG♯ = A♭
AWhite
A♯ / B♭BlackA♯ = B♭
BWhite

Seven white notes plus five black notes make the twelve that repeat in every octave — the same twelve you hear climbing from C to the next C in the opening of “Do-Re-Mi,” just with the black keys filling the gaps.

The same note, in every octave

Once you can name the keys in one octave, the payoff is that every name recurs at a predictable spot in every other octave. Every C sits just left of a group of two black keys; every F sits just left of a group of three. So “find a C” or “find an F” becomes a quick visual scan, not a count — and jumping between octaves stops feeling like moving through unfamiliar territory.

The quickest way to make this stick is to play the keys and hear them. Our Virtual Piano tool lets you click any key, see its name, and hear its pitch, so the layout, the letters, and the sound lock together. When you’re ready to connect these keys to written music, the companion guide on how to read piano notes shows how notes on the staff map onto the keys you’ve just learned.

Put it into practice

Start with a single anchor — the group of two black keys and the C to its left — and name your way outward from there until the twelve-key block feels automatic. Then move the same shape to other octaves and confirm the names match. For a deeper look at orienting by the black and white keys, the book chapter on finding the white and black keys walks through it step by step.

You can practice all of this for free in MuseScore Studio, the notation app from Muse Group: place notes on a staff, watch where they land, and play them back to hear the pitches. Download it from MuseScore.org, or browse and play millions of scores on musescore.com to see the keys at work in real music.

Summary

The piano keyboard is one twelve-key pattern — seven white keys named A to G and five black keys — repeated across every octave. Use the groups of two and three black keys as landmarks to name the white keys (C sits left of the pair, F left of the trio), number the octaves from a fixed middle C (C4), and treat the black keys as sharps or flats with two names each. Learn one octave and you’ve learned all 88 keys.

Frequently asked questions

How many keys does a piano have?

A standard full-size piano has 88 keys — 52 white and 36 black — spanning from A0 at the bottom to C8 at the top. Smaller keyboards often have 61 or 76 keys, but they use the exact same repeating pattern, just fewer octaves of it.

How do I quickly find C on the piano?

Look for any group of two black keys. The white key immediately to the left of that pair is C. Because the two-black-key group repeats in every octave, this works anywhere on the keyboard.

Why do black keys have two names?

Each black key can be reached either by raising the white key below it a half step (a sharp) or lowering the white key above it a half step (a flat). So the key between C and D is both C♯ and D♭ — same key, two names. Which you use depends on the musical context. Notes that sound identical but are spelled differently are called enharmonic.

What is middle C?

Middle C is the C nearest the center of the keyboard, named C4 in scientific pitch notation. It’s the standard reference point musicians use to describe register — the C above it is C5, the one below is C3.

Do I need to read sheet music to learn the keys?

No. Naming the keys is about the keyboard’s physical layout, not notation, so you can learn it on its own. When you’re ready to connect the keys to written notes, see the companion guide on how to read piano notes.

What is scientific pitch notation?

It’s the system that pairs each note letter with an octave number so there’s no ambiguity about which one you mean. The number changes at every C, so the octave runs C4, D4, E4 … up to B4, and the next key up is C5. Middle C is C4, the lowest key on a full piano is A0, and the highest is C8 — which is why a piano’s range is written “A0 to C8.”