3D Shapes Volume & Area Calculator

Volume and surface area for spheres, cylinders, cones, frustums, and pyramids and prisms with a triangular, rectangular or hexagonal base. Results update as you type.

Formulas, examples and FAQ for each shape

Every shape has its own page with the formulas explained, a worked example and answers to common questions:

How to use the 3D shape calculator

Pick a shape (for a pyramid, prism or frustum, also its base), enter its dimensions and choose a unit. The volume and surface area update as you type, together with extra values such as slant height or space diagonal. Open Show steps to see each formula with your numbers filled in.

3D shape formulas

ShapeVolumeSurface area
Sphere V = 4/3 · π · r³ A = 4 · π · r²
Cylinder V = π · r² · h A = 2 · π · r · (r + h)
Cone V = 1/3 · π · r² · h A = π · r · (r + √(r² + h²))
Triangular pyramid V = √3/12 · a² · h A = √3/4 · a² + 3/2 · a · √(a²/12 + h²)
Rectangular pyramid V = 1/3 · a · b · h A = a·b + a·√((b/2)² + h²) + b·√((a/2)² + h²)
Hexagonal pyramid V = √3/2 · a² · h A = 3·√3/2 · a² + 3 · a · √(3/4 · a² + h²)
Triangular prism V = √3/4 · a² · h A = √3/2 · a² + 3 · a · h
Rectangular prism V = w · l · h A = 2 · (w·l + w·h + l·h)
Hexagonal prism V = 3·√3/2 · a² · h A = 3·√3 · a² + 6 · a · h
Cone frustum V = π · h/3 · (R² + R·r + r²) A = π · (R² + r² + (R + r) · √(h² + (R − r)²))
Square frustum V = h/3 · (a² + a·b + b²) A = a² + b² + 2 · (a + b) · √(h² + ((a − b)/2)²)

Here r is the radius and h the height. For triangular and hexagonal shapes, a is the edge of the base (an equilateral triangle or a regular hexagon). For the rectangular pyramid, a and b are the sides of the base, and for the rectangular prism w, l and h are its width, length and height. For frustums, R and r are the bottom and top radii, and a and b the bottom and top base edges. Volume is in cubic units (cm³, m³ …) and surface area in square units (cm², m² …).