Home / Volume Calculator

Volume Calculator

Select a shape, enter the dimensions, and get the volume instantly. The formula for each shape is shown so you can see exactly how the result is computed.

Chris Terry
By Chris Terry, Editor
Updated June 20, 2026

Shape and dimensions

Result

Volume--
Formula used--
Enter dimensions to see the calculation.

How to calculate volume

Volume is the amount of three-dimensional space an object occupies. Every shape has its own formula, but they all boil down to multiplying a base area by some height (or using a known geometric constant like pi).

Volume formulas at a glance

Cube: V = s^3 (where s is the side length)
Rectangular box: V = l x w x h
Sphere: V = (4/3) x pi x r^3
Cylinder: V = pi x r^2 x h
Cone: V = (1/3) x pi x r^2 x h
Square pyramid: V = (1/3) x b^2 x h

Worked example: cylinder with radius 5 and height 10

A water tank is a cylinder 5 meters across (radius = 2.5 m) and 10 meters tall. Calculate volume in cubic meters.

Step 1. Write the formula: V = pi x r^2 x h.
Step 2. Substitute: V = 3.14159 x 2.5^2 x 10.
Step 3. Square the radius: 2.5^2 = 6.25.
Step 4. Multiply: 3.14159 x 6.25 x 10 = 196.35 cubic meters.

For the official definition and deeper reading, see the Wolfram MathWorld entry on volume.

Need the floor area instead of 3D volume? Use the square footage calculator. Working on an electrical circuit? The Ohm's law calculator handles voltage, current, and resistance.

More free math tools

Solve quadratics, find slopes, work out standard deviation, and more.

Good to know

Frequently asked questions

How do you calculate volume?

The formula depends on the shape. For a rectangular box, multiply length x width x height. For a cylinder, use pi x radius squared x height. For a sphere, use (4/3) x pi x radius cubed. This calculator handles all six common shapes and shows the formula used.

How to calculate more volume for a complex shape?

Break the object into simpler parts, compute each part separately, then add the volumes together. A silo, for example, is a cylinder topped with a cone. Calculate each volume and sum them.

How do you calculate gallons in a tank?

Find the volume in cubic inches, then divide by 231. One US gallon equals 231 cubic inches. A rectangular tank that is 24 in x 12 in x 12 in has a volume of 3,456 cubic inches, which works out to 3,456 / 231 = about 14.96 gallons.

What is volume per volume (v/v)?

Volume per volume is a concentration measure used in chemistry. It expresses how many units of one substance are present per 100 units of total solution. A 5% v/v solution contains 5 mL of solute in every 100 mL of solution.

Chris Terry
About the author
Chris Terry
Editor, Encore Editorial

Editor at Encore Editorial, Chris Terry sets the editorial standards here and turns dense topics into plain English. He has written widely on education, finance, and consumer markets.