"What key is this in?" is the first question anyone asks before they play along, transpose for a singer, write a second verse, or sample a loop into a track. It is also the question most beginners answer by guessing, because the honest methods never got explained in one place. This guide fixes that. You will learn three ways to find the key of any song, from the one that needs nothing but your ears to the one that reads the answer straight off the chords, and you will learn which one to trust when they disagree.

It is written for the producer or player who knows what a chord is and can hum a tune, and nothing more. By the end you will be able to name the key of most songs in under a minute, spot the difference between a major key and its relative minor, and know what to do with the answer once you have it. If you want the theory underneath it first, music theory basics covers scales, intervals and keys in one sitting.

What "the Key" Actually Means

A key is not a rule about which notes are allowed. It is a center of gravity. One note in a song feels like home: the melody keeps leaving it and coming back, and the whole track feels finished when it lands there. That note is the tonic, and the key is named after it. A song in G major has G as its home note and the G major chord as its home chord.

Everything else follows from that. The seven notes of the key are the ones that sit comfortably around the tonic, and the seven chords built on those notes are the chords the song will lean on. So finding the key is really two jobs: find the home note, then decide whether the song treats it as major (bright, resolved) or minor (darker, unresolved). Every method below is a different route to those two facts.

Before You Start

Have a way to name a note. A piano, a guitar with a tuner open, or a keyboard app is enough. The methods work by ear, but at some point you have to turn "that note" into a letter, and guessing that step is where most wrong answers come from.

Method 1: Find the Home Note by Ear

This is the method every musician uses, whether or not they can explain it. Play the song, let it run for a verse and a chorus, then stop it and hum the note that feels like the end. Not the last note you heard, the note the song wants to finish on. Most people land on it first try, because a song has spent three minutes training your ear to expect it.

THE HOME-NOTE TEST

Pitch
Melody Home note, the tonic
Time
Melodies leave the tonic and come back to it, and the last note of a song almost always sits on it. Hum that note, find it on a tuner, and you have the letter name of the key.
TitanAudio titanaudio.io

Three shortcuts make it faster. Listen to the end of the song. The final chord and the final bass note are the tonic far more often than not, because writers resolve to home when they finish. Listen to the bass on the downbeat of the chorus. Choruses tend to open on the home chord, and the bass plays its root. Hum the bassline, then hum the note it keeps returning to. Basslines orbit the tonic the way the melody does, but with fewer decorations, so the center of gravity is easier to hear.

Once you have the note in your throat, find it. Sing it into your tuner and read the letter, or hunt for it on a keyboard until the two match. That letter is the name of the key. If the song feels bright and settled on that note, it is the major key; if it feels dark or restless, it is the minor. The section on relative keys below covers the cases where that feeling is ambiguous.

The ear method is fast and it works on songs with no chords at all: a vocal line, a synth lead, a bass loop. Its weakness is that it needs an ear that has been trained a little. If you find the home note hard to pin down, ten minutes a day on interval training is the fix, because hearing the distance from any note back to the tonic is exactly the skill you are building.

Method 2: Find the Key of a Song From Its Chords

If you have a chord chart, a lead sheet, or a MIDI file, you can read the key without trusting your ear at all. The trick is knowing what the chords of a major key look like as a set. Every major key contains exactly three major chords, three minor chords, and one diminished chord, and they always sit in the same relationship to one another.

Take C major. Its seven chords are C, Dm, Em, F, G, Am and B°. Written as Roman numerals they are I, ii, iii, IV, V, vi and vii°. The three majors are I, IV and V, and here is the part that makes the method work: those three majors are neighbours on the Circle of Fifths. F, C and G sit side by side, with the home chord in the middle. The three minors, Dm, Am and Em, sit directly inside them on the inner ring. The diminished chord is the only one that lives outside that wedge.

THE WEDGE THAT MAKES A KEY

Three majors

  • F is the IV
  • C is the I
  • G is the V
  • The middle one is home

Three minors

  • Dm is the ii
  • Am is the vi
  • Em is the iii
  • vi is the relative minor

The odd one out

  • B diminished
  • The vii, outside the wedge
  • Which is why you
  • rarely hear it
Every major key is a wedge of the Circle of Fifths: three majors side by side and the three minors that sit directly inside them. Find that group in a song and you have found the key.
TitanAudio titanaudio.io

So the procedure is this. List the chords in the song. Find the major chords among them and ask whether they are a fifth apart, like C and G or F and C. If you can see three majors in a row on the circle, the middle one is your key. If you only see two, the key is one of them, and the minor chords settle which: in C major the minors are Dm, Em and Am, while in G major they are Am, Bm and Em. One minor chord that only fits one candidate is usually enough.

KeyIiiiiiIVVvivii°
C majorCDmEmFGAmB°
G majorGAmBmCDEmF♯°
D majorDEmF♯mGABmC♯°
A majorABmC♯mDEF♯mG♯°
E majorEF♯mG♯mABC♯mD♯°
F majorFGmAmB♭CDmE°
B♭ majorB♭CmDmE♭FGmA°
E♭ majorE♭FmGmA♭B♭CmD°

A worked example. A song uses D, Bm, G and A. Two majors, D and A, are a fifth apart, and G is a fifth below D, so G, D and A make a three-wide wedge with D in the middle. The one minor, Bm, is the vi of D major. Key: D major. Another: Em, C, G, D. Three majors, C, G and D, are neighbours on the circle with G in the middle, and Em is inside the wedge as the vi. The chords say G major, but the song starts and ends on Em, which is the next section's problem.

Pro Tip

The V chord is the biggest clue in any progression. It is the only major chord that pulls hard toward the tonic, and in most songs it is the chord right before the home chord returns. If you hear one chord that feels like it is leaning forward, the chord it leans into is your key.

Major or Minor? Telling Relative Keys Apart

Here is the catch in the chord method. C major and A minor share every chord. So do G major and E minor, and every other pair of a major key and the minor that sits inside it on the circle. These are relative keys, and a list of chords cannot tell them apart. The set of chords tells you the family; only the way the song treats them tells you which member is home.

So you go back to Method 1 for the last step. Which chord does the song rest on? If the progression is Am, F, C, G and the song keeps landing on Am, sitting on it at the end of phrases and closing on it, the key is A minor. If the same four chords keep resolving to C, it is C major. Same notes, different center of gravity, and it matters: a track in A minor and a track in C major are pitched three semitones apart for a singer, and they ask for different melodies. Our post on modes pushes this idea further, because Dorian, Mixolydian and Lydian are the same trick again with a different note treated as home.

Two tells help. Minor-key songs very often use a major V chord that does not belong to the shared set: in A minor that is E major (or E7) rather than the Em that C major would give you. If you see E or E7 next to Am, you are in A minor. And if the song opens and closes on the minor chord, believe it. Songs usually start at home.

Method 3: Count the Sharps and Flats

If you have sheet music or a MIDI file, the key is written down for you. The cluster of sharps or flats at the start of each staff is the key signature, and it maps onto the circle directly: each step clockwise from C adds a sharp, each step counter-clockwise adds a flat. No sharps or flats is C major or A minor. One sharp is G major or E minor. Two flats is B♭ major or G minor. The key signature reference lays every one of them out on the staff if you would rather look it up than count.

The same trick works when you have the notes but no chords, which is common with a MIDI melody or a sampled riff. Write down every note that appears, ignore the ones that only show up once as a passing tone, and see which seven-note set they fit. If the notes are D, E, F♯, G, A, B and C♯, that is two sharps: D major or B minor. Then the home-note test decides between the two. The key and scale reference is built for exactly this: pick a candidate key and it shows you the notes that belong, so you can check your list against it.

One warning about MIDI files and chord sites. The key listed in the file header or at the top of a tab page was typed by a person, and that person was often guessing. Treat it as a hint and confirm it with one of the other methods. It takes thirty seconds and it has saved plenty of people from transposing a whole arrangement into the wrong key.

Use the Circle of Fifths as a Key Finder

Everything in Method 2 can be done by eye on the circle, which is why the Circle of Fifths tool now has a Key Finder mode. Tap the chords you know from the song, major or minor, and the circle lights up every key that contains all of them, ranked by how well they fit. Tap D, Bm, G and A and it points at D major, with B minor listed as the relative alternative. Tap Em, C, G and D and it shows G major with E minor beside it, which is your cue to run the home-note test and pick between them.

It works because it is doing the wedge test for you. Each chord you add rules out every key that does not contain it, and after two or three chords only one wedge is usually left standing. If you tap a chord that fits nothing, it tells you that too, which is normally a sign of a borrowed chord or a key change rather than a mistake. Once you have the key, one click sends the whole chord chart to the Chord Transposer to move it somewhere a singer or a capo can live with. The mode is free, no account needed, and it runs in the browser on a phone.

Pro Tip

Start with the chords you are surest about, and add the minor chords early. A major chord belongs to three different keys, but a minor chord narrows the field just as much and usually decides between two candidates that the majors alone could not separate.

When a Chord Does Not Fit

Most songs are not perfectly diatonic, and the chord that refuses to fit any key is not a reason to doubt the method. It is usually one of three things, and each one is easy to recognize once you know its shape.

A borrowed chord. Rock and pop songs in a major key love the ♭VII: in G major that is F, in E major it is D. A song with G, D, C and F is still in G major; the F is borrowed from the parallel minor. The same goes for the ♭VI and the minor iv (Fm in C major, which is the saddest chord in pop). If six chords fit a key and one sits a step outside it, the six win.

A secondary dominant. A major chord that is not in the key, followed by a chord that is a fifth below it, is a secondary dominant: a V of something. In C major, D7 going to G is a V of V. It is there to make the next chord land harder, not to change the key, and you can ignore it when you tally the wedge.

A key change. If the chords fit one key for the verse and a completely different key for the chorus, that is not a chord that does not fit, it is two keys. Writers modulate up a fourth or a fifth (the neighbouring wedge on the circle, so most chords survive) or up a semitone or a tone for the last chorus. Treat each section separately, and if you are transposing the song, transpose both keys by the same amount so the modulation still works.

Modal songs are the last case. A groove that sits on one chord and never resolves to a conventional tonic may be in a mode rather than a key, and that is what our modes guide is for. A quick test: if the "home" chord is major but the ♭VII keeps appearing and the major V never does, you are likely in Mixolydian, and calling it the major key is close enough for most practical purposes.

What to Do Once You Know the Key

Knowing the key turns every other job into a lookup. If the song sits too high or too low for a singer, move it: the Chord Transposer shifts a whole chart to a new key in one step, keeps the lyrics where they were, and suggests a capo position that puts the new key back under open shapes. If you are writing over the song or a loop from it, the key and scale reference tells you which notes will land, and the Melody Creator will only generate notes that belong. If you want to build the rest of the arrangement, the chord progression builder lays out the seven chords of the key and plays back whatever you assemble from them.

And if you are playing along, the key tells you which shapes to reach for. The guitar chord charts and piano chord charts show every chord in the key with fingerings, and for players who want the feel of a real instrument under those fingerings, our new guide to the best digital pianos for home studios covers seven weighted-key options that double as MIDI controllers.

Most of all, practice the ear method until the others become a way of checking it rather than the only way you can do it. Hum the home note of every song you hear this week, find it on a tuner, and see how often the chords agree with you. After a month you will not need the chart. Open the Circle of Fifths, tap in the chords of the next song you learn, and let it show you the wedge.

Frequently Asked Questions

What is the fastest way to find the key of a song?

Hum the note the song wants to end on, then find that note on a tuner or a keyboard. That letter is the key. Check it against the last chord of the song, which is the tonic far more often than not, and decide major or minor by whether the ending feels bright or dark.

How do I find the key from the chords?

Look for three major chords that sit side by side on the Circle of Fifths, such as F, C and G. The middle one is the key. If you only have two majors, the minor chords decide: each major key has exactly three minor chords, and one that fits only one candidate settles it.

How do I know if a song is in a major key or its relative minor?

They share the same chords, so listen for which chord the song rests on. If it keeps settling on the minor chord, especially at the end, it is the minor key. A major V chord that is not in the shared set, such as E major next to Am, is another sign you are in the minor.

What if one chord does not fit any key?

It is usually borrowed, most often the flat seven in a major key, or it is a secondary dominant set up to push into the next chord. If six chords fit and one does not, the six decide the key. If whole sections fit different keys, the song modulates, and each section has its own key.