How to calculate
Multiply the height by one third of the sum of the two base areas and their geometric mean. The top and bottom are parallel, similar regular polygons.
Worked example
Enter Shape of the base Square · Bottom side 4 · Top side 2 · Perpendicular height 3. The result is 28 cubic units.
Units and assumptions
Use one consistent length unit. The result uses that same unit for lengths, its square for areas, and its cube for volumes.
OpenStax volume and surface area