Knowledge hub / AFG Music / theory

What Are Scales and Keys? — AFG Music

Distinguish a collection of notes from a tonal centre. Major-scale patterns and musical examples connect scale construction with melodies and keys.

About this reference

From the music-learning collection, adapted for Philojain Music Muse. Referenced sources remain credited in the article.

In short: A scale is a set of notes that sound good together; a key is the group of notes and chords a piece is built from, centred on a home note. Together they are the backbone of melody and harmony.

Scales: notes that belong together

A scale is an ordered pitch collection or pattern of intervals. The major scale is one familiar example, but a melody need not use only one scale, and different musical traditions organise pitch differently. Learning a pattern is useful when you also hear how its notes function in a phrase.

Ask about this section →

Keys: a home base

A key describes a tonal centre and related harmonic organisation. C-major music can establish C as home while also using chromatic notes or borrowed chords; not every phrase has to resolve to the tonic.

Ask about this section →

The octave, cut into twelve equal steps

This guide’s frequency arithmetic uses twelve-tone equal temperament: twelve equal semitone steps per octave. A cent is one hundredth of an equal-tempered semitone, so a frequency-doubling octave spans 1,200 cents. Other tuning systems and scale traditions also exist; this grid is the calculator’s scope, not a universal description of all music.

That grid is what a scale draws from. The major scale most people learn first does not use all 12 semitones; it selects seven of them in one fixed order — whole step, whole step, half step, whole step, whole step, whole step, half step, usually written W-W-H-W-W-W-H. Add those steps in semitones (2+2+1+2+2+2+1) and the total is exactly 12, confirming the seventh step lands back on the octave of where you started. That formula is standard music notation rather than a figure from any one source, but it only works because the 12-semitone octave underneath it is real.

Ask about this section →

One pattern, twelve places to start it

Within twelve-tone equal temperament, a major-scale pattern can begin on each of twelve pitch classes. Transposing by a semitone shifts every note by that amount while preserving the intervals between notes. Written key names and signatures can use different enharmonic spellings for the same pitch-class collection.

Key relationships are not determined simply by the semitone distance between tonics. Shared notes, chords and key signatures matter: C major and G major share six scale notes even though their tonics are a fifth apart. Enharmonic spellings can represent the same equal-tempered pitches with different written names.

Start on C and the running tally reads C(0), D(2), E(4), F(5), G(7), A(9), B(11), C(12) — each number the semitone distance travelled from the starting C, the last one landing exactly on the octave. Start the same W-W-H-W-W-W-H pattern on any other note and the tally always finishes on 12; only the note names in between change.

Ask about this section →

Why they matter

Scales and keys provide a framework for writing, improvising and communicating. A key identifies a tonal centre; it does not prohibit chromatic notes, borrowed chords or modulation. Evaluate how a note functions in the phrase rather than treating the scale as a list of the only permitted sounds.

Ask about this section →

Build a scale from any starting note

Pick a starting note and a pattern, and this steps through the same whole-step/half-step arithmetic above. Nothing is stored or sent anywhere — it runs in your browser.

Notes are named with sharps rather than key-signature spelling — a scale built this way is correct in pitch even where a trained eye would spell a note as a flat.

Ask about this section →

Where this comes from

Britannica — Scale (music): the octave as “any graduated sequence of notes... dividing what is called an octave,” the 12 equal half steps used in Western music, and 100 cents to one half step in equal temperament. britannica.com

The W-W-H-W-W-W-H major-scale formula, the natural-minor formula, and the calculator above are standard, widely-taught music notation applied to that 12-semitone octave — not themselves a figure stated in the Britannica entry.

Explain it your way

Ask about this section →

Common questions

What is the difference between a scale and a key?

A scale is an ordered pitch collection; a key concerns a tonal centre and harmonic relationships. Sharing a collection does not by itself establish the same key.

How many scales are there?

Major and minor scales are useful starting points for this guide. Other scales, chromatic choices and tuning traditions also matter; choose further study around the music you want to understand.

Do I need theory to play?

No, but even a little makes improvising, writing and jamming with others much easier.

Explore more knowledge · Browse the link tree

Keep exploring

Follow the idea.

Read the theory reference

University of Puget Sound: key relationships provides the teaching context for this page’s explanation. The calculator’s equal-temperament arithmetic has a narrower scope than all musical traditions.

Build a scale, then establish its centre

Build G major by applying 2–2–1–2–2–2–1 semitone steps. Write one of each letter in order: G, A, B, C, D, E, F♯, G. F♯ supplies the whole step from E and the half step back to G. Writing G♭ in that position would reuse G and omit F, although an equal-tempered keyboard can produce the same pitch.

Use those notes to write a four-note phrase ending on G, then a phrase ending on E. Play each over a sustained G and over a sustained E. The collection stays unchanged, but the bass and phrase ending change what can feel central. A single ending is evidence to compare, not enough to establish the key of an entire song.

Practice: build D major without consulting the chart. Answer: D, E, F♯, G, A, B, C♯, D. Explain why both altered notes are needed. Then find its relative natural minor, B minor, and explain how sharing a key signature differs from sharing a tonic.

Reference scope: University of Puget Sound: Major-scale step structure. The exercises and answer checks above are original applications; they are not quotations or identified passages from an artist recording.

Major and natural-minor pitch-class builder

Compare C major pitch classes with C natural minor while retaining the same tonic reference. The major offsets are zero, two, four, five, seven, nine and eleven semitones; the natural-minor offsets are zero, two, three, five, seven, eight and ten. Transpose the tonic to inspect the same collection pattern elsewhere. Output uses sharp-only pitch-class labels, so D sharp may represent the sounding pitch normally spelled E flat in a score. This is a collection builder, not notation engraving or an analysis of key. A set of notes alone does not prove a tonal centre. Keep note spelling and the melody’s audible points of rest separate.

Reference for this lab’s limited model

✦ Meet Muse