Advertisement
Advertisement
EVERYDAY

Music Duration Calculator — bars, tempo and running time

Turn tempo, time signature and bar count into a running time — or find how many bars fit a target length.

This is the DAW convention: BPM counts quarter notes, whatever the time signature says.
Count the bars in the section you are timing, including any repeats as written out.
Used for the reverse calculation: how many bars fit inside a target running time at this tempo.
Running time
0:00
 
0
Seconds per bar
0
Total beats
0
Bars in target length
0
Quarter note (ms)
Tip: a section that is one bar too long is almost never fixed by nudging the tempo. At 120 BPM in 4/4 a bar is two whole seconds, so trimming a bar changes the running time far more reliably than a tempo tweak nobody can hear.
Advertisement

The music duration calculator converts between the two ways musicians and editors measure the same thing: bars and beats on one side, minutes and seconds on the other. Give it a tempo, a time signature and a bar count and it returns a running time. Give it a target running time instead and it returns the number of bars that fit. It also reports seconds per bar, total beats and the length of a quarter note in milliseconds.

Arb Digital publishes free calculators across maths, audio and everyday work. This one exists because arranging to a fixed duration — a 30-second spot, a 90-second edit, a three-and-a-half-minute single — is a routine constraint, and doing the conversion in your head is a reliable way to be one bar out.

What This Calculator Does

It works in both directions at once. The hero figure is the running time of the bar count you entered; the third grid item is the bar count that fits your target length. Everything is computed from tempo and time signature, so changing either updates both answers together.

The tempo field uses the convention that BPM counts quarter notes per minute, which is what digital audio workstations, MIDI files and metronome markings labelled with a quarter note all mean. That convention matters most in compound meters, and it is discussed in detail below because it is where the majority of errors come from.

This is a different job from finding a tempo. If you want to tap out or measure the BPM of a track, our BPM calculator does that; this page starts from a known tempo and works out how long the music lasts. For pitch rather than time, the note frequency converter converts between note names and hertz.

How to Use It

  1. Enter the tempo in BPM. Use the quarter-note figure your DAW or score shows, not a dotted-quarter pulse count.
  2. Enter the time signature as beats per bar and the note value those beats are counted in. The two fields correspond to the top and bottom numbers.
  3. Enter the number of bars. Write out repeats rather than counting them once — a repeated eight-bar section is sixteen bars of running time.
  4. Set a target length in minutes and seconds if you want the reverse answer, which is the number of complete bars that fit inside it.
  5. Read seconds per bar. It is the most useful single number here, because it converts any structural change directly into a time change.

The Formula / How It's Calculated

A quarter note lasts 60 ÷ BPM seconds. A bar contains a number of beats given by the time signature's top number, and each of those beats is worth 4 ÷ bottom number quarter notes. So the length of one bar is:

seconds per bar = (top number) × (60 ÷ BPM) × (4 ÷ bottom number)

Total running time is that multiplied by the bar count, and the reverse calculation divides the target length by seconds per bar. Total beats is simply bar count times the top number, and the quarter note in milliseconds is 60,000 ÷ BPM.

Worked example, matching the defaults. At 120 BPM in 4/4, one bar is 4 × (60 ÷ 120) × (4 ÷ 4) = 4 × 0.5 × 1 = 2 seconds. Sixty-four bars is 128 seconds, which is 2:08. Total beats is 64 × 4 = 256, and a quarter note is 60,000 ÷ 120 = 500 ms. For the reverse direction, a 3:30 target is 210 seconds, and 210 ÷ 2 = 105 bars.

A second example, to show the meter factor working. At 90 BPM in 6/8, one bar is 6 × (60 ÷ 90) × (4 ÷ 8) = 6 × 0.6667 × 0.5 = 2 seconds, so thirty-two bars is 64 seconds. The 4 ÷ 8 term is what converts eighth-note beats into the quarter notes the tempo is counting, and dropping it would double every answer.

Advertisement

The Compound Meter Trap

In 6/8, 9/8 and 12/8 there are two defensible ways to state a tempo, and mixing them up is the single most common source of wrong durations.

The first is the DAW convention this calculator uses: BPM counts quarter notes, so 6/8 at 120 BPM has bars of 1.5 seconds because six eighth notes are three quarter notes. The second is the performer's convention, where a compound meter is felt in dotted quarters — two per bar in 6/8 — and a marking of "dotted quarter = 60" means sixty of those pulses a minute, which is a bar per second.

Those two readings differ by a factor of three in 6/8, and neither is wrong; they are answers to different questions. The safe practice is to convert any dotted-quarter marking into quarter notes before entering it here: a dotted quarter is one and a half quarter notes, so dotted quarter = 60 is 90 BPM in this tool's terms. If a duration comes out three times longer or shorter than you expected in a compound meter, this is almost always why.

Why MIDI Thinks in Quarter Notes Too

The quarter-note convention is not arbitrary — it is baked into the format most music software exchanges. The MIDI 1.0 Detailed Specification defines tempo in microseconds per quarter note rather than in beats per minute, which sidesteps the whole question of what a "beat" is by fixing the reference note value. Timing in the protocol works the same way: the summary of MIDI 1.0 messages specifies that the Timing Clock real-time message is sent 24 times per quarter note when synchronisation is required.

Two useful consequences follow. First, a MIDI file's tempo map is exact and independent of notation, so a bar in 6/8 and a bar in 3/4 at the same tempo occupy identical time if they contain the same number of quarter notes. Second, tempo can change mid-file, which means a running time computed from a single BPM figure is only correct if the tempo really is constant — see below.

When a Single Tempo Is the Wrong Model

This calculator assumes one tempo and one time signature throughout. Plenty of music does not work that way, and it is worth knowing when the answer stops being exact.

Tempo changes. A ritardando, an accelerando or a step change to a new BPM breaks the calculation. The fix is to split the piece into constant-tempo sections, time each separately and add the results — which is exactly what a DAW's tempo map does internally.

Meter changes. The same approach works: compute each metrical section on its own. A single bar of 2/4 dropped into a 4/4 song removes one second at 120 BPM, which is enough to matter when you are hitting a fixed spot length.

Count-ins, tails and silence. The bar count usually describes the music, while the deliverable includes a count-in, a reverb tail, or a second or two of silence at each end. Those are real running time and they are not in the bar count.

Rubato and live performance. A metronomic calculation is a plan, not a prediction of what a human ensemble will do. For live music, treat the result as a target and time an actual run-through.

Using Seconds Per Bar as a Working Number

Once you know that a bar is two seconds, arranging to a duration becomes arithmetic instead of guesswork. A 30-second spot is fifteen bars at 120 BPM in 4/4. An eight-bar intro costs sixteen seconds. Cutting one repeat of a sixteen-bar chorus saves thirty-two seconds. None of that requires re-running the calculator; it all falls out of one number.

This is also why tempo is usually the wrong lever for fixing length. Going from 120 to 124 BPM shortens a two-minute piece by under four seconds while noticeably changing its feel. Removing two bars achieves the same four seconds and leaves the tempo alone. Structure is the coarse control and tempo is the fine one, and people reach for them in the wrong order surprisingly often.

If you are working out durations for a set list or an edit rather than a single piece, the time duration calculator adds and subtracts times directly, which pairs well with the per-section figures this page produces.

Looking for the rest of our free calculators?

Arb Digital maintains a large library of free tools covering music, maths, measurement and everyday planning. Have a look, or get in touch.

Browse Free Tools Contact Arb Digital

Common Mistakes to Avoid

  • Entering a dotted-quarter pulse as BPM in compound meter — convert it to quarter notes first, or every 6/8 result will be out by a factor of three.
  • Counting a repeated section once — the bar count must be the bars as played, with repeats written out.
  • Forgetting the count-in and the tail — both are running time in the deliverable and neither appears in the bar count.
  • Applying one tempo to a piece that changes tempo — split it into constant sections and add the durations, as a tempo map does.
  • Adjusting tempo to fix length — a few BPM buys a couple of seconds and changes the feel; removing a bar is both larger and cleaner.

Related Free Tools From Arb Digital

To find a tempo rather than apply one, use the BPM calculator. For pitch work, the note frequency converter maps note names to hertz, the music interval calculator names the distance between two notes, the music transposer shifts a passage to a new key and the music scale generator builds scales in any key. For adding up section lengths, the time duration calculator is the right page. Browse the free online tools hub for everything else.

Frequently Asked Questions

How long is one bar of 4/4 at 120 BPM?

Exactly two seconds. A quarter note at 120 BPM lasts 60 ÷ 120 = 0.5 seconds, and a bar of 4/4 contains four of them. That makes 4/4 at 120 BPM the easiest case to check any calculation against.

Does the time signature change the running time?

Yes, because it sets how many quarter notes a bar contains. At the same tempo, a bar of 3/4 is three quarter notes and a bar of 4/4 is four, so the 4/4 bar lasts a third longer. The bottom number matters too: an eighth-note beat is half a quarter note.

What does BPM count in 6/8?

In this calculator, and in most software, quarter notes. Performers often count compound meters in dotted quarters instead, and the two readings differ by a factor of three in 6/8. Convert a dotted-quarter marking to quarter notes before entering it — dotted quarter = 60 is 90 BPM here.

How many bars fit in a 30-second advert?

At 120 BPM in 4/4, fifteen bars, since each bar is two seconds. Change either the tempo or the time signature and that figure changes, which is why the calculator reports the target-length answer alongside the running time.

Why is a quarter note in milliseconds useful?

Because time-based effects are set in milliseconds. A quarter note at 120 BPM is 500 ms, an eighth is 250 ms and a dotted eighth is 375 ms, so the figure lets you set a delay or a gate to a musically meaningful value rather than by ear alone.

Does this work if the piece changes tempo?

Not in one pass. Split the piece into sections of constant tempo and meter, calculate each separately and add the results. That is exactly how a DAW tempo map arrives at a total, and it stays exact as long as each section really is constant.

Should I change tempo to hit a target length?

It is usually the wrong lever. Moving from 120 to 124 BPM shortens a two-minute piece by under four seconds while changing its feel noticeably, whereas removing two bars achieves the same saving and leaves the tempo untouched.

This tool assumes a constant tempo and a constant time signature and uses the convention that BPM counts quarter notes. Real performances vary, and pieces with tempo or meter changes should be calculated section by section.

Advertisement
Advertisement

Take it further