Geometry and measurement

Volume Calculator

Find the volume of a box, cylinder, cone, or sphere, then see the equivalent in cubic units, liters, and milliliters.

Calculate a solid's volume

Enter length, width, and height measured at right angles. For a cube, use the same value for all three.

Rectangular box with length, width, and heightlengthwidthheight

Measurement guide only; the drawing does not change to match your dimensions.

Positive numbers only, with up to 15 digits before the decimal point and 10 after it. Grouped numbers such as 1,000.5 are accepted.

All dimensions share one unit. Changing this unit reinterprets the numbers you entered; it does not convert them.

Example: 2 m × 3 m × 4 m → 24 m³.

Volume

Enter the shape's dimensions, then select Calculate.

Calculations run in your browser. Successful results appear in this tab's Recent calculations.

Volume formulas and examples

Volume measures the space inside a three-dimensional shape. In these formulas, r is the radius and h is the perpendicular height.

Cuboid or cube

V = length × width × height

A box measuring 2 m × 3 m × 4 m has a volume of 24 m³, or 24,000 L. A cube uses the same length for all three dimensions.

Cylinder

V = π × r² × h

A cylinder with radius 2 m and height 3 m has volume 12π m³ ≈ 37.699112 m³. Its circular base has area 4π m².

Cone

V = π × r² × h ÷ 3

A cone with radius 2 m and height 3 m has volume 4π m³ ≈ 12.566371 m³, one-third of the cylinder with the same base and height.

Sphere

V = 4 × π × r³ ÷ 3

A sphere with radius 3 m has volume 36π m³ ≈ 113.097336 m³. Its diameter is 6 m.

Cubic units, precision, and references

Cube the length conversion factor: 1 m = 100 cm, so 1 m³ = 1,000,000 cm³ = 1,000 L. A liter is 1,000 cm³, and a milliliter is 1 cm³.

Feet and inches use international definitions: 1 ft = 0.3048 m and 1 in = 0.0254 m exactly. This gives 1 ft³ = 28.316846592 L and 1 in³ = 16.387064 mL. U.S. survey feet are not used.

Precision and calculation limits

Required dimensions must be greater than zero. Each accepts up to 15 integer digits and 10 decimal digits, with a maximum of 64 input characters. Use ordinary decimal notation, such as 0.5; fractions, scientific notation, and mixed text such as 5 ft 6 in are not accepted.

Cuboid calculations and unit conversions use exact fractions. Cylinder, cone, and sphere calculations preserve an exact coefficient of π, including division by 3, and evaluate π at 120 significant digits. Displays use 6 decimal places by default, with 0, 2, 4, 6, or 10 available. Exact halfway values round up.

≈ means approximate. It marks any rounded cuboid result and every decimal result that uses π. Each displayed unit is calculated from the original volume. A positive volume that rounds to zero includes a note with its exact value. More display digits do not improve the accuracy of your physical measurements.

References: OpenStax volume formulas, NIST SI Units — Volume, and NIST unit conversion factors.

Common questions

Should I enter radius or diameter?

Enter the radius, which is half the diameter. A cylinder 10 cm across has radius 5 cm. Entering the diameter as the radius makes a cylinder or cone volume four times too large and a sphere volume eight times too large.

Which height does a cone need?

Use the perpendicular distance from the base plane to the tip. For a right circular cone, that is the height through the center of its circular base. The slant height measured along the outside surface is different.

How do I enter feet and inches?

Convert the whole measurement to one unit first. For 5 ft 6 in, enter 5.5 with feet selected or 66 with inches selected. Every dimension must use the selected unit.

Can I use this for a tank or aquarium?

For a rectangular container or a full cylindrical tank, enter inside dimensions to estimate capacity. These formulas assume an ideal shape filled completely; they do not account for wall thickness, equipment, irregular corners, or the liquid level in a partially filled tank.

Does this also calculate mass or surface area?

Volume describes space. To calculate mass, use the Density Calculator with the material's density. To measure the outer faces of a solid, use the Surface Area Calculator. Liters and milliliters here express volume and do not imply a particular material or mass.

Why does a small volume show zero?

The value can be positive but smaller than the selected display precision. The ≈ mark and exact-value note identify this case. Try milliliters, cubic millimeters, or more decimal places. The underlying volume stays unchanged.