Seven practical methods for identifying a song’s tonic and mode—online, by ear, from chords or inside a DAW—plus a verification system for the tracks that refuse to fit one clean label.
+ Mode
= Key
Get an estimate. Then prove where “home” is.
The fastest way to find the key of a song is to upload the clean, full-length audio file to a song key finder, record the suggested tonic and major/minor mode, then confirm that result on a keyboard or instrument. Play the suggested tonic over the chorus and the end of a phrase. If it feels settled, test the major and minor tonic chords. The version whose third fits the melody and harmony is usually the correct mode.
Do not treat one algorithmic label as infallible. Relative keys share the same notes, songs can borrow chords or change key, and a short or percussion-heavy excerpt may contain too little harmonic evidence. Check at least one verse, one chorus and the ending before calling the key confirmed.
A key is a tonal centre plus a mode.
When musicians say a song is “in E minor,” they are naming two things. E is the tonic: the pitch that feels like home, rest or resolution. Minor is the mode: the interval pattern and harmonic behaviour around that tonic. Finding the tonic without deciding the mode gives you a note, not a complete key.
That distinction matters because C major and A minor use the same seven natural notes. A note-counting system can see identical raw material while a listener hears a different centre of gravity. Music theorist Gary Karpinski makes the same distinction between inferring a tonic and inferring a full key: the second task requires both tonic and mode.
Tonic
The home pitch. Melodies, bass lines and cadences often point toward it or settle on it.
Mode
The interval and chord behaviour around the tonic: commonly major or minor, but sometimes modal.
Key
The combined label—such as D major, F minor or G Mixolydian—that best describes tonal function.
| Term | What it describes | Example | Why it is not the same as key |
|---|---|---|---|
| Pitch | How high or low one sound is | A4 = 440 Hz | A pitch can appear in many different keys. |
| Chord | Notes sounding together as one harmony | A minor: A–C–E | One chord can belong to several keys or be borrowed. |
| Scale | An ordered collection of pitches | C major: C–D–E–F–G–A–B | A scale lists material; a key also describes hierarchy and resolution. |
| Key signature | Sharps or flats written at the start of notation | No sharps or flats | One signature can represent relative major and minor keys. |
| BPM | Tempo in beats per minute | 96 BPM | Tempo controls speed; key controls tonal centre and mode. |
Use speed first. Add musical proof second.
Analyze the full audio file online
Upload a clean MP3, WAV, FLAC or AAC file to the BTR Song Key & BPM Finder. Record the detected key, Camelot code and BPM. Use the whole song when possible: a full arrangement gives the analyzer more harmonic evidence than a drum intro, one vocal pickup or a four-second social clip.
Hum the note that feels finished
Loop a stable chorus or the end of a phrase. Hum a sustained note while the music plays. Move up or down until one note feels settled rather than tense. Match that note on a keyboard, guitar or tuner. You have a tonic candidate—not yet a complete major/minor answer.
Test all 12 pitch classes
Play one note at a time over the loop. Reject notes that grind against most of the section. Among the notes that fit, listen for the one that remains stable when the chord changes and feels convincing at phrase endings. Octave does not matter; every C belongs to the same pitch class.
Trace the bass into points of resolution
Write down the lowest clear note at each chord change, especially before and after a cadence. The final bass note or chord is often tonic, but not always: fade-outs, deceptive cadences, suspended endings and loop-based arrangements can stop somewhere else. Treat the ending as a strong clue, never a rule.
Find the chord that behaves like home
Transcribe the main progression, then ask which chord sounds stable and which chord pushes toward it. A dominant-to-tonic move—such as G or G7 resolving to C—provides stronger evidence than simply counting which chord appears most. Pop loops may avoid a formal cadence, so combine chord function with melody and bass.
Map the important melody notes
Focus on long notes, repeated hook notes and notes on strong beats. Fit them to candidate major, minor or modal scales. Passing notes and vocal slides can sit outside the key; do not let one ornament outweigh the notes the melody repeatedly lands on.
Verify sections—or isolate the harmony
Check verse, chorus and bridge separately. If the full mix is dominated by drums, noise or dense vocals, use the BTR AI Stem Splitter, mute the percussion and analyze or play against the bass and instrumental stems. If different sections consistently resolve to different tonics, report a key change instead of forcing one global label.
| Method | Speed | Best use | Main risk |
|---|---|---|---|
| Online key finder | Seconds | Generating a first candidate | Relative-key, modal and section-change errors |
| Tonic by ear | 1–5 minutes | Confirming tonal centre | Requires a stable reference pitch |
| Chord analysis | 5–20 minutes | Confirming function and mode | Borrowed chords can mislead |
| Melody-note analysis | 5–20 minutes | Distinguishing mode and scale colour | Ornaments are not structural notes |
| Section analysis | 10–30 minutes | Modulation and ambiguous songs | A global label may still be impossible |
How to find a song’s key in eight steps.
Use the best available audio
Choose a legitimate, clean full-length file. Heavy distortion, crowd noise, extreme compression and a very short excerpt make pitch-class evidence less reliable.
Generate the first estimate
Run the track through the BTR key finder and write down the exact tonic, mode and Camelot result. Do not quietly change “F♯ minor” into “A major” because the notes overlap; keep both as separate hypotheses.
Choose a harmonically stable section
Start with a chorus, hook or eight-bar section containing bass, chords and melody. Avoid an unpitched intro, breakdown or isolated drum fill.
Test the suggested tonic
Play or hum the root over the full loop and at phrase endings. It should feel stable across several chords, not merely compatible with one moment.
Test the tonic chord
Play the major and minor triads built on the candidate tonic. The third is the decisive note: E natural makes C major; E♭ makes C minor. Listen against the lead melody and bass, not only the pad.
Look for functional support
Check whether the bass returns to tonic, the dominant leads into it or the melody rests on tonic-chord tones. Several independent clues are stronger than one final chord.
Repeat in other sections
Test one verse, one chorus, the bridge and the ending. If the tonic changes and stays changed, note the modulation with a timestamp. If only one borrowed chord appears, keep the main key and label the exception.
Record confidence, not false certainty
Label the result confirmed, likely or ambiguous. For production, write the key into the filename—such as vocal_96bpm_Fmin.wav—and save section changes in your DAW markers.
How automatic song-key detection works.
Most conventional key estimators do not “read” a song the way a musician reads notation. They transform the audio into a time-frequency representation, measure pitched energy and fold notes from different octaves into 12 pitch classes: C, C♯, D and so on. This 12-bin summary is commonly called a chroma vector or pitch-class profile.
The official librosa chroma documentation describes the operation as a projection from frequency bins onto pitch classes. Essentia’s KeyExtractor documentation describes a related pipeline that computes Harmonic Pitch-Class Profile frames, applies tuning correction and estimates a key and scale from the accumulated profile.
Illustration only: a real profile changes frame by frame and includes harmonics, noise, tuning offsets and non-diatonic notes.
Why the profile choice matters
A detector still needs a model of what each key “looks like.” Essentia documents multiple profiles derived from listener experiments, classical corpora, pop/electronic music and EDM-specific data. A profile optimized for one repertoire may perform differently on another.
Newer neural systems can learn representations directly from spectrograms instead of relying only on hand-designed profiles. The objective remains similar: identify the root and mode whose tonal pattern best explains the audio. Neither approach removes genuine musical ambiguity.
How accurate are song key finders?
There is no honest universal accuracy percentage for every genre, mix and song structure. Performance changes with the test collection, annotation method and scoring rule. Exact-key accuracy is also stricter than a score that awards partial credit when an estimate lands on a related key.
Tracks in the deliberately difficult GiantSteps EDM key benchmark published at ISMIR in 2015.
Best exact-key result reported among the evaluated systems on that benchmark—not a score for BTR or any current product.
Approximate range of the strongest 2021 model’s MIREX-weighted scores across four different evaluation sets.
The 2015 GiantSteps study reported that its best evaluated system matched the exact human-annotated key on 71.85% of 604 EDM tracks. The collection was intentionally difficult and heavily minor-key—84.8% of its tracks—so the number must not be generalized to all music.
A later 2021 ISMIR evaluation of neural key models tested several systems across four corpora. Its strongest model averaged a 74.75% MIREX-weighted score, with individual-set scores from 70.49% to 84.62%. MIREX scoring gives partial credit to musically close mistakes such as relative, parallel or dominant relationships, so it is not identical to exact-match accuracy.
The practical conclusion is not that key detection is unreliable. It is that automatic analysis is excellent for reducing 24 common major/minor possibilities to one or two strong candidates, while the final decision should still be checked against the tonic, tonic chord and section structure.
A detector gives you a candidate. Resolution gives you the answer.
Why two key finders can return different answers.
| Cause | What you may see | Verification test | Best response |
|---|---|---|---|
| Relative major/minor | C major from one tool, A minor from another | Which tonic and tonic chord feel resolved? | Choose the tonal centre, not the shared note set. |
| Modal harmony | Major/minor label fits most notes but one scale degree keeps disagreeing | Check the third, then the characteristic ♭7, ♯4, ♮6 or ♭2 | Use a modal label when it explains repeated behaviour. |
| Borrowed chords | One prominent chord appears outside the proposed key | Does the song return to the original tonic immediately? | Keep the main key and label the borrowed harmony. |
| Modulation | Verse and chorus produce stable but different answers | Analyze each section and test both tonics | Report both keys with timestamps. |
| Detuned recording | Every keyboard note sounds slightly sharp or flat | Measure the tuning offset or tune an instrument to the track | Record the nearest key plus cents offset. |
| Short excerpt | Results change when the crop changes | Analyze a longer section containing bass, chords and melody | Use the full track or several representative sections. |
| Percussion-heavy mix | Weak confidence or unstable root | Remove drums and recheck the harmonic stems | Analyze bass/instruments rather than the full mix. |
| Pitch-shifted sample | The sample and surrounding production suggest different centres | Solo the sample, then analyze the complete arrangement | Label the key of the finished section you are using. |
| Tonal ambiguity | Two chords loop without a convincing home | Test melody endings, bass emphasis and later sections | Mark the result ambiguous if the music is genuinely non-committal. |
Same notes. Different gravity.
If the candidates are C major and A minor, play C major at the end of the chorus, then A minor. Listen to the bass and final melody note. The chord that sounds like an ending rather than a continuation is the stronger tonic candidate.
Stop asking one label to explain three keys.
If the verse resolves to E minor and the chorus consistently resolves to G major, both observations can be true. Add DAW markers and treat the change as arrangement information, not detector failure.
How to tell whether a song is major or minor.
Listen to the third above tonic
The quickest structural test is the tonic chord’s third. From C, E natural creates a major third and E♭ creates a minor third. Do not decide from mood alone: a major-key song can feel dark, and a minor-key song can feel energetic.
Then listen for the cadence. In a major key, the leading tone is one semitone below tonic. In minor, composers often raise the seventh for a strong dominant-to-tonic pull, even though the natural minor scale uses a lowered seventh. Real minor-key music moves among natural, harmonic and melodic-minor behaviour.
Do not confuse the two relationships.
Relative keys share a key signature but have different tonics: C major and A minor.
Parallel keys share a tonic but use different pitch collections: C major and C minor.
Open Music Theory’s minor-key guide shows the relative minor three semitones below its relative major and explains why a key signature alone narrows the answer to two possibilities rather than one.
| Mode | Tonic-chord quality | Distinctive clue | C-tonic example |
|---|---|---|---|
| Ionian / major | Major | Major 3rd and major 7th | C–D–E–F–G–A–B |
| Dorian | Minor | Minor 3rd with raised 6th | C–D–E♭–F–G–A–B♭ |
| Phrygian | Minor | Minor 3rd with lowered 2nd | C–D♭–E♭–F–G–A♭–B♭ |
| Lydian | Major | Major 3rd with raised 4th | C–D–E–F♯–G–A–B |
| Mixolydian | Major | Major 3rd with lowered 7th | C–D–E–F–G–A–B♭ |
| Aeolian / natural minor | Minor | Minor 3rd, lowered 6th and lowered 7th | C–D–E♭–F–G–A♭–B♭ |
| Locrian | Diminished | Lowered 2nd and lowered 5th | C–D♭–E♭–F–G♭–A♭–B♭ |
The colour-note approach follows the practical listening method described in Open Music Theory’s guide to identifying diatonic modes: identify the tonic-chord quality first, then listen for the scale degree that distinguishes the mode from ordinary major or minor.
Relative major, minor and Camelot key table.
Each row pairs a major key with its relative minor. They share a key signature and a Camelot number, but use different letter suffixes: B means major and A means minor. The table uses common practical spellings; enharmonic names such as F♯ and G♭ can describe the same sounding pitch in equal temperament.
| Major key | Relative minor | Key signature | Camelot major | Camelot minor |
|---|---|---|---|---|
| B major | G♯ minor | 5 sharps | 1B | 1A |
| F♯ / G♭ major | D♯ / E♭ minor | 6 sharps / 6 flats | 2B | 2A |
| D♭ major | B♭ minor | 5 flats | 3B | 3A |
| A♭ major | F minor | 4 flats | 4B | 4A |
| E♭ major | C minor | 3 flats | 5B | 5A |
| B♭ major | G minor | 2 flats | 6B | 6A |
| F major | D minor | 1 flat | 7B | 7A |
| C major | A minor | None | 8B | 8A |
| G major | E minor | 1 sharp | 9B | 9A |
| D major | B minor | 2 sharps | 10B | 10A |
| A major | F♯ minor | 3 sharps | 11B | 11A |
| E major | C♯ minor | 4 sharps | 12B | 12A |
Start close on the wheel.
For a conservative DJ transition, test the same Camelot code, the same number with the other letter, or one number higher or lower with the same letter. Then listen: harmonic compatibility cannot repair mismatched phrasing, energy or bass.
F♯ and G♭ can sound identical.
A detector may choose a different written name from your DAW or collaborator. Translate the spelling before assuming the tools disagree. Context determines the clearest notation; the audio pitch can be the same.
What to do after you find the key.
Set the session correctly
Label the source tonic, mode and BPM before transposing or rebuilding harmony. Follow the complete song remix workflow.
Test vocals against harmony
Compatible labels are only a shortlist. Audition the chorus melody over every important chord using the mashup workflow.
Choose the actual scale
Set tonic and mode only after verification. The wrong relative key can force valid expressive notes toward the wrong targets; see the pitch-correction guide.
Transpose deliberately
Find the sample’s key, then shift every harmonic element by the same interval or rebuild around the new centre. Use the music-sampling workflow.
Support the harmony
Start with chord roots and tonic stability, then use passing tones with intent. “In scale” does not automatically mean the bass supports the current chord.
Use Camelot as a filter
Shortlist nearby keys, then evaluate downbeat, phrase length, vocal overlap, bass interaction and energy. The wheel organizes choices; it does not mix for you.
How many semitones should you transpose?
Count the shortest chromatic distance from the source tonic to the target tonic. C to D is +2 semitones; A to C is +3; E to C can be −4. In 12-tone equal temperament, one semitone equals 100 cents. Preserve the mode unless you intentionally reharmonize: moving A minor up three semitones produces C minor, not C major.
Transposing into a relative key is not the same operation. C major and A minor already share notes; changing which chord feels like home requires arrangement and harmonic emphasis, not simply a pitch-shift value.
Eight mistakes that produce the wrong key.
Using only the first chord
Introductions can begin away from tonic, use a pickup or delay the harmony entirely.
Using only the last chord
Final chords are useful evidence, but fades and deceptive endings break the shortcut.
Choosing by mood
Major does not guarantee happy and minor does not guarantee sad. Test intervals and function.
Calling every fitting note the key
A note can fit a scale without acting as tonic. Compatibility is not hierarchy.
Ignoring relative keys
C major and A minor share notes; the centre of resolution separates them.
Analyzing a drum intro
Unpitched or noisy material supplies little evidence about tonic or mode.
Forcing one key on a modulation
Stable section-level changes should be documented, not averaged away.
Trusting spelling over sound
C♯ and D♭ are enharmonic in equal temperament; translate before declaring a conflict.
Leaving no confidence note
“Likely A minor; chorus ambiguous with C major” is more useful than false certainty.
Know when to stop—and what to report.
Does the detected tonic resolve across the main section?
Yes: test major versus minor. No: test the relative key, dominant and other strong bass candidates.
Does one tonic-chord quality fit the melody and cadence?
Yes: you have a likely major or minor key. No: inspect modal colour notes, suspended harmony and pitch offset.
Does the same answer survive verse, chorus and ending?
Yes: record one global key. No: mark local keys and the point of change.
Do two answers remain equally convincing?
Report both candidates and why. A repeating two-chord loop or intentionally unstable arrangement may be genuinely ambiguous. Accurate analysis includes knowing when the music does not promise one answer.
How to find the key of a song: FAQ.
What is the easiest way to find the key of a song?
Upload the full, clean audio file to the BTR Song Key & BPM Finder, note the detected tonic and mode, then confirm the tonic over a chorus and compare the major and minor tonic chords. The online result is the fastest candidate; the listening check prevents common relative-key mistakes.
How can I find a song’s key by ear?
Loop a stable section, hum the note that feels most settled, match it on a keyboard and test whether the major or minor chord built on that note fits the melody. Confirm the result at the end of several phrases and in another section.
Is the first chord of a song always the key?
No. Many songs begin on a non-tonic chord, use a pickup, start with an ambiguous loop or delay the harmony. The first chord is evidence only when the rest of the song treats it as home.
Is the last chord usually the key?
Often, but not always. A complete cadence commonly ends on tonic, while fade-outs, deceptive cadences, unresolved endings and looped arrangements may finish elsewhere. Verify the chord against the bass, melody and earlier resolutions.
Why does a key finder say C major when I hear A minor?
C major and A minor are relative keys: they contain the same seven notes. A pitch-class count may support both. Listen for whether C major or A minor behaves as the point of rest, especially in the bass, tonic chord and phrase endings.
Can one song have more than one key?
Yes. A song can modulate, tonicize another key briefly or place verse and chorus in different tonal centres. Analyze sections separately and mark a sustained key change instead of forcing one global answer.
Does changing BPM change the key?
Not by itself. Tempo and key are separate. Traditional tape-style speed changes alter both duration and pitch, but modern time stretching can change BPM while preserving pitch. Always check the processed audio because extreme stretching can create artifacts.
What key should I select for Auto-Tune or pitch correction?
Select the verified tonic and scale used by the section being corrected. If the song changes key, automate the setting or split the vocal into sections. Do not choose the relative major or minor merely because it contains the same notes; tonic behaviour affects which notes should feel stable.
What does a Camelot code mean?
Camelot notation gives each major/minor relative pair a number from 1 to 12. A means minor and B means major. DJs use nearby codes to shortlist harmonically compatible transitions, but phrasing, bass and energy still need to be auditioned.
How accurate is an online song key finder?
Accuracy depends on genre, mix, duration, tuning, modulation and the scoring method. Research benchmarks show substantial variation across datasets. Use an online detector to narrow the possibilities quickly, then verify tonic, mode and section changes by ear.
Upload the song. Get key, BPM and Camelot.
Start with the BTR analysis, then use the verification workflow above when the project matters. No installation and no sign-up required.