A little help goes a long way. Find a tool/

Music

Sample Length Calculator

Free sample length calculator: bars @ BPM → seconds, milliseconds and samples (choose a sample rate), or the inverse: a length in seconds → bars and beats. For producers and editors.

YOUR WORKSPACEFree to use. No sign-up.
—
Enter bars and BPM above.

Deep dive guides

A LITTLE CONTEXT · 4 MIN READBars, Beats and Samples: The Two-Clock Problem

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.

Frequently asked questions

How long is 4 bars?
It depends entirely on tempo: 4 bars of 4/4 is 16 beats, so at 120 BPM it is 8 seconds, at 90 BPM about 10.7 seconds, and at 174 BPM about 5.5 seconds. Enter your BPM above and the seconds appear instantly.
How do I convert bars to milliseconds?
Multiply bars by beats per bar, multiply by 60,000, and divide by BPM: ms = bars × beatsPerBar × 60000 ÷ BPM. The calculator does it for you and also shows the sample count at your chosen sample rate.
What is beats per bar?
The number of beats in one bar of your project. Common time (4/4) is 4, waltz time is 3, and 6/8 or 12/8 feels use 6 or 12. Changing it rescales every result: 2 bars of 3/4 at 100 BPM is 3.6 seconds, while 2 bars of 4/4 is 4.8 seconds.
How many samples are in one bar at 44.1 kHz?
One bar is beatsPerBar × 60 ÷ BPM seconds; multiply by 44,100. At 120 BPM in 4/4 that is exactly 88,200 samples per bar. The tool computes the count for any tempo and rate and rounds to the nearest whole sample.
Why does the inverse mode show a deviation?
A free-recorded length rarely lands exactly on a bar line. The calculator reports the nearest whole-bar length and the miss in milliseconds, so you know how much to time-stretch or trim — a few milliseconds is inaudible, a few hundred is a rhythm feel.