You have a beat you like and a blank page. The problem is rarely talent. It is that you do not yet know how long the beat is in bars, where the sections start, or how many words fit in each one. Once you can count the beat, writing becomes a fill-in job instead of a guess. This guide walks through it in order, with real beats as examples.
How do you write a song to a beat?
- Listen to the whole beat without writing, and map its sections.
- Count the bars in each section.
- Choose a structure that fits those bars.
- Write the hook first.
- Write the verses to the pocket of the drums.
- Record a demo, then cut and rewrite.
The sections below take these in turn.
How do you count bars in a beat?
Most hip hop, trap, R&B and afrobeats is in 4/4, which means four beats to a bar. The BPM is beats per minute, so one bar lasts 240 ÷ BPM seconds.
- At 90 BPM, one bar is 2.67 seconds, so 16 bars take about 43 seconds. Ataraxia (90 BPM, 2:21) holds roughly 53 bars in total.
- At 140 BPM, one bar is 1.71 seconds, so 16 bars take about 27 seconds. Selective (140 BPM, 1:51) holds roughly 65 bars.
To count by ear, play the beat and tap along on the kick and snare. In a typical boom bap or trap pattern the kick lands near beat 1 and the snare on beats 2 and 4 (or only beat 3 in half time, see below). Count “1 2 3 4, 2 2 3 4, 3 2 3 4” and keep going. A new section almost always starts on a bar number that is a multiple of 4, because producers build in blocks of 4, 8 or 16 bars. If a change happens at bar 9, 17 or 33, you have found a section boundary.
In your DAW or any audio editor, turn on the grid, set the beat’s BPM and drop a marker whenever the sound changes: drums enter, the melody drops out, a riser starts. Write down the bar numbers. That list is your map.
How many bars are in a verse?
The usual answer is 16 bars, and it comes straight from how producers build beats. A 16-bar verse is four 4-bar phrases, and a typical beat loops its main pattern every 4 or 8 bars, so a verse lines up with the loop. Others are common too:
- 8 bars. Short verses, common on faster trap beats where 16 bars already pass in under half a minute.
- 12 bars. Seen in R&B and melodic songs.
- 24 or 32 bars. One long verse, for storytelling or a freestyle feel.
Do not pick a length first and force it. Take the bar map you made, find the blocks the producer gave you, and write one verse per block.
What is the structure of a rap song?
The most common shape is simple:
- Intro, 4 to 8 bars (often just the beat, or a short spoken line)
- Verse 1, 16 bars
- Hook, 8 bars
- Verse 2, 16 bars
- Hook, 8 bars
- Bridge or Verse 3, 8 to 16 bars (optional)
- Hook, 8 bars, and an outro
Add it up and you get about 64 to 80 bars. That is why a beat of two to three minutes at a mid tempo fits a full song. Architect, a boom bap beat at 95 BPM and 3:03, has room for about 72 bars, enough for the structure above with a bridge. A shorter beat like Radio (97 BPM, 1:53, about 46 bars) suits a tighter plan: intro, two 16-bar verses and two hooks of 4 to 8 bars.
You do not have to use the whole beat. If your song is shorter than the beat, you can end it early. If you need a longer one, tell the producer, or loop a section when you record.
Why write the hook first?
The hook carries the idea of the song. If you write verses first, they drift, and you end up writing a hook that has to rescue them. Write the hook and the verses have a job: each one explains, proves or complicates the hook.
- Keep it to 4 or 8 bars, with one repeatable line.
- Use a simple rhythm and plain words. People should be able to repeat it after one listen.
- Sing or chant it before writing it down. If you cannot remember it five minutes later, shorten it.
- Land the key phrase on a strong beat, usually beat 1 or the snare.
A good theme can come from the beat itself. A title and a mood are already a prompt: a beat called Timing (trap, 135 BPM, A minor) suggests a song about patience or bad luck with time, and Negative Harmony (hip hop, 90 BPM, C minor) suggests tension and a flip from dark to bright. Treat the title as a starting point, not an obligation.
How do you find the pocket and fit syllables to a bar?
The pocket is where your words sit against the drums. A bar has four beats, and each beat splits into four sixteenth-note slots, so a bar has 16 slots. Words land on some slots and rest on others.
As a starting point, 10 to 16 syllables per bar works at 85 to 95 BPM. It is not a rule, but it gives you a target. Write a line, clap the beat, and speak the line against it. Where you trip, you have too many syllables or the stress is in the wrong place. Fix it by:
- Cutting small words (“the”, “and”, “just”).
- Moving the important word onto a drum hit, usually the snare.
- Ending the line on a rhyme, with the rhyme sitting on beat 4 or just before the next bar.
- Leaving a gap. Silence is part of flow.
Write the bar count in the margin, one number per line, so you never lose where you are. Write two lines per 2 bars at first, then change the rhythm so the same pattern does not repeat all verse long. At 84 to 90 BPM a bar lasts 2.7 to 2.9 seconds, so you have more room than on fast beats. Try Graffiti (boom bap, 84 BPM): 16 bars last about 46 seconds.
What about half-time and double-time on fast trap beats?
A trap beat at 140 BPM does not mean you rap twice as fast as at 70. Most trap drums use a half-time feel: the snare hits on beat 3 only, so the groove feels like 70 BPM even though the hi-hats run fast. You can rap in half-time (slower, with space) or double-time (twice as many syllables) or switch between them.
Check the same math on both. Savage is 145 BPM, so a bar lasts 1.66 seconds, and 16 bars pass in 26.5 seconds. That feels short because most artists count trap in half-time instead: at 72.5 BPM a bar lasts 3.3 seconds, and a 16-bar verse runs about 53 seconds. Decide which way you count before you write, and say so when you talk bars with a producer or an engineer. A common move is to rap in half-time for the first 4 bars, then speed up for a burst of double-time at the end of the verse, and drop back for the hook.
Other examples at this tempo: Flowing (146 BPM), Pyrex (135 BPM) and Real Hip Hop (136 BPM). All of them let you pick the speed. To hear the idea, tap the pulse of the snare, not the hi-hats.
The reverse also happens. Distance is a lo-fi beat listed at 186 BPM, but it is easiest to feel in half time at 93 BPM. At 93 a bar lasts 2.58 seconds, and the 4:31 length holds about 105 bars. Pick the tempo that feels right when you nod your head. If you are unsure, count both and keep the one where 16 bars fit a verse and 8 fit a hook.
How do you write verses once the hook is done?
Give each verse one job. Verse 1 sets up the situation. Verse 2 turns it or raises the stakes. Verse 3, if you have one, answers the hook. Then work bar by bar:
- Write the first line and the last line of the verse. The last line should lead into the hook.
- Choose the rhyme sounds you will use, and list ten words for each.
- Fill in the middle, keeping the count of 4 bars per phrase.
- Change the pattern every 4 bars (a rhyme change, a pause, a faster burst) to stay interesting.
If the beat has a style you want to match, listen to its mood. A dark minor loop like Mayhem (hip hop, 94 BPM, D harmonic minor) suits dense, wordy bars for lyricists, and our Aesop Rock type beats are made for that. For a melodic, singing delivery, go to the Drake Iceman type beats such as Unreal (afrobeats, 100 BPM). Names are used only to describe a style, and Ratnix is not affiliated with these artists. For cinematic crime-story themes, try GTA 6 type beats or browse all type beats.
How do you demo, record and revise the song?
Before you spend money on a studio, record a rough demo into your phone or laptop with the beat playing in your headphones. Do this soon after you write, while the words are fresh.
- Record the whole song in one pass first. It shows where you run out of breath.
- Listen back once with no edits. Mark every line that sounds forced, rushed or dull.
- Cut the weakest 2 bars of each verse and rewrite them. It is faster to cut than to add.
- Check that the hook is the most memorable part. If a verse line beats it, swap them.
- Record a second take, then a third. Most good verses come from takes two and three.
When the song works, you will need the right files and licence to release it. Our guides cover this: MP3 vs WAV vs trackout explains the files, and lease vs exclusive helps you choose. Then see how to credit the producer. Writing to a beat you have only downloaded for free carries risks, which are explained in free beats: the risks.
Where can you find a beat to write to?
On Ratnix every beat plays in full before you pay, so you can count the bars and test a hook against the whole track. Each beat’s page lists its BPM, key and length, which is all you need for the math above. Start from the beats and pick the tempo that matches how you write.
Questions
How long does one bar last at a given BPM?
Divide 240 by the BPM. At 90 BPM a bar lasts about 2.7 seconds, at 120 BPM it lasts 2 seconds, and at 140 BPM it lasts about 1.7 seconds. This assumes 4 beats per bar.
Is a verse always 16 bars?
No, but 16 is the standard because beats are built in 4-, 8- and 16-bar blocks. Verses of 8, 12 or 32 bars are all normal. Match the sections of your beat.
Should I write the verse or the hook first?
The hook. It sets the idea, and each verse then supports it. If a hook idea only comes while you write a verse, stop and write the hook before you go on.
How many syllables per bar should I write?
As a rough start, 10 to 16 syllables per bar at 85 to 95 BPM. Faster tempos or double-time flows fit more. Speak each line against the beat and cut words until it sits comfortably.
Do I rap faster on a 140 BPM trap beat?
Not necessarily. Many trap beats have a half-time feel, with the snare on beat 3, so you can rap slowly with space or in double-time. Pick the one that matches the snare.
Do I have to use the whole beat?
No. Use the sections you need and end early if the song is shorter than the beat. If you need more bars, loop a section when recording.
Ready to record?
Every beat on the store plays in full before you pay. The MP3 lease downloads the minute you pay.
Browse the beatsRead the license agreements