Tempo to Samples Calculator
When writing DSP code, programming plugin delay buffers, or building tempo-synced audio software, you need the exact number of audio samples per beat or bar rather than a time in milliseconds. This calculator converts BPM and sample rate to sample counts for a quarter-note beat, a full 4/4 bar, an eighth note, a sixteenth note, and a thirty-second note. The formula is samples per beat = sample_rate * 60 / BPM. Multiply or divide to get other note values. The results are shown as both an exact floating-point value and the nearest integer, since buffers must have whole-sample sizes.
Tempo to samples formula
Samples per beat = sample_rate * 60 / BPM
Samples per bar (4/4) = samples_per_beat * 4
Eighth note = samples_per_beat / 2
Sixteenth = samples_per_beat / 4
Thirty-second = samples_per_beat / 8
Results should be rounded to the nearest integer when used as buffer sizes, since audio hardware works in whole samples. Fractional samples are handled internally by DAWs using sub-sample interpolation.
Common sample counts at 120 BPM
- 44,100 Hz: 22,050 samples per beat, 88,200 per bar.
- 48,000 Hz: 24,000 samples per beat, 96,000 per bar.
- 96,000 Hz: 48,000 samples per beat, 192,000 per bar.
- Higher sample rates give larger buffers, which require more memory but offer more precise timing.
Tempo to samples: frequently asked questions
How do I convert BPM to samples?
Samples per beat = sample_rate * 60 / BPM. At 120 BPM with a 44,100 Hz sample rate: 44,100 * 60 / 120 = 22,050 samples per quarter-note beat.
Why does sample count matter in audio production?
Digital audio processing works in samples, not milliseconds. When programming delay effects, buffer sizes, or DSP algorithms, knowing the exact sample count for a beat keeps your code tempo-locked without floating-point timing errors.
What sample rates are standard?
Common sample rates: 44,100 Hz (CD standard), 48,000 Hz (video/broadcast standard), 88,200 Hz and 96,000 Hz (high-resolution audio), 192,000 Hz (studio mastering). Most consumer music uses 44,100 or 48,000 Hz.
How many samples is a bar at 120 BPM?
A 4/4 bar at 120 BPM with 44,100 Hz sample rate = 4 beats * 22,050 = 88,200 samples. At 48,000 Hz it is 4 * 24,000 = 96,000 samples.
Can I use non-integer sample counts?
In practice, sample counts must be integer values. Small rounding errors accumulate over time. DAWs handle this with sub-sample timing internally and round per-buffer, which is why tempo-synced plugins can drift slightly at some BPM / sample-rate combinations.
Official sources
- Audio Engineering Society (AES): aes.org - audio sample rate and digital audio standards.
- MIDI Association: midi.org - MIDI timing and synchronization specifications.
Reviewed by the CalculatorHub team, edited by James Graham, 15 June 2026. See our methodology.