How sample length calculator works
The whole tool hangs on one formula: seconds = bars × beats-per-bar × 60 ÷ BPM. Four bars in 4/4 at 120 BPM is 16 beats × 0.5 s = exactly 8 seconds; the same four bars at 174 BPM is about 1.38 seconds per bar, or 5.52 seconds total. Enter bars, BPM and the beats per bar (4 for common time, 3 for waltz, 6 for 6/8 feels) and the panel shows beats, seconds and milliseconds.
For sample-accurate work, set a sample rate — 44,100 Hz for CD-rate audio or 48,000 Hz for most production and video work — and the tool multiplies the exact length by the rate and rounds to a whole sample: 2 bars at 120 BPM and 44.1 kHz is 352,800 samples. Rounding matters because a DAW can only place audio on whole-sample boundaries, and an off-by-one accumulation across many chops becomes audible drift.
The inverse direction is just as useful: paste a length in seconds and the BPM, and the calculator reports how many beats and bars it spans, plus the nearest whole-bar length and the deviation in milliseconds. Fit a field recording to the grid by trimming to the nearest bar, set tempo-synced delay and reverb tails (a 3/16 delay at 174 BPM is about 259 ms), or check whether a stems export lands on a clean loop point.