How-to GuidePublished 9 min read

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 signatureBeats per bar (quarter notes)Bar length formulaAt BPM 120
4/44240 ÷ BPM2 s
3/43180 ÷ BPM1.5 s
2/42120 ÷ BPM1 s
6/83 (six eighth notes)180 ÷ BPM1.5 s
5/45300 ÷ BPM2.5 s
7/83.5 (seven eighth notes)210 ÷ BPM1.75 s

Bar length and song length chart by BPM (4/4)

BPM1 beat1 bar8 bars16 barsBars per minute
601 s4 s32 s64 s15
70about 0.857 sabout 3.429 sabout 27.43 sabout 54.86 s17.5
800.75 s3 s24 s48 s20
90about 0.667 sabout 2.667 sabout 21.33 sabout 42.67 s22.5
1000.6 s2.4 s19.2 s38.4 s25
110about 0.545 sabout 2.182 sabout 17.45 sabout 34.91 s27.5
1200.5 s2 s16 s32 s30
1280.46875 s1.875 s15 s30 s32
130about 0.462 sabout 1.846 sabout 14.77 sabout 29.54 s32.5
140about 0.429 sabout 1.714 sabout 13.71 sabout 27.43 s35
1500.4 s1.6 s12.8 s25.6 s37.5
1600.375 s1.5 s12 s24 s40
170about 0.353 sabout 1.412 sabout 11.29 sabout 22.59 s42.5
180about 0.333 sabout 1.333 sabout 10.67 sabout 21.33 s45

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”.

BPMBarsSong length
9080 barsabout 3 min 33.3 s
12064 bars2 min 8 s
12896 barsexactly 3 min
150100 bars2 min 40 s
174128 barsabout 2 min 56.6 s
BPMBars in 15 s30 s60 s90 s
805102030
90about 5.6311.2522.533.75
1006.2512.52537.5
1207.5153045
1288163248
1408.7517.53552.5
16010204060

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.

BPM1 beat at 24 fps1 beat at 30 fps1 beat at 60 fps1 bar at 30 fps
60243060120
801822.54590
9016204080
10014.4183672
12012153060
12811.2514.0628.1356.25
14010.2912.8625.7151.43
1509.6122448
160911.2522.545
1808102040

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. 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. 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. 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. 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 lengthBars (4/4)BPM
8 s4 bars120
7.5 s4 bars128
3.75 s2 bars128
705600 samples (16 s at 44.1 kHz)8 bars120
360000 samples (7.5 s at 48 kHz)4 bars128
2.1 s1 barabout 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.

SymptomCommon causeFix
Drifts a little more as it goes onThe 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 startSilence at the top or a pickup (anacrusis) wasn’t countedUse the start of the first full bar (the kick on beat 1) as the reference
Suddenly goes off partway throughThe tempo or time signature changes mid-songSplit at the change and calculate each part with its own BPM and time signature
Bar count comes out half or doubleThe BPM was measured in half time or double timeRecount so the snare hits twice per bar
Bar count is exactly three-quartersA 6/8 song was calculated as 4/4Recalculate 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 Guide10 min read

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 Guide9 min read

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 →
How It Works9 min read

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 →