How to use the volume calculator
- Choose a shape, and a unit if you want liters and gallons too.
- Enter its measurements. Fractions such as 3/4 and mixed numbers such as 2 1/2 work as well as decimals.
- Read the volume and surface area, exactly in terms of π where the shape is round, with the formula and steps. Values you’ve typed carry over when you switch to a shape that uses them.
What volume is
Volume is the amount of space a solid takes up, measured in cubic units: a cube 1 centimeter on each side has a volume of 1 cubic centimeter (cm³). For liquids it is called capacity and often measured in liters or gallons. Surface area is different: it is the total area of the outside, in square units, which is what you need for paint, wrapping or material.
Volume formulas
- Cube: V = a³; surface A = 6a².
- Box (cuboid): V = l × w × h; surface A = 2(lw + lh + wh).
- Cylinder: V = πr²h; surface A = 2πr² + 2πrh.
- Cone: V = πr²h / 3; surface A = πr² + πr√(r² + h²).
- Sphere: V = 4πr³ / 3; surface A = 4πr².
- Hemisphere: V = 2πr³ / 3; surface A = 3πr² (curved part 2πr² plus the flat base πr²).
- Pyramid: V = lwh / 3; surface A = lw + l√((w/2)² + h²) + w√((l/2)² + h²).
- Triangular prism: V = (area of the triangle) × l; surface A = 2 × (area of the triangle) + (a + b + c) × l.
- Capsule: V = πr²l + 4πr³ / 3; surface A = 2πrl + 4πr².
- Cone frustum: V = πh(R² + Rr + r²) / 3; surface A = π(R² + r²) + π(R + r)√((R − r)² + h²).
- Ellipsoid: V = 4πabc / 3.
- Tube (pipe): V = π(R² − r²)l; surface A = 2π(R + r)l + 2π(R² − r²).
In these, r is a radius, h a height and l a length. For the triangular prism, the triangle’s area comes from its three sides by Heron’s formula, so you don’t need its height.
Prisms and cylinders: base times height
A box, a cylinder and a prism all have the same cross-section all the way along, so their volume is the area of the base times the height: l × w × h for a box, πr² × h for a cylinder. A can 12 cm tall with a radius of 3 cm holds 9π × 12 = 108π, about 339.29 cm³, which is 0.34 liters.
Cones and pyramids: one third
A cone or pyramid narrows to a point, and holds exactly one third of the cylinder or prism with the same base and height. So V = πr²h / 3 for a cone and V = lwh / 3 for a pyramid. A cone with a radius of 3 and a height of 4 has a volume of 12π, about 37.7. A frustum, a cone with its top cut off like a bucket or a lampshade, is the big cone minus the small one, which simplifies to πh(R² + Rr + r²) / 3.
Spheres and capsules
A sphere’s volume is 4πr³ / 3 and its surface 4πr². A ball with a radius of 6 inches holds 288π, about 904.78 cubic inches. Because volume grows with the cube of the size, doubling a ball’s radius makes it hold eight times as much. A capsule, a cylinder with a half sphere on each end like a pill or a propane tank, is the cylinder plus one whole sphere.
Exact answers in terms of π
Round shapes give answers with π in them. Leaving π as a symbol keeps the answer exact, such as 108π cm³, and teachers often ask for answers this way. The calculator shows the exact form whenever the measurements are whole numbers, decimals or fractions, along with the decimal. Shapes with slanted sides, such as a cone’s surface, involve a square root, so their surface areas are shown as decimals.
Liters, gallons and cubic units
Choose a unit and the calculator converts the volume to liters and US gallons. A liter is exactly 1,000 cm³, and a cubic meter is 1,000 liters. NIST’s guide to the SI lists 1 US gallon as 3.785 412 liters and 1 cubic foot as 0.028 316 85 cubic meters, about 28.3 liters. So a fish tank 4 ft long, 2 ft wide and 3 ft high, 24 cubic feet, holds about 179.53 US gallons. Remember that a real container holds a little less than its outside measurements suggest, because of the thickness of its walls.
Tubes and pipes
The material in a tube or pipe is the outer cylinder minus the hole: π(R² − r²) × l, using the outer and inner radii. To find how much a pipe holds instead, use the cylinder with the inner radius. Measure radii, not diameters: a pipe 4 cm across has a radius of 2 cm.
Measuring real objects
Use the same unit for every measurement: mixing inches and feet is the most common cause of a wrong volume. For round things it is often easier to measure the distance around with a tape and divide by π to get the diameter, then halve it for the radius. For an irregular object, such as a stone, you can measure volume directly by putting it in a container of water and measuring how much the level rises: the volume of the water pushed up is the volume of the object.
Your data stays on your device
Everything is worked out in your browser. Nothing you type is sent anywhere or stored.
Frequently asked questions
How do I find the volume of a cylinder?
Multiply the area of the circular base by the height: V = πr²h. A can with a radius of 3 cm and a height of 12 cm holds 108π, about 339.29 cm³, or 0.34 liters.
What is the volume of a sphere?
V = 4πr³ / 3. A ball with a radius of 6 inches has a volume of 288π, about 904.78 cubic inches.
How many gallons does a tank hold?
Work out the volume, then convert. A tank 4 ft long, 2 ft wide and 3 ft high is 24 cubic feet, about 179.53 US gallons. Choose a unit in the calculator to get liters and gallons.
Why is a cone one third of a cylinder?
A cone, or a pyramid, holds exactly one third of the cylinder, or prism, with the same base and height. You can see it by filling a cone with water and pouring it into the matching cylinder: it takes three cones to fill it.
What is the difference between volume and surface area?
Volume is the space inside a solid, in cubic units, such as how much water a tank holds. Surface area is the total area of its outside, in square units, such as how much paint covers it.
Is anything I type saved or sent?
No. Everything is worked out in your browser and nothing you type is sent anywhere or stored.