Loop Length Calculator
Calculate a loop's exact tempo from duration and bar count, or find the duration for a target tempo.
About this tool
Loop Length Calculator finds the exact tempo of a loop from its duration and bar count, or tells you how long a loop must be at a target tempo. Sample hunters and beatmakers use it to time-stretch samples correctly, label loops and set a DAW project to match a recording.
How to use
Load a trimmed loop or enter its duration, set bars and beats per bar, then compare the calculated tempo.
- Drop a trimmed loop onto the upload area to fill in its duration automatically, or type Loop duration in seconds yourself.
- Set the number of Bars and the Beats per bar the loop contains.
- Read the Calculated loop tempo, shown in BPM with two decimals.
- Enter a Target BPM to see the Duration at target tempo in seconds.
- Use the calculated tempo for your DAW session, or the target duration to cut or stretch the loop to the right length.
Production tips
- Trim the loop tightly first with the Audio Trimmer. Even 20 ms of extra silence or reverb tail changes the tempo you get.
- Count bars carefully. A two-bar loop at 90 BPM lasts about 5.33 seconds in 4/4, and a four-bar loop at the same tempo about 10.67 seconds.
- If the result is close to a whole number such as 89.97, the loop is probably 90 BPM and the difference comes from a slight cut error.
- For triple or other meters, change Beats per bar to match, such as 3 for waltz time.
Know the limits
The audio must contain exactly the stated number of bars. Silence or reverb tails change the estimate.
Frequently asked questions
How is the loop tempo calculated?
It multiplies bars by beats per bar to get the total beats, multiplies that by 60 and divides by the duration in seconds. The result is exact if the file contains exactly that number of bars.
Can I use it for audio with silence at the end?
The result will be off if the audio includes extra silence or a reverb tail. Trim the file to the exact loop length first, or enter the duration by hand.
Does uploading the loop send it anywhere?
No. The file is decoded in your browser only to read its duration, and nothing is uploaded.
Audio is processed on your device. JavaScript is needed to use the tool.