Free browser tool · Local processing

Loop Length Calculator: Duration, Beats and Samples

Calculate the exact duration, quarter-note beat count, and samples per channel of a musical loop. Enter the quarter-note BPM, number of bars, time signature, and sample rate to get an instant result.

The calculation runs locally in your browser. No account, audio upload, or installation is required.

ResultEnter values to calculate
01 · Define the loop

How to Use the Loop Length Calculator

  1. Enter BPMType the loop’s quarter-note BPM.
  2. Enter barsUse a whole or fractional bar count.
  3. Set the numeratorSelect the time-signature top number.
  4. Set the beat unitChoose the time-signature denominator.
  5. Select sample rateChoose 44.1, 48, or 96 kHz.
  6. CalculateReview the loop duration, quarter-note beats, and samples.

The calculator supports decimal BPM values and fractional bar counts.

02 · Calculation method

Loop Length Formula

Because the BPM value represents quarter notes, the time-signature denominator must be included in the calculation.

Quarter-note beats per bar

numerator × 4 ÷ denominator

Total quarter-note beats

bars × quarter-note beats per bar

Loop duration

seconds = total quarter-note beats × 60 ÷ BPM

Complete duration formula

seconds = bars × numerator × 4 ÷ denominator × 60 ÷ BPM

Samples per channel

seconds × sample rate
44.1

44.1 kHz

44,100 samples per second

48

48 kHz

48,000 samples per second

96

96 kHz

96,000 samples per second

03 · Worked example

Loop-Length Example

Calculate four bars of 4/4 at 120 BPM using a 44.1 kHz sample rate.

1

Find quarter-note beats per bar

4 × 4 ÷ 4 = 4 beats
2

Find the total beat count

4 bars × 4 beats = 16 quarter-note beats
3

Calculate the duration

16 × 60 ÷ 120 = 8 seconds
4

Calculate the samples

8 × 44,100 = 352,800 samples per channel

Four bars of 4/4 at 120 BPM last 8 seconds and contain 352,800 samples per channel at 44.1 kHz.

04 · Time-signature accuracy

Why the Time-Signature Denominator Matters

The top number alone does not determine loop length. The bottom number identifies the note value represented by each beat in the bar.

  • One bar of 4/4 contains four quarter-note durations.
  • One bar of 6/8 contains three quarter-note durations.
At 120 quarter-note BPM

Four bars of 4/4 last 8 seconds. Four bars of 6/8 last 6 seconds. This difference matters in compound time signatures.

05 · Quick reference

Quick Loop-Length Reference

Calculations below use a sample rate of 44.1 kHz.

BPMBarsTime signatureQuarter-note beatsDurationSamples per channel
12044/4168 seconds352,800
12046/8126 seconds264,600
10084/43219.2 seconds846,720
14043/4125.143 seconds226,800
06 · Read the output

What the Results Mean

s

Loop duration

The total playing time of the selected number of bars.

Quarter-note beats

The number of quarter-note durations in the complete loop.

#

Samples per channel

The number of digital audio samples in one channel at the selected sample rate.

For a stereo file, each channel contains the displayed number of samples. The result is not the combined sample count of both channels.

Timing is only one part

Accurate Length Does Not Guarantee a Click-Free Loop

A mathematically correct loop may still click or sound uneven when repeated. Common causes include:

  • A waveform discontinuity at the loop boundary.
  • A first transient that starts late.
  • Silence before the first audible sound.
  • A reverb or delay tail cut at the end.

Align the audio to the grid, inspect the start and end boundaries, and audition several repetitions. The calculator determines timing and sample count; it does not edit or repair audio.

07 · Practical workflows

When to Use This Calculator

  • Preparing drum and instrumental loops.
  • Setting exact recording or export lengths.
  • Checking loop regions in a DAW.
  • Calculating samples for audio programming.
  • Planning game-audio and sound-design loops.
  • Matching a loop to a BPM and time signature.
08 · Before using the result

Important Notes

  • BPM is interpreted as quarter-note BPM.
  • The time signature changes the quarter-note durations per bar.
  • Sample counts are calculated separately for each channel.
  • A calculated sample count may need rounding to a whole sample.
  • Some DAWs use dotted-quarter BPM for compound meters such as 6/8.
  • Confirm the intended BPM beat unit before using the result.
09 · Common questions

Frequently Asked Questions

How do I calculate the length of a loop?

Multiply the bars by the quarter-note beats per bar, then multiply by 60 and divide by BPM. Include the time-signature denominator when converting each bar into quarter-note durations.

How long are four bars at 120 BPM?

Four bars of 4/4 at 120 BPM last 8 seconds. The result changes when a different time signature is selected.

How many samples are in an eight-second loop?

At 44.1 kHz, an eight-second loop contains 352,800 samples per channel. At 48 kHz, it contains 384,000 samples per channel.

Does the time signature affect loop duration?

Yes. The numerator and denominator determine how many quarter-note durations are contained in each bar.

What does samples per channel mean?

It is the number of digital samples contained in one audio channel. A stereo file has separate left and right channels.

Can I enter decimal BPM values?

Yes. The calculator accepts decimal tempo values between 20 and 400 BPM.

Can I calculate fractional bars?

Yes. Fractional bar values can be used for partial measures, unusual loop regions, and precise audio segments.

Why does my loop click when its duration is correct?

The audio may not cross the loop boundary smoothly, or a transient, reverb tail, or silence may be misaligned. Inspect and audition the actual waveform before exporting the loop.

About the author

Tap Tempo Calculator Editorial Team

Our editorial team creates and reviews practical music-timing tools for musicians, producers, DJs and educators.

We separate reproducible arithmetic from musical judgment, document assumptions and cite primary technical references where available.

About the team · Editorial and correction policy · Report an issue