Notes, Octaves and the Keyboard
Learn the musical alphabet, octaves, half steps and whole steps, sharps, flats and enharmonic notes, and how pitch relates to frequency.
Welcome back!
Step 1 of 13Learn
Twelve notes make all the music you know
Every song you have ever heard, from a lullaby to a stadium anthem, is built from just twelve different notes, repeated higher and lower. Music theory is simply the set of names and patterns musicians use to describe how those twelve notes are combined. Learn the patterns and you can understand why a chord sounds happy or tense, find a song's key, or write your own melody with intention.
The white keys of a piano are named with the first seven letters of the alphabet: A B C D E F G. After G, the names start over at A. This is the musical alphabet.
Notes with the same letter name, like two Cs, sound like higher and lower versions of each other. The distance between them is an octave, from the Latin for eight, because it spans eight letter names (C D E F G A B C). To tell octaves apart, musicians add a number: middle C near the center of the piano is C4, the C above it is C5.
The piano keyboard is the easiest way to see music theory, even if you play guitar, sing or produce music on a laptop. Its pattern of black keys in groups of two and three repeats every octave. The white key just left of each group of two black keys is always C.
Step 2 of 13Practice · Choose one
On a piano, where is every C found?
Step 3 of 13Learn
Half steps and whole steps
The smallest distance between two notes in Western music is a half step, also called a semitone. On a keyboard, a half step is the distance from one key to the very next key, black or white, with nothing in between. C to the black key above it is a half step. E to F is a half step too, because there is no black key between them.
Two half steps make a whole step (a whole tone). C to D is a whole step, with a black key in between. E to F♯ is a whole step.
Look at the keyboard pattern again: there is no black key between E and F or between B and C. Those two pairs of white keys are only a half step apart. Every other pair of neighboring white keys is a whole step apart. This one fact explains a lot of music theory, including why the major scale has the pattern it does.
On a guitar, it is even simpler: each fret is one half step. Move up two frets and you have moved a whole step. Twelve frets, twelve half steps, and you reach the octave, which is why the 12th fret is usually marked with two dots.
Step 4 of 13Practice · Sort into groups
Is each pair of neighboring notes a half step or a whole step apart?
Tap an item, then tap its group (or drag it there).
Step 5 of 13Learn
Sharps, flats and enharmonic notes
The black keys are named after their white neighbors:
- A sharp (♯) raises a note by a half step. The black key just above C is C♯.
- A flat (♭) lowers a note by a half step. That same black key, just below D, is D♭.
So one black key has two names: C♯ and D♭. Notes that sound the same but are written differently are called enharmonic equivalents. Others: D♯ = E♭, F♯ = G♭, G♯ = A♭, A♯ = B♭.
Sharps and flats apply to white keys too. E♯ sounds the same as F, and C♭ sounds the same as B. These look strange at first, but they appear in certain keys so that every letter name is used once in a scale.
Which name should you use? It depends on context, which you'll see in the lessons on scales and keys. In a key with sharps, you write sharps; in a key with flats, flats. Writing A♯ in the key of F major, where the note is B♭, is a spelling mistake, much like writing "there" for "their": it sounds the same but reads wrong to musicians.
A natural sign (♮) cancels a sharp or flat and returns the note to its plain letter.
Counting all twelve notes in an octave using sharps: C, C♯, D, D♯, E, F, F♯, G, G♯, A, A♯, B, and then C again.
Step 6 of 13Practice · Match the pairs
Match each note to its enharmonic equivalent.
Tap an answer, then tap the place where it belongs (or drag it there).
- C♯
- F♯
- A♯
- E♯
- C♭
Step 7 of 13Practice · Work it out
Counting by half steps on a keyboard, how many half steps is it from C up to the next G?
Step 8 of 13Learn
Pitch and frequency
Physically, a note is a vibration. Its pitch depends on its frequency, measured in hertz (Hz): vibrations per second. Most modern music tunes A4, the A above middle C, to 440 Hz. Some orchestras tune slightly higher, around 442 Hz.
Going up an octave doubles the frequency. A5 is 880 Hz, A3 is 220 Hz, A2 is 110 Hz. That doubling is why notes an octave apart sound so similar: their vibrations line up neatly.
Inside each octave, modern instruments use equal temperament: the octave is split into 12 equal steps on a ratio scale. Each half step multiplies the frequency by the twelfth root of 2, about 1.0595. So the frequency of any note is:
f = 440 × 2^(n/12), where n is the number of half steps above A4 (negative below it).
Middle C is 9 half steps below A4, so f = 440 × 2^(-9/12) ≈ 261.6 Hz. The explorer below shows this curve: each octave doubles the frequency, so the steps get bigger in hertz as you climb, even though they sound equal to the ear. Human hearing roughly perceives equal ratios as equal steps, not equal differences in Hz.
Step 9 of 13Explore
Note frequencies in equal temperament
The curve shows frequency for notes from 24 half steps below to 24 half steps above the reference A. Change the reference to see how tuning standards shift every note.
- Middle C (9 half steps below A4)
- 261.6 Hz
- A5 (one octave up)
- 880 Hz
- One half step above A4 (A♯4)
- 466.2 Hz
Step 10 of 13Practice · Work it out
If A4 is tuned to 440 Hz, what is the frequency of A3, one octave lower, in hertz?
Step 11 of 13Practice · Chart
Every octave doubles the frequency
Equal steps in pitch are not equal steps in hertz: each A is twice the one below, so the curve bends upward.
Tap the A whose frequency is one quarter of A5.
Tap the point that answers the question, then press Check.
| Item | Frequency |
|---|---|
| A1 | 55 Hz |
| A2 | 110 Hz |
| A3 | 220 Hz |
| A4 | 440 Hz |
| A5 | 880 Hz |
| A6 | 1,760 Hz |
Step 12 of 13Note
Step 13 of 13Practice · True or false
Notes one octave apart have frequencies in a 2:1 ratio.
Lesson complete!