Music & BPM10 min read
How to Find the Key of a Song by Ear or with Software
How to find the key of a song: by ear with a keyboard app, with DJ software or key analysis tools, how to tell major from minor and convert to Camelot codes.
Published
To find the key of a song, find the note that feels like "home" (the tonic) and then decide whether the song is in major or minor. You can do that by ear in a few minutes with a free keyboard app, or let DJ software or a key analysis tool detect it automatically. The most reliable approach combines both: let software suggest a key, then confirm it by ear, because automatic detection sometimes picks the relative major or minor or a neighbouring key. Once you know the key, convert it to a Camelot code so you can see at a glance which tracks mix with it.
What "the key of a song" means
A key has two parts:
- The tonic: the note the music keeps returning to and wants to end on. It feels like rest.
- The mode: major or minor. Major keys use a brighter set of notes, minor keys a darker one.
With 12 possible tonics and two modes, there are 24 keys. Every major key has a relative minor that uses exactly the same notes: C major and A minor share all seven notes, they just treat a different note as home. This is the main reason key detection, human or automatic, sometimes goes wrong.
For DJs, the key matters because two tracks blended for 16 or 32 bars play both sets of notes at once. Our guide to harmonic mixing with the Camelot wheel explains which keys sound good together. This guide covers the step before that: finding out what key a track is in.
Method 1: Find the key by ear
You do not need music theory for this. You need headphones, the track and a keyboard or piano app on your phone or computer.
- Find the home note. Play the track and hum along with the bassline or the end of the chorus. Then stop the track and hum the note that feels most "finished". That is your candidate tonic.
- Match it on the keyboard. Play keys on the app one by one until one matches the note you are humming. Do this an octave lower or higher if it is easier to sing.
- Check it against the track. Play the track again and hold that note on the keyboard over the bass. The right tonic sounds stable and at rest under most of the song. A wrong note sounds tense or keeps rubbing against the music.
- Decide major or minor. Play the major chord on that note (root, the note four semitones up, the note seven semitones up) over the track, then the minor chord (root, three semitones up, seven semitones up). One of them will blend; the other will clash, usually on the middle note.
- Write it down. For example "A minor" or "E-flat major".
Expect to spend five minutes on your first few tracks and under a minute once you have practised. Songs with a clear bassline and sustained chords are the easiest to start with.
Shortcuts that help
- Listen to the last chord. Many songs end on the tonic chord, so the final bar is a good clue.
- Follow the bass in the chorus. The bass often lands on the tonic at the start or end of a phrase.
- Use the relative-key check. If both A minor and C major seem to fit, ask which chord feels like home when the music pauses. In dance music with dark pads and a driving bass, the minor key is often the better answer, but trust what you hear.
Method 2: Let your DJ software analyse it
Most current DJ programs can analyse the key of every track in your library when they analyse BPM and beat grids. The result appears in a column of the track list, either as a musical name (A minor, Am), as a Camelot code (8A) or as an Open Key code (1m), depending on the program and your settings.
Tips to get useful results:
- Turn key analysis on before you import a large batch. Some programs analyse key only when the option is enabled.
- Choose one notation in the preferences and stick to it. Comparing "Am" with "8A" in the middle of a set is how mistakes happen.
- Re-analyse after edits. If you replace a file with a different version or remix, the old key information may stay in the tags.
- Sort and filter by key once the analysis is done. That is where the information pays off when you prepare a set.
Method 3: Use a dedicated key analysis tool
Standalone key analysis programs (Mixed In Key is a well-known example) and some music production tools analyse files and write the key into the file tags, often into the comment field so every DJ program can read it. Many DJs use one of them as the single source of truth for their whole library, so the key does not change when they switch software.
If you produce music, your DAW may also offer key detection or a spectrum analyser that shows the strongest notes. That is a good second opinion for a single difficult track.
Method 4: Look it up, carefully
Online databases, sheet music and some streaming metadata list keys for popular songs. Treat them as hints:
- Versions differ. A radio edit, an extended mix and a remix can be in different keys.
- Some releases are pitched. Sped-up or slowed-down versions move the key with the tempo.
- Not every source is checked by a human. Many databases use the same kind of automatic detection as your software.
Looking up the key is fastest when you need a rough idea before buying or downloading a track. For your library, analyse the actual file.
Which method to use
| Method | Speed | Reliability | Best for |
|---|---|---|---|
| By ear with a keyboard app | Slow at first | High once practised | Checking doubtful results, learning to hear keys |
| DJ software analysis | Fast, whole library | Good, with occasional errors | Everyday library preparation |
| Dedicated key tool | Fast, whole library | Good, consistent across programs | DJs who use several programs |
| Online lookup | Instant | Varies by source and version | A first idea before you own the file |
In practice: analyse everything with software, then use your ears for tracks you plan to blend for a long time, and for any track where the result sounds wrong.
Key notations: musical names, Camelot and Open Key
You will meet three ways of writing the same key. Camelot and Open Key both arrange the keys around the circle of fifths, so neighbouring numbers mix well, but they start counting at different places.
| Camelot | Minor key | Major key | Open Key |
|---|---|---|---|
| 1A / 1B | A-flat minor | B major | 6m / 6d |
| 2A / 2B | E-flat minor | F-sharp major | 7m / 7d |
| 3A / 3B | B-flat minor | D-flat major | 8m / 8d |
| 4A / 4B | F minor | A-flat major | 9m / 9d |
| 5A / 5B | C minor | E-flat major | 10m / 10d |
| 6A / 6B | G minor | B-flat major | 11m / 11d |
| 7A / 7B | D minor | F major | 12m / 12d |
| 8A / 8B | A minor | C major | 1m / 1d |
| 9A / 9B | E minor | G major | 2m / 2d |
| 10A / 10B | B minor | D major | 3m / 3d |
| 11A / 11B | F-sharp minor | A major | 4m / 4d |
| 12A / 12B | D-flat minor | E major | 5m / 5d |
Two rules make conversion easy:
- Open Key to Camelot: add 7 to the number (13 becomes 1, 14 becomes 2 and so on), then change m to A and d to B. So 1m becomes 8A, 6d becomes 1B.
- Same key, two names: some notes have two names. G-sharp minor is A-flat minor (1A), D-sharp minor is E-flat minor (2A), C-sharp minor is D-flat minor (12A), G-flat major is F-sharp major (2B). Software may show either spelling.
Once you have the Camelot code, our interactive Camelot wheel shows every compatible key and what each move does to the energy.
When the detected key is wrong
Software and ears both make predictable mistakes. Knowing them saves time.
- Relative major or minor: 8A instead of 8B, or the other way round. Same notes, different home. The two keys mix with each other, so this rarely ruins a blend.
- A fifth apart: 8A instead of 9A. The keys are neighbours on the wheel and share six of seven notes, so a blend usually still works.
- Key changes inside the song: many pop songs move up for the final chorus, and some tracks switch between sections. Software shows one key for the whole file. Note the key of the part you will actually mix.
- Little or no harmony: drum tools, percussive techno and spoken-word tracks may have no clear key. Any result is close to a guess; treat these tracks as key-neutral.
- Tuning between keys: some older recordings are not tuned exactly to standard pitch and sit between two keys. Pitching them slightly can help, which brings us to tempo.
Remember that changing the tempo without key lock (master tempo) also shifts the key. A change of about 6% moves it by roughly a semitone. The harmonic mixing guide explains how to handle that.
A worked example: checking a key in five minutes
Say your software shows a new track as 8A, while a friend's Open Key based setup shows 2m for the same file. Here is how to settle it.
- Convert first. 2m plus 7 is 9, so the friend's result is 9A (E minor). Your software says 8A (A minor). The two are neighbours, a fifth apart.
- Hum the home note. Over the chorus, the note that feels like rest matches A on the keyboard app.
- Hold A over the track. It sits calmly under the bass. E also sounds fine in places but feels like it wants to move on.
- Check the mode. The A minor chord blends; A major clashes on the middle note. Result: A minor, 8A.
- Plan the next track. On the Camelot wheel, 8A mixes safely with 8A, 7A, 9A and 8B. Because the other program said 9A, a 9A track is a particularly safe next choice either way.
The example is hypothetical, but the pattern is common: two neighbouring results, and two minutes of listening decide which one is right.
Keep keys tidy in your library
- Write the confirmed key into the tags or a comment field, especially for tracks you corrected by ear.
- Use the same notation everywhere: in your software, in your notes and on any printed set plan.
- Tag key-neutral tracks such as drum tools so you remember they can go almost anywhere.
- Store BPM next to key. Tempo and key decide together whether a long blend works. If a BPM looks doubtful, our guide on how to find the BPM of a song explains how to check it.
Key information is a planning aid, not the whole plan. Energy, groove and timing still matter more, which is why building a DJ set starts with the energy curve, and why the right transition technique can rescue a blend between two keys that do not quite fit.
Quick checklist
- Let your DJ software or a key tool analyse the track.
- Hum the home note and find it on a keyboard app.
- Play the major and minor chord on that note over the track to decide the mode.
- Convert the result to one notation, ideally Camelot.
- Double-check tracks where two sources disagree; often they are neighbouring keys.
- Save the confirmed key in your library and pick compatible tracks on the Camelot wheel.
FAQ
What is the easiest way to find the key of a song?
Let your DJ software or a key analysis app analyse the file, then confirm the result by ear: hum the note that feels like home and check it on a keyboard app. Software is fast, your ears catch its mistakes.
How do I know if a song is in a major or a minor key?
Find the home note first, then play its major chord and its minor chord over the track. The chord that blends without clashing tells you the mode. Minor often sounds darker, but that impression alone is not reliable.
Why do two programs show different keys for the same song?
Key detection is an estimate. Programs often disagree between a key and its relative major or minor, or between two keys a fifth apart. Both are neighbours on the Camelot wheel, so check the blend by ear before you worry.
What is the difference between Camelot and Open Key notation?
Both number the 24 keys around the circle of fifths. Camelot uses A for minor and B for major and puts C major at 8B; Open Key uses m and d and puts C major at 1d. Add 7 to an Open Key number, wrapping past 12, to get the Camelot number.
Related articles
Music & BPM7 min read
How to Find the BPM of a Song: 4 Easy Methods
How to find the BPM of a song: tap tempo, count beats with a timer, use DJ or music software analysis, and fix the common half and double tempo errors.
Music & BPM7 min read
House vs Techno: What Is the Difference?
House vs techno explained: how they differ in tempo, drums, basslines, harmony, vocals and mood, the main subgenres of each and how DJs mix between them.
DJ skills7 min read
Harmonic Mixing with the Camelot Wheel, Explained
Harmonic mixing with the Camelot wheel made simple: what 8A and 9B mean, which keys mix together, energy boost moves and when to ignore the key.