Last updated: October 18, 2026 · Written by the Pitch Detectors Editorial Team
A song length calculator turns musical structure into clock time. Enter tempo (BPM), time signature, and bar count to get exact duration in minutes, seconds, and milliseconds — the numbers behind arrangements, DJ sets, and film cues, calculated before a single note is recorded.
A song length calculator converts musical structure into clock time. Given a tempo (BPM), a time signature, and a bar count, it returns the exact duration in minutes, seconds, and milliseconds. Producers plan arrangements with it, DJs time sets, and film composers hit exact timecodes.
A calculated duration differs from a stopwatch measurement in one useful way: it is deterministic — the same three inputs always produce the same duration, because tempo and meter define time mathematically. That makes it the planning tool to reach for before the music exists.
This calculator turns three inputs into total beats, then converts beats to seconds with one division. The exact method running in the widget above:
BPM here means quarter-note beats per minute — the standard metronome convention. When the DAW tempo reads 128, enter 128.
The complete formula, with units made explicit:
duration (seconds) = (bars × beats per bar ÷ BPM) × 60
Worked example — the classic club track: 128 bars, 4/4 time, 128 BPM.
Second example — a waltz: 64 bars, 3/4 time, 90 BPM → 64 × 3 = 192 beats → 192 ÷ 90 × 60 = 128 seconds (2:08). Same bar count as a 4/4 track, 25% shorter — the time signature does real work in the formula.
Each readout answers a different production question:
| Readout | What it means | Use it for |
|---|---|---|
| Total song length | Minutes and seconds of music. | Set planning, radio-edit targets, arrangement checks. |
| Total exact seconds | Duration to two decimals. | Video sync, podcast timing, cue sheets. |
| Total beats | Every beat in the piece. | Sanity-checking the math; loop math. |
| Milliseconds | Sample-accurate duration. | Tempo-synced delays, reverb pre-delay, editing. |
| Seconds per bar | One bar's duration. | Timing drops, fills, and transitions by ear. |
| Bars per minute | Arrangement density. | Estimating how fast an arrangement "moves." |
A 128-bar arrangement at 128 BPM in 4/4 lasts exactly 240.0 seconds — four minutes on the nose. That arithmetic is why the "standard club track" converged on those numbers: DJs plan sets by the minute, and radio edits (usually 96 bars ≈ 3:00 at 128 BPM) fall out of the same math.
| Genre template | Bars | BPM | Length |
|---|---|---|---|
| House / techno (standard) | 128 | 128 | 4:00 |
| House / techno (extended) | 192 | 128 | 6:00 |
| Pop radio edit | 96 | 128 | 3:00 |
| Hip-hop (16-bar verses) | 80 | 90 | 3:33 |
| Drum & bass | 128 | 174 | 2:57 |
When an arrangement must hit a target length, work the formula backwards: bars needed = (target seconds × BPM) ÷ (60 × beats per bar).
In 6/8 time, musicians feel two beats per bar (two dotted-quarter notes), while this calculator counts six eighth-note beats per bar. Both counts are correct — they slice the bar differently — and mixing them up doubles or triples the answer.
Practical rule: when the metronome clicks twice per bar on a 6/8 groove and reads 60 BPM, the eighth-note pulse is 180 BPM. Enter 6 beats per bar at 180 BPM (not 2 beats at 60), and the duration comes out right. Count the clicks actually heard and match the BPM to that pulse.
Tempo-synced delay and reverb times come straight from the milliseconds-per-bar readout. A quarter-note delay at 128 BPM is 468.75 ms; a dotted-eighth is 351.56 ms. Dial those numbers into any delay plugin for echoes that sit exactly on the grid.
| Tempo | Quarter note | Dotted eighth | One bar (4/4) |
|---|---|---|---|
| 100 BPM | 600 ms | 450 ms | 2,400 ms |
| 120 BPM | 500 ms | 375 ms | 2,000 ms |
| 128 BPM | 468.75 ms | 351.56 ms | 1,875 ms |
| 140 BPM | 428.57 ms | 321.43 ms | 1,714 ms |
For the full subdivision chart (triplets, 16ths, dotted values), use the dedicated BPM to milliseconds tool.
Set arithmetic starts with average track length. A 60-minute set of 4-minute tracks needs about 15 tracks — but DJs mix out before the outro, so budget roughly 2.5–3 minutes of audible time per track: 20–24 tracks per hour for long-blend genres.
Workflow: calculate each candidate track's length here, sum them, then subtract the planned overlap (typically 32 bars ≈ 1 minute per transition at 128 BPM). For the full calculation with transitions and energy curve, use the DJ set length calculator.
Film cues work backwards from a hit point. A reveal at 47.5 seconds with tempo 100 BPM in 4/4 needs bars = (47.5 × 100) ÷ (60 × 4) = 19.79 bars. Write 20 bars (48.0 s) and trim the half-second, or nudge tempo to 101 BPM so a whole bar count lands on the hit.
This bar-exact thinking builds tempo maps: each cue's duration locks before a note is written, so the climax downbeat lands on the cut. Rehearse the target tempo with the online metronome before recording.
| Method | How it works | Best for | Watch out for |
|---|---|---|---|
| This calculator | Exact formula from BPM, meter, bars | Planning before music exists; quick checks | Assumes constant tempo |
| DAW timeline | Measures the actual arrangement | Finished projects with automation | Only works after composing |
| Mental math | Bars ÷ bars-per-minute | On-stage estimates | Error-prone under pressure |
| Tap tempo + stopwatch | Measures a real performance | Live bands with tempo drift | Measures one take, not the composition |
Durations here come from tempo, meter, and bar count at a constant tempo. Real performances with tempo changes, pickups, or vamps will differ — confirm against the DAW or a stopwatch for critical timing.