This free volume calculator finds the volume of 11 common 3D shapes: cube, rectangular prism (box), cylinder, sphere, hemisphere, cone, pyramid, triangular prism, capsule, tube or pipe, and conical frustum. Choose a shape, enter its dimensions in millimeters, centimeters, meters, inches, feet or yards, and get the volume in cubic units along with liters, US and UK gallons, cubic feet, cubic yards and fluid ounces. The formula used is shown with every result.
Volume is the amount of three-dimensional space an object takes up, or how much it can hold. You need it to size a fish tank, fill a pool, order concrete, mulch or soil, compare luggage and shipping boxes, estimate the capacity of a water tank or work through a geometry assignment.
How to use the volume calculator
- Pick the shape that best matches your object. A pool or room is a box, a round tank or pipe is a cylinder, and a ball is a sphere.
- Choose the unit you measured in. All dimensions must use the same unit.
- Enter the dimensions. Radius is half the diameter, so a 10-inch-wide pipe has a 5-inch radius.
- Press Calculate to see the volume and a table of unit conversions.
Volume formulas for common shapes
| Shape | Formula | Example | Volume |
|---|---|---|---|
| Cube | V = a³ | a = 3 | 27 |
| Rectangular prism | V = l x w x h | 10 x 4 x 3 | 120 |
| Cylinder | V = πr²h | r = 3, h = 10 | 282.74 |
| Sphere | V = 4/3 πr³ | r = 5 | 523.60 |
| Hemisphere | V = 2/3 πr³ | r = 3 | 56.55 |
| Cone | V = 1/3 πr²h | r = 4, h = 9 | 150.80 |
| Pyramid | V = 1/3 x l x w x h | 6 x 6 x 10 | 120 |
| Triangular prism | V = 1/2 x b x h x l | b = 4, h = 3, l = 10 | 60 |
| Capsule | V = πr²h + 4/3 πr³ | r = 1.5, h = 4 | 42.41 |
| Tube | V = π(R² - r²)h | R = 2, r = 1.5, h = 10 | 54.98 |
| Frustum | V = 1/3 πh(R² + Rr + r²) | R = 3, r = 2, h = 4 | 79.59 |
Volume of a cube
A cube has six identical square faces, so you only need one measurement, the edge length. Multiply it by itself three times: V = a x a x a. A cube with 3-foot edges holds 27 cubic feet. Doubling the edge length multiplies the volume by eight, which is why volume grows so quickly as objects get bigger.
You may also find our Fraction Calculator useful.
Volume of a rectangular prism (box)
Multiply length, width and height. A shipping box 18 x 12 x 10 inches holds 2,160 cubic inches, or 1.25 cubic feet. A room 12 feet by 15 feet with 8-foot ceilings has a volume of 1,440 cubic feet, a figure used to size air purifiers, dehumidifiers and heating. A 4 x 8 foot raised bed filled 1 foot deep needs 32 cubic feet of soil, about 1.19 cubic yards.
Need the flat area instead of the volume? The Square Footage Calculator measures rooms, patios and lots in square feet; multiply by depth to get cubic feet.
Volume of a cylinder
A cylinder is a circle stretched to a height, so its volume is the area of the circle (πr²) times the height. A water tank 6 feet across and 4 feet high has a 3-foot radius: V = 3.1416 x 3² x 4 = 113.1 cubic feet, which is 846 US gallons. Cylinder volume is the most searched volume calculation, because it covers tanks, pipes, cans, pillars, round pools and post holes.
Volume of a sphere and hemisphere
A sphere's volume is four-thirds pi times the radius cubed. A ball with a 6-inch radius holds 4/3 x 3.1416 x 216 = 904.8 cubic inches. A hemisphere, half a sphere, is 2/3 πr³. Because the radius is cubed, a small measuring error grows quickly, so measure the diameter carefully and halve it.
Volume of a cone and pyramid
Cones and pyramids hold exactly one third of the prism or cylinder with the same base and height. A cone with a 4-inch radius and 9-inch height holds 1/3 x 3.1416 x 16 x 9 = 150.8 cubic inches. A square pyramid with a 6 x 6 base and 10-unit height holds 1/3 x 36 x 10 = 120 cubic units. Use the cone formula for funnels, piles of sand or gravel and conical hoppers.
Volume of a triangular prism
Find the area of the triangular end (1/2 x base x height), then multiply by the length of the prism. A tent with a triangular end 6 feet wide and 4 feet high, 8 feet long, encloses 1/2 x 6 x 4 x 8 = 96 cubic feet. The same formula works for a wedge, a ramp or the attic space under a gable roof.
Volume of a tube or pipe
For the material in a pipe wall, subtract the inner cylinder from the outer one: V = π(R² - r²)h. For the water a pipe can hold, use the inner radius only as an ordinary cylinder. A 100-foot garden hose with a 5/8-inch inside diameter holds about 1.6 US gallons.
Volume of a capsule and frustum
A capsule is a cylinder with a hemisphere on each end, like a propane tank or pill. Add the cylinder volume to the volume of one full sphere. A frustum is a cone with the top cut off, the shape of a bucket, a flowerpot or a lampshade. Its volume uses both radii: 1/3 πh(R² + Rr + r²).
Volume units and conversions
| From | Equals |
|---|---|
| 1 cubic meter | 1,000 liters = 35.315 ft³ = 264.17 US gal |
| 1 liter | 1,000 cm³ = 0.2642 US gal = 33.81 US fl oz |
| 1 cubic foot | 1,728 in³ = 7.4805 US gal = 28.317 L |
| 1 cubic yard | 27 ft³ = 201.97 US gal = 0.7646 m³ |
| 1 US gallon | 231 in³ = 3.7854 L = 128 US fl oz |
| 1 Imperial gallon | 4.5461 L = 1.2009 US gal |
| 1 cubic inch | 16.387 cm³ |
To convert a volume between cubic units, cube the linear conversion factor. There are 12 inches in a foot, so there are 12 x 12 x 12 = 1,728 cubic inches in a cubic foot. There are 3 feet in a yard, so there are 27 cubic feet in a cubic yard.
Practical volume examples
Pool volume in gallons
For a rectangular pool, multiply length x width x average depth to get cubic feet, then multiply by 7.48 to get gallons. A 20 x 40 foot pool that runs from 3.5 to 7.5 feet deep has an average depth of 5.5 feet: 20 x 40 x 5.5 = 4,400 cubic feet, about 32,914 gallons. For a round above-ground pool, use the cylinder formula. A 24-foot round pool filled to 4 feet holds about 13,536 gallons.
Concrete, mulch and soil in cubic yards
Landscape and building materials are sold by the cubic yard. Work out the volume in cubic feet and divide by 27. A 10 x 12 foot patio slab 4 inches thick is 10 x 12 x 0.333 = 40 cubic feet, or 1.48 cubic yards. Order 5 to 10 percent extra for spillage and uneven ground.
Aquarium volume
Measure the inside length, width and water depth in inches, multiply, and divide by 231 to get US gallons. A 30 x 12 x 20 inch tank holds 7,200 cubic inches, or 31.2 gallons, before you subtract space for gravel and decorations.
Tank volume in liters
For metric measurements in centimeters, multiply the dimensions and divide by 1,000 to get liters. A cylindrical tank 50 cm in radius and 120 cm high holds 3.1416 x 2,500 x 120 = 942,478 cm³, which is about 942 liters.
Volume vs capacity vs surface area
Volume is the space an object occupies. Capacity is how much a container can hold, usually measured in liters or gallons; for thin-walled containers it is nearly equal to the inside volume. Surface area is the total area of the outside faces, measured in square units, and it is what you need for paint, wrapping or insulation. The surface area to volume ratio explains why small animals lose heat quickly and why crushed ice melts faster than a block.
Volume, mass and density
If you know an object's mass and density, you can find its volume without measuring it: V = mass / density. Water has a density of about 1 g/cm³, so 1 kilogram of water fills 1 liter. Steel is about 7.85 g/cm³, so a 1 kg steel block has a volume of about 127 cm³. Rearranged, mass = density x volume tells you how heavy a filled container will be: 32,914 gallons of pool water weighs about 274,000 pounds.
Tips for accurate measurements
- Measure inside dimensions for capacity and outside dimensions for space taken.
- Use the same unit for every dimension, and convert before calculating if needed.
- For uneven depths, use an average of several measurements.
- Round up when ordering materials, and round down when estimating how much a container will safely hold.
Related calculators
Need a percentage of a volume, such as 80 percent of a tank? Use the percentage calculator. To mix liquids in a fixed proportion, try the ratio calculator. For grading a driveway or drainage, the slope calculator converts rise and run to percent grade. Read how to calculate volume for a step-by-step lesson, or browse every tool on the math calculators page.
About this calculator and your privacy
This calculator runs entirely in your web browser. The numbers you type are never sent to a server, stored or shared, and you do not need an account. Results update when you press the calculate button, and the reset button clears them. We review the formulas whenever published guidelines or tax figures change, and the page was last reviewed in November 2026. If you spot a number that looks wrong, or would like another feature added, please contact us and include your inputs so we can reproduce the issue. Remember that every calculator is a simplification of real life: treat the output as a starting point for planning and check important decisions with a qualified professional.
Frequently asked questions
How do you calculate volume?
For a box, multiply length x width x height. Other shapes have their own formulas: cylinder πr²h, sphere 4/3 πr³, cone 1/3 πr²h.
How do I calculate the volume of a cylinder?
Multiply pi by the radius squared and by the height: V = πr²h. A cylinder with a 2 m radius and 5 m height holds 62.83 m³.
How do I convert cubic feet to gallons?
Multiply cubic feet by 7.48 to get US gallons. 100 cubic feet is about 748 gallons.
How do I convert cubic centimeters to liters?
Divide by 1,000. 1 liter equals 1,000 cm³ (1,000 mL).
How many cubic feet are in a cubic yard?
27, because a yard is 3 feet and 3 x 3 x 3 = 27.
What units is volume measured in?
Volume uses cubic units such as cm³, m³, in³ and ft³, or capacity units such as liters, milliliters and gallons.
How do I find the volume of an irregular object?
Submerge it in a container of water and measure how much the water level rises. The volume of water displaced equals the object's volume.
Volumes are calculated from ideal geometric shapes. Real tanks, pools and containers have wall thickness, rounded corners and fittings, so measure inside dimensions and allow a margin when ordering materials.