Last updated: October 31, 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. Plan arrangements, DJ sets, and film cues 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 tells you exactly how long the music lasts in minutes, seconds, and milliseconds. Producers use it to plan arrangements, DJs use it to time sets, and film composers use it to hit exact timecodes.
Unlike a stopwatch measurement, the calculation is deterministic — the same three inputs always give the same duration, because tempo and meter define time mathematically. That makes it the planning tool you reach for before the music exists.
This calculator turns your 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. If your DAW's 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, but 25% shorter — the time signature is doing 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. This is why the "standard club track" converged on those numbers: the math is clean, DJs can plan sets by the minute, and radio edits (usually 96 bars ≈ 3:00 at 128 BPM) fall out of the same arithmetic.
| 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 |
If your 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), but this calculator counts six eighth-note beats per bar. Both are correct — they just slice the bar differently — and mixing them up doubles or triples your answer.
Practical rule: if your 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 in the calculator (not 2 beats at 60), and the duration comes out right. When in doubt, count the clicks you actually hear 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 our 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, which means 20–24 tracks per hour for long-blend genres.
Workflow: calculate each candidate track's length with this tool, sum them, then subtract your planned overlap (typically 32 bars ≈ 1 minute per transition at 128 BPM). For the full calculation including transitions and energy curve, use our DJ set length calculator.
Film cues work backwards from a hit point. Suppose a reveal lands at 47.5 seconds and your tempo is 100 BPM in 4/4: bars needed = (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 for 20.0 bars.
This bar-exact thinking is also how tempo maps are built: each cue's duration is locked before a note is written, so the downbeat of the climax lands on the cut. Practice the target tempo with our 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 are calculated from tempo, meter, and bar count assuming a constant tempo. Real performances with tempo changes, pickups, or vamps will differ — always confirm against your DAW or a stopwatch for critical timing.