To learn how to write a melody over chords, the single most useful trick is to land your strongest melody notes on the notes inside each chord. If your chord is C major (C-E-G) and your melody hits an E or a G on the downbeat, it sounds settled. Everything else is decoration around those anchors.
This guide gives you a repeatable process you can use over any progression, with concrete note names so you can follow along at an instrument. It works just as well over the common chord progressions most songs are built on.
Start with the chord tones
Every chord is built from a few notes (a triad is three: root, third and fifth). Those notes are your safe landing spots. Take a simple progression in C major:
- C = C, E, G
- Am = A, C, E
- F = F, A, C
- G = G, B, D
Play the progression on a loop and sing or play any of those chord tones on each chord. Even just holding one note per bar will sound musical because each note belongs to the chord underneath it. This is the skeleton of your melody.
Add passing notes between the anchors
A melody made of only chord tones can feel stiff. The fix is passing notes: scale notes that connect two chord tones. Since the whole progression is in C major, your scale is C-D-E-F-G-A-B. To move from C up to E over the C chord, step through the D in between. The D is not in the chord, but because it passes quickly to a chord tone it sounds like motion rather than a wrong note.
The rule of thumb: chord tones on strong beats (beat 1 and 3), passing notes on weak beats (the “and” of a beat, or beats 2 and 4). Land, pass, land.
Give the melody a rhythm
Pitch is only half a melody. The other half is rhythm. Try this: take your anchor notes and vary how long you hold them. A long note followed by three quick notes feels very different from four even notes. Leaving gaps (rests) is just as important. A melody that breathes is far more singable than one that never stops. If syncopation feels new to you, our guide to syncopation in music explains how off-beat notes add groove.
Build a motif and repeat it
Memorable melodies repeat a short idea. Write a small two-bar phrase (a motif) over your first two chords, then reuse its rhythm over the next two chords with slightly different pitches. Repetition with small change is the core of every catchy melody. This is exactly how a strong hook is built.
Use tension and release
The notes that are not chord tones create tension, and tension makes the resolution to a chord tone feel satisfying. Over a G chord (G-B-D), try holding an F or an A briefly before resolving down to G. That pull-and-settle is what gives a melody emotional shape. Knowing which notes are in your key helps here, so it is worth understanding diatonic chords and how they relate to the scale.
Shape the line with steps and leaps
Beyond which notes you pick, the shape of the line matters. Movement between two notes is either a step (the next note up or down in the scale, like C to D) or a leap (a bigger jump, like C to G). These distances are musical intervals, and naming them makes it easier to plan your melody. Steps feel smooth and singable; leaps feel dramatic and grab attention. Good melodies use mostly steps with the occasional leap for impact, rather than jumping around constantly.
A reliable trick is to follow a large leap with stepwise motion in the opposite direction. If your melody jumps up from C to G, let the next few notes drift back down by step (F, E, D). The leap creates a peak, and the steps gently resolve the energy it built. Aim for one clear high point across a phrase rather than several competing peaks; a melody with a single climax is far easier to remember.
A simple worked example
Over C-Am-F-G in C major, a clean four-bar melody could be:
- C chord: E (held), then D-E (passing)
- Am chord: C (held), then B-A
- F chord: A (held), then G-F
- G chord: G (held), then F-G to resolve
Notice every bar starts on a chord tone and uses one or two passing notes to connect. That is the whole technique. Once it feels natural, you can break the rules deliberately for effect.
Common mistakes to avoid
Most melodies that “don’t quite work” fall into a handful of traps. Watch for these as you write:
- Holding a non-chord tone on a strong beat. This is the most common cause of a melody that sounds slightly wrong. If a note clashes, check whether it belongs to the chord underneath, and if not, either shorten it or move it onto beat 1 or 3.
- Too much movement. Filling every beat with notes leaves the listener no room to breathe and makes the line hard to sing. Cut some notes and add rests; space is part of the melody.
- No repetition. A line that never repeats an idea is forgettable. Reuse a rhythm or a contour at least once so the ear has something to latch onto.
- Ignoring the chord changes. A melody that works over one chord may clash over the next. Always check your held notes against each chord in turn, not just the first.
- Starting and ending on weak notes. Phrases feel more finished when they begin and resolve on chord tones, especially the root or third of the home chord.
Frequently asked questions
Do I write the chords or the melody first?
Either works. Writing a melody over chords is great when you already have a progression, because the chords give your melody a built-in set of “right” notes. If you prefer melody first, you can harmonise it afterwards; our guide to melody vs harmony explains how the two fit together.
How do I know which scale to use?
Use the scale of your song’s key. If your progression is C-Am-F-G, you are almost certainly in C major, so the C major scale gives you every note you need. Learning to find the key of a song makes this automatic.
Why does my melody sound off on some chords?
Usually you are holding a non-chord tone too long on a strong beat. Move that note onto a chord tone on beat 1 or 3 and keep the clashing note short and passing.
How big should the range of my melody be?
For a singable melody, keep the gap between your lowest and highest note within about an octave. A wide range can sound impressive but is hard to sing and tends to lose its focus. If you do reach for a high note, save it for the climax of the phrase so it earns its place.



