CompoundPage

Volume Calculator

A volume calculator that does surface area too, with the formula worked through on your numbers. When the measurements are whole numbers, it also gives the answer as a multiple of pi.

Radius for a cylinder, sphere, hemisphere, cone or capsule. Side of a cube. Length of a box or pyramid base. Triangle base of a triangular prism. Bottom radius of a frustum. First semi-axis of an ellipsoid. Outside diameter of a pipe.

Width of a box or pyramid base. Triangle height of a triangular prism. Top radius of a frustum. Second semi-axis of an ellipsoid. Inside diameter of a pipe. Not used by the other shapes.

Height of a box, cylinder, cone, pyramid or frustum. Length of a triangular prism or a pipe. Straight length between the two domes of a capsule. Third semi-axis of an ellipsoid. Not used by a cube, sphere or hemisphere.

Volume904.7787 cm³

Volume The exact answer is the form before the ≈ sign. Keep it that way until the last step if more arithmetic follows.
288π ≈ 904.7787 cm³
Formula Archimedes showed a sphere is two-thirds of the cylinder that just contains it (radius r, height 2r): (2/3) × πr² × 2r = (4/3)πr³. Its surface is likewise exactly the cylinder's curved side, 2πr × 2r = 4πr².
V = (4/3)πr³ = (4/3) × π × 6³ = 288π ≈ 904.7787
Measurements used
r = 6 cm
Total surface area A = 4πr² = 4π × 6².
144π ≈ 452.3893 cm²
In liters 1 liter is 1,000 cubic centimeters, the volume of a 10 cm cube.
0.9047787 L
In US gallons A US gallon is defined as exactly 231 cubic inches, 3.785411784 liters. An imperial gallon is about 20% larger.
0.2390172 gal
In other cubic units Cubic conversions cube the length factor: a yard is 3 feet, so a cubic yard is 27 cubic feet.
0.0009047787 m³ = 0.03195196 ft³ = 0.001183406 yd³
Scale every length and see what happens
Every length timesVolumeSurface area
0.5113.0973 cm³ (×0.125)113.0973 cm² (×0.25)
1904.7787 cm³ (×1)452.3893 cm² (×1)
27,238.229 cm³ (×8)1,809.557 cm² (×4)
324,429.02 cm³ (×27)4,071.504 cm² (×9)
10904,778.7 cm³ (×1,000)45,238.93 cm² (×100)
  • Volume scales with the cube of length and surface area with the square. Double every measurement and the volume goes up 8 times while the surface only goes up 4. That is why large animals keep heat better and why small ice cubes melt faster.

How the Volume Calculator works

Volume counts unit cubes, the way area counts unit squares. A box l by w by h holds l times w cubes in each layer and h layers, so its volume is l × w × h. That is less a formula than the definition, and every other formula in this calculator is a way of doing the same count for a shape that does not stack into neat layers.

The first family is prisms: any solid with the same cross-section all the way along. A box, a cube, a cylinder and a triangular prism are all prisms, and all have the same formula: the area of the cross-section times the length. For a cylinder the cross-section is a circle, πr², so the volume is πr²h. For a triangular prism it is half base times height, times the length. Once you see that, you have every prism, including ones with cross-sections no table lists. A pipe is a hollow cylinder: what it holds uses the inside diameter, and its wall is the outer cylinder minus the inner one.

The second family is solids that taper to a point: cones and pyramids. Each is exactly one third of the prism with the same base and height, which is where the 1/3 in both formulas comes from. Three identical square pyramids fit together into a cube, which is the hands-on proof; the general one needs calculus, or Cavalieri's principle, and it holds for any base shape. A frustum (a cone with its top sliced off, the shape of a bucket or a lampshade) is the large cone minus the small one, which tidies into (1/3)πh(R² + Rr + r²). The tempting shortcut of averaging the top and bottom areas and multiplying by the height gives too much, and the error grows the more the shape tapers.

The sphere is Archimedes' result, and the one he asked to have on his tomb. Fit a sphere inside a cylinder that just contains it, radius r and height 2r. The sphere is exactly two-thirds of the cylinder's volume, (2/3) × πr² × 2r = (4/3)πr³, and its surface area is exactly the cylinder's curved side, 2πr × 2r = 4πr². A hemisphere is half the volume, but its total surface is not half the sphere's: cutting it exposes a flat face, so it is 3πr². A capsule is a cylinder with a hemisphere at each end, and the two ends make one sphere.

An ellipsoid is a sphere stretched by a different amount along each axis. Stretching multiplies volume by the stretch factor, so (4/3)πr³ becomes (4/3)πabc, where a, b and c are the semi-axes (half the full length, width and height). Its surface area is a different matter: there is no formula for it in elementary functions at all. The exact value needs elliptic integrals, which this calculator evaluates numerically rather than using one of the published approximations.

When the measurements are whole numbers, the answer is shown as an exact multiple of π: a sphere of radius 6 has a volume of exactly 288π. That form is the one to keep if more arithmetic follows, because 904.78... is already rounded and 288π is not. It is also the form a textbook answer key uses.

Units matter more in three dimensions than in two. A cubic conversion cubes the length factor: a yard is 3 feet, so a cubic yard is 27 cubic feet, not 9 and not 3. A liter is a cube 10 cm on a side, 1,000 cubic centimeters, and a cubic meter is 1,000 liters. The US gallon is defined as exactly 231 cubic inches.

The same cube law explains the table under the result. Double every length and the volume goes up eight times while the surface area goes up only four. As things get bigger, surface shrinks relative to volume. That is why a large pot of water takes so long to cool and why crushed ice melts faster than a block of the same weight.

Volume Calculator FAQ

What is the formula for the volume of a sphere?

V = (4/3)πr³, where r is the radius. A sphere of radius 6 has a volume of (4/3) × π × 216 = 288π, about 904.8 cubic units. If you have the diameter, halve it first; using the diameter in place of the radius makes the answer 8 times too big.

How do you find the volume of a cylinder?

Multiply the area of the circular end, πr², by the height: V = πr²h. A cylinder of radius 3 and height 10 holds 90π, about 282.7 cubic units. The same rule, cross-section times length, works for any prism.

Why is a cone a third of a cylinder?

Any solid that tapers evenly from a base to a single point has exactly one third the volume of the prism with the same base and height. For a cone that prism is a cylinder, so V = (1/3)πr²h. Three square pyramids fit together into a cube, which shows it for pyramids.

What is the surface area of a sphere?

A = 4πr². Archimedes showed it equals the curved side of the cylinder that just contains the sphere: circumference 2πr times height 2r. A sphere of radius 6 has a surface area of 144π, about 452.4 square units.

How do I convert cubic inches or centimeters to gallons or liters?

A liter is exactly 1,000 cubic centimeters, and a US gallon is exactly 231 cubic inches, which is 3.785411784 liters. So divide cubic centimeters by 1,000 for liters and cubic inches by 231 for US gallons.

Volume and surface area by shape

Related calculators

Embed this calculator
<div id="compoundpage-volume-calculator"></div>
<script src="https://compoundpage.com/embed/volume-calculator.js" async></script>

The same calculation as JSON