What this calculator does
Calculate volume and surface area for a square-pyramid frustum.
How it works
The calculator evaluates V = h(a² + ab + b²) ÷ 3; lateral area = 2(a + b)ℓ. Inputs are checked before calculation, and invalid values such as zero denominators or out-of-range selections produce a clear error instead of a misleading result.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
3-
?bottomSide=Bottom square side aNumber · Required · Default: 10
-
?topSide=Top square side bNumber · Required · Default: 6
-
?height=Vertical height hNumber · Required · Default: 8
Outputs
4-
volumeVolumeNumber · Primary output
-
lateralAreaLateral areaNumber
-
surfaceAreaTotal surface areaNumber
-
slantHeightSlant heightNumber
Inputs and results
The inputs are Bottom square side a, Top square side b, Vertical height h. Results include Volume, Lateral area, Total surface area, Slant height.