How is BPM calculated?
BPM is calculated by counting the number of beats in a known time period and converting to a per-minute rate. The formula is: BPM = 60,000 / time between beats in milliseconds. Example: if beats are 500 ms apart, BPM = 60,000 / 500 = 120 BPM.
The BPM formula
The mathematical formula for BPM is:
BPM = 60,000 / interval (ms)
Where interval is the time between two consecutive beats in milliseconds. Since one minute = 60,000 milliseconds, dividing by the beat interval gives the beats per minute.
Example calculations
| Interval (ms) | BPM |
|---|---|
| 1000 | 60 |
| 750 | 80 |
| 500 | 120 |
| 400 | 150 |
| 340 | ~176 |
| 300 | 200 |
Use our BPM to MS calculator to convert between any BPM and millisecond interval.
How tap tempo tools calculate BPM
A tap tempo tool measures the time between consecutive taps and averages the last several intervals to smooth out timing errors. Most tools use the last 4-8 taps for the calculation:
- Record the timestamp of each tap.
- Calculate the interval between each pair of consecutive taps.
- Average those intervals.
- Apply the formula: BPM = 60,000 / average interval.
Our tap tempo calculator uses this exact method, averaging the last 8 taps for accuracy.
How software auto-detects BPM
BPM detection software (Ableton, Logic Smart Tempo, librosa, aubio, Essentia) uses signal processing to identify beats:
- Calculate the audio signal's onset detection function (a measure of where energy spikes happen).
- Run autocorrelation to find the most regular interval.
- Convert that interval to BPM using the formula above.
- Apply heuristics to disambiguate half-time and double-time results.
Need to find the BPM of a song right now?
Use the Tap Tempo ToolRelated questions
Built by the team behind