Volume Calculator

Last updated · Reviewed by the CalcKoala team

Find the volume of a box, cube, cylinder, sphere, hemisphere, cone or pyramid. Measure in inches, feet, yards, centimeters or meters and get the result in cubic feet, cubic yards, cubic meters, liters and gallons. Add several shapes to get one total.

Volume
24 ft³
41,472 in³ · 0.6796 m³
Cubic yards
0.889 yd³
24 ft³ ÷ 27
Liquid capacity
179.5 gal
679.6 L · 149.5 UK gal
24 ft³

Volume formulas

ShapeFormulaExample
Box (rectangular prism)V = l × w × h4 × 3 × 2 ft = 24 ft³
CubeV = a³3³ ft = 27 ft³
CylinderV = π × r² × hr 1 ft, h 5 ft = 15.71 ft³
SphereV = 4/3 × π × r³r 1 ft = 4.19 ft³
HemisphereV = 2/3 × π × r³r 1 ft = 2.09 ft³
ConeV = 1/3 × π × r² × hr 1 ft, h 3 ft = 3.14 ft³
Rectangular pyramidV = 1/3 × l × w × h3 × 3 base, h 4 ft = 12 ft³

r is the radius — half the diameter. All dimensions must be in the same unit; the calculator converts for you.

How to calculate volume step by step

  1. Pick the shape that matches your object, or split it into simple shapes.
  2. Measure every dimension in the same unit.
  3. Apply the formula from the table above.
  4. Convert the result if needed: 1 ft³ = 1,728 in³ = 7.48 US gallons = 28.32 liters.

Volume unit conversions

1 unitCubic feetLitersUS gallons
1 cubic inch0.0005790.01640.00433
1 cubic foot128.327.48
1 cubic yard27764.6202
1 cubic meter35.311,000264.2
1 US gallon0.1343.7851

Measuring a room, box or shipment? The cubic feet calculator is set up for that. For pipes and round containers use the cylinder volume calculator, and for gallons in a water, fuel or fish tank the tank volume calculator.

Frequently asked questions

How do you calculate volume?

Volume is the space inside a 3D shape. For a box, multiply length × width × height. For round shapes you need π: a cylinder is π × radius² × height and a sphere is 4/3 × π × radius³. Use the same unit for every dimension — the answer is in that unit cubed.

How do you find the volume of a cube?

Cube the side length: side × side × side. A cube with 3-foot sides holds 3 × 3 × 3 = 27 cubic feet, which is exactly one cubic yard.

How do you calculate the volume of a sphere?

V = 4/3 × π × r³, where r is the radius (half the diameter). A ball 2 feet across has a radius of 1 ft and a volume of 4/3 × 3.1416 × 1 ≈ 4.19 cubic feet. A hemisphere (half a sphere) is half that: 2/3 × π × r³.

What is the volume of a cone or pyramid?

Both are one third of the matching prism: a cone is 1/3 × π × r² × h and a rectangular pyramid is 1/3 × length × width × height. A cone 2 ft across and 3 ft tall holds π ≈ 3.14 cubic feet.

How do you calculate mass from density and volume?

Mass = density × volume. Water has a density of about 1,000 kg/m³ (62.4 lb/ft³), so 2 m³ of water weighs about 2,000 kg. Make sure the volume unit matches the density unit before multiplying.

What is the difference between volume and capacity?

Volume is the space a shape takes up, usually in cubic units (ft³, m³). Capacity is how much liquid a container holds, usually in gallons or liters. They measure the same thing: 1 ft³ holds 7.48 US gallons and 1 m³ holds 1,000 liters.

Add this calculator to your website

Teachers, counselors and bloggers can embed the volume calculator for free. Copy this code into your page: