Volume Calculator

Choose a shape, enter its dimensions, and get the volume, surface area, and formula used — plus the volume converted to liters.

Quick Facts

Box (cuboid)
V = l × w × h
Multiply length, width, and height.
Cube
V = s³
Side length cubed.
Sphere
V = (4/3)πr³
Radius cubed, times 4π/3.
Cylinder & cone
V = πr²h and V = ⅓πr²h
A cone holds exactly one-third the volume of a cylinder sharing its base and height.

Your Results

Calculated
Volume
-
Cubic units based on your shape and dimensions
Surface Area
-
Total area of all outer faces
Formula Used
-
Based on the selected shape
Volume in Liters
-
1 L = 1000 cm³ = 0.001 m³

Ready

Choose a shape, enter dimensions, then press Calculate.

Formula and Method for Volume

Volume measures the amount of three-dimensional space a solid occupies, expressed in cubic units such as in³, ft³, cm³, or m³. Every standard solid has its own well-established formula: a rectangular box multiplies its three dimensions, a sphere scales the cube of its radius, and a cone or pyramid holds exactly one-third the volume of a prism or cylinder sharing the same base and height. This calculator supports six common shapes — box, cube, sphere, cylinder, cone, and square pyramid — and also reports each shape's surface area and the volume converted to liters.

How the calculation works

Pick a shape from the dropdown; the input fields relabel themselves to ask for exactly the dimensions that shape needs (for example, a cube only needs one side length, while a box needs length, width, and height). The calculator then applies the matching closed-form formula: V = l×w×h for a box, V = s³ for a cube, V = (4/3)πr³ for a sphere, V = πr²h for a cylinder, V = (1/3)πr²h for a cone, and V = (1/3)×base²×h for a square pyramid. Surface area is computed the same way — for example a cylinder's surface area is 2πr² (the two circular ends) plus 2πrh (the curved side), and a cone's is πr² (base) plus πr×slant height, where the slant height is √(r²+h²) from the Pythagorean theorem. The volume is also converted to liters using each unit's metric equivalent (for example, 1 ft³ ≈ 28.317 liters).

Common mistakes

  • Diameter vs. radius: the sphere, cylinder, and cone formulas all use radius (half the diameter). Entering a measured diameter where radius is expected multiplies the volume by 8 instead of the correct value for a sphere.
  • Mixing units: enter all dimensions of a single shape in the same unit — measure a box's length, width, and height in feet, not a mix of feet and inches, before typing them in.
  • Confusing volume and surface area units: volume is in cubic units (ft³, cm³) while surface area is in square units (ft², cm²) — never interchange the two when ordering materials.

Real-world applications

  • Shipping and storage use box and cylinder volume to size containers, tanks, and packaging
  • Aquarium, pool, and tank capacity planning relies on the volume-to-liters (or gallons) conversion
  • Concrete, gravel, and soil orders use volume to determine how much material a footing, pour, or planter bed needs
  • Manufacturing and 3D printing use sphere, cone, and pyramid formulas to estimate material usage for cast or printed parts

Frequently Asked Questions

What is volume and what units is it measured in?
Volume is the amount of three-dimensional space a shape occupies. It is measured in cubic units, such as in³, ft³, cm³, or m³, or in liquid-capacity units like liters and gallons.
Which formula do I use for each shape?
Rectangular box: V = length × width × height. Cube: V = side³. Sphere: V = (4/3)πr³. Cylinder: V = πr²h. Cone: V = (1/3)πr²h. Square pyramid: V = (1/3) × base side² × height.
How do I convert a volume to liters or gallons?
1 liter equals 1000 cubic centimeters (0.001 m³). 1 US gallon equals about 3.785 liters, or roughly 231 cubic inches. This calculator converts your result to liters automatically using your chosen unit.
Why is a cone's volume one-third that of a cylinder with the same base and height?
Integrating the area of circular cross-sections from the apex to the base of a cone yields exactly one-third of πr²h, the cylinder's volume — a result that holds for any cone or pyramid compared to a prism sharing the same base and height.