Loop Length Calculator – Bars at a BPM in Samples and Seconds

Use the free tool below: your data never leaves your browser — all work happens on your device, and nothing is uploaded to any server.

Why loop length matters in a song

A loop is a short section of music that repeats without a gap. It can be a drum pattern, a bass line, a chord progression or a vocal phrase. When a loop is cut to the wrong length, the repeat point clicks, the beat drifts, or the next section starts half a beat early. Producers therefore measure loops in bars and beats first, and only then in seconds or samples. Bars keep the music in time with the song, while seconds and samples tell the software exactly where to cut. This calculator bridges those two worlds: enter bars, beats per bar and tempo, and it returns the loop length in seconds, milliseconds and samples.

The idea is simple, but the details matter. A loop of four bars in 4/4 time at 120 beats per minute lasts eight seconds. Change the tempo to 90 beats per minute and the same four bars last almost eleven seconds. Change the time signature to 3/4 and the loop gets shorter again, because each bar now holds three beats instead of four. Sample rate matters too: at 44,100 samples per second, an eight-second loop holds 352,800 samples, while at 48,000 it holds 384,000. If you cut a loop by samples in one project and paste it into a project at a different sample rate, the timing will shift unless you convert it.

How to use the calculator

  1. Enter the number of bars in the loop, for example 1, 2, 4 or 8.
  2. Choose beats per bar: 4 for most pop, rock and dance music, 3 for a waltz, 6 for a compound feel.
  3. Enter the tempo in beats per minute, exactly as your project shows it.
  4. Choose the sample rate of your project, usually 44,100 or 48,000 Hz.
  5. Read the length in seconds and samples, and use the sample count for exact cuts.

A worked example

Take a two-bar drum loop in 4/4 at 128 beats per minute, a common dance tempo. Two bars hold eight beats. Each beat lasts 60 divided by 128, which is 0.46875 seconds. Eight beats therefore last 3.75 seconds. At 44,100 Hz that is 165,375 samples. If you set your loop points to exactly those samples, the loop repeats cleanly, with no click and no drift. If you instead rounded to 3.8 seconds, the loop would gain 0.05 seconds on every repeat, and after twenty repeats the drums would be a full second late. Small rounding errors grow, which is why sample-accurate numbers matter.

Common mistakes

The most common mistake is confusing bars with beats. A four-beat loop is one bar in 4/4, not four bars. Another mistake is ignoring the time signature: a loop that feels like four bars in 6/8 may actually be two bars of six beats, and the calculator needs the right beats-per-bar value. A third mistake is tempo automation: if the tempo changes during the song, a loop measured at one tempo will not fit at another. In that case, measure the loop at the tempo where it will play, or bounce it to audio at that tempo. Finally, remember that swing and human timing do not change the math: the loop length is still set by bars and tempo, even if individual hits sit slightly off the grid.

Loops beyond music production

Loop length also matters for video editors, game designers and fitness instructors. A background music loop under a video must repeat without a visible jump, a game loop must fill a level without an awkward pause, and a workout track must stay in time with the exercise. In every case the same formula applies: seconds equal bars times beats per bar times 60 divided by tempo. Once you know the seconds, samples follow from the sample rate. Keep the formula in mind and you can check any loop, in any software, without trusting a display you cannot verify. That independence is the point of a calculator like this one: it gives you a number you can test, not just a button you must believe.

Related calculators

1 thought on “Loop Length Calculator – Bars at a BPM in Samples and Seconds”

  1. Pingback: Calculadora de Longitud de Bucles - Compases a un Tempo en Muestras y Segundos

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top