Music

Key Signature Finder

Enter the notes of any melody and find its most likely key — major or minor — with confidence scoring based on listener research.

Quick Answer

The tool uses the Krumhansl-Schmuckler algorithm: count each pitch, compare to known key profiles, and rank by correlation. Top match is the most likely key. Repeated and emphasized notes count more.

Enter Your Notes

Notes (space or comma separated)

Use # for sharp, b for flat (e.g. F#, Bb). Repeat notes that occur often.

Or click notes to add

Most Likely Key

C Major

Confidence: 85.1%

Scale notes: C – D – E – F – G – A – B

Top 5 Candidates

C Major85.1%
E Minor74.9%
A Minor61.2%
G Major55.9%
C Minor34.2%

About This Tool

The Key Signature Finder analyzes the notes of any melody, riff, or chord progression and identifies the most likely key — major or minor — using the well-established Krumhansl-Schmuckler algorithm. This is the same approach used in academic music information retrieval and in many DAW plugins. Enter your notes and the tool returns a ranked list of candidate keys with confidence scores.

How Key Detection Works

The algorithm counts how often each of the 12 pitch classes appears in your input. That distribution is compared against empirically derived "key profiles" that describe how stable each scale degree feels to listeners in major and minor keys. The tonic (1st degree) is the most stable, followed by the 5th and 3rd. Non-scale tones rate lowest. By correlating your pitch distribution with all 24 possible key profiles, the algorithm finds the best fit.

Why Major and Minor Profiles Differ

Major keys emphasize the major 3rd above the tonic, giving them a bright, stable feel. Minor keys emphasize the minor 3rd, producing a darker character. The two profiles also weight the 6th degree differently (natural in major, lowered in minor) and treat the 7th degree distinctly. These differences let the algorithm distinguish C major from C minor even when they share many notes.

Edge Cases and Modal Music

Modal music (Dorian, Mixolydian, Lydian, etc.) can confuse simple major/minor detection because the modes share notes with related major and minor keys but center on different tonic notes. A Dorian melody on D will often match D minor or C major in this tool. The confidence score will be lower for modal pieces, hinting at the ambiguity. For modal analysis, focus on which note functions as "home" rather than which key matches statistically.

Modulation and Key Changes

Many songs change keys mid-piece — a bridge in a different key, a final chorus modulated up a step, or jazz tunes that pivot through multiple key centers. To analyze modulation, run each section through the tool separately. If the verse strongly suggests C major and the bridge strongly suggests A minor, you've confirmed a modulation. Mixing notes from both sections will produce a less confident result.

Pair With Other Tools

Once you know the key, use our Chord Progression Builder to see common progressions in that key, the Circle of Fifths Tool to find related keys for modulation, the Music Interval Calculator to analyze melodic motion, or the Chord Transposer to move your song to a different key. The Note Frequency Calculator is handy if you need exact Hz values for tuning.

Practical Use Cases

Songwriters use key detection to ensure backing tracks match a vocal part. Cover band members use it to figure out how to play a song they only have a recording of. Music students use it to verify their analysis of classical pieces. DJs use key detection (sometimes called "harmonic mixing") to find tracks that mix smoothly together — songs in the same or adjacent keys blend without harmonic clashes.

Frequently Asked Questions

How does the key signature finder work?
The tool counts how often each pitch class (C, C#, D, etc.) appears in your input, then compares that distribution to the Krumhansl-Schmuckler key profiles — empirical data from listening experiments showing which scale degrees feel most stable in major and minor keys. The closest match wins. The top 5 candidates are shown with confidence scores.
Why does my song's key sometimes seem ambiguous?
Major and minor keys share the same notes (C major and A minor both use only the white keys on a piano), so distinguishing between them requires looking at which note feels like home. Songs that emphasize the minor third strongly are likely in minor; songs that resolve to a major chord are likely in major. Modal music (Dorian, Mixolydian, etc.) can also produce ambiguous matches.
What if my song changes key?
Modulation is common in classical, jazz, and pop bridges. Try analyzing one section at a time. Enter only the verse notes, then the chorus, then the bridge. If the algorithm gives different top results for different sections, you've found the modulations. The scores will also be lower (less confident) when notes from multiple keys are mixed together.
Can I use chord names instead of single notes?
This tool expects single note names (C, F#, Bb). For chord-based analysis, enter every note in each chord. A C major chord is C-E-G; a Dm7 chord is D-F-A-C. Repeating notes that occur in multiple chords adds emphasis, which is usually accurate to the listener experience.
What's the difference between major and minor keys?
Major keys use the major scale pattern (whole-whole-half-whole-whole-whole-half) and tend to sound bright, happy, or triumphant. Minor keys use the natural minor scale (whole-half-whole-whole-half-whole-whole) and feel darker, sadder, or more dramatic. Each major key has a relative minor that shares the same notes (C major / A minor, G major / E minor, etc.).