Skip to main content
Audio-Editor
Back to Blog
AudioUpdated November 12, 20268 min read

How to Find the BPM of a Song: Tempo Detection, Spectral Flux & Autocorrelation

Quick answer

BPM is the number of beats per minute. An automatic detector finds it by tracking where the sound gets suddenly louder (onsets) and measuring how often that pattern repeats. Our detector reported 119 BPM for a loop made at exactly 120 BPM. The harder problem is not precision but level: detectors often land on half or double the tempo you feel, so check the half-time and double-time values and confirm with tap tempo.

DJs need BPM to mix two songs, producers to match a sample to a project, runners and instructors to build playlists at a steady pace, and video editors to cut on the beat. This guide explains what BPM is, how automatic detection works and where it fails, how to use the detector and tap tempo in the browser, and what our test measured.

What BPM measures, and the half/double problem

BPM counts the pulse you would tap your foot to. At 120 BPM there is a beat every 0.5 seconds; at 90 BPM, every 0.67 seconds. The catch is that music has pulses at several levels at once: a song at 140 BPM has a half-time feel at 70 and hi-hats running at 280. Which one is "the" tempo is partly a convention of the genre. Hip-hop is usually counted slow, drum and bass usually fast, and the same track can be read either way.

That is why a detector that says 64 BPM on a dance track is not exactly wrong; it found a real pulse, one level down. Our detector shows the half and double values next to the result so you can pick the one that matches how the music is counted.

BPM finder widget before a file is loaded, with its drop area
Figure 1: The BPM finder before a file is loaded. It accepts the usual audio formats and analyses the file in the browser.

How automatic tempo detection works

Our detector follows the standard approach in four steps:

  1. Onset energy. It splits the audio into frequency bands and follows the energy in each, so a kick drum and a hi-hat both count.
  2. Envelope differentiation. It keeps only the increases in energy, the moments when something starts. That curve has a peak at every hit.
  3. Autocorrelation. It compares the curve with delayed copies of itself. When the delay equals the beat period, peaks line up with peaks and the match is strongest. It searches delays that correspond to 55 to 210 BPM.
  4. Harmonic disambiguation. Half and double periods also line up, so it weighs them to choose the most likely level.

It analyses the first 20 seconds of the file, which the widget shows shaded on the waveform. The confidence badge is a heuristic: how much the best tempo stands out from the others, scaled and capped between 30% and 98%. Treat it as "clear pulse" versus "unclear pulse", not as a probability.

Level of the first four seconds of a 120 BPM drum loop with a dashed line every half second
Figure 2: The first 4 seconds of our 120 BPM reference loop. The dashed lines are a beat every 0.5 s; each tall spike is a kick on the beat, which is what the detector locks onto.

How to find a song's BPM, step by step

The BPM Finder page runs everything in your browser.

Step 1: Load the song

Drop the file on the widget. The first 20 seconds are analysed and the result appears in a second or two. If the song has a long, beatless intro, trim it first in the cutter so the analysed part contains the beat.

Step 2: Read the result and its neighbours

BPM finder showing 119 BPM with half-time 60, double-time 238, the analysed duration and the confidence badge
Figure 3: The result for our 120 BPM loop: 119 BPM, with half-time and double-time next to it and a rough genre hint for that tempo.

Under the main number are Half-Time and Double-Time. The genre line is a hint based on the tempo range only (for example 115 to 135 BPM is labelled house, EDM, techno, disco and pop dance); it does not analyse the style of the music.

Step 3: Confirm with tap tempo or the metronome

Play the song and press Tap Here to Beat on each beat, 4 to 8 times. The widget averages the intervals between your taps. Start Audible Metronome plays a click at the detected tempo; if the click drifts against the music, the detected value is off or the song changes tempo.

BPM finder after eight taps, showing 120 BPM from tap tempo next to the detected 119 BPM
Figure 4: After eight taps half a second apart, tap tempo reads 120 BPM next to the detected 119.

Typical tempo ranges

StyleUsual rangeWatch for
Hip-hop, lo-fi70 – 95Detected at double (140–190)
Pop, R&B, reggaeton90 – 120Syncopation can confuse the level
House, techno, disco118 – 135Usually detected well: steady kick
Drum and bass, jungle160 – 180Detected at half (80–90)

Putting the number to work

A BPM value turns into time with one formula: seconds per beat = 60 ÷ BPM. Most pop and dance music groups beats in bars of four, so a bar lasts four times that.

BPMOne beatOne bar (4 beats)
900.67 s2.67 s
1200.50 s2.00 s
1280.47 s1.88 s
1740.34 s1.38 s
  • Video editing: cutting every bar (2 s at 120 BPM) or every two bars feels natural; cutting on single beats feels frantic except in fast montages.
  • DJ mixing: two tracks blend smoothly when their tempos are within a few percent; a 124 BPM track sped up to 128 changes by 3.2%, which most listeners will not notice.
  • Running playlists: many runners take 160 to 180 steps per minute, so songs at 80 to 90 BPM work at one step per half-beat and songs at 160 to 180 at one step per beat.

If a song is close but not exact, the speed tool can adjust its tempo while keeping the pitch.

Measured example

We synthesized 20 seconds of kick drum on every beat and hi-hat between beats at exactly 120 BPM, and dropped the file on the tool page.

The page reported 119 BPM for a loop at 120 BPM, an error of 1 BPM.

MeasuredExpectedReported
Tempo120 BPM119 BPM

A perfectly regular synthetic loop is the easy case. Real songs with swing, tempo drift or no drums are harder, and the result can land on half or double the tempo; confirm with tap tempo.

Download the reference file (WAV) · Same test on the tool page · Measured on November 11, 2026

A 1 BPM error matters less than it sounds. For DJ mixing, 1 BPM over a minute is about half a beat, which is why DJs nudge the pitch by ear anyway. For video editing on the beat, confirm with tap tempo or the metronome.

Troubleshooting

What you hear or seeLikely causeWhat to change
The result is half or double what you expectThe detector chose a different pulse levelUse the Half-Time or Double-Time value, or confirm with tap tempo
The result changes a lot between songs of the same styleWeak or absent drums in the first 20 secondsTrim the intro so the analysed part has the beat
The metronome drifts against the musicThe song speeds up or slows down (live recording)Tap tempo in the section you need; one number cannot describe a changing tempo
Very low confidenceAmbient music, rubato, or no clear onsetsRely on tap tempo
Tap tempo jumps aroundToo few taps or uneven tappingReset and tap 8 times on the kick or snare

Limits

The detector gives one tempo for the first 20 seconds. It does not draw a beat grid, find the first beat of the bar (the downbeat), follow tempo changes, or detect the musical key. In our automated tests on synthetic drum loops it lands within 1 BPM at 90, 120 and 128 BPM; it has not been measured on a set of commercial songs, where swing, live drummers and sparse arrangements make detection harder. DJ software and DAWs that analyse the whole track and build a beat grid are the right tools when you need more than a number.

Frequently asked questions

How accurate is the BPM finder?

On our 120 BPM reference loop it reported 119. On real songs with a steady kick it is usually close; on songs without clear drums, use tap tempo.

Why does it say 60 when the song feels like 120?

It found the half-time pulse. Use the Double-Time value shown under the result.

What does the confidence percentage mean?

How clearly the best tempo stands out from other candidates, capped between 30% and 98%. It is not a probability that the number is right.

Can it find the key of a song?

No. It measures tempo only. For transposing, see Change Pitch.

Is the song uploaded?

No. The file is decoded and analysed in your browser.

Sources and how this was tested

Tested on November 12, 2026 in Chromium 153 on Windows 11, with a production build of this site. Screenshots and measurements were made by the scripts in scripts/tool-evidence, from synthetic reference files anyone can download and repeat.

BD

Written by Bruno Dissenha

Bruno develops and maintains Audio-Editor Online. The articles document decisions, tests, and limitations observed in the current implementation.