Calculating Bar Length in Seconds and Song Length from BPM, Plus Frame Counts for Video Editing
“How many bars do I need for a 3-minute song at BPM 128?” “How many bars of a BPM 120 track fit in this 90-second ad?” “I want my video cuts on the beat, but how many frames is one beat?” Thinking about song length or video duration in terms of BPM means calculating bar lengths and frame counts. This article covers the formula for the length of one bar with a chart by BPM, getting song length from a number of bars, working back from a duration to a number of bars, converting beats to frame counts for video editing, and finding the BPM from the length of a loop.
One bar lasts “60 ÷ BPM × beats per bar” seconds
BPM is the number of quarter notes per minute, so one beat lasts “60 ÷ BPM” seconds. Multiply that by the number of beats per bar to get the length of a bar. In 4/4 there are 4 beats, so it’s “60 ÷ BPM × 4”, or simply “240 ÷ BPM” seconds. That’s 2 seconds at BPM 120, 1.875 seconds at BPM 128 and 1.6 seconds at BPM 150.
| Time signature | Beats per bar (quarter notes) | Bar length formula | At BPM 120 |
|---|---|---|---|
| 4/4 | 4 | 240 ÷ BPM | 2 s |
| 3/4 | 3 | 180 ÷ BPM | 1.5 s |
| 2/4 | 2 | 120 ÷ BPM | 1 s |
| 6/8 | 3 (six eighth notes) | 180 ÷ BPM | 1.5 s |
| 5/4 | 5 | 300 ÷ BPM | 2.5 s |
| 7/8 | 3.5 (seven eighth notes) | 210 ÷ BPM | 1.75 s |
Bar length and song length chart by BPM (4/4)
| BPM | 1 beat | 1 bar | 8 bars | 16 bars | Bars per minute |
|---|---|---|---|---|---|
| 60 | 1 s | 4 s | 32 s | 64 s | 15 |
| 70 | about 0.857 s | about 3.429 s | about 27.43 s | about 54.86 s | 17.5 |
| 80 | 0.75 s | 3 s | 24 s | 48 s | 20 |
| 90 | about 0.667 s | about 2.667 s | about 21.33 s | about 42.67 s | 22.5 |
| 100 | 0.6 s | 2.4 s | 19.2 s | 38.4 s | 25 |
| 110 | about 0.545 s | about 2.182 s | about 17.45 s | about 34.91 s | 27.5 |
| 120 | 0.5 s | 2 s | 16 s | 32 s | 30 |
| 128 | 0.46875 s | 1.875 s | 15 s | 30 s | 32 |
| 130 | about 0.462 s | about 1.846 s | about 14.77 s | about 29.54 s | 32.5 |
| 140 | about 0.429 s | about 1.714 s | about 13.71 s | about 27.43 s | 35 |
| 150 | 0.4 s | 1.6 s | 12.8 s | 25.6 s | 37.5 |
| 160 | 0.375 s | 1.5 s | 12 s | 24 s | 40 |
| 170 | about 0.353 s | about 1.412 s | about 11.29 s | about 22.59 s | 42.5 |
| 180 | about 0.333 s | about 1.333 s | about 10.67 s | about 21.33 s | 45 |
At BPM 128, 8 bars are exactly 15 seconds and 16 bars exactly 30 seconds, which makes it a good fit for 15- and 30-second video ads and short-form social video. At BPM 120, 15 seconds is 7.5 bars and 30 seconds is 15 bars, so the cut lands mid-bar. When fitting music to footage with a fixed duration, choosing a tempo where bar lines and seconds coincide like this makes editing much easier.
From bars to song length, and from length to bars
Song length is “bar length in seconds × number of bars”. At BPM 128 in 4/4, 96 bars is 1.875 × 96 = 180 seconds, exactly 3 minutes. Going the other way, the number of bars that fit in a given length is “length (seconds) ÷ bar length in seconds”.
| BPM | Bars | Song length |
|---|---|---|
| 90 | 80 bars | about 3 min 33.3 s |
| 120 | 64 bars | 2 min 8 s |
| 128 | 96 bars | exactly 3 min |
| 150 | 100 bars | 2 min 40 s |
| 174 | 128 bars | about 2 min 56.6 s |
| BPM | Bars in 15 s | 30 s | 60 s | 90 s |
|---|---|---|---|---|
| 80 | 5 | 10 | 20 | 30 |
| 90 | about 5.63 | 11.25 | 22.5 | 33.75 |
| 100 | 6.25 | 12.5 | 25 | 37.5 |
| 120 | 7.5 | 15 | 30 | 45 |
| 128 | 8 | 16 | 32 | 48 |
| 140 | 8.75 | 17.5 | 35 | 52.5 |
| 160 | 10 | 20 | 40 | 60 |
In the “Song length & bars” tab of the BPM Tap Tempo & Delay Time Calculator, choose a time signature and enter a number of bars to get the song length, or enter a length such as “3:00” or “90” to get the number of bars that fit. It also lists the lengths of commonly used bar counts such as 8, 16, 32 and 64 bars.
Converting beats to frame counts for video editing
Video editing timelines are divided into frames, not seconds, so to put cuts on the beat you need to know how many frames one beat is. The formula is “frames per beat = 60 ÷ BPM × frame rate”. At BPM 120 and 30 fps that’s 0.5 s × 30 = 15 frames; at BPM 128 and 30 fps it’s about 14.06 frames.
| BPM | 1 beat at 24 fps | 1 beat at 30 fps | 1 beat at 60 fps | 1 bar at 30 fps |
|---|---|---|---|---|
| 60 | 24 | 30 | 60 | 120 |
| 80 | 18 | 22.5 | 45 | 90 |
| 90 | 16 | 20 | 40 | 80 |
| 100 | 14.4 | 18 | 36 | 72 |
| 120 | 12 | 15 | 30 | 60 |
| 128 | 11.25 | 14.06 | 28.13 | 56.25 |
| 140 | 10.29 | 12.86 | 25.71 | 51.43 |
| 150 | 9.6 | 12 | 24 | 48 |
| 160 | 9 | 11.25 | 22.5 | 45 |
| 180 | 8 | 10 | 20 | 40 |
With combinations where a beat is a whole number of frames, such as BPM 120 at 30 fps, BPM 150 at 30 fps or BPM 90 at 24 fps, cuts every few beats always land exactly on a frame boundary. When it’s a fraction, as at BPM 128, the beat positions gradually fall between frames, so calculate cumulatively every 4 or 8 beats and then place the cut on the nearest frame to stop errors building up. At BPM 128 and 30 fps, one bar is 56.25 frames and four bars exactly 225 frames.
- 1
Measure the song’s BPM
If you don’t know the BPM of the background music, measure it by tapping along. Getting it to one decimal place keeps long videos from drifting (see how to find a song’s BPM).
- 2
Calculate frames per beat and per bar
Use the project’s frame rate (24, 25, 29.97, 30, 50, 59.94 or 60 fps). Calculating with 30 fps in a 29.97 fps project puts you about 1.8 frames off per minute.
- 3
Decide where the first beat is
If the song starts with silence, use the frame where the first kick hits as the reference. Place markers from there every beat or every bar.
- 4
Put cuts on the markers
Cutting on every beat feels frantic, so make every bar or every two bars the default, and only cut on each beat in the chorus or on big hits, for footage with punch.
Finding the BPM from a loop’s length
When a drum loop or sample has no BPM listed, you can work it out from the file’s length and number of bars. The formula is “BPM = 60 × bars × beats per bar ÷ length (seconds)”. For a 4-bar, 8-second loop in 4/4, that’s 60 × 4 × 4 ÷ 8 = BPM 120.
| Loop length | Bars (4/4) | BPM |
|---|---|---|
| 8 s | 4 bars | 120 |
| 7.5 s | 4 bars | 128 |
| 3.75 s | 2 bars | 128 |
| 705600 samples (16 s at 44.1 kHz) | 8 bars | 120 |
| 360000 samples (7.5 s at 48 kHz) | 4 bars | 128 |
| 2.1 s | 1 bar | about 114.29 |
- If you don’t know the number of bars, consider 1, 2 or 4 bars based on the kicks and snares, and choose the one that gives a natural BPM (roughly 70–180)
- If the BPM comes out around 60 or around 240, rethink the bar count at double or half
- Loops with a tail (a reverb tail) at the end are slightly longer than the actual loop, so look at the waveform and trim at the start of a beat before measuring
- In software that doesn’t show length in milliseconds, samples ÷ sample rate gives you the seconds
If the BPM you get differs from the project’s, time-stretch the sample or change its playback speed to match. Changing playback speed changes the key too; see calculating playback speed and semitones when you change BPM for how much.
When things don’t line up as calculated: causes and fixes
Sometimes you calculate everything by the formula, yet cuts and bar lines drift further off toward the end of the song. The cause is usually one of the following.
| Symptom | Common cause | Fix |
|---|---|---|
| Drifts a little more as it goes on | The BPM was rounded to a whole number (it’s really 127.8 or similar) | Tap about 32 times and measure to one decimal place. Even 1 BPM off puts a 3-minute song more than a second out |
| Off from the very start | Silence at the top or a pickup (anacrusis) wasn’t counted | Use the start of the first full bar (the kick on beat 1) as the reference |
| Suddenly goes off partway through | The tempo or time signature changes mid-song | Split at the change and calculate each part with its own BPM and time signature |
| Bar count comes out half or double | The BPM was measured in half time or double time | Recount so the snare hits twice per bar |
| Bar count is exactly three-quarters | A 6/8 song was calculated as 4/4 | Recalculate with the time signature set to 6/8 (three quarter-note beats) |
How much a BPM error matters scales with the song’s length. Calculating a BPM 128 song as 127 is only about 0.015 seconds off per bar, but over 96 bars (3 minutes) it adds up to about 1.4 seconds: more than 40 frames at 30 fps. The longer the video, or when cutting to a whole song, the more it’s worth measuring the BPM precisely to a decimal place.
FAQ
- How many seconds is one bar at BPM 120?
- In 4/4 it’s 2 seconds. One beat is 60 ÷ 120 = 0.5 seconds, and there are 4 beats, so 2 seconds. In 3/4 or 6/8 it’s 1.5 seconds.
- How many bars is a 3-minute song at BPM 128?
- In 4/4 it’s 96 bars. One bar is 240 ÷ 128 = 1.875 seconds, so 180 ÷ 1.875 = 96.
- How do I calculate video frame counts from BPM?
- “60 ÷ BPM × frame rate” gives frames per beat. That’s 15 frames at BPM 120 and 30 fps, 12 frames at BPM 120 and 24 fps, and about 14.06 frames at BPM 128 and 30 fps.
- What BPM fits exactly 8 bars into a 15-second video?
- In 4/4, BPM 128. Using “BPM = 240 × bars ÷ seconds”, 240 × 8 ÷ 15 = 128. Sixteen bars in 30 seconds is also BPM 128.
- I don’t know the BPM of a loop.
- Use the loop’s length (seconds) and number of bars: “BPM = 60 × bars × beats ÷ seconds”. Four bars in 8 seconds is BPM 120. If you don’t know the bar count, choose the one that gives a natural BPM.
Tools in this article
Related articles
How to Find the BPM of a Song: Tap Tempo Tips and Telling Double-Time from Half-Time
Transcribing by ear, practicing a dance, mixing as a DJ, cutting a video to the beat, setting a delay: all of these start with knowing the song’s tempo (BPM). But when you tap along a few times, the number changes every time, or the result comes out as double or half the real value. This guide covers what BPM means, how to keep tap-tempo error small, how to count with a clock, how to check with a DAW or app, how to tell double-time from half-time, and typical BPM ranges by genre and by tempo marking.
Read article →How to Calculate Delay Time: Dotted-Eighth ms and a BPM Chart
When a delay is matched to the song’s tempo, the repeats land neatly on the beat and the sound spreads out without getting muddy. Dotted-eighth delay on guitar, eighth- or quarter-note delay on vocals, triplet delay on synths: delay gets used all the time, yet working out how many milliseconds to set from the BPM is something people puzzle over every time. This article covers the delay time formula, how to get dotted and triplet values, a chart for BPM 60–200, how to use dotted-eighth delay, and tips for setting gear that has no tempo sync.
Read article →Matching Reverb Pre-Delay and LFOs to BPM: Calculating ms and Hz
It isn’t only delay: matching reverb pre-delay and tail length, and the speed of tremolo, auto-pan and filter sweeps (LFOs), to the song’s tempo makes a mix sit together more cleanly. But reverb is usually set in milliseconds and LFOs in Hz, so it’s not obvious how to convert from BPM. This article covers how to think about tempo-matched reverb pre-delay and decay with guide values by BPM, the formula and a chart for converting note lengths to Hz, and tips for applying the same idea to compressor release and sidechaining.
Read article →