Volume and surface area calculator

Find volumes and total surface areas of prisms, cylinders, spheres, cones, and pyramids.

Use the same length unit throughout. Results use its square or cube.

Assumptions & limits

Use the same unit for every length, from 10⁻⁹ to 10⁹. All dimensions must be positive. Cylinder and cone are right circular solids; the square pyramid has its apex above the center. Height is perpendicular, not slant height. Surface area includes every face and base. Units³ and units² follow your chosen input unit.

YOUR ANSWER

Volume

30 units³

Total surface area
62 units²
How it’s calculatedCalculated on your device

Volume = lwh. Total surface area = 2(lw + lh + wh).

Displayed values may be rounded. Calculations keep the underlying precision.

Lengths are positive, 10⁻⁹–10⁹, in the same unit. Heights are perpendicular to the base. Surface totals include bases and all faces, without subtracting openings, walls or material thickness. The square pyramid's apex is directly above the base center.

The formula, made simple

Calculate enclosed volume and total outside surface for a rectangular prism, cube, right circular cylinder or cone, sphere, or centered square pyramid.

Prism: V = lwh, S = 2(lw + lh + wh). Cylinder: V = πr²h, S = 2πr(r + h). Sphere: V = 4πr³/3, S = 4πr². Cone: V = πr²h/3, S = πr(r + √(r² + h²)). Square pyramid: V = s²h/3, S = s² + 2s√(h² + (s/2)²).

A worked example

A box 5 × 3 × 2 cm encloses 30 cm³ and has 62 cm² of total surface. A cone with radius 3 and perpendicular height 4 has volume 12π and total surface area 24π.

A few useful answers

Does cylinder surface area include both ends?

Yes. This is a closed cylinder: its curved wall plus two circular ends. Cone and pyramid totals also include their bases.

Does this convert cubic units to liters?

No. The result uses the cube of your input unit. Use the volume converter for a separate conversion, such as cubic centimeters to liters.

Back to calculator ↑