AudioCalcs
Loop Length Calculator — Bars to Milliseconds & Samples
Calculate loop length in milliseconds and samples from BPM and bar count.
How We Calculate This
Loop Duration Formula
Loop (ms) = (60,000 / BPM) × beats
Where beats = bars × 4 (assuming 4/4 time signature).
Sample Count Formula
Samples = (Loop ms / 1000) × Sample Rate
This gives the exact number of samples for a perfectly timed loop.
Frequently Asked Questions
When creating seamless loops in a DAW or sampler, setting the loop point to the exact sample ensures there are no clicks, pops or timing drift. Even being one sample off can cause an audible glitch at the loop boundary.
Divide 60,000 by the BPM. For example, at 120 BPM: 60,000 / 120 = 500ms per beat. At 128 BPM: 60,000 / 128 = 468.75ms per beat.
The loop length in time (milliseconds) stays the same regardless of sample rate. However, the number of samples in the loop changes — at 44,100 Hz there are fewer samples per second than at 96,000 Hz, so the sample count for the same loop duration will differ.
Most DJ software defaults to 4-bar loops (16 beats), which captures a full musical phrase in most electronic music. Shorter loops (1/2 or 1 beat) are used for build-ups and effects, while longer loops (8-16 bars) capture more variation.
Related Calculators
Sample Chop Calculator
Calculate chop points in samples and milliseconds for evenly dividing any loop. Ideal for MPC, Maschine and DAW sampling workflows.
BPM Sync Calculator
Calculate the pitch adjustment percentage needed to sync two tracks at different BPMs. Essential for DJs performing seamless beatmatching.
Delay Time Calculator
Calculate delay times in milliseconds synced to BPM for all note values including dotted and triplet divisions. Free producer tool.
LFO Rate Calculator
Calculate LFO rate in Hz synced to your BPM for all note divisions including dotted and triplet values. Free online producer tool.
Sidechain Calculator
Calculate attack and release times for sidechain compression based on BPM and ducking style.
Was this calculator helpful?
Last updated: February 2026
All calculations are estimates based on standard formulas. Always verify results for critical applications.