Part of the AI & Machine Learning suite · 24 calculators

Convolution Output Size Calculator

The output size of a convolutional layer from its kernel, stride, padding and dilation — repeated through a stack — with the receptive field each layer sees and the parameters it holds.

Each convolution shrinks or keeps its input by one formula: floor((n + 2p − d(k − 1) − 1) / s) + 1.

Results update as you type
Results
Output size after the stack (px)
14
Size after each layer
Output of the first layer (px)
Receptive field after the stack (px)
Total downsampling factor
Parameters in the stack
Parameters in the first layer
Output activations per image (final layer)
Reading
Reviewed September 2026. Model arithmetic is the same everywhere: the same formulas in every market, in your own currency. The NIST framework is voluntary guidance; it does not prescribe cost or sizing methods.
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About convolution output size

How the convolution output size calculator works

Each convolution shrinks or keeps its input by one formula: floor((n + 2p − d(k − 1) − 1) / s) + 1. Padding of (k − 1)/2 with stride 1 keeps the size; stride 2 halves it. Stacking layers grows the receptive field — the patch of the original image a single output pixel depends on — and it grows faster once strides accumulate.

The parameter count is where memory goes: kernel area times input channels times output channels, plus a bias per output channel.

Formula: out = ⌊(n + 2p − d(k−1) − 1) / s⌋ + 1; RF_L = RF_{L−1} + d(k−1) × Π strides before L; params = k² C_in C_out + C_out

Worked examples

InputsOutput size after the stack (px)Note
Four stride-2 layers on 2241414 px, receptive field 31
Same-size convolutions224size kept, RF 7
Dilated224RF grows faster

Frequently asked questions

How do I calculate a convolution's output size?

Floor of (input + 2 × padding − dilation × (kernel − 1) − 1) over stride, plus one. Same for height and width; this page assumes a square input.

What padding keeps the size?

(kernel − 1) / 2 with stride 1 — one pixel for a 3 × 3 kernel, three for a 7 × 7. Frameworks call it "same" padding.

What is the receptive field?

The region of the original input that one output value depends on. It grows by (kernel − 1) times the product of all earlier strides at each layer, which is why strided layers expand it fast.

What does dilation do?

It spreads the kernel's taps apart, so a 3 × 3 kernel with dilation 2 covers a 5 × 5 area with nine parameters — a cheap way to grow the receptive field.

Where do the parameters come from?

Each output channel has one kernel per input channel plus a bias: kernel area × C_in × C_out + C_out. Channels dominate; a 3 × 3 layer from 256 to 256 channels is 590k parameters.

Where these figures come from

Last checked: September 2026. The relationships here are architectural, not vendor-specific: bytes per parameter follow the numeric format, KV-cache size follows the transformer definition, and token-per-word ratios come from published tokeniser behaviour.