← Back to blog

How to Harmonize a Melody on Piano: Finding the Right Chords

You have a melody in your head. A phrase that keeps turning, a theme you hum in the shower, or a sheet of music in front of you with just the top line and nothing underneath. The keyboard is waiting. And then you freeze: which chords go under these notes? Harmonizing a melody on piano is not a gift reserved for composers. It's a method, almost an investigation, where every note of the melody leaves you clues about the chord that should accompany it. Once you get the logic, you never forget it.

One melody note, three possible chords The note C in the melody can be harmonized by three different chords in C major: C major where it is the root, A minor where it is the third, and F major where it is the fifth. A single C in the melody, three harmonizations C melody note C major C = root A minor C = third F major C = fifth
The same note tolerates several chords. The whole richness of harmonization lies in that choice.

What does it mean to harmonize a melody on piano?

Harmonizing a melody means choosing the sequence of chords that will support it and give it a color, a depth, a direction. The melody is the line you sing. The harmony is the scenery beneath its feet. The very same phrase can sound joyful, melancholic or mysterious depending on the chords you place underneath: you are the one holding that brush.

The starting logic is stunningly simple. A melody is made of notes. A chord is made of notes. For a chord to accompany a melody note without grating, it's usually enough that the chord contains that note. This is the founding principle, the one everything else refines. To be sure it works, you pick a chord that contains the melody note. Start there and you already have a working harmonization.

Before anything else, one non-negotiable step: find the key of the piece. Look at the key signature, or spot the note the melody rests on, the one that gives the feeling that "it's over." In C major, seven natural chords are at your disposal, one per degree of the scale. These are your materials. No need to look elsewhere as long as the melody stays obediently within the key.

How to spot the strong notes of a melody?

You don't harmonize every note. That would be the surest way to get a mush of chords changing every quarter second. You harmonize the strong notes, and you let the others glide over the top like passing tones.

A strong note is a note that counts to the ear. Three clues give it away. It falls on a strong beat, the first beat of the bar above all. It lasts a long time, a half note or a whole note rather than a fleeting sixteenth. And it often marks a melodic anchor point, a peak, a held note, the resolution of a phrase. Those notes deserve their own chord. The quick little notes between two anchors make do with the neighboring chord.

Take the opening of Twinkle Twinkle Little Star: C, C, G, G, A, A, G. The notes that carry are the C on the downbeat and the held G. A quick passing note doesn't need its own chord, it slides by. This sorting is half the work. Once the anchors are identified, all that's left is to find each one a chord.

The reflex to build: before hunting for a single chord, highlight on the score the notes that fall on beat one and the ones that last. Those notes, and almost only those, command the harmony.

Which chord under which note? The candidate table

Here is the heart of it. A melody note never belongs to a single chord. In a given key, each note is part of at least three chords of the scale: sometimes it's the root, sometimes the third, sometimes the fifth. These are your candidates, and choosing between them is what making music is about.

Let's look at the note G in C major. It is the root of the G chord, the third of the E minor chord, and the fifth of the C major chord. Three perfectly correct chords under the same note, three different moods. Here are the candidates for each note of the C major scale.

Note (melody)It is the root ofIt is the third ofIt is the fifth of
CC majorA minorF major
DD minorB dim.G major
EE minorC majorA minor
FF majorD minorB dim.
GG majorE minorC major
AA minorF majorD minor
BB dim.G majorE minor

This table isn't meant to be memorized, it's meant to be understood. Each note offers at least three doors. How do you pick the right one? By ear, first. Play the melody note, try each candidate chord under it, and listen for the one that speaks to you. Then with the logic of the progression: chords like to connect in certain ways. A dominant chord (G major, the fifth degree) almost always calls for the tonic chord (C). If your melody descends toward its landing note, a ii-V-I under the last three notes will hit the mark nine times out of ten.

One last precious reflex: favor roots and thirds. Harmonizing a note as the fifth of a chord can sometimes sound floating, less grounded. It's not forbidden, far from it, but when you hesitate, the chord where the note is the root or the third is the safest bet.

Harmonizing a four-note phrase in C major The phrase E D C B C is harmonized by the chords C major, G major, A minor, G major then C major, illustrating the melodic motion and the chords chosen underneath. A phrase, its anchors, its chords melody pitch ↑ E D C B C C G Am G C Each anchor note gets a chord that contains it, and the phrase closes on G → C.
The phrase E-D-C-B-C harmonized step by step: each chord contains the note above it, and the final cadence G to C closes the loop.

How to enrich the harmonization beyond triads?

Three plain chords under a melody is already a valid harmonization. But you can go much further, and this is where the piano becomes a bottomless pleasure.

Add sevenths. Replace your triads with seventh chords and everything colors up at once. C major becomes Cmaj7, D minor becomes Dm7, G becomes G7. The melody doesn't change by a single note, but the scenery goes from nursery rhyme to jazz standard. This is the first reflex to build once the triads are mastered, detailed in the 5 chords that sound pro.

Take care of your voice leading. Between two chords, don't jump from one position to another at random. Keep the common notes, move the others by the smallest possible interval. This is voice leading, and it's what turns a series of correct chords into a smooth, professional accompaniment. A poorly harmonized but well-led melody will often sound better than a clever harmonization played in leaps.

Slip in passing chords. Between two anchors, nothing stops you from adding a brief chord that links one to the other. A suspended chord that delays the resolution, a secondary dominant that prepares the next chord, a discreet chromatic move in the bass. These little breaths add relief. To avoid overloading, one golden rule: when in doubt, take it out. A harmonization that leaves some air is worth more than one that smothers the melody.

Dare to reharmonize. Once you're comfortable, question your first choices. That A minor, why not an F major 7 instead? That G, why not an E7 pulling toward A minor? Changing a chord under an unchanged note is the essence of reharmonization, the art that let Bill Evans make a standard played a thousand times sound unrecognizable. You get there naturally once the basic method is solid.

Visualize every chord under your melody

HarmoniKeys shows the notes of each chord on the keyboard and helps you see which chords contain the note you're trying to harmonize. Download HarmoniKeys to practice these concepts at the piano.

Discover HarmoniKeys

What exercises help you learn to harmonize?

Theory is digested through the hands. Here is a progressive plan, about fifteen minutes a day, that moves the method into your fingers.

Week 1, the children's melodies. Take Twinkle Twinkle Little Star, Frère Jacques, Happy Birthday. Melody in the right hand, and under each anchor note, a single plain chord in C major. Don't chase subtlety, chase accuracy: each chord must contain the note above it. You'll be surprised how fast the ear validates or rejects a chord.

Week 2, the multiple choices. Take the same melodies, but for each anchor note, try the three candidate chords from the table and choose consciously. Note what each option changes. The same Frère Jacques harmonized in major and then with a few minor chords tells two stories. This is your first experience as a composer.

Week 3, sevenths and voice leading. Turn your triads into seventh chords and work the connections between chords, keeping the common notes. Slow down, listen to every transition. At this stage, your harmonizations start to sound "grown up."

Week 4, a real song. Take a song you love, find its melody-only sheet, and harmonize it from start to finish. You'll stumble, you'll revisit your choices, and that's exactly the point. To understand why certain progressions feel so natural, the cycle of fifths will shed light on the natural gravity that connects chords.

One last piece of advice, the most important. Listen to how others harmonize. Take a well-known song, hide the chords, try to find them back by ear, then compare with the real chart. This transcription exercise, a little frustrating at first, develops harmonic intuition faster than any rule.

Harmonizing a melody on piano is not guessing. It's listening to the melody closely enough to hear the chords it's already calling for. Spot the anchors, find the chords that contain those notes, choose among the candidates, then enrich. The day you instinctively place the right chord under a melody you're hearing for the first time, you'll realize it was never a mystery. Just a method, turned into reflex. And from there, every melody in the world becomes an invitation to sit down at the piano.