Skip to content
Omnikalc

Receptive field calculator

Enter the number of identical convolution layers, the kernel size, the stride and a target size to get the receptive field, the jump between outputs and the layers needed to cover the target.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

px

Value out of range

Results

Receptive field

63 px

Jump between neighboring outputs
32 px
Layers needed to reach the target
7
A reasonable depth
Share of the target covered
28.1 %
Pixels missing to reach the target
161 px

The receptive field calculator gives the receptive field of a stack of identical convolution layers, the jump between neighboring outputs and the number of layers needed to cover a target size.

How the calculation works

  • Enter the number of layers, the kernel size and the stride.
  • Enter the target receptive field, for example the image size.
  • The calculator gives the receptive field, the jump, the layers needed, the share covered and the missing pixels.

Example

5 layers with 3×3 kernels and stride 2 give a field of 1 + 2 × (1 + 2 + 4 + 8 + 16) = 63 pixels, and two neighboring outputs are 32 pixels apart. To see a whole 224-pixel image, 7 such layers are needed. With stride 1, the same kernels would need about 112 layers.

Why it matters

The calculator helps students and engineers who design convolutional networks for images, audio or time series and who need to check that the model sees enough context for the task.

Good to know

The calculation assumes the same kernel and stride in every layer. For a real network, the field is built layer by layer: the field grows by (K − 1) times the jump so far, and the jump is multiplied by the stride. Dilated convolutions widen the field without losing resolution, and the dilation can replace the stride. Pooling layers act like strides. Large kernels, attention layers and global pooling give a field covering the whole input at once. For segmentation or detection, a field smaller than the objects to recognize is a warning sign. Remember that padding does not change the field size, only the borders.

The convolution layer calculator gives the output sizes, the neural network parameter count calculator covers dense layers, the pixel density calculator relates pixels to screens and the logarithm calculators help with the growth rate.

Frequently asked questions

What is a receptive field?

It is the region of the input image that can influence one unit of a layer. A single 3×3 convolution sees 3 pixels in each direction, and every extra layer widens the view, so stacked small kernels end up seeing a large area.

What is the formula for identical layers?

For L layers with kernel K and stride S, the field is 1 + (K − 1) × (1 + S + S² + … + S^(L−1)). With stride 1 it grows linearly, by K − 1 per layer, and with stride 2 it grows exponentially, which is why strided layers and pooling are efficient.

Is the effective field smaller?

Yes. Research shows that the influence inside the theoretical field is not uniform: central pixels weigh far more than the edges, so the effective receptive field is smaller, often a fraction of the theoretical one. Treat the result as an upper bound.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.