Use this volume calculator to find the capacity of a rectangular prism, cube, cylinder, sphere, or cone. Choose metric or imperial length units and get the result in cubic units, liters, milliliters, cubic meters, cubic feet, and US gallons.
Calculate volume
Volume formulas
| Shape | Formula | Measurements |
|---|---|---|
| Rectangular prism | V = l × w × h | Length, width, height |
| Cube | V = s³ | Side length |
| Cylinder | V = πr²h | Radius, height |
| Sphere | V = 4πr³ ÷ 3 | Radius |
| Cone | V = πr²h ÷ 3 | Radius, height |
All dimensions must use the same length unit. If the inputs are in centimeters, the primary answer is cubic centimeters; feet produce cubic feet.
How to calculate volume
- Select the solid that matches the object.
- Measure every required dimension using one unit.
- Enter positive values and select the input unit.
- Calculate, then choose the conversion that fits your task.
Common volume conversions
- 1 liter = 1,000 cubic centimeters.
- 1 cubic meter = 1,000 liters.
- 1 cubic foot = 1,728 cubic inches.
- 1 US liquid gallon = 3.785411784 liters.
Choosing measurements for the Volume Calculator
Measure the inside dimensions when you need usable container capacity and the outside dimensions when you need the space an object occupies. For a cylinder, cone, or sphere, enter the radius—not the diameter. If you measured the diameter, divide it by two first. Keep every dimension in the same unit before calculating.
The Volume Calculator accepts millimeters, centimeters, meters, inches, feet, and yards. It converts the calculated cubic value into common capacity units automatically. For traceable metric definitions, see the NIST guidance on SI volume units. Remember that a geometric result is only as accurate as the measurements entered, so avoid displaying more precision than your ruler or tape supports.
Worked examples
Box: A container 10 cm long, 5 cm wide, and 3 cm high has volume 10 × 5 × 3 = 150 cm³, equal to 150 mL or 0.15 L.
Cylinder: A cylinder with radius 3 m and height 5 m has volume π × 3² × 5 = 141.37 m³. The calculator keeps full precision internally and rounds displayed results.
Sphere: A sphere with radius 2 ft has volume 4π × 2³ ÷ 3 = 33.51 ft³.
Understanding cubic units
Volume measures three-dimensional space, so the unit is cubed. A length conversion must therefore be cubed too: one meter equals 100 centimeters, but one cubic meter equals 100³, or 1,000,000 cubic centimeters. This is why converting each dimension first and then applying the formula produces the same result as converting the completed volume with the correct cubic factor.
The Volume Calculator converts every answer through cubic meters, then displays liters, milliliters, cubic feet, and US gallons. This keeps metric and imperial results consistent. It also avoids the common mistake of applying a simple length factor to a cubic measurement.
For irregular objects, divide the object into familiar solids, calculate each volume, and add or subtract the parts. Liquid capacity and geometric volume describe the same physical quantity, although liters and gallons are often more convenient for containers.
Frequently asked questions
Can I enter decimals?
Yes. Positive decimal measurements are supported. The result is calculated with more precision than is displayed.
Should I use radius or diameter?
The cylinder, sphere, and cone fields use radius. Divide the diameter by two before entering it.
How do I calculate the volume of a room or house?
Treat each rectangular section as a prism: multiply interior length, width, and height, then add the sections. Use cubic feet or cubic meters.
Are liters the same as cubic centimeters?
One milliliter equals one cubic centimeter, and one liter equals 1,000 cubic centimeters.
Related calculators