← Back to blog

How to Find Chords for a Melody: 7 Steps and a Worked Example

Published

How to find chords for a melody you hum or sing: find the key, list its chords, match the long notes, try I, IV, V and vi, and end each line on a cadence.

A woman with curly hair plays an upright piano in a sunlit living room, a spiral notebook open on the music stand, an acoustic guitar and a sleeping dog in the background

To find chords for a melody, first find its key: the note the tune wants to end on is usually the home chord. Then list the six main chords of that key and, bar by bar, pick a chord that contains the notes on the strong beats and the long notes. Start with one chord per bar, try I, IV, V and vi before anything else, let short in-between notes pass, and end each line on V or on V going to I.

StepWhat you doWhat you get
1. Find the keyHum the melody and find the note it wants to rest onThe home note and chord (I)
2. List the chordsWrite the six chords of that key (table below)Six candidates instead of dozens
3. Mark the notes that matterCircle the notes on beat 1, beat 3 and every long noteThe notes the chords must contain
4. One chord per barFor each bar, pick a chord that holds its marked notesA first draft
5. Try I, IV, V, vi firstPrefer these four; use ii and iii when they fit betterA draft that sounds like a song
6. Fix the clashesLet short passing notes go; split a bar where a strong note fights the chordA clean draft
7. Close the linesV–I where a line ends on home, V where it should stay openLines that sound finished or open on purpose

This page is the reverse of writing a melody over chords: you already have the tune, sung, hummed or played, and you need the chords under it. If you’re starting from a lyric with no tune yet, how to put music to lyrics goes from the words to a melody first.

Step 1: Find the key from the note your melody wants to end on

Every melody leans toward one note that feels like home. Hum your tune and stop on its last note. If it sounds finished, that note is probably the key’s root, the “1”. If it sounds like it’s hanging in the air, keep humming until you land on a note where you could stop and walk away. That’s home.

Then name it. If you don’t know which note you’re humming, sing it slowly into the free note finder: hold each note of the melody for a moment and it lists them in order, like C C G G A A G. Two things tell you the key:

  • The home note. In that example it’s C, because the phrase settles there.
  • The set of notes. Compare the list with the “Notes” column in the tables below. Every note of the melody should belong to the key. A melody that uses F♯ and rests on G is in G major; one that uses no sharps or flats and rests on A is in A minor.

Major or minor? If the home note sounds bright and settled, it’s major. If it sounds darker or more inward, try the minor key with the same notes: C major and A minor share all seven notes, and only where the melody rests tells them apart.

If you already have a rough recording with chords or a backing loop, the song key and BPM finder estimates the key from the audio file in your browser. It’s built for recordings with chords, so for a bare hum your ear and the note list are more reliable.

Step 2: List the chords that belong to the key

Each major key has six main chords built from its own notes, numbered by the scale step they start on. Capital Roman numerals are major chords, lowercase are minor. (There’s a seventh, the diminished vii°, which most pop and folk songs skip.)

KeyNotesIiiiiiIVVvi
C majorC D E F G A BCDmEmFGAm
G majorG A B C D E F♯GAmBmCDEm
D majorD E F♯ G A B C♯DEmF♯mGABm
A majorA B C♯ D E F♯ G♯ABmC♯mDEF♯m
E majorE F♯ G♯ A B C♯ D♯EF♯mG♯mABC♯m
F majorF G A B♭ C D EFGmAmB♭CDm

Minor keys use the same idea, numbered from the minor home chord. Songs in minor usually swap the minor v for a major V (E instead of Em in A minor), because the major chord pulls back home much harder.

KeyNotesiIIIivv / VVIVII
A minorA B C D E F GAmCDmEm / EFG
E minorE F♯ G A B C DEmGAmBm / BCD
D minorD E F G A B♭ CDmFGmAm / AB♭C

Every note of the key belongs to three of these chords. That’s the table you’ll use most, because it turns “which chord?” into a choice between three. In C major:

Melody noteChords that contain it
CC, F, Am
DDm, G (also G7)
EC, Em, Am
FDm, F (also G7)
GC, Em, G
ADm, F, Am
BEm, G (also G7)

For another key, move every row by the same distance: in G major, G belongs to G, C and Em.

Step 3: Put a chord where the strong and long notes are

You don’t need a chord that contains every note of the melody. You need one that contains the notes the ear holds on to: the notes on the strong beats (beat 1, and beat 3 in 4/4) and the long notes. Quick notes between them can be anything from the key.

So, for each bar:

  1. Sing the bar and circle the note on beat 1 and any note you hold.
  2. Look those notes up in the note-to-chord table.
  3. Pick the chord that contains most of them. When two chords tie, take the one from I, IV, V and vi.

Start with one chord per bar. How often the chords change is called the harmonic rhythm, and one change per bar is the most common starting point in pop, folk and rock. If a bar’s beat 3 holds a note that fights the chord, split the bar into two chords. In a slow ballad, one chord can last two bars. Many melodies change chords faster near the end of a line, so don’t be surprised when the last bar of each phrase needs two chords.

Step 4: Try I, IV, V and vi first

Most melodies in a major key can be harmonized with just four chords: I, IV, V and vi (C, F, G and Am in C). They cover every note of the scale between them, and they’re the chords listeners expect. That’s why they work as a first test before you reach for anything clever.

Which chords “go together”? Any chords from the same key do. A few moves are especially strong, and it helps to know them while you choose:

  • V to I (G to C) is the strongest pull in music: it says “we’re home”.
  • I to IV (C to F) opens up and lifts.
  • vi to IV (Am to F) sounds moody and is the backbone of countless pop choruses.
  • ii to V (Dm to G) leads smoothly into the V; it often replaces IV right before a line ends.
  • Chords that share two notes are near-twins: C and Am, F and Dm, G and Em. They’re the first swaps to try later.

Use ii and iii when the melody note asks for them: a held D sounds better over Dm or G than over anything else, and a held B wants G or Em.

When a melody note isn’t in any chord you picked

It happens in every song, and it’s usually fine. What matters is where the note falls and how long it lasts.

  • Passing notes. A short note that walks between two chord notes, like the D in C D E over a C chord. Leave it. The ear hears it as motion, not a clash.
  • Neighbor notes. A short step away and back, like E F E over C. Also fine.
  • A strong or long note outside the chord. This one you’ll hear. Either change the chord for that beat (split the bar), or keep it on purpose as a color: B held over C makes a Cmaj7 sound, D over C an add9, F over C a sus4 that wants to fall back to E.
  • A note outside the key. If a melody in C holds an F♯, the chord under it is probably borrowed from another key. D major (D, F♯, A) is the most likely answer in C, and it pulls to G. Try it before anything stranger.

A quick test: sing the melody note and play the chord’s root under it (one bass note). If that pair sounds calm, the full chord usually will too.

End each line with a cadence

The chords at the end of a line decide whether it sounds like a period or a comma. These moves are called cadences, and three of them cover most songs:

The line ends onChordsIt soundsUse it for
The home note (C in C major)V–I (G–C)Finished, closedThe last line of a verse or chorus
Step 2, 5 or 7 of the scale (D, G or B)Ends on V (G)Open, waitingLines in the middle, before an answer line
The home note, but you’re not doneV–vi (G–Am)A surprise, unfinishedA line you’ll repeat, before the final one

A softer close is IV–I (F–C), the “amen” sound of hymns. Whatever you choose, the melody note at the end of the line must sit in the last chord: if it doesn’t, the cadence will sound wrong no matter how good the chords are on paper.

Worked example: chords for “Twinkle, Twinkle, Little Star”

“Twinkle, Twinkle, Little Star” is a good test melody: everyone can hum it, and it’s in the public domain. The tune is the French song “Ah! vous dirai-je, maman”, first published in 1761, and the words come from Jane Taylor’s poem “The Star”, published in 1806. Here it is in C major, four beats per bar, one quarter note per syllable and a half note at the end of every second bar.

Step 1: it ends on C and sounds finished, and it uses only white-key notes: C major. Step 2: the candidates are C, Dm, Em, F, G and Am.

Steps 3 to 6, bar by bar for the first line:

BarLyricMelodyFirst try: one chord per barProblemFinal chords
1Twin-kle, twin-kleC C G GCNone: C and G are both in CC
2lit-tle starA A G (long)F (for the A on beat 1)The long G fights FF, then C on “star”
3How I won-derF F E EFThe E on beat 3 fights FF, then C on “won-der”
4what you areD D C (long)GThe long C fights GG, then C on “are”

The first try with one chord per bar fails in three bars out of four, and that’s useful information: this melody moves every two beats, so the harmonic rhythm doubles. With two chords per bar, every note on a strong beat sits in its chord.

Step 7: the line ends on C, home, and G to C under “what you are” gives it a full close.

The middle lines, “Up above the world so high” and “Like a diamond in the sky”, both sing G G F F E E D: C under “Up a-”, F under “-bove the”, C under “world so” and G under “high”. They end on D over G, the open cadence, which is exactly why the tune then wants to go back to the first line. Here’s the whole first line, with each chord in brackets right before the syllable where it changes:

[C]Twinkle, twinkle, [F]little [C]star,
[F]How I [C]wonder [G]what you [C]are

You can hear it: open the chord player with the first line loaded. Each chord gets one bar there, so the player runs at 160 BPM and you sing the tune at a relaxed 80, two syllables per chord: “Twin-kle” over the first C, “twin-kle” over the second, “lit-tle” over F, “star” over C, and so on.

Reharmonize for color once it works

A plain I–IV–V version is the safe draft. Once every bar works, try swapping chords for color. The rule stays the same: the new chord must still contain the strong and long notes.

Instead ofTryShared notesWhat changes
C (I)Am (vi)C, EDarker, more tender
C (I)Em (iii)E, GSofter, wistful
F (IV)Dm (ii)F, AMore motion toward G
G (V)G7 (V7)G, B, DA stronger pull home
F (IV)Fm (iv, borrowed from C minor)F, CBittersweet; avoid it over a held A
G–C at a line endG–Am (V–vi)—The line stays open

On “Twinkle”, the same melody can carry a sadder first line: C on “Twin-kle, twin-kle”, Am and Em under “lit-tle star” (A over Am, G over Em), Dm and Am under “How I won-der” (F over Dm, E over Am), and G going to Am under “what you are”. Every strong note still sits in its chord, but the line now ends on the surprise cadence and asks for more. Save the real G–C close for the last line of the song. Hear the reharmonized line and switch back and forth with the plain version.

That’s the whole craft of reharmonizing: the melody stays the same and the chords under it change the mood. The guide to chord progressions for songwriting has more loops to borrow once you know which chords your melody accepts.

How to test chords fast on guitar or piano

You’ll try a lot of chords, so make each test take a few seconds.

On guitar:

  • Work in G or C, where I, IV, V and vi are all open shapes (G, C, D, Em or C, F, G, Am). If your melody is in another key, put a capo on and use the same shapes: melody in A, capo 2 and play the G-major shapes.
  • Strum once per bar and let it ring while you sing. One strum makes clashes easy to hear; a busy pattern hides them.
  • Record the melody on its own, then play it back and strum along. You hear the chords against the real melody instead of against your memory of it.

On piano:

  • Play only the root in your left hand first: C, F, G, A. If the bass note sounds right under the melody, the chord usually will too.
  • Then play the full triad in the left hand and the melody in the right. Keep the chords in one area of the keyboard: C (C E G), F (C F A), G (B D G) let your hand barely move.
  • Mark the chord over the syllable where it changes, in pencil, before you forget which version you liked.

Can’t play an instrument? Sing over a loop

You don’t need to play to harmonize a melody. You need to hear chords under your voice and decide which one sounds right.

  1. Find the key as in step 1 and pick the matching key in the chord progression player.
  2. Load I, IV, V and vi (C, F, G and Am in C) and set a slow tempo with long, held chords.
  3. Sing one bar of your melody over each chord in turn. Note which ones feel calm and which ones grind.
  4. Type your chosen chords into the player’s bars in order, loop the line and sing it through. Swap one bar at a time until nothing grinds.
  5. Record a take in the player with headphones on, so the voice and chords are together.

If you’re turning a hummed voice memo into a full song, how to turn humming into a song covers the rest: structure, words and a first demo.

Where Zoundroom fits: chords over the syllable where they change

Once you’ve found the chords, the next job is keeping them exactly where they go, on the right word, with the melody next to them. In Zoundroom, write the lyric in a note and put each chord over the syllable where it changes: the chord bar above the keyboard suggests the chords of the song’s key, so the six candidates from step 2 are one tap away. Tap a chord in the lyric to hear it on guitar, piano or ukulele, and use ”▶ Line” to hear a line’s chords one after another, which is a quick way to test a reharmonization. Then tap the note’s microphone under the line and sing the melody over it: the take sits right under the chords it belongs to, in the same project on iPhone, Android and the web. Here’s how chords over lyrics work.

Free is enough to harmonize your first songs: you can add, move, transpose and hear chords in up to 2 projects. Pro is for when you’re writing several songs at once, with up to 1,000 projects and longer notes, and you can try it free for 7 days on iPhone and on the web.

Its limit for this job: Zoundroom doesn’t detect chords from your humming, so the choosing is still yours.

Frequently asked questions

How do I find chords for a melody I wrote?

Hum the melody and find the note it wants to end on; that’s the key’s home note. List the six main chords of that key (in C: C, Dm, Em, F, G, Am). For each bar, pick a chord that contains the note on beat 1 and any long note, starting with one chord per bar and trying C, F, G and Am first. End each line with G–C if it should sound finished, or on G if it should stay open.

How do I know which chords go with my melody?

A chord fits a bar when it contains the melody’s strong-beat and long notes. Every note of a major key belongs to three chords of that key; in C major, the note A belongs to F, Dm and Am, and the note G belongs to C, Em and G. Pick from those three, test them by ear, and keep the one that matches the mood of the words.

What if a melody note isn’t in the chord?

If the note is short and moves by step between two chord notes, leave it: it’s a passing note, and the ear hears it as motion. If it’s long or lands on a strong beat, either change the chord for that beat or keep it on purpose as a color, such as B over C (a Cmaj7 sound). A note outside the key often points to a borrowed chord, like D major in the key of C.

How many chords should a melody have?

Start with one chord per bar. Most simple melodies need only three or four different chords, usually I, IV, V and vi of their key. Change chords twice per bar where a strong beat in the middle of the bar fights the chord, and let a chord last two bars in slow songs. “Twinkle, Twinkle, Little Star” uses only three chords, C, F and G, changing every two beats.

Can I harmonize a melody without knowing music theory?

Yes. Find the note that feels like home, load the four main chords of that key into a chord player, and sing one bar of the melody over each chord until you hear which one sounds calm. You only need to know which chords belong to your key, and the tables on this page give you that for the most common keys.

Sources

  • Wikipedia, “Twinkle, Twinkle, Little Star”, checked on November 19, 2026: lyrics from Jane Taylor’s poem “The Star” (1806); the melody is the French tune “Ah! vous dirai-je, maman”, first published in 1761; the same tune is used for the alphabet song and “Baa, Baa, Black Sheep”. wikipedia.org