onomo is in open beta — help us shape the future of music production.Learn more
All articles
Music Theory8 min read

How to Figure Out What Key a Song Is In

The key of a song is just the note it treats as home. Here's how to find it by ear and by checking the chords — a practical step-by-step any producer can follow.

The Onomo Team·
How to Figure Out What Key a Song Is In

Knowing a song's key unlocks almost everything else: which notes will sound right in a melody, which chords you can add, what samples will fit, and how to harmonize a vocal. The good news is that finding the key isn't a mystical skill — it's a short, repeatable process you can do by ear or by checking the chords. Here's how to do both.

The core idea first: a song's key is just the note (and chord) it treats as home — the place everything resolves to and feels finished on. Find home, decide if it's major or minor, and you've found the key.

Step 1: Find the tonal center (home)

Every song has a gravitational center — a note that feels like rest, like the song could end there and be done. That note is the tonic, and it names the key. Three ways to find it:

  • Sing the "ending" note. Hum along, then let the song trail off and sing the note that feels most resolved, most "landed." That note is almost always the tonic.
  • Find the chord it keeps returning to. Songs come home constantly. The chord that starts phrases, ends choruses, and generally feels like a destination is the I chord, and its root is your tonic.
  • Hold a drone. Play a single sustained note on a synth and hunt for the one that sounds consonant against the whole song without fighting it. The note that "agrees" the most is usually home.

If the song feels finished and at rest on, say, a C — your tonal center is C.

Step 2: Major or minor?

Once you've got the home note, you only need one more decision: is the key major or minor? This is mostly a vibe check, and your ear is better at it than you think.

  • Major sounds bright, open, resolved, "happy" or triumphant.
  • Minor sounds darker, sadder, more serious, tense or moody.

Listen specifically to the home chord. If the chord you keep resolving to is bright, you're in a major key (home note + "major"). If it's somber, you're in the relative minor. A song that rests on a C major chord is in C major; one that rests on an A minor chord is in A minor — even though those two keys share the exact same notes. The difference is purely which note feels like home.

Step 3: Confirm with the chords

Ear-based answers are usually right, but you can verify by checking which chords the song actually uses against a key's built-in chord set. Every major key has seven chords that belong to it, in this pattern:

I – ii – iii – IV – V – vi – vii° (major, minor, minor, major, major, minor, diminished)

Worked out in C major, that's:

Number Chord in C
I C
ii Dm
iii Em
IV F
V G
vi Am
vii° Bdim

So here's the check: list the chords the song uses, then see which key's set contains all of them. If a song uses C, F, G, and Am — those are all members of C major (I, IV, V, vi). Strong evidence the key is C major. If you find chords that don't fit any single set cleanly, the song may borrow chords or change key, but the home chord still tells you the main key.

(If you don't know the chords by ear, searching "[song name] chords" almost always turns up someone who's figured them out — then match them to a key.)

Step 4: Use the I and V as your anchors

Two chords do most of the work of defining a key:

  • The I chord is home — where things resolve and rest.
  • The V chord is the one that pulls hardest back to home, creating that satisfying "and… resolved" feeling. In C, V is G, and G→C is the most final-sounding move in the key.

If you can hear a strong "tension then release" where one chord clearly yanks you back to another, you've found V→I, and the chord you landed on is your tonic. This is often the fastest confirmation of all.

A quick step-by-step recap

  1. Find home — the note/chord the song rests and resolves on. That's your tonic.
  2. Decide major or minor by the feel of that home chord (bright vs. dark).
  3. List the chords and match them to a key's diatonic set to confirm.
  4. Listen for V→I — the strongest pull-and-release nails down the tonic.

Run those four and you'll have the key of nearly any song in a couple of minutes.

An honest note on Onomo: you set the key, you don't auto-detect it

This is important to be straight about: Onomo does not analyze an audio file and tell you its key. There's no "drop a track in and get the key" detector. You figure out the key yourself using the steps above — and then you tell Onomo what it is.

That matters because once you set the key, Onomo keeps everything in tune for you. When you set a project's master scale (your key, in the scale picker), two things start working for you:

  • The piano-roll scale-lock. In Studio, the piano roll highlights and locks the notes of your chosen key, so as you draw a melody you can't easily land on a wrong note. You found the key by ear; now the roll enforces it automatically.
  • The Chord Palette stays in your key. Set the same key in the Chord Palette and it lays out that key's in-key chords on a grid to play and export as MIDI — so any chords you add to the song are guaranteed to fit.

So the workflow is: determine the key (ear + chord check), set it as your master scale, then write freely knowing the tools are holding you in tune. If you want to deepen the chord side of this, our guide to chord progressions and the chord finder for any key explain exactly which chords belong to the key you just found.

Practice it

  1. Pick a song you know well. Hum it and find the note it rests on — that's your tonic guess.
  2. Decide if the home chord sounds bright (major) or dark (minor).
  3. Look up its chords and confirm they fit that key's set.
  4. Open Studio, set that key as your master scale, and try writing a counter-melody over it with the scale-lock on. Notice you can't easily play a "wrong" note.

That last step is where the theory becomes muscle memory.

FAQ

Is this free? Yes. Studio and the Chord Palette run free in your browser. No install, no account needed to start.

Can Onomo detect the key of a song automatically? No. Onomo doesn't analyze audio to find a key — you determine the key yourself and set it as your project's master scale. From there, the scale-lock and Chord Palette keep everything in that key.

Do I need to know music theory to find a song's key? Not much. Finding "home" by ear and judging major vs. minor by feel gets you most of the way. The chord check is a bonus confirmation, and tools like the Chord Palette do the chord lookup for you.

Does it work on my phone? Yes. Studio and the Chord Palette run in a mobile browser.

What if a song seems to be in two keys? Some songs change key (modulate) or borrow outside chords. Focus on the main home chord — the one the song most often resolves to — for the primary key, and treat the rest as departures from it.

Major and minor versions of a key use the same notes — how do I tell them apart? By which chord feels like home. Resting on the bright chord means major; resting on the darker one means its relative minor. Same notes, different center.

Ready to try it yourself?

Onomo is a full DAW in your browser — synths, drums, effects, and export. Free to start, nothing to install.

Set your key in the Studio