Scale Finder, Explained

After reading this you will know how a set of notes maps to the scales that contain it, how to rank those scales by fit, and how to read the results without being fooled by enharmonic spelling or partial matches.

What the tool does and one quick example

You give it a handful of notes. It returns every scale and key in its library that contains all of them, sorted so the tightest fit comes first. That is the whole idea, but the payoff is large: it turns a vague question ("what key am I in?") into a ranked list you can hear.

Say you play C, E, and G. Those three pitches sit inside many scales. C major contains them, but so do G major, F major, A natural minor, C Lydian, E Phrygian, and more. The tool lists all of them. The scales that add the fewest extra notes rank highest, so a pentatonic that covers your three notes with only two spare pitches outranks a seven-note major scale that adds four.

The library covers major, natural minor, harmonic minor, melodic minor (ascending), all seven diatonic modes, major and minor pentatonic, and the blues scale, in all 12 keys. That is roughly 200 scale-and-key combinations checked on every search.

When to use it, and when not to

Reach for it when you have notes and want names. You transcribed a riff by ear and want to know what scale fits. You wrote a melody and want to find compatible keys for harmonizing. You are improvising over a chord and want a scale that avoids clashing pitches.

It is the wrong tool when you already know the key and want chords, or when your question is rhythmic rather than melodic. For naming a stack of notes as a chord, use the Chord Identifier. For building a sequence of chords, use the Chord Progression Builder.

A match means the scale contains your notes, not that your notes imply that scale. Three notes can belong to a dozen scales. The ranking narrows the field, but only your ear and the musical context decide which name is correct.

The matching rule and the fit score

Every scale is a set of pitch classes: the 12 semitones of an octave, with octave doublings collapsed together. C in any octave is the same pitch class as C. A search reduces your input to a set of pitch classes too. The core test is set containment.

\text{match} \iff \text{Input} \subseteq \text{Scale}

Here Input is the set of pitch classes you entered and Scale is the set for one key of one scale type. The symbol \subseteq means "is a subset of": every input note must appear in the scale. If even one input note is missing, that scale is rejected.

Among the scales that pass, you want the one that adds the least. Define the fit as the count of extra notes the scale carries beyond your input.

\text{extra} = |\text{Scale}| - |\text{Input}|

|\text{Scale}| is the number of notes in the scale (5 for pentatonic, 6 for blues, 7 for the diatonic scales and modes). |\text{Input}| is how many distinct pitch classes you entered. Because a passing scale always contains your input, extra is never negative. Smaller is tighter. A 5-note scale that covers 4 of your notes has extra = 1; a 7-note scale covering the same 4 has extra = 3.

Why pentatonics tend to win

The fit score has a built-in bias toward small scales, and that bias is musically useful. If your notes fit inside a 5-note pentatonic, that pentatonic describes them more precisely than any 7-note scale can, because there is less room for pitches you did not ask for.

The table shows the extra-note count for a 4-note input across the scale sizes in the library.

Extra notes added for a 4-note input, by scale size
Scale typeScale sizeExtra notes
Major / minor pentatonic51
Blues62
Major, minor, modes, harmonic/melodic minor73

So a pentatonic that fits your four notes always ranks above any seven-note scale that fits them. When two scales tie on extra, the tool falls back to a stable order over key and type so the list stays predictable.

Reproducing the demo: C, E, G, A, B

Load the demo and you get five notes: C, E, G, A, B. As pitch classes that is the set {0, 4, 7, 9, 11} counting semitones from C.

  1. Reduce the input. Five distinct pitch classes, so |\text{Input}| = 5.
  2. Test C major, the set {0, 2, 4, 5, 7, 9, 11}. Every input pitch class is present, so it matches. Extra notes: 7 - 5 = 2 (the missing scale tones are D and F).
  3. Test G major, {7, 9, 11, 0, 2, 4, 6}. All five inputs present, so it matches too, also with extra = 2. Same for the modes that share these seven pitches.
  4. Test C major pentatonic, {0, 2, 4, 7, 9}. It is missing pitch class 11 (B), so it fails: B is in your input but not the scale.
  5. Test the blues scale in C, {0, 3, 5, 6, 7, 10}. It is missing 4, 9, and 11, so it fails badly.

The seven-note diatonic families that contain {0, 4, 7, 9, 11} all tie at extra = 2 and top the list. No 5-note or 6-note scale in the library covers all five inputs, because those inputs already span the interval structure that only a full diatonic collection provides. That result is itself informative: five notes this spread out force a seven-note scale.

Reading and interpreting the results

The list is ranked by extra, ascending. Read it as a set of candidates, not a verdict. Selecting a result shows the full scale with your input notes highlighted, and plays it so you can judge fit by ear. The highlighting is the fastest way to see which scale tones are "yours" and which are the extras the scale brings along.

Two readings help. First, if the top of the list is dominated by one seven-note collection appearing under many names (C major, A minor, D Dorian, and so on), those are all the same seven pitches. Pick the name whose tonic matches the note your music resolves to. Second, if a pentatonic appears near the top, your notes are compact and you have real freedom: the extras it omits are notes you can add later without leaving the scale.

With 3 input notes, a 5-note pentatonic that contains them scores extra = 2, a 6-note blues scores extra = 3, and a 7-note major or mode scores extra = 4. Adding a fourth note lowers each of those by one only if the scale still contains all your notes; otherwise the scale drops off the list entirely.

Common mistakes

The first trap is enharmonic spelling. The tool works in twelve-tone equal temperament, so F# and Gb are the same pitch class. A result may display F# in a sharp key and Gb in a flat key for the identical pitch. Do not treat them as different notes.

The second trap is expecting the tool to name your key from three notes. A triad like C-E-G fits C major, C Lydian, C Mixolydian, F major, G major, and more, all correctly. The tool cannot know which one you mean because the input genuinely does not determine it. Add the notes that carry the melody's character (the raised or lowered degrees) and the list shortens fast.

If too many scales tie at the top, enter more notes. Each note that lands on a distinguishing degree, a 4th, a 6th, or a leading tone, cuts the candidate list. Going from 4 notes to 6 often reduces a dozen matches to two or three.

The third trap concerns melodic minor. The tool matches its ascending form, so it includes the raised 6th and 7th. The descending form of melodic minor is identical to natural minor, which is a separate entry, so you will not lose it.

How much the candidate count shrinks as you add notes

The chart traces a typical search: how many of the library's scales still match as you add notes to a growing set that stays inside C major.

A single note matches most of the library; by seven notes only the exact diatonic collection and its modal names survive.

The counts are approximate and depend on which notes you pick, but the shape is reliable: matches fall steeply with each added note. One note leaves almost everything on the table. Seven notes that form a complete diatonic scale collapse the list to that one collection (shown under all its equivalent names).

Frequently asked questions

Why do I get so many results for just three notes?

Three notes are contained in many scales. A major triad sits inside at least half a dozen keys. That is a fact about music, not a flaw. Add notes to narrow it, and trust the ranking to put the tightest fits first.

Why does the same pitch show as F# in one result and Gb in another?

Spelling follows key context: sharps in sharp keys, flats in flat keys. In equal temperament the two are the same pitch, so both results are correct for their respective keys.

Does note order or octave matter?

No. The tool reduces your input to pitch classes, ignoring octave and order. Playing C then E is the same input as E then C, and a high C is the same as a low C.

Why is a pentatonic ranked above a major scale that also fits?

The ranking rewards the smallest scale that contains your notes. A 5-note scale adds fewer extra pitches than a 7-note scale, so it describes your input more precisely and ranks higher.

Can it find rhythms or chord sequences?

No, it only handles pitch content. For rhythm patterns see the Euclidean Rhythm Generator.