Volume calculator

Pick the shape, type its sizes in inches, feet, yards or meters, and see the volume as you type in cubic feet, cubic yards, cubic inches, cubic meters, liters and gallons, with the formula worked through in your own numbers.

Box, cylinder, cone, sphere, hemisphere, pyramid, triangular prism and pipe, each size in its own units if you like.

The shape

Optional. For several of the same size, such as post holes or tanks.
Free for your own website, with no account and no ads.

Put the volume calculator on your website

Paste this code into an HTML or embed block on any page. Your visitors use the calculator right there, the same as here: free, no sign-up, no ads, and nothing they type is sent anywhere.

Preview it

It fits any width from a phone up to 640 px and grows to the calculator's height. The line under it links to this page, so your visitors can see where it comes from. Every calculator you can embed

Free calculator by Billsmith

Cubic feetCubic meters320 cu ft9 m³
See the working

Volume, shape by shape

Box and pyramid

A box is length × width × height: 10 ft by 8 ft by 4 ft is 320 cubic feet. A pyramid on the same base, the same height to its point, holds exactly a third of that box: 6 m by 6 m by 4 m is 144 ÷ 3 = 48 m³.

Cylinder, cone and pipe

A cylinder is the area of its circle times its height: π × r² × h, where r is half the diameter. A tank 3 ft across and 4 ft tall is π × 1.5² × 4 = 28.27 cubic feet. A cone is a third of the cylinder around it. A pipe is the outer cylinder less the hole: π × (R² − r²) × length.

Sphere and hemisphere

A sphere is 4/3 × π × r³, so a ball 12 in across (r = 6 in) holds 288π = 904.78 cubic inches. A hemisphere is half a sphere, 2/3 × π × r³.

Triangular prism

Work out the triangle at the end, base × height ÷ 2, then multiply by the length. A gable 4 ft wide and 3 ft tall, 12 ft long, is 6 × 12 = 72 cubic feet.

Gallons and liters

A US gallon is 231 cubic inches, so a cubic foot holds 1,728 ÷ 231 = 7.48 US gallons. An imperial gallon, used in the UK, is 4.54609 liters, so a cubic foot holds 28.32 ÷ 4.54609 = 6.23 of them. A liter is a thousandth of a cubic meter.

Questions

How do I calculate volume?

Multiply the area of the shape's base by its height. A box is length × width × height, so 10 ft by 8 ft by 4 ft is 320 cubic feet. A cylinder's base is a circle, π × r², so a tank 3 ft across and 4 ft tall is π × 1.5² × 4 = 28.27 cubic feet.

How do I find the volume of a cylinder?

Halve the diameter to get the radius, square it, multiply by π (3.14159) and then by the height. A cylinder 3 ft across and 4 ft tall is 3.14159 × 1.5 × 1.5 × 4 = 28.27 cubic feet, which holds 211.51 US gallons.

How many gallons are in a cubic foot?

A US gallon is 231 cubic inches exactly and a cubic foot is 1,728 cubic inches, so a cubic foot holds 1,728 ÷ 231 = 7.48 US gallons. In imperial gallons, which are 4.54609 liters each, it holds 6.23.

How do I turn cubic feet into cubic yards?

Divide by 27, because a cubic yard is 3 ft × 3 ft × 3 ft = 27 cubic feet. 320 cubic feet is 320 ÷ 27 = 11.85 cubic yards.

What is the volume of a cone or a pyramid?

A third of the cylinder or box that would fit around it. A cone is π × r² × h ÷ 3; a pyramid is length × width × height ÷ 3. A pyramid 6 m by 6 m at the base and 4 m tall is 48 m³.