How to Tell What Key a Song Is In: 5 Methods That Actually Work

How to Tell What Key a Song Is In: 5 Methods That Actually Work

To tell what key a song is in, find the note that feels like home (the tonic), then check whether the third above it is major or minor. Everything else in this guide, from chord patterns to key signatures to software, is just a faster or more reliable way of answering those two questions.

That sounds simple, and most of the time it is. The trouble starts when the song sits between a major key and its relative minor, borrows chords from outside the key, or has been sped up, slowed down or tuned to 432 Hz. That's where most guides stop and where most key finders get it wrong. Below are five methods, ordered from quickest to most precise, plus a section on what to do when they disagree.

Try it first: find the key of three loops

Before any theory, train your ear. Press play, tap the key that feels like home, then test the major and minor chord on it. Each loop hides one of the tricks explained below: a major V chord in a minor key, the IV–V fingerprint and a relative-key trap.

Interactive: the waveform reacts to what you play. Works best with headphones.

What "the key of a song" actually means

A key is two things: a home note and a set of seven notes built around it. "A minor" means the music gravitates to A and mostly uses the notes A, B, C, D, E, F and G. "C major" uses exactly the same seven notes, but gravitates to C instead. Those two keys are called relative keys, and they share a key signature, a chord set and, in DJ software, a neighbouring slot on the Camelot wheel.

That's why every reliable method has two steps:

  1. Find the note collection. This narrows 24 possible keys down to two (a major key and its relative minor).
  2. Find the home note. This picks between those two.

Keep that split in mind. When a method seems to fail, it's almost always because it nailed step one and guessed step two.

Method 1: Find the tonic by ear (the hum test)

This works with no instrument, no theory and no software. It's also the step that software is worst at, so it's worth learning even if you plan to use a key finder.

  1. Play the song and pause it at the end of a chorus or the very last chord.
  2. Hum the single note that feels like the "full stop" of that phrase. It should feel resolved, as if nothing needs to come after it.
  3. Find that note on a keyboard, guitar or a free piano app. Slide up or down until it matches what you're humming.
  4. Confirm by playing that note over different parts of the song. The tonic never sounds wrong for long. Other notes clash on some chords and fit on others.

Two shortcuts make this faster. First, follow the bass: basslines spend most of their time on chord roots and almost always land on the tonic at the end of a section. Second, check the last chord of the song or of the chorus. In most pop, rock, hip-hop and EDM, it's the tonic chord. It isn't a law (fade-outs, loops and some '60s pop end elsewhere), but it's right often enough to be your first guess.

Major or minor? Test the third

Once you have the tonic, play two chords over the song: the major chord on that note and the minor chord on that note. If the tonic is A, play A major (A, C#, E) and A minor (A, C, E). The only difference is the middle note, the third. One of them will sit inside the track; the other will rub against the melody or the chords. The one that fits gives you the key.

Don't rely on "happy versus sad". A minor-key house track at 124 BPM can feel euphoric, and a slow major-key ballad can feel crushing. The third doesn't lie; the mood often does.

Method 2: Work it out from the chords

If you know the chords (from a chord chart, a MIDI file, your own project or by playing along), you can find the key with a bit of pattern-matching. Every major key contains the same chord pattern:

DegreeIiiiiiIVVvivii°
Qualitymajorminorminormajormajorminordiminished
In C majorCDmEmFGAmB°
In G majorGAmBmCDEmF#°
In D majorDEmF#mGABmC#°

The quickest fingerprint: look for two major chords a whole step apart. In a major key, that's always IV and V. So if a song uses F and G, the note collection is C major / A minor. If it uses C and D, it's G major / E minor. If it uses Bb and C, it's F major / D minor.

Notice the slash. The chords tell you the note collection (step one), not the home note (step two). F, G, Am and C fit both C major and A minor. Go back to the hum test or the last chord to decide. If the progression keeps landing on Am and the chorus resolves there, it's A minor. If it keeps landing on C, it's C major.

The clue that gives minor keys away

Minor-key songs often use a major V chord to make the resolution home stronger. In A minor, that's E major instead of E minor, which introduces a G# that doesn't belong to C major. So if you see a chord set that looks like C major plus an E major chord, you're almost certainly in A minor. This single clue settles a huge share of relative-key arguments, especially in R&B, trap, reggaeton and film music.

Method 3: Read the key signature

If you have sheet music, the key signature (the sharps or flats right after the clef) gives you step one instantly. Two tricks cover almost every case:

  • Sharps: take the last sharp and go up a half step. Three sharps (F#, C#, G#): last sharp G#, half step up is A, so A major.
  • Flats: the second-to-last flat is the key. Three flats (Bb, Eb, Ab): second-to-last is Eb, so Eb major. One flat is the exception to memorise: F major.

For the relative minor, count three half steps down from the major key: A major becomes F# minor, Eb major becomes C minor. Then check the first and last bass notes and look for that raised seventh (an accidental sharp or natural) to see whether the piece is really in the minor.

Method 4: Use a song key finder

If you have the audio file, a key detector is the fastest route. Drop an MP3 or WAV into our free BPM and key finder and you get the key, the Camelot code and the tempo in a few seconds. It runs in your browser, so unreleased tracks and client stems never leave your computer.

Under the hood, key detection works by building a 12-note profile of the track (how much energy sits on C, C#, D and so on) and comparing it against templates for all 24 major and minor keys. That's step one done very well. Step two, picking the home note, is a statistical guess based on which notes are loudest and most frequent. Which brings us to the most useful part of this guide.

Why key finders disagree (and how to settle it)

Run the same track through three detectors and you'll often get two or three different answers. That isn't random. The errors fall into a handful of predictable patterns:

Detector saysLikely real keyWhy it happensHow to check
C majorA minorRelative keys share all seven notesHum test, last chord, look for a G# (major V)
G majorC majorLong sections on the V chord or a dominant pedalDoes the track resolve to C at phrase ends?
D minorA minorHeavy use of the iv chord; the detector hears a fifth offPlay A minor and D minor triads over the drop
A minorA DorianModes aren't in most detectors' vocabularyIs there an F# instead of F? That's Dorian
Low confidence or two keysKey changeThe track modulates (often a final chorus up a step)Analyse sections separately
Between two keysRetuned trackSped-up edit, pitched vinyl rip or 432 Hz tuningSee below

The first row is by far the most common. If a detector and your ear disagree, check whether the two answers are relative keys (C major/A minor, G major/E minor, F major/D minor). If they are, the detector got the notes right and only the tonic is in question, and your ear is the better judge of the tonic.

Sped-up edits, pitched rips and 432 Hz

Every semitone is a 5.95% change in playback speed. So a sped-up TikTok edit at 1.25x speed sits about 3.9 semitones higher than the original, which puts it close to, but not exactly on, a new key. Detectors snap to the nearest key and can land on either side. If you're working with an edit, a remix pitched on a turntable or an old cassette rip, expect the detected key to be off by however much the pitch moved. Our guide to the Camelot wheel for DJs shows how pitch-fader moves translate into key changes, which is the same maths in reverse.

Tracks tuned to A = 432 Hz sit about 32 cents (roughly a third of a semitone) flat of standard tuning. That's enough to tip a borderline detection between, say, A minor and Ab minor. If a track sounds slightly "off" against your keyboard in every key you try, check the tuning before you trust any key label.

Songs that change key

Plenty of songs modulate, usually a half or whole step up for the last chorus. A single key label for the whole track hides that. Our key finder reads the track in 12-second windows, so a key change shows up as a separate section rather than dragging the overall result off. If you're sampling, check the key of the exact section you're lifting, not the whole song.

Method 5: Look it up (and verify it)

Searching "[song] key" will usually give you an answer from a chord site or a database. These are fine as a starting point, but most databases are filled by the same kind of algorithm described above, so they inherit the same errors, especially relative-key mix-ups. Chord sites written by players are better for the chords than for the key. Treat any lookup as step one and confirm step two with your ear or the last chord.

A quick workflow that works on almost any song

  1. Run the file through a key detector to get a candidate key and its relative key.
  2. Hum the note that ends the chorus. Does it match the detected tonic or its relative?
  3. Play the major and minor chord on that tonic over the track. Keep the one that fits.
  4. Scan the chords for a raised seventh (major V in a minor key) or a modal note (F# in A minor suggests Dorian).
  5. If the track feels off against your keyboard in every key, check its speed and tuning.
  6. Open the reference page for your key, for example A minor: notes, chords and Camelot code, and use those chords and scale notes to write, sample or mix.

If you want to train your ear alongside this, Ableton's free Learning Music course lets you hear scales and chords in the browser, which makes the hum test and the third test click much faster.

How SpinningVinyl helps

We build tools for the moment between finishing a track and putting it out:

  • BPM & Key Finder: key, Camelot code and tempo from your own audio, analysed locally in the browser, with key changes shown by section.
  • Key reference pages: notes, chords and Camelot position for all 24 keys, so you can jump from "it's in F# minor" to the chords you can use.
  • Spinning vinyl and CD videos: once the track is done, drop in your artwork and audio to get a ready-to-post vinyl video for Reels, TikTok and Shorts. Also rendered in your browser, with no upload.