Two keys are neighbors (also called closely related keys) when their key signatures differ by at most one accidental. That means they share six of their seven notes, which is why modulating between them sounds completely natural. Every key has exactly five neighbors: its relative key (same key signature), plus the keys a fifth above and a fifth below, together with their relatives.
Exercise 1: Complete the table of neighbors
A key is shown. Write its 5 neighboring keys in the matching cells and press Check. You can move between cells with Enter.
Exercise 2: Are they neighbors?
Two keys are shown. Decide whether they are neighbors (their key signatures differ by 0 or 1 accidental) or distant (they differ by 2 or more).
To review the theory first, read the full guide to closely related keys before practicing.
Playing scales with the online metronome builds muscle memory. The online tuner lets you check that the altered notes of each key signature are in tune.
Frequently Asked Questions
What are neighboring keys?
The neighboring keys of a key are those whose key signature has one sharp or flat more or fewer than the starting key (or the same key signature). Every major key has exactly 5 neighbors: its dominant key (one more sharp), its subdominant key (one more flat) and the relative minors of all three.
How many neighboring keys does a major key have?
Five: the dominant (major key on the 5th degree), the subdominant (major key on the 4th degree), the relative minor (on the 6th degree), the relative minor of the dominant and the relative minor of the subdominant. Together they form the immediate harmonic neighborhood of the key.
Why do neighboring keys matter in composition?
Modulations to neighboring keys are the most natural and common in tonal music. Because the keys share almost all their notes, the change is smooth and the ear hears it as coherent. Composers such as Bach, Mozart and Beethoven modulate to neighboring keys constantly to create variety without losing the sense of a home key.
How can I tell if two keys are neighbors?
Compare their key signatures. If they differ by a single accidental (one has one more sharp or flat than the other), they are neighbors. For example, C major (no accidentals) and G major (1 sharp) are neighbors. C major and D major (2 sharps) are not direct neighbors.
What are the neighboring keys of C major?
The 5 neighbors of C major are G major (1♯), F major (1♭), A minor (the relative minor of C major, no accidentals), E minor (the relative minor of G major, 1♯) and D minor (the relative minor of F major, 1♭).