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
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?
Why does my song's key sometimes seem ambiguous?
What if my song changes key?
Can I use chord names instead of single notes?
What's the difference between major and minor keys?
You might also like
Metronome Subdivision Calculator
Calculate beat subdivisions and timing intervals for any tempo and time signature.
⏱ 1 minMusicSample Rate Converter Calc
File size impact at 44.1k, 48k, 88.2k, 96k, 176.4k, and 192 kHz.
⏱ instantMusicMusic Royalty Calculator
Estimate Spotify, Apple, YouTube, Tidal stream payouts with distributor cuts.
⏱ 1 min