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
100060
75080
500120
400150
340~176
300200

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:

  1. Record the timestamp of each tap.
  2. Calculate the interval between each pair of consecutive taps.
  3. Average those intervals.
  4. 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:

  1. Calculate the audio signal's onset detection function (a measure of where energy spikes happen).
  2. Run autocorrelation to find the most regular interval.
  3. Convert that interval to BPM using the formula above.
  4. Apply heuristics to disambiguate half-time and double-time results.

Need to find the BPM of a song right now?

Use the Tap Tempo Tool

Related questions

Built by the team behind