Source: https://goodhandover.co.uk/tools/convolution-calculator/

[Computer science maths](https://goodhandover.co.uk/tools/computer-science-maths/#year-3) / Year 3

🔒 Files never leave your device

# Discrete convolution calculator

Convolve two finite sequences using linear or circular boundary conditions. Your inputs stay on your device.

## Set up your task

Ready. Processing stays in this browser.

Files and text stay on your device. [Privacy details](https://goodhandover.co.uk/privacy/).

 

## How to use Discrete convolution calculator

Convolve two finite sequences using linear or circular boundary conditions. The pre-filled problem gives you a worked starting point. Compare the response with your own working before trying the self-check below.

 

- Check the example inputs: First sequence, Second sequence, Boundary condition.

- Change the inputs for your problem. Results update as you type, so finish entering the values before copying an answer.

- Use the working to check an intermediate value or assumption. Then change the example as suggested in the self-check and compare the result.

 

## Supported inputs and limits

Use up to 64 values per sequence. Circular mode requires equal lengths and wraps the output index.

 

## How it works

Discrete convolution combines values whose input indices sum to an output index. It appears in signal filtering when one sequence describes the signal and the other describes the filter. The output at any point is a weighted sum of shifted copies, with the boundary rule determining which indices contribute.

Linear mode uses zero outside the supplied finite sequences and produces the sum of their lengths minus one values. Circular mode treats the sequences as periodic. In that mode, contributions whose indices go past the final position wrap around and are added at the beginning.

 

## Example

Run the pre-filled example. Its first result is “Convolution: 1  3  5  3”.

First sequence

1 2 3

Second sequence

1 1

Boundary condition

Linear (zero outside inputs)

Convolution: 1  3  5  3
Output length: 4
Values outside the sequences are zero.

 

## Questions about Discrete convolution calculator

### Why do the boundary conditions matter?

The same products can land in different output positions. A circular calculation folds every out-of-range index back into the finite sequence.

### How does this differ from correlation?

Correlation slides one sequence against the other with a different reversal and conjugation convention. This calculator uses the index-sum definition of convolution for real data.

### Convolve 1 2 3 with 1 in linear mode.

The output is 1 2 3. A single one at index zero is an impulse that leaves the sequence unchanged.

 
 

## Related tools

[Year 3: Advanced and applied maths](https://goodhandover.co.uk/tools/computer-science-maths/#year-3)

- [Discrete Fourier transform calculator](https://goodhandover.co.uk/tools/dft-calculator/)

- [Newton–Raphson calculator](https://goodhandover.co.uk/tools/newton-raphson-calculator/)

- [2 × 2 eigenvalue calculator](https://goodhandover.co.uk/tools/eigenvalue-calculator/)

- [Gradient descent calculator](https://goodhandover.co.uk/tools/gradient-descent-calculator/)

 

Last updated 24 November 2026
