Song duration from bars calculator

Three non-empty equal-length numeric arrays with at most 1000 entries; bars >= 0, beats_per_bar and bpm > 0.

Your inputs

Separate numbers with commas or spaces.
Input format

Use this format with your own values:

8.0,16.0,8.0
Separate numbers with commas or spaces.
Input format

Use this format with your own values:

4.0,4.0,3.0
Separate numbers with commas or spaces.
Input format

Use this format with your own values:

120.0,120.0,90.0

Use the units shown.

Section durations (s)
16, 32, 16
Total duration (s)
64

Your calculation
How is this calculated?

section_seconds (seconds array): for each section i, bars[i] * beats_per_bar[i] * 60 / bpm[i].

total_seconds (seconds): the sum of section_seconds.

Three non-empty equal-length numeric arrays with at most 1000 entries; bars >= 0, beats_per_bar and bpm > 0. Each BPM describes the explicitly entered beats per bar, so compound meter needs no implicit conversion.

Ableton Learning Music: beat and tempo ↗

Try an example

Worked example

Section durations (s): 16, 32, 16

Inputs
  • Bars per section (comma-separated): 8.0,16.0,8.0
  • Beats per bar per section (comma-separated): 4.0,4.0,3.0
  • Tempo per section (BPM, comma-separated): 120.0,120.0,90.0

Compare inputs

Section durations (s): 12, 16

Inputs
  • Bars per section (comma-separated): 4,8
  • Beats per bar per section (comma-separated): 3,4
  • Tempo per section (BPM, comma-separated): 60,120
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.