Free tool

Sample Length Calculator

Exact loop length in seconds, milliseconds and samples for any tempo, bar count and time signature.

No upload. The calculation runs in your browser.

Loop settings

Seconds

8

Milliseconds

8000 ms

Samples

352,800

at 44.1 kHz

Common loop lengths

At 120 BPM.

1 bars

2 s

88,200 samples

2 bars

4 s

176,400 samples

4 bars

8 s

352,800 samples

8 bars

16 s

705,600 samples

16 bars

32 s

1,411,200 samples

32 bars

64 s

2,822,400 samples

Sample counts are rounded to the nearest whole sample, which is the smallest unit your DAW can edit.

Detail

How this works

The maths is simple and exact: total beats are bars × beats per bar, scaled by 4 divided by the beat unit so that eighth-note and half-note signatures behave correctly. Duration is beats × 60 / BPM, and the sample count is that duration times the sample rate.

Use the sample count when you are editing to the boundary of a loop. Rounding a loop to the nearest millisecond can leave a fraction of a sample of error, which is inaudible once but accumulates into an obvious drift over dozens of repeats.

FAQ

Frequently asked questions

Toolbox

Related tools

Train your sound. Generate your song.

ANYANO is the bigger version of this: prepare music you own, train a Sound that stays private to your account, then generate from it.