100% free. Unlimited songs. No sign-up. No credits. No catch — kept alive by people like you. 100% free — kept alive by people like you. Support us

Melody & songwriting · lesson 1 of 4

How to write a melody

Five simple rules, and a grid where you can try them over real chords.

8 minBeginnerFree, no sign-upEvery example plays
Swara, the Swara Sound music teacher - How to write a melody

A good melody uses the notes of the key, puts chord notes on the strong beats, moves mostly in small steps with the odd leap, and repeats an idea before changing it.

The easiest place to start is the major pentatonic scale - five notes that fit every chord in the key, so nothing sounds wrong.

Build a melody

The chords are C - G - Am - F (the pop progression). Shaded rows hold the notes of the chord playing in that bar. Press Give me an idea for a starting point, then change it.

1. Stay in the scale

Start with the pentatonic scale of your key (in C: C D E G A). Once that feels easy, switch on All 7 notes to add F and B - they add tension that wants to move on.

2. Chord notes on the strong beats

The strong beats (beats 1 and 3, the gold columns) are where the ear checks whether the melody fits. Put a note from the chord there - C, E or G over a C chord - and the in-between notes can wander freely.

3. Mostly steps, a few leaps

Melodies that move to the next note up or down are easy to sing. A leap (a jump of a 4th or more) gets attention - use one or two per phrase, often at the start, then step back towards where you came from.

4. Repeat, then change

Write a two-bar idea, repeat it, then change the ending. That repeat-and-vary shape (A A B, or A A' ) is how most memorable melodies are built - listeners like knowing what's coming, and like being surprised a little more.

5. Leave space and land home

Rests let a melody breathe and give a singer room to breathe too. End the phrase on the home note (C in C major) or another chord note, and it sounds finished.

Tip: hum over a beat first and record it on your phone. The Audio to MIDI tool can turn your humming into notes.

Quick check

1. Which notes fit best on the strong beats?

2. Why is the pentatonic scale a good place to start?

3. What shape do many memorable melodies follow?

Make something with it

Free tools that go with this lesson - no sign-up.

Frequently asked questions

Do I need to know music theory to write a melody?

No - many great melodies were hummed first. But knowing the scale and the chords lets you fix the notes that don't fit, fast.

Should I write the melody or the chords first?

Either works. Chords first gives you a mood to hum over; melody first often gives a stronger, more singable tune.

How long should a melody be?

Phrases of 2 or 4 bars, repeated and varied, are the building blocks. A verse or chorus is usually 8 or 16 bars.

Try it with these free tools

Free download