How to find the key of a song
Updated October 3, 2026 by Kamal Nasir
A song's key is its home note plus its mode, major or minor: the note the music feels like it wants to land on. You can find it by ear with an instrument, work it out from the chords, read it from the key signature on sheet music, or run the audio through a key finder that analyzes the notes for you.
What the key tells you
Western music has 24 keys: a major and a minor key on each of the 12 notes. The key names the tonic, the note that feels like home, and the scale that most of the melody and chords come from. Knowing it lets you play along, transpose for a singer, write a harmony or, if you DJ, pick tracks that blend.
Method 1: find the key by ear
- Listen for the note that feels resolved. Choruses and final notes usually land on it. Hum it and hold it.
- Find that note on a piano, a keyboard app or a guitar by matching your hum. That is your likely tonic.
- Decide major or minor. Play the tonic's major chord and then its minor chord along with the song; the one that sits comfortably is the mode. Major tends to sound bright and minor darker, but trust the match more than the mood.
- Check by playing the scale of that key over the song. If no note clashes, you have it.
Method 2: work it out from the chords
If you have the chords from a songbook or a chord site, write them down and look for the one major scale that contains all of them. In C major, the chords built on the scale are C, Dm, Em, F, G, Am and B diminished, so a song using C, F, G and Am fits there.
Then find the home chord: usually the one the song starts or ends on, and the one the chorus resolves to. If it is C, the key is C major. If it is Am, the key is A minor. Those two keys share every note, which makes them a relative major and minor pair, and it is the most common reason two people, or two apps, give different answers for the same song.
A chord from outside the scale, such as E major in a song in A minor, is normal and does not change the key.
Method 3: read the key signature on sheet music
The sharps or flats at the start of each staff narrow the key to two choices. No sharps or flats means C major or A minor. One sharp means G major or E minor. Two sharps mean D major or B minor. One flat means F major or D minor. Pick between the pair by checking the last note or chord, which usually sits on the tonic.
Method 4: use a key finder app or software
Key detection software measures how much of each of the 12 pitch classes is present across the track and matches that profile against the 24 keys. It is fast and works for people who do not play an instrument. Results are steadier from a clean audio file than from a microphone in a noisy room, and the usual errors are the ones people make too: naming the relative major or minor, or the key a fifth away.
Songs that change key partway, songs built on modes such as Dorian or Mixolydian, and recordings tuned between two standard pitches can all produce a confident answer that is only partly right, so check it against your ears. Streaming tracks from services such as Apple Music are protected, so key apps work on files you own, files shared into them, or what the microphone hears.
Quint, a key and BPM finder for iPhone that needs iOS 27, takes a file you own or listens through the microphone for twenty seconds, and shows the key, the mode, a harmonic code for DJs and the BPM, along with how much of the track stays in that key. The analysis runs on the phone.
Keys for DJs: harmonic codes
DJs often use a wheel that numbers the 24 keys from 1A to 12B, with minor keys as A and major keys as B, so that neighbours on the wheel mix smoothly. Staying on the same code, moving one number up or down, or switching between A and B at the same number keeps a mix in key. A minor is 8A and C major is 8B: the relative pair again, sharing the same notes.
Questions people ask
Can I find the key of a song without an instrument?
Yes. A keyboard app on your phone is enough for matching notes by ear, or a key finder app can analyze the audio for you.
Why do key finders disagree about the same song?
Usually because the song sits between a major key and its relative minor, which share the same notes, or because it changes key. Listen for which chord feels like home to settle it.
How do I find the BPM at the same time?
Count the beats for 15 seconds and multiply by four, or tap along with a tap tempo tool. Most key finder apps read the BPM from the same analysis.