Tool
Bars and time calculator
Enter a duration and a tempo. The bar count is (seconds × BPM / 60) ÷ beats per bar. The display rounds to the nearest 0.01 bar and also names the nearest whole bar.
When to use bars and time
Use this page when you know how long a passage lasts on the clock and you want a bar count at a given tempo. It is the inverse of the song length calculator.
1:04 at 120 BPM in 4/4 is 32 bars exactly. If the clock time does not land on a bar line, the page still shows the hundredths and how many beats sit past or short of the nearest whole bar.
Zero duration, negative time, empty BPM, or 0 BPM are field errors. 6/8 still uses two dotted-quarter beats per bar.
Worked examples
64 seconds × 120 / 60 / 4 = 32 bars. Does that match the 32-bar loop you timed?
32 × 90 / 60 / 3 = 16 bars. Is your waltz excerpt sixteen bars long?
10 × 100 / 60 / 2 = 8.33 bars, nearest whole bar 8 with leftover beats. Did you want a whole-bar loop instead?
Questions
How is rounding done?
The main figure rounds to the nearest 0.01 bar. The nearest whole bar is the usual half-up round of that count. Leftover beats are named so you can see the remainder.
What if minutes and seconds are both 0?
That is an error on the time fields. A duration must be greater than 0.
Is this reading a file?
No. You type the clock time. The site does not host or measure recordings.