Volume Calculator
Work out the volume of a box, tank, ball, cone or pipe. Choose a shape, enter its measurements in any unit, and get the volume with the working, converted to liters, gallons, cubic feet and more, plus the surface area.
Volume
–
In other units
Key facts
- Price
- Free, with no sign-up and no usage limits
- Privacy
- Runs in your browser: your files and text are never uploaded
- Works on
- Any current browser on Windows, macOS, Linux, ChromeOS, Android and iPhone
- Made by
- Toolgu
- Last updated
How to use the volume calculator
- Pick a shape: a box for rooms and rectangular tanks, a cylinder for cans, pipes and round tanks, a frustum for buckets and planters.
- Choose your unit and enter the measurements. Use inside measurements if you want to know how much a container holds.
- Read the volume, the working and the surface area, then the same volume in liters, gallons, cubic feet and more.
Volume formulas
| Shape | Formula |
|---|---|
| Rectangular box (cuboid) | V = l × w × h |
| Cube | V = a³ |
| Cylinder | V = π × r² × h |
| Sphere | V = 4⁄3 × π × r³ |
| Hemisphere | V = 2⁄3 × π × r³ |
| Cone | V = ⅓ × π × r² × h |
| Pyramid (rectangular base) | V = ⅓ × l × w × h |
| Triangular prism | V = ½ × b × h × l |
| Capsule | V = π × r² × h + 4⁄3 × π × r³ |
| Conical frustum (bucket) | V = ⅓ × π × h × (R² + R×r + r²) |
| Ellipsoid | V = 4⁄3 × π × a × b × c |
| Tube (pipe) | V = π × (R² − r²) × h |
Worked examples
- Fish tank: 60 × 30 × 35 cm inside = 63,000 cm³ = 63 liters, about 16.6 US gallons.
- Round tank: radius 0.5 m, height 1.2 m: π × 0.25 × 1.2 ≈ 0.942 m³, or 942 liters.
- Ball: a basketball with a 12 cm radius holds 4⁄3 × π × 12³ ≈ 7,238 cm³, about 7.2 liters of air.
- Cone: radius 4 cm, height 9 cm: ⅓ × π × 16 × 9 ≈ 150.8 cm³, exactly a third of the cylinder around it.
- Bucket: 30 cm across at the top, 25 cm at the bottom, 28 cm deep (a frustum with radii 15 and 12.5 cm) holds about 16.7 liters.
Cubic units, liters and gallons
Volume is measured in cubic units: 1 m³ = 1,000,000 cm³ = 1,000 liters, and 1 liter = 1,000 cm³ = 1,000 mL. In US units, 1 ft³ = 1,728 in³ ≈ 7.48 US gallons, and 1 yd³ = 27 ft³. A UK (imperial) gallon is bigger than a US gallon: 4.546 liters against 3.785.
For concrete, gravel and soil, the concrete calculator works in cubic yards and bags. For flat shapes use the area calculator, and for other units the unit converter.
Frequently asked questions
How do you calculate volume?
Volume is the space inside a 3D shape, measured in cubic units. For a box, multiply length × width × height: 10 cm × 6 cm × 4 cm = 240 cm³. For a cylinder it’s π × r² × h. Each shape’s formula is shown above with your numbers worked through.
How do I find the volume of a cylinder?
Multiply the area of the round end by the height: V = π × r² × h. A can with a 3 cm radius and a height of 10 cm holds π × 9 × 10 ≈ 282.7 cm³, or about 0.28 liters.
How do I convert cubic units to liters or gallons?
One liter is 1,000 cm³ (0.001 m³). One US gallon is 231 cubic inches, about 3.785 liters, and one cubic foot holds about 7.48 US gallons or 28.32 liters. The calculator shows all of these with every answer.
What is the volume of a sphere?
V = 4⁄3 × π × r³. A ball with a 5 cm radius holds 4⁄3 × π × 125 ≈ 523.6 cm³, a little over half a liter. A hemisphere holds exactly half as much.
How much water does a tank hold?
Measure the inside dimensions, pick the matching shape (a box for a rectangular tank, a cylinder for a round one) and read the volume in liters or gallons. For concrete for slabs, footings and posts, the concrete calculator also counts the bags.
Related tools
- Area CalculatorArea of triangles, circles, trapezoids and 10 more shapes
- Concrete CalculatorYards, cubic feet and bags for slabs, footings, holes and steps
- Square Footage CalculatorArea of rooms and shapes in ft², m² and yd², with cost
- Unit ConverterLength, weight, temperature, volume and more
- One Rep Max CalculatorEstimate your 1RM from any set, with a % training chart
- Macro CalculatorDaily protein, carbs and fat in grams for your goal
- Tip CalculatorTip, total and split the bill, with tip before tax
- Time Card CalculatorWeekly or biweekly hours with breaks and overtime