Guides

    How to find the key of a song

    A song's key is the note and scale the music treats as home — the tonic it keeps resolving to. You can find it three ways. Analyse the audio: our free BPM & Key Finder estimates the key in your browser, and on 247 real recordings with human-annotated ground truth it named the exact key on 53.5% of tracks, with the relative major or minor — the same notes, differently centred — the next most common near-answer. Work it out from the chords: the chord the progression resolves to is usually the tonic chord, so identifying the chords identifies the key. Or find it by ear: play candidate notes over the chorus and listen for the one that sounds like rest.

    Updated

    Written by The Melodara Team — working songwriters and producers in Los Angeles and New York. How we write and check: our editorial standards.

    1. What does "the key of a song" mean?

    The key names two things together: a tonic (the home note, like D) and a mode (major or minor, like D major or D minor) — which together imply the scale the song mostly draws its notes and chords from, and the place its phrases come to rest. Two keys can share every note: A minor and C major use the same pitch collection, differing only in which note is home. That relationship — relative minor and relative major, a minor third apart — is the source of most key-identification arguments, human and machine alike, because the audio evidence for the notes is identical and only the sense of resolution separates them.

    2. How do you find the key by analysing the audio?

    Upload the recording to the BPM & Key Finder and it estimates the key (with the tempo) locally in your browser. Key estimators weigh how much of the audio's energy sits on each of the twelve notes and match that profile against the shapes of major and minor scales. On music built from clear chord progressions, that works well; on sparse, modal or heavily chromatic music, the profile is genuinely ambiguous.

    Our published benchmark is the honest scale of that "well": 247 Creative Commons and public-domain recordings — electronic, hip-hop, solo guitar, folk, rock, classical — scored against the datasets' own expert annotations on a held-out split. The tool named the exact key (tonic and mode) on 53.5% of tracks. The misses were mostly near-misses in musically meaningful directions: the relative major or minor on another 7%, the key a perfect fifth away on 12.8%, and the parallel major or minor on 12.8%. In other words, the tool reliably narrows a song to a small family of candidate keys; the chord method below picks the winner.

    3. How do you find the key from the chords?

    The progression usually tells on itself. List the chords in the chorus — if you play them but cannot name them, the guitar chord finder and the chord identifier name shapes and note combinations for you — then ask which chord the progression keeps leaving from and returning to, and which chord the phrases end on. That chord is normally the tonic chord, and its quality (major or minor) names the mode: a progression that comes to rest on A minor is in A minor, however many C major chords it contains.

    Cross-check with the scale test: the chords of an ordinary progression are mostly built from one scale's notes. If your list is Am–F–C–G, every chord belongs to both A minor and C major — deliberately ambiguous — and resolution settles it: the progression that keeps landing home on Am is in A minor. When the chorus and verse suggest different answers, the chorus usually owns the song's key, because it is the destination the whole arrangement points at.

    4. How do you find the key by ear with one note?

    You need any instrument, or a piano app, and the chorus. While it plays, try the candidate tonic you suspect — from the analyser, or from the last chord — as a single sustained note. The true tonic sounds like rest: the music can stop on it. A wrong candidate sounds like a question still hanging, or actively clashes with the chords passing underneath. Then test its quality: play the minor third and the major third above the tonic against the recording; the one that belongs tells you minor or major. Two minutes of this turns the analyser's shortlist into a verdict, and it works on songs too sparse or strange for any profile-matching.

    Sung version of the same test: when the song ends, sing the note your memory wants it to end on. Listeners internalise the tonic so thoroughly that the note you hum as "home" over a finished chorus is right far more often than it is wrong.

    5. What if the song changes key, or has no key?

    Plenty of honest answers are not a single key. Songs modulate — the final chorus lifted a semitone is the famous case — and the correct report is both keys and where it changes. Modal songs centre on a note without behaving like textbook major or minor (a Dorian groove sits between them, and naming the centre and the mode is the precise answer). Spoken and rap verses over a loop may imply a key only from the bassline and the hook. And some music is deliberately keyless. An analyser forced to answer will pick its least-bad candidate on all of these; the chord and ear tests are how you find out which case you are holding.

    6. Do it in melodara

    Analysis first for speed, chords second for the verdict, records last so you never repeat the work:

    • Run the recording through the BPM & Key Finder and note the suggested key (and the BPM alongside it).
    • List the chorus chords — name any unknown shapes with the chord identifier — and check which chord the progression resolves to.
    • If the two disagree, trust resolution over profile: hum the home note over the chorus and settle major versus minor with the third test.
    • Write the confirmed key into the song's notes in melodara; you will need it for cover releases, capo and transposition decisions, and sync metadata.

    Frequently asked questions

    How do I tell if a song is in a minor key or its relative major?
    Same notes, different home — so stop counting notes and watch the resolution. The key is where phrases come to rest: the chord the progression ends on and returns to, and the note you would hum as "finished". If the chorus keeps landing on A minor chords and A feels like rest, the song is in A minor, even though C major shares its scale. Analysers confuse the pair more than any other; your sense of home is the tiebreaker.
    The tool and the chord chart say different keys. Which is right?
    Trust the chords, usually. An analyser weighs the audio's note content across the whole clip, so a long intro, a solo in a borrowed scale or a modulation can tilt its answer. The chord method reads the progression's behaviour — what it resolves to — which is what "key" actually means. Use the tool to get a shortlist fast, then let resolution pick. If both point at relatives (A minor versus C major), the hum test settles it.
    Do all songs have a key?
    Nearly all popular songs do, in the practical sense of a home note and a mostly-consistent scale. The exceptions are real, though: spoken pieces over static loops, atonal and experimental music, heavily chromatic jazz, and songs that modulate repeatedly may have no single answer. "It centres on D, mostly Dorian, and lifts to E for the last chorus" is a complete and professional description — precision beats forcing one label.
    I play with a capo. What key am I in?
    The song's key is what the audience hears — the sounding (concert) key — not the shapes your fingers are making. G shapes with a capo on the second fret sound in A major. Report and search for the sounding key when you are matching other instruments, singers or recordings, and keep the shape key as your own playing note. Analysers always report the sounding key.
    Why do producers and DJs care about a song's key?
    Compatibility. Tracks in the same key, its relative, or neighbouring keys on the circle of fifths mix and mash up without harmonic clashes, which is the entire basis of harmonic mixing (often labelled with the Camelot wheel). For writers, the key decides singability — moving a song two semitones can take a chorus out of a singer's best range — and it is required metadata for covers, sync and session work.
    Can a song be in two keys at once?
    Sections can live in different keys — a verse in the relative minor under a chorus in the major is a standard piece of songcraft, and modulations move a whole song mid-stream. "The key" of such a song is conventionally the chorus's key or the key it ends in, with the other section noted. When you record it in your song notes, writing both, with the section each belongs to, is the answer that saves the next musician the detective work.

    Write it in melodara

    A writing studio with rhyme suggestions, syllable counts, chords and voice memos on each line, plus an AI co-writer that suggests single lines when you ask. Free plan: 3 songs.

    See how it works