Building it by stacking fifths
Start on C. Go up a perfect fifth — seven semitones on the twelve-semitone octave already familiar from how scales and keys are built — and land on G. Stack another fifth on top of G and land on D. Keep stacking: A, then E, then B, then on into the sharp keys a beginner sees less often, F♯ and C♯. The pattern holds every single time, because a perfect fifth is a fixed distance regardless of which note it starts from.
Continue past F♯ and C♯ and the pattern still holds — G♯, D♯, A♯ — though by that point a player is more likely to meet the same pitches spelled the other way, as flats, which is exactly the enharmonic overlap where the sharp side of the circle and the flat side meet.
In twelve-tone equal temperament, twelve successive seven-semitone fifths return to the starting pitch class. Written names and key signatures still require enharmonic spelling decisions.
Why it comes back around to C
A perfect fifth is seven semitones. Stack twelve of them and the total is eighty-four semitones — exactly seven full octaves, since eighty-four divided by twelve is seven — which lands back on a C, seven octaves higher than the one it started from (or, spelled enharmonically at that point, on B♯, the same pitch under a different name). That arithmetic is the entire reason the shape closes into a circle instead of running off in a straight line: twelve stacked fifths and seven stacked octaves cover exactly the same distance.
In twelve-tone equal temperament, each fifth spans seven equal semitones, so twelve fifths span seven octaves. This closure depends on the tuning system; pure 3:2 fifths do not produce the same result.
One direction adds sharps, the other adds flats
Moving clockwise around the circle in fifths — C, G, D, A and onward — adds one sharp to the key signature at every step. Moving the other direction, which is the same motion in fourths rather than fifths, adds one flat at every step instead: C, F, B♭, E♭ and onward. That is the entire mechanism behind the sharp-and-flat key-signature order this site’s own chord and scale reference chart already lists — it isn’t an arbitrary sequence to memorise, it falls straight out of which direction around the circle of fifths a given key sits.
Take G, one step clockwise from C: it needs one sharp, F♯, to keep its scale in the same W-W-H-W-W-W-H shape this site’s scales-and-keys page already sets out. Take D, two steps clockwise: it needs two sharps, F♯ and C♯ — each additional step around the circle adding exactly one more sharp, in a fixed, predictable order, to keep that same shape intact starting from a new note.
What sits next to what, and why it’s useful
Adjacent major keys on the usual circle share six diatonic pitch classes. Relative major and natural-minor scales share a key signature and pitch collection, but have different tonal centres. Shared notes provide harmonic connections without guaranteeing a smooth-sounding transition.
A neighbouring-key change can retain many notes and chords. Its perceived effect also depends on voice leading, rhythm, texture and how the new tonic is established; the diagram alone does not guarantee a lift or smooth transition.
Because so much harmonic movement in popular and classical music travels by fifths — the ii-V-I progression covered on this site’s chord-progression page is a short hop around the circle — the circle doubles as a fast way to predict which chords are likely to turn up in a given key, well before working through a full scale.
The circle closes exactly — but only because those fifths are already rounded
The circle’s exact closure here assumes twelve-tone equal temperament. Its fifth is seven equal semitones, or 700 cents; a pure 3:2 fifth is about 701.955 cents. This difference explains why the same stacking exercise gives different results in the two tuning systems.
A pure fifth has frequency ratio 3:2. Twelve such fifths exceed seven pure octaves: the ratio is (3/2)^12 divided by 2^7, or 531441/524288. Dartmouth’s tuning handout illustrates this mismatch, called the Pythagorean comma.
The gap has a name, and it’s why equal temperament exists at all
The comma is approximately 23.46 cents, commonly rounded to 24 cents in introductory illustrations. This page calculates it as 1200 × log2(531441/524288); the Dartmouth handout uses the rounded value.
In twelve-tone equal temperament, the twelve fifths each measure 700 cents, about 1.955 cents narrower than a pure fifth. Across twelve fifths that difference accounts for the comma, allowing the pitch-class cycle to close. Other temperaments distribute tuning compromises differently.
Reading it without memorising the whole thing
Nobody needs the full twelve-key circle memorised to get real value from it. Knowing the mechanism — stack fifths, sharps one way, flats the other, neighbours are closely related — is usually enough to work out any specific key signature on the spot rather than recalling it from memory.
Within the standard written major-key signatures, count sharp-side or flat-side steps from C. Choose the appropriate enharmonic spelling near the overlap, and check the scale’s letter names and accidentals rather than relying on pitch classes alone.
For the full twelve-key lookup, with every key’s signature, scale notes and relative minor gathered in one searchable table, this site’s chord and scale reference chart already has it worked out in full.
Where this comes from
Larry Polansky, Dartmouth College Electro-Acoustic Music course materials, “The Pythagorean Comma”. eamusic.dartmouth.edu
Common questions
Do I need to memorise the circle of fifths?
Not really — understanding how it’s built, stacking fifths with sharps one way and flats the other, lets you work out any key signature without rote memorisation. A quick lookup table covers the rest.
What’s the difference between the circle of fifths and a scale?
A scale is the notes inside one key. The circle of fifths is a map of how all twelve keys relate to each other, arranged by shared notes rather than alphabetically.
Why does the circle matter for playing, not just theory?
Neighbouring major keys share six diatonic pitch classes. That relationship can support a key change, but its musical effect depends on the passage and arrangement.