What this calculator does
A song length calculator turns three numbers a songwriter or producer already has on hand, tempo, time signature and bar count, into an estimated running time. It is the same arithmetic used when blocking out a track in a DAW before a single note is recorded: how many bars a section will take at a given tempo, or how many bars fit into a target running time.
The calculation assumes a constant tempo throughout, which is true for most electronic, pop and dance productions but not for pieces with deliberate tempo changes, rubato, or a slow intro and faster outro. For a track built on a single fixed tempo and time signature, the estimate is exact; for anything with tempo changes, treat it as a per-section figure instead.
The formula
Multiply the number of bars by the beats in each bar to get the total beat count, then divide by the tempo in beats per minute to get the length in minutes. Beats per bar comes from the time signature: a 4/4 track has 4 beats per bar, a 3/4 waltz has 3, and so on.
| Term | Meaning |
|---|---|
| BPM | Beats per minute, the tempo the track is set to. |
| Beats per bar | The top number of the time signature: 4 for common 4/4 time, 3 for 3/4 time, and so on. |
| Bars | The total number of bars in the song, or the section being timed. |
The inputs explained
| Field | What to enter |
|---|---|
| Tempo (BPM) | The tempo of the track, in beats per minute. |
| Beats per bar | Beats in each bar, taken from the time signature (4 for 4/4 time, 3 for 3/4 time). |
| Number of bars | The total number of bars to time, whether that is a whole song or one section. |
When to use it
Planning a track to a target length
Working backwards from a target running time and a chosen tempo gives the number of bars needed, useful when a track needs to fit a fixed slot such as a radio edit or a sync placement.
Timing a section rather than a whole song
Entering just the bar count for a verse, chorus or bridge gives that section’s length on its own, which is useful when structuring a song around specific section lengths.
Comparing how tempo changes affect length
The same bar count at a slower tempo runs noticeably longer; this shows by how much before a tempo decision is locked in.
Worked examples
Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.
How length changes with tempo, at a fixed bar count
A fixed 64-bar, 4/4 song, at a range of tempos.
| Tempo | Estimated song length | Length in seconds |
|---|---|---|
| 80 BPM | 3:12 | 192.0 s |
| 100 BPM | 2:34 | 153.6 s |
| 120 BPM | 2:08 | 128.0 s |
| 128 BPM | 2:00 | 120.0 s |
| 140 BPM | 1:50 | 109.7 s |
| 160 BPM | 1:36 | 96.0 s |
How length changes with bar count, at a fixed tempo
A fixed tempo of 128 BPM in 4/4 time, across a range of bar counts.
| Bars | Estimated song length | Length in seconds |
|---|---|---|
| 16 | 0:30 | 30.0 s |
| 32 | 1:00 | 60.0 s |
| 48 | 1:30 | 90.0 s |
| 64 | 2:00 | 120.0 s |
| 96 | 3:00 | 180.0 s |
| 128 | 4:00 | 240.0 s |
Questions
Does this work for songs with a tempo change partway through?
Not directly for the whole song. Run the calculator once per section, using each section’s own tempo and bar count, then add the resulting lengths together for a total.
How do I know the beats per bar for my song?
It comes from the time signature: 4/4 (the most common) has 4 beats per bar, 3/4 (a waltz feel) has 3, and 6/8 is usually counted as 2 or 6 depending on how the beat is felt. Use whichever beat count matches how the tempo was set.
Why is my actual track slightly longer than the estimate?
The calculator times the musical bars only. A count-in, a fade-out tail, or silence added before or after the arrangement in the final mix will add extra seconds the bar count alone does not capture.
Can I use this to work out how many bars fit a target running time?
Yes: rearranging the same formula, bars = (target minutes × BPM) ÷ beats per bar. Try different bar counts in the calculator until the estimated length matches the target you need.
To work out how long a single note lasts at a given tempo rather than a whole song, see the music note duration calculator. To turn a timed beat count into a tempo figure, use the BPM calculator.