Math Last updated: July 2026

Convolution Calculator

The Convolution Calculator computes the discrete convolution of two sequences. Convolution is a fundamental operation in signal processing, probability, and mathematics that combines two functions to produce a third.

How to Use the Convolution Calculator

Interactive calculator available after JavaScript loads.

Loading calculator...

Written by Calculator Archive Team

Math & Finance Experts — Verified Formulas, Peer-Reviewed Sources, Expert Analysis

Looking for a deeper explanation?

Read our comprehensive, peer-reviewed educational article in our Blog to learn the underlying math, formulas, and step-by-step examples.

Read Blog Guide ›

Mathematical Formula & Logic

(x * y)[n] = Σ x[k] × y[n-k] for all valid k
Variable Glossary
x[n] The input sequence
y[n] The kernel (filter) sequence
(x * y)[n] The convolution result at index n
Σ Summation over all valid indices k

Step-by-Step Worked Calculation

Scenario: Example: Convolve x = [1, 2, 3] with y = [1, 1]

Compute the discrete convolution of two finite sequences.

1

Step 1: Identify sequences: x = [1, 2, 3], y = [1, 1].

2

Step 2: Output length = len(x) + len(y) - 1 = 3 + 2 - 1 = 4.

3

Step 3: n=0: x[0]×y[0] = 1×1 = 1.

4

Step 4: n=1: x[1]×y[0] + x[0]×y[1] = 2×1 + 1×1 = 3.

5

Step 5: n=2: x[2]×y[0] + x[1]×y[1] = 3×1 + 2×1 = 5.

6

Step 6: n=3: x[2]×y[1] = 3×1 = 3.

7

Step 7: Result: [1, 3, 5, 3].

How to Use the Convolution Calculator

  1. 1. Enter the first sequence (input signal) as comma-separated values.
  2. 2. Enter the second sequence (kernel/filter) as comma-separated values.
  3. 3. Click "Calculate" to compute the convolution.
  4. 4. Review the result sequence and step-by-step computation.

What Is a Convolution Calculator?

Discrete convolution is a mathematical operation that combines two sequences to produce a third sequence. It can be thought of as a "sliding dot product" between the input and a reversed kernel.

Why This Calculation Matters

Convolution is essential in signal processing (filtering), probability (sum of random variables), image processing (blurring, edge detection), and deep learning (convolutional neural networks).

Historical Background

The convolution operation was formalized in the 18th century by mathematicians like Euler and Poisson. It became central to signal processing in the 20th century.

Common Mistakes to Avoid

  • Forgetting to reverse the kernel before sliding
  • Getting the output length wrong (should be len(x) + len(y) - 1)
  • Confusing convolution with correlation
  • Indexing errors when sequences have different lengths

Frequently Asked Questions

Complete indexable directory of answers (23 questions)

What is discrete convolution?

Discrete convolution is the sum of element-wise products of two sequences, where one sequence is reversed and slid across the other.

How is convolution different from correlation?

Convolution reverses one sequence before multiplying; correlation does not. Convolution is commutative; cross-correlation is not.

What is the output length of a convolution?

For input length M and kernel length N, the output length is M + N - 1.

What are applications of convolution?

Applications include signal filtering, image processing, probability (sum of random variables), and neural networks.

Is convolution commutative?

Yes. x * y = y * x. The order of the two sequences does not matter.

What is a convolution kernel?

The kernel (or filter) is the second sequence in convolution. It determines how the input is transformed.

How does convolution relate to multiplication?

Convolution in time domain equals multiplication in frequency domain (convolution theorem). This is used in efficient FFT-based convolution.

What is circular convolution?

Circular convolution wraps sequences around, treating them as periodic. It differs from linear convolution in output length.

Can I convolve sequences of different lengths?

Yes. The shorter sequence is treated as a kernel and slides across the longer one.

What is the computational complexity of convolution?

Direct convolution is O(M×N). FFT-based convolution is O((M+N) log(M+N)), much faster for large sequences.

How does convolution apply to images?

In image processing, 2D convolution applies a small kernel across the image to blur, sharpen, or detect edges.

What is deconvolution?

Deconvolution reverses convolution to recover the original signal from a filtered output. It is used in signal restoration and microscopy.

What is the identity element for convolution?

The discrete impulse δ = [1] is the identity: x * δ = x for any sequence x.

How is convolution used in probability?

The sum of two independent random variables has a distribution equal to the convolution of their individual distributions.

What is the convolution theorem?

The Fourier transform of a convolution equals the product of the Fourier transforms: F(x * y) = F(x) · F(y).

Can I use this for continuous functions?

This calculator handles discrete convolution. For continuous convolution, you need numerical integration.

What is a separable convolution?

A 2D convolution kernel that can be decomposed into two 1D kernels (row and column). This reduces computation from O(N²) to O(2N).

How does zero-padding affect convolution?

Zero-padding the input extends the output length and is used to implement "same" or "full" convolution modes.

What is the relationship between convolution and polynomial multiplication?

The coefficients of the product of two polynomials equal the convolution of their coefficient sequences.

How is convolution used in deep learning?

Convolutional neural networks (CNNs) learn filter kernels that detect features in images, text, and other data.

What mathematical formula does the Convolution Calculator use?

The Convolution Calculator uses standard mathematical formulas validated against authoritative references. The specific formula is displayed in the calculator interface with a detailed explanation of each variable.

How can I verify the Convolution Calculator results manually?

Each calculator includes a step-by-step worked example showing exactly how the formula is applied. You can follow these steps with pen and paper to verify any result.

What types of inputs does the Convolution Calculator accept?

The Convolution Calculator accepts numeric inputs including integers and decimals. Invalid inputs (letters, special characters) are rejected with clear error messages.