Volume Calculator

About this calculator

The Volume Calculator computes the volume of eleven common solids: sphere, cone, cube, cylinder, rectangular tank, capsule, spherical cap, conical frustum, ellipsoid, square pyramid and tube. Choose a shape, enter its dimensions with a unit for each one, and get the volume in cubic units, plus conversions to liters, US gallons, cubic meters, cubic feet and more.

If you mix units (for example a radius in centimeters and a height in meters), the volume is shown in each unit you used.

Sphere
Cone
Cube
Cylinder
Rectangular tank
Capsule
Spherical cap
Enter any two of the three values.
Conical frustum
Ellipsoid
Square pyramid
Tube
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

What is volume?

Volume is the amount of three-dimensional space a solid occupies, measured in cubic units such as cubic meters, cubic feet or cubic inches. Liquid capacity uses its own units: 1 liter is exactly 1,000 cubic centimeters, and 1 US gallon is 231 cubic inches (about 3.785 liters).

Worked example

Example: A cylindrical tank has a base radius of 3 feet and a height of 10 feet. Choose Cylinder and enter those two values. The volume is π × 3² × 10, which the calculator returns as 282.74333882308 ft³, about 282.74 cubic feet or 2,115 US gallons.

Volume formulas

Sphere

V = 4/3 πr³

A ball with a 0.15 ft radius holds 4/3 × π × 0.15³ ≈ 0.01414 cubic feet, about 0.4 liters.

Cone

V = 1/3 πr²h

A cone is one third of the cylinder with the same base and height. An ice-cream cone 1.5 in across the radius and 5 in tall holds about 11.781 cubic inches.

Cube and rectangular tank

Cube: V = a³    Tank: V = l × w × h

A 2 ft cube holds 8 cubic feet. A tank 4 ft long, 3 ft wide and 2 ft deep holds 24 cubic feet, or about 179.5 US gallons.

Cylinder

V = πr²h

A cylindrical tank with a 3 ft radius and 4 ft height holds about 113.097 cubic feet.

Capsule

V = πr²h + 4/3 πr³

A capsule is a cylinder capped by two hemispheres, which together form one sphere. Here h is the length of the straight middle section only. With r = 1.5 ft and h = 3 ft the volume is about 35.343 cubic feet.

Spherical cap

V = 1/3 πh²(3R − h),   r² = h(2R − h)

A cap is the piece of a ball cut off by a plane. Its base radius r, ball radius R and height h are linked, so any two determine the third. A cap 0.3 in tall from a ball of radius 1.68 in has a volume of about 0.447 cubic inches.

Conical frustum

V = 1/3 πh(r² + rR + R²)

A frustum is a cone with its tip sliced off, like a bucket or lampshade. With radii 0.2 and 1.5 in and a height of 4 in, the volume is about 10.849 cubic inches.

Ellipsoid

V = 4/3 πabc

Here a, b and c are the three semi-axes. With 1.5, 2 and 5 in the volume is about 62.832 cubic inches. A sphere is the case a = b = c.

Square pyramid

V = 1/3 a²h

A pyramid with a 5 ft square base and 12 ft height has a volume of 100 cubic feet.

Tube

V = π(d₁² − d₂²) / 4 × l

This is the volume of the material in a pipe: the outer cylinder minus the hollow core. A pipe with outer diameter 3 ft, inner diameter 2.5 ft and length 10 ft contains about 21.6 cubic feet of material.

Common volume units

UnitCubic metersLiters
Cubic inch0.0000163870.016387
US fluid ounce0.0000295740.029574
US gallon0.00378543.7854
UK gallon0.00454614.5461
Cubic foot0.02831728.317
Cubic yard0.76455764.55
Cubic meter11,000

Practical tips

Measure inside dimensions when you want capacity (how much a container holds) and outside dimensions when you want the space an object takes up. Keep every dimension in the same unit before multiplying, and remember that converting volume uses the cube of the length factor: 1 cubic yard is 27 cubic feet.

Choosing inputs

Round shapes use radii, so halve any diameter you measure. Cone, frustum and pyramid heights are vertical heights, not slant lengths. For a spherical cap you can enter any two of the base radius, ball radius and height, and the calculator works out the third and reports all three.

Volume and weight

To estimate how heavy a filled container will be, multiply its volume by the density of the contents. Water weighs about 1 kg per liter (62.4 lb per cubic foot), so the 24 cubic foot tank above holds roughly 1,500 lb of water.

Frequently asked questions

How do I calculate the volume of a cylinder?
Multiply π by the radius squared and by the height: V = πr²h. A cylinder with a 3 ft radius and 4 ft height holds about 113.1 cubic feet.
How many gallons are in a cubic foot?
One cubic foot is about 7.48 US gallons, or 28.32 liters.
What is the volume of a sphere?
V = 4/3 πr³. A sphere with radius 1 has a volume of about 4.18879.
How do I find the volume of a tank in liters?
Compute the volume in cubic meters and multiply by 1,000, or use the conversion table shown with every result.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.