Guide
Volume and surface area of twelve solids, in liters and gallons
Volume tells you how much a container holds, how much material a part needs or how much concrete a footing takes, and surface area tells you how much paint, wrap or insulation covers it. This calculator handles twelve common solids, asks only for the dimensions each one needs, and returns volume, surface area and the lengths that go with them, plus the volume as liters, US gallons and cubic meters.
The shapes and their formulas
Cube: V = a³, surface 6a². Cuboid: V = abc, surface 2(ab + bc + ac). Sphere: V = 4⁄3 πr³, surface 4πr². Hemisphere: half the sphere with a flat base, V = ⅔πr³, surface 3πr². Cylinder: V = πr²h, lateral 2πrh. Cone: V = ⅓πr²h with slant height √(r² + h²). Frustum: V = πh(r₁² + r₁r₂ + r₂²)/3. Rectangular pyramid: V = abh/3. Triangular prism: base area × length. Torus: V = 2π²Rr², surface 4π²Rr. Capsule: a cylinder with a hemisphere at each end.
Using the calculator
Choose the Shape and the Unit of length (millimeters, centimeters, meters, inches or feet), then fill in the dimensions that appear. The page opens on a cylinder with radius 3 and height 10 in centimeters and gives the volume 282.7433388 cm³, total surface 245.044227 cm², lateral surface 188.4955592 cm², base area 28.27433388 cm², and the capacity 0.28274334 liters, 0.074692888 US gallons and 0.000282743339 cubic meters. Sample chips load five examples.
The extra rows
Each shape adds the length that matters for it: the space diagonal and face diagonal of a cube, the space diagonal of a box, the great-circle circumference of a sphere, the slant height of a cone or frustum, the slant heights of a pyramid’s two pairs of faces, the base area and perimeter of a prism, the tube circumference of a torus and the overall length of a capsule. They save a second calculation when you are cutting material or checking that something fits.
Liters and gallons
The volume in your unit is converted by cubing the unit size: one cubic meter is 1,000 liters, and one US gallon is 3.785411784 liters. A 1.2 m cube holds 1.728 m³ = 1,728 liters = 456.5 US gallons, which is the water tank sample. The imperial gallon is not used here; divide liters by 4.54609 if you need it. For other volume units, use the converters linked below.
Worked examples
A sphere of radius 6 cm has volume 904.7786842 cm³, surface 452.3893421 cm² and a great-circle circumference of 37.69911184 cm. A cone of radius 3 and height 4 has slant height 5, volume 37.69911184, lateral area 47.1238898 and total area 75.39822369. A 2 × 3 × 4 m box has 24 m³, a surface of 52 m² and a space diagonal of 5.385164807 m, enough to know whether a 5.3 m pole fits inside. A 6 × 6 base pyramid of height 4 has volume 48 and surface 96.
Dimension names and the frustum
The labels change with the shape so that each dimension is unambiguous: the torus asks for the ring radius R measured to the centre of the tube and the tube radius r, the frustum for bottom and top radii, and the capsule for the end radius and the cylinder length between the ends. For a frustum with equal radii the page asks you to choose the cylinder instead. Radius and height must be positive numbers.
Limits
The shapes are solid and regular. Hollow parts, such as a pipe wall, must be found as the difference of two volumes, and irregular objects must be split into pieces. The surface area of a general ellipsoid has no closed form, so the tool uses Knud Thomsen’s formula with p = 1.6075, accurate to about 1%; its volume is exact, and with equal axes it reproduces the sphere. Results are in the unit you choose, cubed or squared.
Related tools
- Circle Calculator works out the base of a cylinder or cone before you stack it.
- Triangle Calculator finds the triangular base of a prism or the slant of a roof.
- Liters to Gallons converts the capacity into imperial and US gallons.
- Square Meters to Square Feet converts the surface area for materials.
Checked against the current version of the Volume Calculator on .

