Volume Calculator

Find the volume of a cube, rectangular prism, cylinder, sphere, cone or pyramid. Choose a unit, enter the dimensions, and this volume calculator returns the answer in cubic units plus liters, gallons, cubic feet, cubic yards and more. Everything runs in the browser.

  • 6 common shapes
  • mm, cm, m, in, ft, yd
  • Liters and gallons
  • Stays on your device

Formula: V = l × w × h. All dimensions use the selected unit. For a cylinder, sphere or cone, enter the radius, which is half the diameter.

Volume formulas

  • Cube: V = s³
  • Rectangular prism: V = l × w × h
  • Cylinder: V = π r² h
  • Sphere: V = (4/3) π r³
  • Cone: V = (1/3) π r² h
  • Pyramid: V = (1/3) × base length × base width × height

Worked example

A tank is a cylinder with a radius of 2 ft and a height of 5 ft. Its volume is π × 2² × 5 = 62.83 ft³. That is about 470 US gallons or 1,779 liters. A sphere with a 3 ft radius is (4/3) × π × 27 = 113.10 ft³, and a cone with the same radius and a 4 ft height is 37.70 ft³.

Ordering material by the cubic yard

This page gives the geometry. If you are ordering mulch, soil, gravel or concrete, the cubic yard calculator turns length, width and depth into cubic yards and bag counts. For a circle's edge and area, use the circumference calculator, and to work out a radius from a squared value, the square root calculator. Powers like r³ can be checked with the exponent calculator, and very large or small results can be rewritten with the scientific notation calculator.

Frequently asked questions

What is volume?

Volume is the amount of three-dimensional space a solid takes up. It is measured in cubic units such as cubic feet (ft³), cubic meters (m³) or liters. A box 2 ft long, 3 ft wide and 4 ft high holds 24 ft³.

How do I use this volume calculator?

Pick a shape, pick a unit, and enter each dimension in that unit. The calculator returns the volume in cubic units and also in cubic meters, liters, US gallons, cubic feet, cubic yards, cubic inches and cubic centimeters.

What is the volume formula for a rectangular prism or cube?

A rectangular prism is length × width × height. A cube is the special case where all sides match, so the volume is side³. A 3 ft cube holds 27 ft³, which is exactly 1 cubic yard.

How do I find the volume of a cylinder?

Use V = π r² h, where r is the radius and h is the height. A cylinder with radius 2 and height 5 has a volume of π × 4 × 5 = 62.83 cubic units. If you only know the diameter, halve it first.

How do I find the volume of a sphere?

Use V = (4/3) π r³. A sphere with radius 3 has a volume of (4/3) × π × 27 = 113.10 cubic units. The volume grows with the cube of the radius, so doubling the radius makes the volume 8 times larger.

What are the volume formulas for a cone and a pyramid?

A cone is one third of a cylinder with the same base and height: V = (1/3) π r² h. A pyramid is one third of a prism: V = (1/3) × base length × base width × height. A cone with radius 3 and height 4 holds 12π, about 37.70 cubic units.

How do I convert cubic feet, cubic meters and liters?

One cubic meter is 1,000 liters, about 35.315 cubic feet and about 1.308 cubic yards. One cubic foot is about 7.481 US gallons or 28.317 liters. The result panel does these conversions for you. For yard-based material orders, use the cubic yard calculator.

Why must every dimension use the same unit?

Volume multiplies lengths together, so mixing inches and feet gives a wrong answer. Convert everything to one unit first, or use the unit switcher and enter all dimensions in that unit. The result is then in that unit cubed.

Is my data saved or uploaded?

No. The volume calculator runs entirely in your browser. Your numbers are not sent to a server or stored, and there is no account.