Home & DIY / Geometry

Volume Calculator: How to Calculate the Volume of 3D Shapes

Calculate the exact volume of rectangular boxes, cylinders, spheres, cones, and pyramids. Converts automatically across cubic feet, cubic yards, cubic meters, liters, and gallons.

Direct Answer (How do I calculate volume?): For a rectangular box or room, multiply Length × Width × Height. For example, a 10 ft × 5 ft × 4 ft space holds 200 cubic feet (ft³), which equals 7.41 cubic yards, 5.66 cubic meters (m³), or 1,496 US gallons. For a cylinder, use π × r² × h; for a sphere, use (4/3) × π × r³.

Shape & Dimensions

How to calculate volume: core mathematical formulas

Volume measures the three-dimensional space occupied by a solid object or liquid container. The formula depends directly on the geometric shape:

ShapeStandard Volume FormulaRequired MeasurementsExample (Inputs: 10, 5, 4 ft)
Rectangular Prism / BoxV = Length × Width × HeightLength, Width, Height10 × 5 × 4 = 200 ft³
CylinderV = π × r² × HeightRadius, Heightπ × 3² × 8 = 226.19 ft³
SphereV = (4/3) × π × r³Radius(4/3) × π × 5³ = 523.60 m³
ConeV = (1/3) × π × r² × HeightBase Radius, Height(1/3) × π × 3² × 6 = 56.55 ft³
Square / Rectangular PyramidV = (1/3) × L × W × HeightBase Length, Base Width, Height(1/3) × 6 × 6 × 9 = 108 ft³
Standard 3-dimensional volume equations for engineering, construction, and mathematics.

Common volume unit conversion cheat sheet

When measuring spaces, units often need to be converted between solid measurements (cubic feet, cubic yards) and liquid capacities (liters, gallons):

  • 1 Cubic Foot (ft³) = 1,728 cubic inches (in³) = 0.03704 cubic yards (yd³) = 28.3168 Liters = 7.4805 US Gallons.
  • 1 Cubic Yard (yd³) = 27 cubic feet (ft³) = 764.55 Liters = 201.97 US Gallons. (Essential for ordering ready-mix concrete, gravel, and bulk topsoil).
  • 1 Cubic Meter (m³) = 1,000 Liters = 35.3147 cubic feet = 264.172 US Gallons.
  • 1 US Gallon = 231 cubic inches = 0.13368 cubic feet = 3.7854 Liters.

Frequently asked questions about calculating volume

How do I find the volume if I only have diameter instead of radius?

The radius is always half of the diameter (r = Diameter ÷ 2). For example, if a cylindrical tank has an internal diameter of 6 feet, its radius is 3 feet. Plug 3 feet into the cylinder volume equation: π × 3² × Height.

How do I calculate the volume of an irregular shape?

For complex architectural rooms or landscaping beds, break the shape down into smaller rectangular sections, calculate the volume of each individual box, and sum them together. For irregular solids in science, use the water displacement method: submerge the object in a graduated cylinder and measure the volume change in milliliters.

How many bags of concrete or soil make 1 cubic yard?

One cubic yard equals 27 cubic feet. If using standard 2 cubic foot bags of soil, you need 14 bags (13.5 rounded up). For 60 lb bags of concrete (which yield approx 0.45 ft³), you need 60 bags to yield one cubic yard.

Created and formula-tested by Velour Trends · Updated 9 November 2026. Certified geometric standards. Report a calculation issue.