Volume Calculator

Volume of cube, sphere, cylinder, cone. Units in liters or cubic meters. Free online.

Free · No sign-up · Runs in your browser · Last reviewed November 2026

 

How volume is calculated

Volume measures how much space a three-dimensional object takes up, or how much it can hold. This volume calculator works out the volume of a cube, a box (rectangular prism), a cylinder, a sphere, a cone and a pyramid, and gives the result in cubic units and in liters or gallons. Enter the dimensions in the same unit and read the result.

Volume formulas

ShapeFormulaExampleVolume
Cubeside³side 5125
Box (rectangular prism)length × width × height2 × 3 × 424
Cylinderπ × r² × hr = 2, h = 562.83
Sphere4/3 × π × r³r = 3113.10
Cone1/3 × π × r² × hr = 3, h = 437.70
Pyramid1/3 × base area × h6 × 6 base, h = 560
Hemisphere2/3 × π × r³r = 356.55

Radius is half the diameter. A cylinder with a 4 cm diameter has r = 2 cm. Always use the same unit for every dimension, and remember the result is in cubic units: cm × cm × cm = cm³.

Volume unit conversions

FromToMultiply by
1 cubic meter (m³)liters1,000
1 litercubic centimeters (cm³)1,000
1 cubic footliters28.317
1 US gallonliters3.785
1 cubic yardcubic meters0.7646
1 cubic yardcubic feet27

Practical uses

  • Aquariums, tanks and pools: volume tells you how much water they hold; 1 liter of water weighs 1 kg.
  • Concrete, gravel and soil: volume in cubic yards decides how much material to order; see the concrete calculator and gravel calculator.
  • Shipping and storage: volume of a box helps estimate volumetric weight and packing space.
  • Cooking and science: cylinders and spheres model cans, glasses and drops.

For areas of the same shapes use the area calculator, or convert between units with the volume converter.

How to use Volume Calculator

  1. Open Volume Calculator in RoviDev (you don't need to install anything or register).
  2. Enter the required data in the tool form.
  3. Press the button and see the result instantly on the screen.

Volume calculator FAQ

How do I calculate the volume of a rectangular box?

Multiply length × width × height. A box 5 cm long, 4 cm wide and 3 cm high has a volume of 60 cm³, which is 0.06 liters.

How do I calculate the volume of a cone?

Use π × radius² × height ÷ 3. A cone with radius 3 and height 6 has a volume of about 56.55 cubic units, exactly one third of the cylinder with the same base and height.

How do I calculate the volume of a pyramid?

For a square pyramid, multiply base side × base side × height and divide by 3. A pyramid with a 6 ft base and 9 ft height holds 108 cubic feet.

How many gallons is a cubic foot?

One cubic foot is about 7.48 US gallons, or 28.32 liters.

How do I calculate the volume of a cylinder?

Multiply π by the radius squared and by the height. A cylinder with radius 2 and height 5 has a volume of π × 4 × 5 = 62.83 cubic units.

How do I calculate the volume of a sphere?

Use 4/3 × π × r³. A sphere with a radius of 3 has a volume of 113.10 cubic units.

How do I convert cubic centimeters to liters?

Divide by 1,000: 1,000 cm³ is 1 liter.

What is the difference between volume and capacity?

Volume is the space an object occupies; capacity is how much a container can hold. They are measured with the same units, such as liters or gallons.

Why is the volume of a cone one third of a cylinder?

A cone with the same base and height as a cylinder fills exactly one third of it, which is why the cone formula has a factor of 1/3.

How many liters are in a cubic meter?

1,000 liters.