How to Use the Loop Length Calculator
- Enter BPMType the loop’s quarter-note BPM.
- Enter barsUse a whole or fractional bar count.
- Set the numeratorSelect the time-signature top number.
- Set the beat unitChoose the time-signature denominator.
- Select sample rateChoose 44.1, 48, or 96 kHz.
- CalculateReview the loop duration, quarter-note beats, and samples.
The calculator supports decimal BPM values and fractional bar counts.
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 ÷ denominatorTotal quarter-note beats
bars × quarter-note beats per barLoop duration
seconds = total quarter-note beats × 60 ÷ BPMComplete duration formula
seconds = bars × numerator × 4 ÷ denominator × 60 ÷ BPMSamples per channel
seconds × sample rate44.1 kHz
44,100 samples per second
48 kHz
48,000 samples per second
96 kHz
96,000 samples per second
Loop-Length Example
Calculate four bars of 4/4 at 120 BPM using a 44.1 kHz sample rate.
Find quarter-note beats per bar
4 × 4 ÷ 4 = 4 beatsFind the total beat count
4 bars × 4 beats = 16 quarter-note beatsCalculate the duration
16 × 60 ÷ 120 = 8 secondsCalculate the samples
8 × 44,100 = 352,800 samples per channelFour bars of 4/4 at 120 BPM last 8 seconds and contain 352,800 samples per channel at 44.1 kHz.
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.
Four bars of 4/4 last 8 seconds. Four bars of 6/8 last 6 seconds. This difference matters in compound time signatures.
Quick Loop-Length Reference
Calculations below use a sample rate of 44.1 kHz.
| BPM | Bars | Time signature | Quarter-note beats | Duration | Samples per channel |
|---|---|---|---|---|---|
| 120 | 4 | 4/4 | 16 | 8 seconds | 352,800 |
| 120 | 4 | 6/8 | 12 | 6 seconds | 264,600 |
| 100 | 8 | 4/4 | 32 | 19.2 seconds | 846,720 |
| 140 | 4 | 3/4 | 12 | 5.143 seconds | 226,800 |
What the Results Mean
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.
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.
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.
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.
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.