Find a sample's BPM from its loop length
Calculate a loop's tempo from its duration and bar count, trim the right boundaries, test half/double BPM, and account for meters other than 4/4.
A loop containing four bars of 4/4 in 7.5 seconds is 128 BPM. Those bars contain 16 quarter-note beats, so the calculation is 60 × 16 / 7.5. You need both a reliable duration and a known beat count; a file’s length alone cannot tell you its musical tempo.
Measure from the beginning of one complete phrase to the point where the next phrase would begin. Do not automatically use the entire file if it includes silence, a pickup, or an effect tail after the loop.
Use the beat count, then the duration
For a tempo expressed in quarter notes per minute, the general calculation is:
BPM = 60 × number of quarter-note beats / duration in seconds
For a complete 4/4 loop, multiply the number of bars by four. That gives the convenient version:
BPM in 4/4 = 240 × number of bars / duration in seconds
| Complete 4/4 bars | Quarter-note beats | Measured duration | Calculated tempo |
|---|---|---|---|
| 1 | 4 | 2 s | 120 BPM |
| 2 | 8 | 4.8 s | 100 BPM |
| 4 | 16 | 7.5 s | 128 BPM |
| 4 | 16 | 8 s | 120 BPM |
| 8 | 32 | 15 s | 128 BPM |
The calculation assumes the selected audio represents that many beats. For a performance that speeds up and slows down, it gives an average over the selection, not a tempo map that explains every hit.
Measure a real loop boundary
Turn off automatic stretching or warping while measuring the original recording, or confirm you are reading its original duration rather than an already transformed clip. Otherwise you may calculate the tempo of the stretched playback instead of the source.
Locate a clear first beat and count the complete phrase. Place the end boundary at the corresponding next downbeat, excluding that next beat from the loop. The distance from the first kick to the last kick is usually too short: the last kick still needs its remaining musical interval before the phrase restarts.
Also distinguish the loop boundary from the end of a reverb tail. Suppose four bars really last 7.5 seconds but the file contains another 0.18 seconds of ringing sound. Using the full 7.68-second file gives 125 BPM. Both numbers look plausible, yet only 128 describes those four bars.
Keep a little care around the first transient too. A pickup note can begin before beat one, and a slowly rising sound may not mark its downbeat with a sharp peak. Listen to the phrase as well as the waveform.
Test half and double interpretations
If you know the duration but are unsure of the bar count, calculate plausible alternatives. A 7.5-second recording interpreted as two 4/4 bars gives 64 BPM; four bars gives 128 BPM; eight bars gives 256 BPM.
Arithmetic alone cannot select among them. Count the phrase accents, check the density of the subdivisions, and compare the likely grid against the music. The half- and double-BPM guide explains why one recording can invite more than one pulse interpretation.
You can also tap along to the recording as an independent estimate. Tap a steady underlying pulse rather than every percussion hit. A result near 64 or 128 helps narrow the candidates, but it still reflects the pulse you chose to tap.
Account for the time signature
Four beats per bar only applies to the quarter-note count in 4/4. In 3/4, one bar contains three quarter-note units. In 6/8, the six eighth notes also total three quarter-note units, although musicians commonly feel two dotted-quarter pulses per bar.
For example, two bars of 6/8 lasting four seconds contain six quarter-note units. The calculator’s quarter-note convention gives 60 × 6 / 4 = 90 BPM. Count the same passage as four dotted-quarter pulses and it is 60 dotted-quarter beats per minute. Both describe the same duration with different beat units.
Use the tempo convention expected by your DAW or effect. The note timing guide explains the conversion between a counted pulse and this site’s quarter-note BPM input. A denominator of 8 does not by itself mean you must tap every eighth note.
Confirm alignment before stretching
Place the unwarped loop at a downbeat in a project set to the calculated tempo. Listen against the metronome and repeat the loop several times. Check the start, middle, and end of the phrase rather than judging only its first hit.
If the end drifts steadily, recheck the selected duration or tempo precision. If the beginning and end align but hits inside the loop move around, the performance may have intentional groove or varying timing. Correcting every transient is a separate editing choice.
Once the original tempo is established, calculate the target length if you want to change speed. Four 4/4 bars at 100 BPM should last 9.6 seconds. Stretching the 7.5-second, 128 BPM loop to that duration slows it to the target. Choose the DAW’s stretching method according to the sound, and listen for changes to transients or sustained notes before committing to the result.