Keyboard Anatomy
The keyboard of a piano or electronic keyboard consists of white and black keys arranged in repeating groups. Each group of 12 keys, 7 white and 5 black, represents a complete octave. An 88-key piano covers a little more than 7 octaves, while beginner keyboards generally have 61 or 49 keys, covering 5 or 4 octaves.
The black keys appear in groups of two and three. This visual pattern is the keyboard's compass: the group of two black keys sits above C and D, while the group of three sits above F, G, and A. Recognizing these groups is the first step toward finding your way around the instrument without looking at labels.
Use the <a href="/ferramentas/piano/">Cantivy Virtual Piano</a> to explore the keyboard for free in your browser while studying this guide.
Notes on the White Keys
The 7 white keys in each octave correspond to the 7 musical notes of the diatonic scale: C, D, E, F, G, A, and B. After B, the cycle starts again on the C of the next, higher octave.
The most important reference point is C: it is always to the left of a group of two black keys. Once you locate C, you can locate every other note in the octave by following the sequence.
Black Keys: Sharps and Flats
The 5 black keys in each octave represent the 5 altered semitones: C#/Db, D#/Eb, F#/Gb, G#/Ab, and A#/Bb. Notice that there is no black key between E and F or between B and C—those pairs are already one semitone apart.
Each black key has two names: one with a sharp, which raises the lower note by a half step, and one with a flat, which lowers the higher note by a half step. The name used depends on the key of the music. For a beginner, the most important thing is knowing that the black key between C and D is called C sharp or D flat—the same physical note with two theoretical names.
Over time, you will identify the black keys instinctively from the visual pattern without needing to count.
Octave Numbers and Middle C (C4)
Musicians identify each note with an octave number to avoid confusion. The most widely used system is scientific pitch notation: C4 is middle C, the reference note located near the middle of a standard piano keyboard. C3 is the C one octave below, and C5 is one octave above.
Middle C (C4) is the note immediately to the left of the central group of two black keys on an 88-key piano. On a 61-key keyboard, it sits slightly to the left of the physical center.
Knowing octave numbers is essential when programming synthesizers, using DAWs such as GarageBand, or writing sheet music—all of these tools use C4 as a universal reference.
Ready to put what you learned into practice? Cantivy has free tools and AI music generation.