Convolution Length Calculator
Enter the lengths of two sequences and get the exact output length for linear convolution, cross-correlation, or autocorrelation.
Sequence Parameters
Enter sequence lengths and press Calculate.
Output Length
—
samples
Min FFT Size
—
next power of 2
Zero Padding
—
samples appended
Breakdown
Length Diagram
Sequence 1 (N)
—
Sequence 2 (M)
—
Output
—
FFT buffer
—
Summary
Enter the lengths of two sequences and get the exact output length for linear convolution, cross-correlation, or autocorrelation.
How it works
- Enter the length N of the first sequence (signal or filter input).
- Enter the length M of the second sequence (filter impulse response or kernel).
- Select the operation: linear convolution, cross-correlation, or autocorrelation.
- The output length is computed instantly: N + M - 1 for convolution and cross-correlation, 2N - 1 for autocorrelation.
- The minimum zero-padded FFT size (next power of 2 at or above the output length) is shown for efficient frequency-domain processing.
- The number of appended zeros needed for circular-to-linear equivalence is also displayed.
Use cases
- Determine buffer sizes when implementing FIR filters in real-time DSP systems.
- Calculate the output frame size for overlap-add or overlap-save convolution.
- Verify the expected length of a cross-correlation result in a matched-filter receiver.
- Size FFT buffers before writing convolution code to avoid off-by-one allocation errors.
- Teach or study the fundamental relationship between sequence lengths and convolution output.
- Quickly check whether a convolution output fits within a fixed-size memory block.
Frequently Asked Questions
Last updated: 2026-07-22 ·
Reviewed by Nham Vu