Learn Music Composition How to Write a Melody
How to Write a Melody: Shape, Range and Climax
To write a melody, start with a short memorable idea, give the line a clear overall shape (usually rising towards one high point and then settling), keep it within a comfortable range, and end on a note that sounds like home. Learning how to write a melody is less about inspiration and more about making a handful of deliberate choices about direction, distance and timing.
This guide walks you through those choices one at a time. You’ll see how contour shapes the listener’s journey, how to balance steps and leaps, how to choose a range that suits a voice or instrument, and how to place a climax so your melody feels like it’s going somewhere.
In this guide
- Why every good melody has a recognisable shape (contour)
- How to balance steps and leaps so a line feels natural
- Choosing a range that suits the singer or instrument
- Where to put the climax, and how to make it count
What makes a melody work?
A melody is a series of single notes heard as one connected line. What turns a string of notes into a tune is that the listener can follow it: they sense where it’s heading, notice when it surprises them, and feel it arrive. Three ingredients do most of that work.
- Shape. The rise and fall of the line over time, also called its contour.
- Range. The distance between the lowest and highest notes, and where that span sits.
- Climax. The single most intense moment, usually the highest note, placed so the line builds towards it.
Rhythm, harmony and repetition matter too. A melody is usually built from a motive that returns and changes. But if shape, range and climax are under control, the rest is far easier to get right.
Give your melody a clear shape
Sketch the melody as a line on paper, ignoring the exact notes, and you’ll see its contour. Most memorable tunes have one dominant gesture: a rise and fall (an arch), a gradual climb, a fall from a high start, or a wave that rises in stages. Listeners don’t analyse this consciously, but they feel it. A line with no overall direction tends to sound like it’s wandering.

In the example above, the first half climbs, with small dips that keep it from sounding like a scale exercise. The peak arrives at the end of bar 2, and the second half descends to C. Notice that the shape is clear even though the line doesn’t move in one direction every beat.
Common contours to try
- Arch: rise to a peak around the middle or later, then fall. Balanced and complete, ideal for a self-contained phrase.
- Ascending: a gradual climb that builds energy. Great for openings or a lead-in to a chorus.
- Descending: start high and come down. Often sounds calm, sad or resolved.
- Wave: several smaller rises and falls, each reaching a little higher. Useful for longer melodies.
Balance steps and leaps
Melodies move by steps (to the next note of the scale) and leaps (anything larger). Steps give smoothness and are easy to sing; leaps create energy and character. Most strong melodies are mainly stepwise, with a few well-chosen leaps that stand out precisely because they’re rare. If you need a refresher on naming distances, see our guide to intervals.

A useful habit: after a large leap, change direction and move by step, gradually filling in the space the leap skipped over. The ear hears a leap as a kind of question; the stepwise return answers it. You can break this habit on purpose, but it’s a reliable default.
How to place a leap well
- Decide what the leap is for: an energetic opening, a moment of longing, or a launch towards the climax.
- Leap to a stable note, such as a note of the underlying chord, so it lands securely.
- Follow it with a change of direction, mostly by step.
- Avoid two big leaps in a row in the same direction unless they outline a chord you want the listener to hear.
Choose a comfortable range
Range is about who, or what, will perform your melody. A tune that spans more than about an octave and a half is hard for most untrained singers, and any part that hovers at the very top of an instrument’s register will sound strained (sometimes that’s the point, but it should be a choice). For a first melody, aim for a span of roughly an octave to a tenth, and keep most of the notes in the middle of that span.
| Voice or instrument | Comfortable melodic range (approx.) | Notes |
|---|---|---|
| Soprano | D4 to G5 | Bright and clear from about C5 upwards |
| Alto | A3 to D5 | Warm, rich lower register |
| Tenor | D3 to G4 | Written an octave higher in treble clef |
| Baritone | A2 to D4 | Strong around the middle of the stave |
| Violin | G3 to E6 | Singing tone; the top octave is brilliant |
| Flute | D4 to A6 | Lowest notes are soft and breathy |
These figures are guides, not limits. Professionals go well beyond them. But writing inside them first teaches you to make every note count, and it keeps your melody playable by the musicians you’re most likely to work with.
Tip
Sing your melody out loud, even if you don’t think of yourself as a singer. If you strain for a note or run out of breath, a performer will feel the same discomfort. Your voice is the fastest test of whether a line is natural.
Build towards a climax
The climax is the moment of greatest intensity, usually the highest note, often on a strong beat and sometimes supported by a fresh chord or a longer note value. A melody that has a climax feels purposeful; one without it can feel flat, however pretty its details.

Three ways to make the climax count
- Save the highest note. Use it once. If the line touches its top note several times, none of them feels special.
- Place it late. Around two-thirds to three-quarters of the way through a phrase works well, leaving time to come back down to a cadence.
- Prepare it. Let earlier, lower peaks hint at the climb, then approach the climax with a run of rising steps or a confident leap.

Writing a melody step by step
Here’s a simple process that puts the ideas above into practice. It works for songs, instrumental themes and film cues alike.
- Pick a key and a mood. Major for brightness, minor for weight, or a mode for a particular colour (see scales and modes).
- Write a motive. Two to five notes with a distinctive rhythm. This is the seed of the whole melody.
- Sketch the contour first. Draw the shape you want across four or eight bars and mark where the climax will fall.
- Fill in the notes. Repeat and vary the motive to follow your contour, moving mostly by step with one or two leaps.
- Check the range. Find the lowest and highest notes and compare them with the performer’s comfortable range.
- Shape the ending. Finish on the home note (or the third or fifth of the home chord), approached by step.
- Play it, sing it, revise it. Change one thing at a time and listen again.
Common mistakes
- Wandering without direction. Notes that drift up and down with no overall shape. Fix it by deciding the contour before the details.
- Hitting the top note too often. The climax loses its power. Lower earlier peaks by a step or two.
- Too many leaps. The line sounds jumpy and is hard to perform. Replace some leaps with steps.
- Too much repetition of one pitch. Repeated notes are fine for rhythm, but a melody stuck on one note loses momentum.
- An ending that doesn’t settle. Ending on an unstable note by accident sounds unfinished. Make the final note a deliberate choice.
Try it yourself
Write an eight-bar melody in a major key of your choice for your own voice or instrument. Before you write any notes, draw an arch contour and mark the climax at bar 6. Use no more than three leaps, follow each one with stepwise motion in the opposite direction, keep the whole melody within a tenth, and use the highest note only once. Finish on the home note. Then write a second version with a descending contour and compare how the two feel.
Free download
The Composer’s Starter Kit
A 7-day plan, two worksheets and manuscript paper to take you from a blank page to a finished short piece. Enter your email and we’ll send it straight over.
No spam. Unsubscribe any time.
New course
Orchestral Alchemy: The Complete Orchestration Course
Ready to hear your ideas played by a full orchestra? Learn to voice chords, build cinematic textures and score emotion with a 55-page course book and a full workbook. Instant PDF download.
Frequently asked questions
What is the easiest way to start writing a melody?
Start with a short motive of two to five notes with a memorable rhythm, then repeat and vary it. Deciding the overall shape and the climax before filling in every note keeps beginners from getting lost.
Should I write the melody or the chords first?
Either works. Writing the melody first tends to give a more singable, independent tune, while starting from chords can suggest notes and colours. Many composers move back and forth between the two.
How long should a melody be?
A basic melodic unit is often a four-bar phrase, and two or more phrases combine into a complete melody of eight or sixteen bars. Length matters less than shape: even a short melody should feel like it rises, peaks and settles.
Keep learning
This series follows the craft-first approach to composition taught by composer Alan Belkin. For a deeper dive, watch his free Musical Composition and Applied Harmony video series on YouTube.
Hear these ideas in practice in the Miniature Piece Project, or study real scores in our piano sheet music.
Want feedback on a piece of your own? See our composition lessons and feedback.
← All composition guides Next: Melodic Tension and Release →

