How to use the calculator
Pick a solid from the list. The form then shows only the measurements that shape needs, such as radius and height for a cylinder or the three semi-axes for an ellipsoid. Fill them in and press Calculate.
The result card gives the volume and the total surface area, plus useful extras like the slant height of a cone or the space diagonal of a box. The details panel repeats the formula and walks through it with your own numbers. Keep every field in one length unit: measurements in centimeters give a volume in cubic centimeters and an area in square centimeters.
Formulas used
- Cube:
V = a³,SA = 6a² - Rectangular prism:
V = lwh,SA = 2(lw + lh + wh) - Cylinder:
V = πr²h,SA = 2πr(r + h) - Sphere:
V = (4/3)πr³,SA = 4πr² - Hemisphere:
V = (2/3)πr³,SA = 3πr²including the flat base - Cone:
V = (1/3)πr²h,SA = πr(r + s)with slant heights = √(r² + h²) - Rectangular pyramid:
V = (1/3)lwh; the four triangular faces are added to the base for the area - Triangular prism:
V = A × l, where A is the triangle area from its three sides (Heron's formula) - Capsule: a cylinder plus one full sphere,
V = πr²h + (4/3)πr³ - Ellipsoid:
V = (4/3)πabc - Frustum of a cone:
V = (1/3)πh(R² + Rr + r²)
Worked examples
Cylinder. A tank with radius 3 and height 10 holds V = π × 3² × 10 = 90π ≈ 282.7433388 cubic units. Its surface is 2π × 3 × (3 + 10) = 78π ≈ 245.044227 square units.
Cone. Radius 3 and height 4 give a slant height of √(9 + 16) = 5. The volume is (1/3) × π × 9 × 4 = 12π ≈ 37.69911184, and the surface area is π × 3 × (3 + 5) = 24π ≈ 75.39822369.
Good to know
- A cone or pyramid holds exactly one third of the cylinder or prism with the same base and height.
- Heights are perpendicular to the base. For a cone, do not enter the slant height as the height.
- The pyramid is assumed to have its tip directly above the center of the base. The volume formula also works for a tilted tip, but the surface area does not.
- An ellipsoid has no simple exact surface area formula, so the calculator uses Thomsen's approximation, which stays within about 1.1% and is exact for a sphere.
- For a capsule, the height is the straight middle part only; the total length adds one diameter.
- This tool computes a volume from a shape's measurements. To change a volume you already know from liters to gallons or similar, use the volume converter instead.