How to Write a Melody

This article may contain compensated links. Please read the disclosure for more info.

Would you like to learn how to write a melody?

Here you'll learn step by step how to write your first melody in this music theory lesson about music composition for beginners.

Learn How to Write a Melody

A melody can be short or long. Simple, plain, weird, sweet...anything at all. But it can be hard to start composing a melody when anything is possible...

This lesson is an exercise in how to write a melody step by step. It's designed to get you started and to get over any writing blocks. (Just keep in mind that anything can be adjusted as you wish- it’s your melody after all!)

How to write a melodyLearn how to write a melody.
Free printable staff paper

Tip: Make sure to print out some of my free printable staff paper before you begin!

Sharpen your pencil, and practice to write the notes, clefs etc. as you learn about them. This will make everything you learn here easier to remember.

Click here to get your FREE printable staff paper!

How to Write a Melody in 12 Simple Steps

1. Pick a Scale

Pick a scale. It could be any scale or mode, but for this exercise I will ask you to pick either a major or a minor scale. This is because it is easy to begin with (and to find chords that match later).

2. Draw a Graphic Outline

Draw a simple graphic outline of how you’d like your melody to move in pitches. Up or down, big jumps or smooth.

Draw a picture, no notes yet. As you imagine the visual outline of the melody, also imagine the sound, maybe rhythm, and speed etc. So your graphic melody idea might look something like this:

Melodic outlineJust draw an outline of how you'd like your melody to move...

Keep it simple. Nothing fancy. This is only to have as a basic idea of the shape of the melody and to help to start your creative juices flowing!

3. Decide How Many Measures

Decide how many measures you would like the melody to be. It's a good idea to start with 4 or 8 measures. It gives a nice balance, and is easy to work with when you start out to learn how to write a melody.

4. Divide the Graphic in Parts

Divide your graphic in the amount of measures you decided. 4 or 8 parts, or «measures» where it seems to make sense (visually).

5. Scale and Key Signature

Write your scale and its key signature. This is the basic material for your melody. Like this example in C major:

Writing a scaleFor this exercise I have used a C major scale.

Important and useful "hook" notes are the 1st, 4th, 5th and 7th (leads "home" to the 8th/1st). These are great to lead to, rest on and sometimes start a measure with.

6. Prepare Your Staff Lines

Prepare a staff with a G-clef and key signature. Do not write time signature, we don’t know what rhythm will fit your melody yet! But do draw bar lines for the number of measures you decided on.

7. Write End Note

To set the mood of the piece to reflect the scale you chose, end your melody on the first note of the scale. In the example this is C. So in the last measure, as the last note I write the note C.

8. Pick Notes From the Scale

Now look at your graphic diagram. For each measure, pick notes from the scale at the height you wanted, to shape the melodic outline.

Use only indications of notes, or whole notes. (The note values we’ll decide later.) You are free to change your mind whenever you want. 

Melody draftHere the melody roughly follows the outline I decided earlier.

What Makes a Good Melody?

  • A good melody is in a comfortable range to sing or play in.
  • It has repeated parts, could be both in melody and rhythm.
  • A good melody is interesting, but doesn't have too many ideas to get confusing.
  • It may have some elements of surprise, perhaps an interesting interval or surprising landing note, but used sparely.

9. Keep The Melody Smooth

Does the outline look good visually? Are there any larger interval jumps?

Most singers and instrumentalists do not enjoy huge jumps in the music.

To make it smoother, make sure a jump of a 7th goes to the next note up, the octave, that any intervals larger than a 5th are not used too often, and avoid jumps larger than an octave.

10. Test!

First «taste» test. Play the melody on your instrument. Get a feel for which notes want to go faster or slower, and if they like to be grouped together somewhere. Make any changes you like.

11. Add Rhythm

Now start jotting in the rhythm. Make notes you'd like to be faster 8th or 16th notes; longer notes quarter, half or whole. Keep it simple.

Feel what notes you want more emphasized, this will give you an idea of what meter the piece wants to be in! The more emphasized notes could be the main beats. Mark them out. Make any changes or adjustments that you like.

12. Meter and Time Signature

What do you think the meter is? Do you feel the melody in 2, 3, 4 beats per measure or something else? If you have trouble here, check out my lesson about musical meter.

Decide the time signature you feel is the most appropriate, and adjust the note values for all measures. Play through the melody and make any corrections you like.

Repeated rhythm patterns are nice. Try to incorporate that!

Composing a melodyA happy little tune!

All done? Try not to be a perfectionist. This is your first try learning how to write a melody. The tune might even surprise you and get a «life» of its own!

OK. Done ! Time to move on to how to add a chord sequence that fits with the melody>>>

Share on Social Media

Share on Social Media

Read More About Writing Music