Music Software Development

BPM to milliseconds calculator

Type a tempo to get the length of every common note value in milliseconds: the numbers to dial into a delay, a reverb pre-delay or a compressor release so they move with the song. The tables below show 120 BPM until you change it.

Calculator

120 BPM: a quarter note lasts 500.00 ms.

Delay times in milliseconds

Note valueStraightDotted (×1.5)Triplet (×2/3)
Whole note 1/12000.003000.001333.33
Half note 1/21000.001500.00666.67
Quarter note 1/4500.00750.00333.33
Eighth note 1/8250.00375.00166.67
Sixteenth note 1/16125.00187.5083.33
Thirty-second note 1/3262.5093.7541.67
Sixty-fourth note 1/6431.2546.8820.83

Milliseconds, Hz and samples

NotemsHzSamples @ 44.1 kHzSamples @ 48 kHzSamples @ 96 kHz
1/12000.000.508820096000192000
1/1 dotted3000.000.33132300144000288000
1/1 triplet1333.330.755880064000128000
1/21000.001.00441004800096000
1/2 dotted1500.000.676615072000144000
1/2 triplet666.671.50294003200064000
1/4500.002.00220502400048000
1/4 dotted750.001.33330753600072000
1/4 triplet333.333.00147001600032000
1/8250.004.00110251200024000
1/8 dotted375.002.67165381800036000
1/8 triplet166.676.007350800016000
1/16125.008.005513600012000
1/16 dotted187.505.338269900018000
1/16 triplet83.3312.00367540008000
1/3262.5016.00275630006000
1/32 dotted93.7510.67413445009000
1/32 triplet41.6724.00183820004000
1/6431.2532.00137815003000
1/64 dotted46.8821.33206722504500
1/64 triplet20.8348.0091910002000

Milliseconds and Hz are rounded to 2 decimal places, samples to the nearest whole sample. Hz is one cycle per note length, the rate to use for a tempo-synced LFO or tremolo.

Bar length

One bar of 4/4 at 120 BPM = 2000.00 ms (2.00 s).

Milliseconds to BPM

500 ms is one quarter note at 120.00 BPM.

The formula

A minute has 60,000 milliseconds and BPM counts quarter notes, so one quarter note lasts 60000 / BPM ms. Every other value is a multiple of that: double it for a half note, halve it for an eighth, and so on. At 120 BPM a quarter is 500 ms, an eighth is 250 ms and a sixteenth is 125 ms. A bar is the quarter length × beats per bar × 4 / beat unit, so a bar of 6/8 at 120 BPM is 500 × 6 × 4 / 8 = 1500 ms.

The reverse works the same way: BPM = 60000 × (note length in quarters) / ms. If you measured a 375 ms echo in a recording and suspect a dotted eighth (0.75 of a quarter), the song is at 60000 × 0.75 / 375 = 120 BPM.

Why dotted and triplet delays matter

A straight eighth-note delay lands each repeat on the grid, so it tends to hide behind the part. A dotted value is 1.5 times as long: a dotted-eighth delay repeats three sixteenths after the note, which falls between the notes you play and creates the rolling, galloping echo heard on many guitar parts. A triplet value is two thirds as long, fitting three repeats where two straight ones would go. It gives a swung, shuffling feel and works well on vocals in slower songs. Dotted and triplet times also help a delay sit apart from a busy straight rhythm rather than doubling it.

Converting to samples

Plug-ins, DSP code and sample editors often want a length in samples instead of time: samples = ms × sample rate / 1000. A 500 ms quarter note is 22,050 samples at 44.1 kHz, 24,000 at 48 kHz and 48,000 at 96 kHz. Since a buffer can only hold whole samples, the tables round to the nearest one; over many repeats that rounding can drift by a fraction of a millisecond, which is inaudible for echoes but matters when you loop audio for a long time.

To hear a tempo, start the online metronome. For programming, scheduling audio in JavaScript shows how these lengths become event times, and the step sequencer plays sixteenth notes at the tempo you set.