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.

Summary

Enter the lengths of two sequences and get the exact output length for linear convolution, cross-correlation, or autocorrelation.

How it works

  1. Enter the length N of the first sequence (signal or filter input).
  2. Enter the length M of the second sequence (filter impulse response or kernel).
  3. Select the operation: linear convolution, cross-correlation, or autocorrelation.
  4. The output length is computed instantly: N + M - 1 for convolution and cross-correlation, 2N - 1 for autocorrelation.
  5. The minimum zero-padded FFT size (next power of 2 at or above the output length) is shown for efficient frequency-domain processing.
  6. 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