Average Pool Output Calculator
Calculate the output feature map size after an average pooling operation.
About Average Pool Output Calculator
Average pooling computes the mean value within each pooling window, providing smoother downsampling than max pooling. The output size formula is identical to max pooling: floor((input + 2×padding − pool_size) / stride) + 1.
Formula
Avg Pool Output
output = floor((input + 2*padding - pool_size) / stride) + 1
- pool_size
- Size of the averaging window
Worked example
With the default values below, Average Pool Output Calculator returns Output Size of 16. Change any input above and every figure here is recalculated in your browser.
Inputs used
- Input Size (H or W)minimum 1
- 32
- Pool Sizeminimum 1
- 2
- Strideminimum 1
- 2
- Paddingminimum 0
- 0
Results
- Output Size
- 16
Step by step
- 1Output = floor((input + 2×pad − pool) / stride) + 1= 16
Assumptions and limits
- The result is derived only from the 4 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to whole numbers, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
When is average pooling preferred?
Average pooling is preferred for global aggregation (Global Average Pooling before classifiers), in tasks where all feature values contribute (not just peaks), and in some GAN architectures.
What is Global Average Pooling?
GAP uses pool_size equal to the spatial dimension, collapsing each channel to a single number. It replaces fully connected layers at the end of CNNs, reducing overfitting.
Related Calculators
You might also need
- Max Pool Output CalculatorCommonly used together
- CNN Output Shape CalculatorCommonly used together
- CNN Parameter Count CalculatorCommonly used together
- ConvTranspose Output CalculatorAlso in Neural Networks
- Trainable Parameters CalculatorAlso in Neural Networks
- Dense Layer Parameters CalculatorAlso in Neural Networks
