To find what key a song is in, find the note that feels like home, then work out whether the scale around it is major or minor. You can do that by ear, from the chords, or from the key signature if you have sheet music. The fastest route is a key finder, which gives you an estimate in seconds that you can confirm by ear.

This guide, written as of 4 November 2026, walks through all four methods and shows how to settle the most common mix-up: a major key and its relative minor. It also covers Camelot codes for DJs and why two detectors can give you two different answers for the same track.

What does the key of a song actually mean?

A song's key has two parts: a tonic and a mode. The tonic is the home note, the one the music feels settled on. The mode is the scale built on that note, which in most pop, rock and dance music is major or minor. "A minor" means A is home and the notes come from the A minor scale.

The key isn't the same thing as the first note you hear or the lowest note in the bass. It's a sense of where the music wants to come to rest, and that's why the ear is such a useful tool here. A melody can start anywhere, but it usually finishes on home or leaves you waiting for it.

Which method should you use?

Pick the method that matches what you have in front of you.

MethodWhat you needSpeedBest forMain weakness
By earAn instrument or a tuner appA few minutesLearning a song, singing, jammingTakes some practice
From the chordsA chord chart or chords you worked outAbout a minuteGuitar and piano playersCan't always separate relative keys
From the key signatureSheet musicSecondsClassical, choir, band partsGives two candidates, not one
Key finderAn audio fileSecondsDJs, producers, quick checksAn estimate that can be wrong

If accuracy matters, use two of them. A detector plus a quick check by ear catches the relative-key mix-up that software often makes.

How do you find the key of a song by ear?

You don't need perfect pitch for this. You need an instrument, or any app that shows you the note you're singing.

  1. Listen for the resting point. Play the chorus and notice where the melody settles, especially at the end of a line or a section.
  2. Hum that note. Keep humming it while the song plays. If it's the tonic, it will sound stable over the end of most phrases.
  3. Find it on an instrument. Play single notes on a keyboard or guitar until one matches your hum. That note is your likely tonic.
  4. Test it against the bass. Hold the note down through the song. It should sound at rest on the final chord of a section, and tense over some of the others.
  5. Decide major or minor. Play the major scale from that note, then the minor scale. The one that fits the melody without clashing is your mode.

The third note of the scale makes the difference in step 5. It's a semitone lower in minor than in major, so if you're stuck, sing the tonic and then try both versions of the third over the song. One will clearly sound wrong.

Don't rely on mood alone. Plenty of upbeat songs are in minor keys, and plenty of slow, sad ballads are in major keys. Mood is a hint, and the notes are the evidence.

How do you find the key from the chords?

If you have the chords, this is the most reliable method without software. Every major key has seven chords that belong to it, in a fixed pattern:

Scale degreeIiiiiiIVVvivii°
Chord typeMajorMinorMinorMajorMajorMinorDiminished
C majorCDmEmFGAmB°
G majorGAmBmCDEmF♯°
D majorDEmF♯mGABmC♯°
A majorABmC♯mDEF♯mG♯°
F majorFGmAmB♭CDmE°

To use it:

  1. Write down every chord in the song, ignoring extras like 7ths and sus4s for now.
  2. Find the row that contains all or nearly all of them.
  3. Check which chord the song resolves to. The first and last chords are good clues.

Worked example. A verse uses G, D, Em and C. All four sit in the G major row, and they also fit E minor, because the two keys share their notes. If the song keeps landing on G and ends there, it's in G major. If it keeps coming back to Em, it's in E minor.

A note for guitarists. Chord shapes played with a capo aren't the real chords. Each fret raises everything by one semitone, so G shapes with a capo on the 2nd fret sound in A major. The same goes for a band tuned down a semitone: E shapes sound in E♭.

One chord from outside the row doesn't change the answer. Songwriters borrow chords all the time, and a B♭ in a C major song is a common example. Go with the row that fits most of the song.

How do you read the key from a key signature?

With sheet music, count the sharps or flats at the start of the staff. As the standard rules for key signatures put it, sharps and flats always appear in a fixed order, so the count tells you the key.

Key signatureMajor keyRelative minor
NoneCA minor
1 sharpGE minor
2 sharpsDB minor
3 sharpsAF♯ minor
4 sharpsEC♯ minor
1 flatFD minor
2 flatsB♭G minor
3 flatsE♭C minor
4 flatsA♭F minor

Two shortcuts save you from memorizing the table:

  • Sharps: go up a semitone from the last sharp. With F♯ and C♯, the key is D major.
  • Flats: the second-to-last flat names the key. With B♭, E♭, A♭ and D♭, the key is A♭ major. One flat is the exception to learn by heart: F major.

Each signature gives you two possible keys, a major and its relative minor. The next section shows how to choose.

Is a song in the major key or its relative minor?

This is the question that trips up beginners and software alike. Relative keys contain exactly the same notes and share a key signature. The minor tonic sits three semitones below the major tonic, so C major pairs with A minor and G major pairs with E minor. Only the home note differs, so here are the clues to check, strongest first:

  • The last chord. Songs tend to end on the tonic, so a final Am points to A minor. Fade-outs give you nothing here, so use the end of the chorus instead.
  • The raised seventh. This is the best single clue. A minor songs often use G♯, usually inside an E major chord, to pull back to A. See a major V chord (E or E7 next to Am) and you're almost certainly in the minor key.
  • The first chord. Openings often start on the tonic or the dominant, so treat this as supporting evidence.
  • Where the melody rests. Long notes at the ends of phrases tend to fall on the tonic.

Sometimes the answer stays open. A loop like Am, F, C, G can feel like A minor or C major depending on the melody on top, and it may never settle. In that case, either name is defensible. Pick the one that matches the chorus.

What are Camelot codes, and how do they relate to key?

Camelot notation gives each key a number from 1 to 12 and a letter. A means minor and B means major. DJs use it so they don't have to think in sharps and flats during a set.

KeyCamelotRelative keyCamelot
C major8BA minor8A
G major9BE minor9A
D major10BB minor10A
A major11BF♯ minor11A
F major7BD minor7A
B♭ major6BG minor6A

Relative keys share a number, so a major/minor mix-up in your software shows up as a letter flip, like 8A against 8B. That matters less than it looks, because the two keys use the same notes and usually blend well.

The usual safe moves from a track are the same code, one number up or down with the same letter, or the same number with the other letter. From 8A, that's 8A, 7A, 9A or 8B. These are starting points, so always test the blend with your ears.

Why do key finders give different answers?

Most detectors work in a similar way. They measure how much of each of the 12 pitch classes is present, then compare that pattern with templates for the 24 major and minor keys. Disagreements come from a few predictable places:

  • Relative keys. The notes are identical, so the choice rests on small differences in emphasis.
  • Time spent away from home. A song that sits on its IV or V chord for long stretches can pull the result toward that chord.
  • Key changes. A final chorus that moves up a tone isn't well described by a single answer, and most tools report one key for the track.
  • Modes. D Dorian uses the same notes as C major, and Mixolydian is a major scale with a lowered seventh. Tools that only know major and minor have to pick the closest fit. Lots of rock, funk and folk music works this way.
  • Drums and effects. Noise, heavy distortion and sparse harmony give the detector less pitch information to read.
  • Tuning. A recording that sits between semitones forces the tool to round up or down.
  • Which part of the track gets analyzed. Two tools that listen to different sections can hear different things.

That last point applies to our own tool. The BPM key finder analyzes up to 90 seconds from the middle of the track, compares the pitch content with Krumhansl–Kessler key profiles, and shows a confidence bar. A low reading suggests modal, atonal or key-changing music. It runs in your browser, so the file isn't uploaded. We haven't measured an accuracy figure for it, so treat the result as a strong first guess.

When two tools disagree, check it by ear:

  1. Compare the two answers. If they're relative keys, use the checks in the section above.
  2. If they're a fifth apart (for example, C and G), the song may spend a lot of time on its V or IV chord. Hum both candidates over the ending.
  3. If the answers are unrelated, listen for a key change and test the verse and the chorus separately.

How do you find the key with a key finder?

Using the Kenerate key finder only takes a moment, and it's free with no sign-up:

  1. Open the tool and drop in an MP3, WAV, M4A or OGG file up to 60 MB.
  2. Read the key, Camelot code, relative key and BPM.
  3. Check the confidence bar. If it's low, listen before you trust the answer.
  4. Hum the tonic over the end of a chorus to confirm it.

If the tempo is what you're unsure about, tap along with tap tempo.

What can you do once you know the key?

The key is useful well beyond naming a song:

  • Singers can check whether a song suits their range and move it up or down.
  • Players know which scale to solo with and which chords to expect.
  • DJs can plan transitions with Camelot codes. To match tempos without moving the key, a BPM changer stretches a track from 50% to 150% of its original speed with the pitch kept.
  • Producers can write parts that fit a reference track, or use a melody generator to get an original tune to build on, with the key named in the prompt. Run the result through the finder too, because AI music engines don't always follow a prompt exactly.

The short version

Find home, then find the mode. Your ear gets you there with a little practice, the chords confirm it, and the key signature narrows it to two options. A detector gives you a fast starting point, but check its answer when the confidence is low or the tools disagree.

Sources