In music, the distance between two notes is called an interval. Understanding the distance between notes is the foundation of scales, chords, melodies, and every other piece of music theory. Once you can identify the distance between any two notes, the rest of theory starts to click into place.

In this article we'll focus on the two smallest units of distance between notes: the semitone (half step) and the whole tone (whole step). Every larger interval — thirds, fifths, octaves — is built from these. If you need a refresher on note names first, check out How do music notes work.
What is a semitone (half step)?
A semitone, also called a half step, is the smallest distance between two notes in Western music. On a piano keyboard, it's the distance between any two neighboring keys, regardless of whether they're black or white. Move one key right or one key left and you've moved a semitone.

Examples of semitones: F♯ and G, E and F, G and G♯, B and C.
Notice that two pairs there — E to F, and B to C — are white keys right next to each other with no black key between them. Those are still semitones, just like F♯ to G. The keyboard layout is what makes the semitone visible: any two adjacent keys are always one semitone apart.
What is a whole tone (whole step)?
A whole tone, also called a whole step, equals two semitones. On the piano, it's the distance between two notes with exactly one key between them — whether that key is black or white.

Examples of whole tones: C and D, E and F♯, G and A, A and B.
Why half steps and whole steps matter
Once you can identify half steps and whole steps, scales make sense. A major scale is just a specific pattern of whole steps (W) and half steps (H):
W - W - H - W - W - W - H
Start from C and apply that pattern — C, D, E, F, G, A, B, C — and you get the C major scale. Every major scale in every key uses that exact same pattern of whole and half steps. The natural minor scale uses a different pattern (W - H - W - W - H - W - W), and that's why it sounds different.
The same principle applies to chords, intervals, and key signatures. Theory is mostly bookkeeping about whole steps and half steps.
Semitones and the 12 notes of music
Western music divides the octave into 12 equal semitones. From C up to the next C, you pass through 12 half steps: C, C♯, D, D♯, E, F, F♯, G, G♯, A, A♯, B, C. This is called the chromatic scale. Every other scale (major, minor, pentatonic, blues) is a selection of notes from these 12 semitones.
How to practice recognizing distances between notes
Use your physical or virtual piano to play half steps and whole steps and train your ear to recognize them. Play C to C♯ (a semitone), then C to D (a whole tone), and listen to how the second sounds more "open." Then try the reverse: play a random pair of notes and try to identify whether they're a half step or a whole step apart, on the keyboard and by ear.
Only active practice builds the ability to recognize these distances visually, logically, and audibly. The good news is it doesn't take long — once half steps and whole steps click, they stay clicked.
