How many complete windows fit?
Consider one discrete axis with symmetric padding. All parameters are integer counts; N,k,s,d are positive and p is nonnegative. The effective kernel must fit completely within N+2p positions. This is ordinary convolution or cross-correlation geometry, not transposed convolution.[1]
Understand the calculation
- A kernel with k entries and dilation d spans Keff=d(k−1)+1 discrete positions.
- Symmetric padding adds p positions at each end, giving total length N+2p.
- The first complete kernel needs Keff positions. Further starts advance by s positions each.
- Count only fully fitting starts: floor the quotient and include the initial start with +1. If N+2p<Keff, this model has no valid output.
Effective kernel width and one-axis output size[1]
Visualize the learning idea
Five valid windows, not a rounded estimate
Free with a Quanta account. Your download stays ready after registration.
Two fully checked examples
Padding and stride
- Given
- N=10,k=3,p=1,s=2,d=1.
- Find
- Find one-axis output length.
Find effective kernel width first.
Count all fully fitting starting positions.
Result: Five output values. Floor is required; do not round up to six.
Check: Starts are −1,1,3,5,7. Another start at 9 would extend to 11, beyond right padding at 10.
Dilation across two spatial axes
- Given
- Input H=12,W=15; k=3,d=2,p=0,s=2 on both axes.
- Find
- Find Hoᵤt and Woᵤt without assuming channel count.
Three kernel entries spaced two apart span five positions.
Apply the same expression to both lengths.
Result: Spatial output shape is 4×6. Output channels are separately specified by filter count.
Check: Height starts are 0,2,4,6; width starts are 0,2,4,6,8,10. Last effective kernels end at 10 and 14 respectively.
Recall the method later with the formula’s flashcards.
11 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Interpret the quantities
All quantities count discrete positions and are dimensionless. Dilation changes the span, not the k weight count. In two dimensions, calculate height and width separately. Output channel count is a separate architecture choice.[1]
Here N means spatial length along one axis, not batch size N in a library’s tensor notation. N,k,p and s count grid positions or kernel entries; d is an integer spacing multiplier. These counts have no physical length unit. The Keff mode uses only k and d and does not yet decide whether that kernel fits a particular input; the output mode checks that using N,p and s.
Five solved exercises
Calculate · Foundation
For N=7,k=3,p=0,s=1,d=1, what is O?
Show hint
The first window starts at index 0.
Learning goal: Count every valid window.
Show solution and calculation
Keff=3; O=floor((7−3)/1)+1=5.
Starts 0,1,2,3,4 fit.
Rearrange · Application
For s=1,d=1,k=5, require O=N. Which symmetric p works?
Show hint
Set O=N in the remainder-free expression.
Learning goal: Preserve size under explicit assumptions.
Show solution and calculation
N=N+2p−5+1, so 2p=4 and p=2.
This simple rule here assumes odd k, stride 1 and dilation 1.
Interpret · Foundation
A kernel has k=3,d=3. How many values does it use, and how far does it span?
Show hint
Dilation changes spacing, not the count of kernel entries.
Learning goal: Separate kernel-entry count from effective span.
Show solution and calculation
It uses three values at relative positions 0,3,6 and spans Keff=7 positions.
It does not learn seven independent weights.
Error analysis · Application
For N=10,k=3,p=1,s=2,d=1, someone rounds 4.5 to 5 and adds 1, obtaining O=6.
Show hint
Does the last proposed window fit completely?
Learning goal: Explain flooring as a geometric condition.
Show solution and calculation
No. floor(4.5)=4, giving O=5.
Rounding up would count an extra incomplete placement.
Transfer · Challenge
For N=4,k=3,d=2,p=0,s=1, why does the calculator reject an output?
Show hint
Compare N+2p with effective kernel width.
Learning goal: Detect invalid geometry before reporting a result.
Show solution and calculation
Keff=5>N+2p=4.
Not even one complete placement fits.
This model does not report a zero or negative tensor dimension as a valid convolution.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Limits and connections
The discrete Fourier transform can support efficient convolution computation, but finite sequences require distinguishing circular from linear convolution. Output geometry here comes from explicit window placements and requires no Fourier transform.
Sources for this explanation
Quanta · Updated November 21, 2026
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Expanded explicit convolution geometry with valid window placements, a size calculator and a two-axis example.
Cite this reference page
Quanta. Convolution output dimension. Updated November 21, 2026. https://quanta-study.de/en/formula-sheet/faltungsoutput-dimension
When citing a specific scientific statement, also cite the specialist source linked to that statement.