How Many Notes on a Piano?

A standard piano has 88 keys — 52 white and 36 black — spanning just under eight octaves, from A0 to C8. Here's everything you need to know about how those keys are named, numbered, and mapped to written music.

88
Total keys
52
White keys
36
Black keys
Octaves

The 88-Key Keyboard

The interactive keyboard below shows all 88 keys of a standard piano, from A0 (the lowest note) to C8 (the highest). Every white key is labeled. The C notes are highlighted in pink — notice how they divide the keyboard into repeating groups. Middle C (C4) is marked in red.

Click any key to hear it and see its note name, frequency, and position on the grand staff.
Highlighted key52 white keys36 black keys
Try it: Click any key to see its note name, MIDI number, frequency, and exact position on the grand staff. Scroll left/right on small screens to see all 88 keys.

The Musical Alphabet

Western music uses only seven letter names: A, B, C, D, E, F, G. After G, the sequence starts again from A. These seven letters label all the white keys on a piano — repeat the pattern across every octave and you've named all 52 of them.

ABCDEFGArepeats each octave

Black keys represent the sharps and flats — the notes between the natural notes. A sharp (♯) raises a note by a half step; a flat (♭) lowers it. Black keys appear in a distinctive pattern of groups of two and three, which makes every note easy to find without looking at labels.

52 white keys
The natural notes A through G, repeated across all octaves.
36 black keys
Sharps and flats in alternating groups of 2 and 3.
No black between B–C or E–F
These pairs are a half step apart — no key fits between them.

Octaves and Numbering

Each group of 12 notes (7 white + 5 black) is called an octave. To distinguish notes with the same letter name, musicians add an octave number: C4 is one octave above C3 and one octave below C5. The system is called Scientific Pitch Notation.

Octave numbers change at each C — so the sequence runs: …A3, B3, C4, D4, E4… The piano spans from A0 (the lowest key) to C8 (the highest key).

OctaveRangeKeysNotable pitch
0A0 – B03A0 — lowest piano key
1C1 – B112
2C2 – B212
3C3 – B312
4C4 – B412C4 = Middle C · A4 = 440 Hz
5C5 – B512
6C6 – B612
7C7 – B712
8C81C8 — highest piano key

Middle C

Middle C (C4) is the most important landmark on the piano. It sits at the physical center of the keyboard and at the intersection of the treble and bass clefs on the grand staff — written on a ledger line between the two staves.

Note name
C4
MIDI number
60
Frequency
261.63 Hz
Position
4th C from left

Middle C is easy to find: it's the first C to the left of the group of two black keys nearest the center of the keyboard. Singers, conductors, and arrangers use it as a universal reference point — it sits within the natural singing range of most voices.

Concert pitch A4 — one octave and a sixth above Middle C — is tuned to exactly 440 Hz, the international standard since 1939. Most orchestras, digital tuners, and synthesizers default to this frequency.

The Grand Staff

Piano music is written on a grand staff: two five-line staves joined by a brace. The upper staff uses the treble clef (right hand); the lower uses the bass clef (left hand). Middle C sits on a ledger line between them.

TREBLECLEFBASSCLEF𝄞𝄢F5D5B4G4E4A3F3D3B2G2E5C5A4F4G3E3C3A2C4 ←Middle CRight hand (treble)Left hand (bass)
Treble Clef (right hand)

Lines bottom→top: E4, G4, B4, D5, F5

Spaces bottom→top: F4, A4, C5, E5

Range extends further with ledger lines

Bass Clef (left hand)

Lines bottom→top: G2, B2, D3, F3, A3

Spaces bottom→top: A2, C3, E3, G3

Range extends further with ledger lines

Notes beyond the staff range use ledger lines — short lines added above or below the staff. Middle C always sits on the first ledger line below the treble staff (and the first above the bass staff).

Why 88 Keys?

The piano's key count evolved over 200 years. Bartolomeo Cristofori's first pianoforte (~1700) had just 54 keys. As composers pushed for wider ranges and builders improved their craft, keyboards expanded.

~1700Cristofori's first piano — 54 keys (4½ octaves)
~1780Mozart-era fortepianos — 61 keys (5 octaves)
~1820Beethoven-era grands — 73–76 keys (6 octaves)
~1850Brahms-era grands — 85 keys (7 octaves)
~1880Steinway standardizes 88 keys — the standard used today

Steinway settled on 88 keys in the 1880s and nearly every major manufacturer followed. The limits are acoustic: strings above C8 are too short to sustain a musical tone, and strings below A0 would need to be impractically long. A handful of specialty instruments (like the Bösendorfer Imperial) extend the bass range to 97 keys — but 88 remains the worldwide standard.

Keep exploring

Music TheoryIntervalsTriadsHow the Piano Works