Music Theory, Audio Engineering & Instruments Tempo, Delay & Timing Tempo defined as quarter notes per minute

Song Length & Bar Count Calculator

An arrangement is built in bars and delivered in minutes and seconds, and the conversion between them decides whether a radio edit lands at 3:30 or 3:47. One bar lasts 60 divided by the tempo, times the number of beats in the bar, adjusted for the beat unit. Give this calculator a bar count and it returns the runtime; give it a target runtime and it returns the bar count, rounded to the nearest whole 4- or 8-bar phrase so the arrangement still ends where the music does.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
What do you knowBoth directions use the same bar length; only the unknown changes.I have a bar count, I want the runtime
TempoQuarter notes per minute, which is what a DAW's tempo field means regardless of the time signature.120 BPM
Beats per barThe top number of the time signature: 4 for 4/4, 3 for a waltz, 6 for 6/8.4
Beat unitThe bottom number of the time signature. Choosing 8 makes each counted beat half as long as a quarter note.Quarter note (x/4)
Number of barsThe length of the section or the whole arrangement, counted in bars.96
Target runtimeThe runtime you are writing to - a sync brief, a radio edit or a set slot.3.5 min
Phrase lengthThe unit your sections are built from, normally 4 or 8 bars. Used to snap the bar count to a musical boundary.8 bars

It returns

  • Runtime — Minutes and seconds for the bar count, or the target you entered.
  • Runtime in seconds
  • Total bars
  • Total beats
  • Length of one bar
  • Nearest whole-phrase bar count
  • Runtime at that bar count

The formula

tbar=60BPM×b×4u
N=ttargettbar

In plain text: bar (s) = (60 / BPM) x beats x 4 / unit

  • t_barLength of one bar (s)
  • BPMTempo in quarter notes per minute (beats/min)
  • bBeats per bar - the top number of the time signature (integer)
  • uBeat unit - the bottom number of the time signature (integer)

The 4/u factor converts counted beats into quarter notes, which is what the tempo is measured in. In 4/4 it is 1 and disappears; in 6/8 it is 0.5, so six counted beats are three quarter notes.

Updated Category Tempo, Delay & Timing Verified against published test cases Reading time 10 min

Bars, beats and the clock

Musicians count in bars; everyone who pays for music counts in seconds. A sync brief asks for 30 seconds, a radio programmer wants under 3:30, a DJ has a 60-minute slot, and a video edit has a cut at 1:47. Each of those is a constraint on an arrangement that you are building in 8- and 16-bar sections, and the conversion has to be exact or the last chorus does not fit.

The conversion rests on one definition: tempo is quarter notes per minute. A quarter note therefore lasts 60/BPM seconds. A bar contains a number of counted beats, and each counted beat is 4/unit quarter notes - so in 4/4 a beat is one quarter, and in 6/8 a beat is an eighth, which is half a quarter. Multiply and you have the bar length; everything else is multiplication and division from there.

The subtlety worth learning is that bar counts are not free. Music is heard in phrases, almost always 4 or 8 bars long, and an arrangement that ends after 100 bars when its phrases are 8 bars long ends four bars into a phrase. Listeners hear that as an interruption even if they cannot name why. So the honest answer to "how many bars fit in 3:20" is not a decimal - it is the nearest multiple of your phrase length, plus the knowledge of how many seconds that costs you.

The formula, and why the time signature only half matters

Start with the quarter note at 60/BPM seconds. At 120 BPM that is 0.5 s; at 90 BPM it is 0.6667 s; at 174 BPM it is 0.3448 s. Then count how many quarter notes are in a bar: that is beats x 4/unit. In 4/4 it is 4 x 1 = 4 quarters. In 3/4 it is 3. In 6/8 it is 6 x 0.5 = 3 quarters, the same as 3/4 - which is exactly why 6/8 and 3/4 bars are the same length at the same tempo marking and differ only in how they are counted and accented.

Multiply the two and you have the bar. At 120 BPM in 4/4 a bar is 0.5 x 4 = 2.000 s. At 128 BPM it is 60/128 x 4 = 1.875 s. At 174 BPM it is 60/174 x 4 = 1.3793 s. Those three numbers cover a great deal of contemporary production between them.

Reversing the calculation is a single division: bars = target seconds / bar seconds. A 3:30 target is 210 seconds, and at 128 BPM that is 210 / 1.875 = 112 bars - a satisfying result, because 112 is 14 eight-bar phrases. The same target at 120 BPM gives 210 / 2 = 105 bars, which is not a multiple of 8, so you either accept 104 bars and finish at 3:28 or take 112 bars and run to 3:44. That choice, not the arithmetic, is the actual work.

One trap to name explicitly. A score that marks a compound signature with a dotted-quarter tempo - "dotted quarter = 60" in 6/8 - is not stating quarter notes per minute. Multiply that marking by 1.5 to get the quarter-note tempo before entering it here, so "dotted quarter = 60" becomes 90 BPM.

Worked example: fitting a 128 BPM track to a 3:30 radio edit

Take a house track at 128 BPM in 4/4, built from 8-bar phrases, that needs to come in at 3:30 for a radio edit.

  1. Quarter note. 60 / 128 = 0.46875 s.
  2. Bar length. 0.46875 x 4 beats x (4/4) = 1.875 s.
  3. Target in seconds. 3 minutes 30 seconds = 3 x 60 + 30 = 210 s.
  4. Bars available. 210 / 1.875 = 112 bars exactly.
  5. Check the phrasing. 112 / 8 = 14 whole phrases, so no rounding is needed. That is unusually tidy and comes from 210 and 1.875 sharing the factor.
  6. Build the arrangement. 14 phrases might be: 8-bar intro, 16-bar verse, 8-bar build, 16-bar drop, 16-bar breakdown, 16-bar second drop, 16-bar outro, plus 16 bars of second verse. That totals 112.
  7. Total beats. 112 bars x 4 = 448 beats, which is the number your DAW's bar-beat display will run through.

Now change the target to 3:20, or 200 seconds. 200 / 1.875 = 106.67 bars, which is neither a whole bar nor a whole phrase. Round down to 104 bars (13 phrases) and the track runs 104 x 1.875 = 195 s = 3:15. Round up to 112 and it runs 3:30. The nearest 4-bar boundary is 108 bars, giving 202.5 s = 3:22.5. Which you pick depends on whether the brief's ceiling is hard, and that is a conversation, not a calculation.

Reading the bar count against real constraints

Phrase alignment is the first thing to check. If your snapped bar count differs from the raw figure by more than half a phrase, the target and the tempo are fighting each other, and changing the tempo by a beat or two per minute is often the cleanest fix. At 128 BPM, moving to 126 BPM stretches a 112-bar arrangement from 210 s to 213.3 s - a 3.3-second gain from a change most listeners will not notice.

Second, watch for the difference between musical length and file length. A track's runtime includes count-ins, silence at the head, and a reverb or delay tail after the last note, and none of those is in the bar count. A tail of one bar at 128 BPM adds 1.875 s, which is enough to push a 3:29 arrangement past a 3:30 ceiling. The delay and reverb time calculator gives that tail length directly from the same tempo.

Third, remember that a tempo map changes everything. If the track accelerates, no single bar length applies, and the only correct answer comes from summing the bars at their own tempos. This calculator assumes a fixed tempo, which covers almost all produced music and almost no orchestral repertoire.

For DJs, the relevant reading is different: the bar count tells you how long a mix window lasts. Two tracks at 128 BPM matched over 32 bars overlap for 60 s, which is why long intros and outros are built in 32-bar blocks. And when the storage rather than the clock is the constraint, the audio file size calculator turns runtime into megabytes.

Bar length and common section runtimes by tempo

All figures for 4/4. Bar length is 240/BPM seconds, since a 4/4 bar is four quarter notes.
Tempo1 bar (s)8 bars16 bars32 barsBars in 3:30
70 BPM3.4290:270:551:5061.3
85 BPM2.8240:230:451:3074.4
100 BPM2.4000:190:381:1787.5
110 BPM2.1820:170:351:1096.3
120 BPM2.0000:160:321:04105.0
128 BPM1.8750:150:301:00112.0
140 BPM1.7140:140:270:55122.5
174 BPM1.3790:110:220:44152.3

The last column is 210 seconds divided by the bar length, before any rounding to a phrase boundary. Only 128 BPM lands on a whole number, and only it is also a multiple of 8; at every other tempo you must choose which side of the target to land on.

What this calculation does not include

  • Tempo changes. A fixed bar length assumes a fixed tempo. Ritardandos, accelerandos and section tempo changes each need their own calculation, summed.
  • Count-ins and lead silence. Two bars of click at the head of a session is 3.75 s at 128 BPM, and it counts against a delivery runtime even though it is not in the arrangement.
  • Tails. The last chord's reverb, a delay repeat or a cymbal decay all run past the final bar line and into the file length.
  • Pickup bars and partial bars. An anacrusis is a fraction of a bar, so a 32-bar section with a 2-beat pickup runs 32.5 bars in 4/4.
  • Fades. A fade-out is usually written past the end of the arrangement, and its length is a production choice rather than an arithmetic one.
  • Swing and groove templates. They redistribute time within a beat but do not change the bar length, so the runtime is unaffected.

Why phrases are 4 and 8 bars, and when they are not

The 4- and 8-bar phrase is a convention deep enough to feel like a law. It comes from dance forms and from song structures built on paired antecedent and consequent phrases, and it survives because listeners track it without effort - by the fourth bar you know where the eighth will land. Almost all popular music, and a great deal of classical music, is built from 8-bar units grouped into 16- and 32-bar sections.

Deliberate departures are effective precisely because the expectation is so strong. A 6-bar phrase feels rushed, a 10-bar phrase feels stretched, and both draw attention. Many blues forms use 12 bars, which groups as three 4-bar phrases rather than as an irregular 8. Some traditions - much folk music, and a lot of progressive rock - build in 5s and 7s, and there the phrase input on this calculator should be set to whatever unit the music actually uses rather than left at 8.

When you need to place events rather than measure sections, the tools link up. The delay and reverb time calculator gives note values in milliseconds from the same tempo, which is what you need for effects that must land on the grid. If you are also transposing the material for a different singer or a different instrument, the transposition calculator handles the key arithmetic - and note that transposition never changes the runtime, because it does not touch the tempo.

One practical note for DJs and set planning: at a fixed tempo, total set length is simply the sum of each track's bar count times the bar length, minus the overlap in each mix. A 32-bar mix at 128 BPM removes 60 seconds from the running total, so ten mixes across a set cost ten minutes of programme time you would otherwise have to fill.

Frequently asked questions

How many bars are in a 3-minute song?

It depends entirely on the tempo. At 120 BPM in 4/4 a bar is 2 seconds, so 180 seconds is 90 bars. At 128 BPM a bar is 1.875 s and 180 seconds is 96 bars - which is also 12 eight-bar phrases, so it makes a tidy arrangement. At 90 BPM a bar is 2.667 s and 180 seconds is only 67.5 bars, which needs rounding to 64 or 72.

How do I work out the length of one bar?

Divide 60 by the tempo to get the quarter note, then multiply by the number of quarter notes in a bar. In 4/4 that is four, so the bar is 240/BPM seconds: 2.000 s at 120 BPM and 1.875 s at 128 BPM. In 3/4 it is 180/BPM, and in 6/8 it is also 180/BPM, because six eighth notes are three quarter notes.

Why should I round the bar count to a multiple of 8?

Because listeners hear music in phrases, and stopping partway through one sounds like an interruption rather than an ending. Almost all popular song forms are built from 4- and 8-bar units, so an arrangement of 104 bars ends cleanly and one of 106 does not. If your material genuinely phrases in 6s or 12s, set the phrase length to that instead.

Does the time signature change the song's length?

It changes the bar length but not the relationship between tempo and time. A 3/4 bar at 120 BPM is 1.5 s and a 4/4 bar is 2.0 s, so the same 32 bars run 48 s or 64 s. But the beats themselves are the same length in both, so a passage of 128 quarter notes takes 64 seconds whichever way you bar it.

How do I handle a tempo marked as dotted quarter = 60 in 6/8?

Multiply by 1.5 and enter 90 BPM. A dotted quarter is one and a half quarter notes, so 60 dotted quarters per minute is 90 quarter notes per minute. Then set beats per bar to 6 and the beat unit to 8, and the bar comes out at 2 seconds - which is correct, since a 6/8 bar is two dotted quarters and each lasts one second.

Why is my exported file longer than the calculated runtime?

Because the export includes everything outside the arrangement: any count-in or lead silence, the reverb and delay tails past the last bar line, and whatever the export range was set to. A one-bar reverb tail at 128 BPM adds 1.875 s. Set the export locators to the exact bar range and trim the tail deliberately if the runtime is a hard ceiling.

How many bars does a 30-second sync spot need?

30 divided by the bar length. At 120 BPM that is 15 bars, so you would use 16 and land at 32 seconds, or take the tempo to 128 BPM where 16 bars runs exactly 30.0 s. That second option is why so much library music sits at 128 BPM: 16 bars is 30 seconds and 32 bars is 60 seconds, which matches the standard advertising durations exactly.

Can I use this for a set or a playlist rather than one track?

Yes, if the tempo is constant. Total the bar counts of each track, multiply by the bar length, then subtract the bars of overlap in each mix. At 128 BPM a 32-bar mix overlaps for 60 seconds, so ten such mixes across a set remove ten minutes from the total. Tracks at different tempos need to be calculated separately and added.

References

  • The Study of Orchestration, 4th ed. — Samuel Adler, W. W. Norton
  • Behind Bars: The Definitive Guide to Music Notation — Elaine Gould, Faber Music, 2011
  • Modern Recording Techniques, 9th ed. — David Miles Huber and Robert E. Runstein, Focal Press