← Back to blog

How to Write a Guitar Riff: A Songwriter's Method With TAB

Published

How to write a guitar riff: start from the minor pentatonic, write the rhythm first, repeat a short motif with a twist and fit it to the song. Four riffs in TAB.

A long-haired guitarist plays a sunburst electric guitar in a rehearsal room with amps and a lamp, while a drummer plays behind him

To write a guitar riff, pick a small set of notes (the minor pentatonic box on the low strings is the classic start), decide the rhythm before the notes, and build a short phrase of one or two bars that repeats. Make the second half answer the first, with one change at the end so it doesn’t feel like a loop. Leave space for the vocal, play it until it’s in your hands, and record it right away so you don’t lose it.

A riff is a short, repeated musical phrase that a song is built around. It’s mostly rhythm: the same notes played with a different rhythm become a different riff. This page walks through a method that works for rock, blues, metal, funk and indie, with four original riffs in TAB you can play and change.

What makes a riff work

IngredientWhat it meansWhy it matters
ShortOne or two bars, rarely moreShort phrases are easier to remember and to repeat
RhythmicSyncopation, rests, accentsRhythm is what people recognize first, even before pitch
RepeatedIt comes back several timesRepetition turns a phrase into the song’s identity
A twistThe last beat or bar changesStops it from sounding like an exercise
SpaceSilence between notesGives the groove room and leaves space for drums and vocals
Low and simpleOften on the low E and A stringsSounds heavy, sits with the bass and is easy to play tight

Famous riffs tend to be simple when you look at them in TAB. Their strength comes from rhythm, tone and confidence.

Step 1: choose your notes

Start with the E minor pentatonic in open position. It contains five notes (E, G, A, B, D), and almost any combination sounds good together:

e|---------------------------------0--3--|
B|---------------------------0--3--------|
G|---------------------0--2--------------|
D|---------------0--2--------------------|
A|---------0--2--------------------------|
E|--0--3---------------------------------|

Most riffs only use the low E, A and D strings of this box. Open strings help: you can hit the open low E between fretted notes as a “pedal” note, and the riff will sound full with very little movement.

Other good sources of notes:

  • Power chords (root and fifth): riffs made of moving power chords are the backbone of rock and punk.
  • The blues scale (minor pentatonic plus the ♭5): add the B♭ (A string, fret 1) to E minor pentatonic for a darker, bluesier color.
  • A single chord’s notes with an open string pedal: great for indie and folk riffs.

The music scales for songwriting page shows more scales and the mood of each.

Step 2: write the rhythm first

Tap a rhythm on your knee or on the guitar body before you choose notes. Try:

  • Straight eighths with one push: 1 & 2 & 3 & 4 &, but accent the ”&” of 2.
  • A rest on beat 1: starting a riff just after the downbeat sounds immediately groovy.
  • Long–short–short: a held note followed by two quick ones, repeated.

Then put notes on that rhythm. Keep most of it on one or two notes; let only a few move. If you hum the rhythm and it already feels like something, you’re on the right track.

Step 3: build a motif and answer it

The simplest riff shape is call and answer: a half-bar or one-bar idea (the call), then the same idea with a different ending (the answer).

Call                    Answer
E|--0-0---3--0--------|--0-0---3--5--3-----|

Same start, different end. If you play the call twice and the answer once, you have a four-bar phrase that sounds finished.

Four original riffs to play and change

All in standard tuning. Play them slowly first; the rhythm is described under each one.

Riff 1: rock, low E pedal (E minor pentatonic)

E|--0-0-3-0-0-5-0-0-3-0-------|

Rhythm: steady eighth notes, accent the fretted notes. The open E between them is the pedal that makes it drive.

Riff 2: blues shuffle (A, power-chord style)

D|--2-2-4-4-2-2-4-4-|
A|--0-0-0-0-0-0-0-0-|

Rhythm: shuffle (long-short), the classic boogie pattern built on a root and its fifth to sixth. Move the same shape to the D and E strings for the IV and V chords of a 12-bar blues.

Riff 3: indie, open-string melody (G major chord shape)

G|-----0-------0-----|
B|---3---3---1---1---|
D|-0-------0---------|

Rhythm: even, picked notes, let them ring. It outlines G, then a Gsus4 color when the B string drops to C. The open G string between the fretted notes keeps it shimmering.

Riff 4: heavier, power chords with a rest (E5, then G5 and F♯5)

D|--2---2-------5-4---|
A|--2---2-------5-4---|
E|--0---0-------3-2---|

Rhythm: hit, hit, rest for two beats, then two chords on beats 4 and 4&. The silence is the point.

Change one thing in each riff (a note, the rhythm, the last beat) and you have your own.

Step 4: fit the riff to the song

A riff you love on its own can still bury a song. Decide what job it does:

WhereWhat the riff should doTip
Intro riffIntroduce the song’s identityCan be busy; nobody is singing yet
Verse riffHold the groove under the vocalSimplify it: fewer notes, more space
ChorusUsually give way to chordsSwitch to power chords or open chords; let the vocal lead
Between sections / outroRemind the listener of the hookPlay the full intro version again

The vocal and the riff can’t both be busy at the same time. If the verse feels crowded, play the riff in the gaps between vocal lines, or only on the first and third lines. In a band, check that the riff and the bass line work together; how to write a bass line covers that side.

If the riff came first and you need a song around it, how to write a rock song shows how a riff turns into verses and choruses.

Step 5: save it before you lose it

Riffs are easy to forget because they live in your hands. When you find one:

  1. Record it immediately, even on your phone, at the tempo you hear it. Say the tuning out loud if it isn’t standard.
  2. Name the take with the key and what it is: “E riff, drop D?, verse idea.”
  3. Write the TAB later, once you’re sure of it.
  4. Play it again the next day. If you still like it, it’s worth building on.

Most writers have a pile of riffs and no songs. Keep them in one place and go back to them; how to remember a melody has more on not losing ideas.

Common riff mistakes

  • Too many notes. If you can’t hum it, it’s probably a guitar exercise, not a riff.
  • No rhythm idea. Running eighth notes up and down the scale rarely sticks.
  • Never repeating. The repeat is what makes it a riff.
  • Playing it everywhere. A riff in every section wears out by the second chorus.
  • Ignoring the tone. A clean riff and a distorted one can feel like different songs. Try both.

Where Zoundroom fits: the riff, the recording and the song in one project

A riff becomes a song when it sits next to a lyric and a structure. In Zoundroom you record the riff into a new project the moment you find it, or straight from the home screen widget without opening a note, then keep it with the lyric, the chords and the next takes in the same place. When you play a better version, stack it as a new version of the first (V1 · V2 · V3) and switch between them at the same second. To learn a fast riff from your own recording, slow it to 0.75× without changing the pitch. The same projects open on iPhone, Android and the web app at app.zoundroom.com. See how recording and importing ideas works.

Free gives 2 projects and 5 files, enough to keep your best riff with its first song; Pro gives many more of each.

Its limit here: it keeps the recording, not the notes; there’s no TAB or notation, so write the TAB in the note as text.

Frequently asked questions

How do you write a good guitar riff?

Choose a small set of notes, usually the minor pentatonic on the low strings, and decide the rhythm first. Make a one- or two-bar phrase, repeat it, and change the ending on the last repeat. Keep it simple enough to hum, and leave space in it for the drums and the vocal.

What scale is best for guitar riffs?

The minor pentatonic is the most common because all five notes sound good together and it sits well on the low strings. The blues scale (minor pentatonic plus the ♭5) adds a darker edge, and power chords built on the same roots give a heavier sound.

How long should a guitar riff be?

Usually one or two bars, repeated. Longer phrases are harder to remember and start to sound like a melody or a solo. If your idea is four bars, check whether it’s really a one-bar riff played with small changes.

How do beginners write guitar riffs?

Start with the open low E string as a pedal note and add two or three fretted notes from the E minor pentatonic (frets 0 and 3 on the low E, 0 and 2 on the A). Tap a rhythm first, then play it on those notes. Record it and change one note or the last beat to make it yours.

Should the riff play under the vocals?

Often only in a simpler form. A busy riff and a vocal compete, so many songs play the full riff in the intro and between lines, and a stripped-down version or chords under the singing. Try it both ways with a rough vocal before you decide.

How do I turn a riff into a song?

Use the riff as the intro and a simpler version of it as the verse groove, write a chorus on chords that contrast with it, and bring the full riff back between sections and at the end. Hum a vocal melody over the verse version to find the lyric rhythm.