Everyday Utilities

Key Finder

Enter the notes or chords of a tune to find the keys it could be in.

Your numbers

Separate with spaces or commas. Notes: letters A to G with # or b. Chords: C, Am, G7, Fmaj7, Bdim, Dsus4, C/E. Example data.

Result

Possible keys

Fits C major and A minor

6 keys contain all 5 different pitch classes.

Best match
C major
Keys that contain every note
C major, A minor, F major, G major, D minor, E minor
Different pitch classes
5
Notes read
9

Best keys

RankKeyScale notesNotes outside
1C majorC D E F G A Bnone
2A minorA B C D E F Gnone
3F majorF G A Bb C D Enone
4G majorG A B C D E F#none
5D minorD E F G A Bb Cnone
6E minorE F# G A B C Dnone
7D majorD E F# G A B C#C
8G minorG A Bb C D Eb FE
How this was calculated
  1. Each note is reduced to one of 12 pitch classes (C = 0 up to B = 11), ignoring octaves and spelling: C, D, E, G, A.
  2. For all 12 major keys (steps 2 2 1 2 2 2 1) and 12 natural minor keys (2 1 2 2 1 2 2), the notes outside the key's seven-note scale are counted.
  3. Keys are ranked by the fewest notes outside, then by how many notes of the key's own tonic chord appear, then by whether the tune starts or ends on the tonic, then major before minor.
  • A tune can fit several keys; only the music itself says which one is meant. Harmonic and melodic minor, modes and passing notes are not tried, so a single borrowed note can move the best match to a nearby key.

Calculated using SumPanda.com · https://sumpanda.com/key-finder-from-notes-calculator/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the key finder

  1. Choose whether your list holds notes or chords.
  2. Type or paste them, separated by spaces or commas. Notes use letters A to G with # or b, such as F# or Bb, and octave numbers are ignored. Chords can be C, Am, G7, Fmaj7, Bdim, Dsus4 or C/E.
  3. Read the headline for the keys that contain every note, and the table of the best eight keys with their scale notes and any notes outside the key.
  4. Use the ranking order to choose between keys that share the same notes.

Formula

major scale steps: 2 2 1 2 2 2 1 natural minor steps: 2 1 2 2 1 2 2

a key fits when every pitch class of your notes is in its seven-note scale

rank by fewest notes outside, then tonic chord notes present, then first or last note, then major first

Each note becomes one of 12 pitch classes, from C = 0 to B = 11, and chords are broken into their notes. All 12 major and 12 natural minor keys are tested against them. Relative major and minor keys share the same seven notes, so only the tie-break tells them apart.

A tune built on five notes

The default list C E G A C D E G A has five different pitch classes: C, D, E, G and A. Six keys contain all of them: C major, A minor, F major, G major, D minor and E minor. The best match is C major, then A minor, because the tune starts on C and ends on A.

Adding a note outside those keys changes the answer. The list C E G A# D fits D minor and F major exactly, because A# is the same note as Bb. The chords C, Am, F and G7 fit C major and A minor.

Why more than one key can fit

A key is a set of seven notes, and many tunes use only some of them. A tune that uses five notes of a scale fits every key whose scale contains those five. A pentatonic melody, for example, fits several keys at once. Only the music itself, such as where it rests and which chords it uses, shows which key is meant.

The ranking uses the tonic chord and the first and last notes as hints. They are rules of thumb and not proof. For the sharps and flats of each key, see the Circle of Fifths, and to move a chord chart to another key, the Chord Transposer.

What this page does not detect

Only major and natural minor keys are tried, so a tune in a mode such as Dorian or in harmonic minor may show a note outside the best key. Passing notes and borrowed chords do the same. The list of scale notes on each row helps you see whether the outside notes are just decoration. The Musical Scale Generator lists the notes of any scale, and the Chord Progression Generator suggests progressions in a key.

More hobby and sport tools

For other hobbies, sports and music, try the Maidenhead Locator Converter, Poker Chip Distribution Calculator and Cycling Climb Speed Calculator.

Assumptions and limits

  • Notes are treated as pitch classes, so C# and Db are the same note, and octaves are ignored.
  • Only 12 major and 12 natural minor keys are searched.
  • Chords are read with a fixed list of qualities; unknown chord names are refused.
  • The ranking among tied keys is a convention and not a musical verdict.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

What is a relative minor?

The minor key that shares the notes of a major key, starting on its sixth note. A minor is the relative minor of C major, and both use no sharps or flats.

Why does my melody fit so many keys?

It uses few different notes. Every key that contains all of those notes fits. Add more of the tune, especially notes that are rare, to narrow the choice.

Does it handle sharps and flats in key names?

Yes. Keys are named with the usual choice of sharps or flats, such as F# major and Db major, and the scale notes on each row are spelled correctly for that key.

Can I enter lyrics or tab?

No. Enter note names or chord names only. A line of tab or lyrics is not understood, and the page names the entry it could not read.