Skip to main content
🔬 Advanced

Volume Calculator – 3D Shapes

Calculate the volume of common 3D shapes: cube, sphere, cylinder, and cone. Use this free online math calculator for instant, accurate results. No signup.

★★★★★ 4.8/5 · 📊 0 calculations · 🔒 Private & free

Volume Formulas for Common 3D Shapes

Volume measures the three-dimensional space enclosed by or occupied by an object. It is always expressed in cubic units: cubic centimetres (cm³), cubic metres (m³), cubic feet (ft³), and so on. Here are the essential formulas for the shapes covered by this calculator:

ShapeFormulaKey DimensionsExample (units)
CubeV = s³s = side lengths=5 → V=125
Rectangular BoxV = l × w × hlength, width, height4×3×2 = 24
CylinderV = π × r² × hr = radius, h = heightr=3, h=10 → V≈283
SphereV = (4/3) × π × r³r = radiusr=5 → V≈524
ConeV = (1/3) × π × r² × hr = radius, h = heightr=3, h=10 → V≈94
PyramidV = (1/3) × B × hB = base area, h = heightB=25, h=6 → V=50
EllipsoidV = (4/3) × π × a × b × ca, b, c = semi-axesa=3,b=2,c=1 → V≈25.1

The cone and pyramid formulas are exactly one-third of their corresponding prism/cylinder volumes — an elegant relationship proven by Cavalieri's principle and confirmed experimentally by pouring water from a cone into an equal-base-and-height cylinder (it takes exactly three cones to fill the cylinder).

Understanding Volume Units and Conversions

Volume units form a coherent hierarchy within both the metric and imperial systems, and conversions between systems are important for engineering, cooking, and international trade.

UnitEquivalent MetricEquivalent USCommon Use
1 cm³1 mL0.0338 fl ozMedicine dosing
1 litre1,000 cm³1.057 qt / 0.264 galBeverages, fuel
1 m³1,000 litres264.2 US gallonsConstruction, water tanks
1 ft³28.317 litres7.481 US gallonsHVAC, shipping
1 US gallon3.785 litres4 quarts / 128 fl ozFuel, paint
1 cubic yard764.6 litres27 ft³ / 202 US galConcrete, soil

Important note: The US liquid gallon (3.785 L) differs from the Imperial gallon (4.546 L). When ordering materials or comparing international specifications, always confirm which gallon is being used.

Cube and Rectangular Box Volumes

A cube is a special rectangular box where all three dimensions are equal. For a cube with side s: V = s³. The volume increases dramatically as side length grows — doubling the side length increases volume by a factor of 8 (not 2), because volume scales with the cube of linear dimensions. This "cubic scaling" explains why large animals have very different metabolic challenges compared to small ones — their volume (and hence mass and heat generation) grows much faster than their surface area.

For a rectangular prism (box): V = length × width × height. This formula applies to rooms, shipping containers, aquariums, and countless other everyday objects.

Sphere and Cylinder Volumes

The sphere volume formula V = (4/3)πr³ is one of the most elegant results in geometry, derived by Archimedes using the method of exhaustion. A sphere of radius r fits exactly inside a cylinder of radius r and height 2r, and the sphere's volume is exactly two-thirds of that cylinder's volume. Archimedes considered this discovery so important that he requested a sphere-in-cylinder diagram be carved on his tombstone.

The cylinder volume formula V = πr²h combines the area of a circle (πr²) with the height. Doubling the radius quadruples the volume (because r is squared); doubling the height only doubles the volume. This is why fat, short water tanks hold as much as tall, narrow ones of the same volume, but with very different footprints.

ObjectDimensionsVolume
Tennis ballr = 3.25 cm~144 cm³
Basketballr = 12 cm~7,238 cm³ ≈ 7.2 L
Earthr = 6,371 km1.083 × 10¹² km³
Standard can (soda)r=3.3cm, h=12.2cm~417 cm³ ≈ 355 mL
55-gallon drum (cylinder)r=28cm, h=88cm~216,500 cm³ ≈ 216 L

Cone and Pyramid Volumes

Both cones and pyramids have volumes equal to one-third the volume of the corresponding prism or cylinder with the same base and height. This factor of 1/3 has a geometric explanation: you can exactly fill a prism with three non-overlapping pyramids of equal base and height, a demonstration that goes back to ancient Greece.

Cone: V = (1/3) × π × r² × h. The slant height l = √(r² + h²) — useful for calculating the lateral surface area: A = π × r × l. The total surface area (including base): A_total = π × r × l + π × r².

Pyramid: V = (1/3) × B × h, where B is the area of the base (any polygon) and h is the vertical height. For a square pyramid (side s, height h): V = (1/3) × s² × h.

The Great Pyramid of Giza: base 230.4m × 230.4m, original height ~146.5m → V = (1/3) × 230.4² × 146.5 ≈ 2,600,000 m³. That is roughly 2.6 million cubic metres of limestone blocks — a staggering volume achieved with ancient tools.

Volume of Irregular Shapes: Water Displacement

For irregular objects with no simple geometric formula, Archimedes' water displacement method remains the most practical approach:

  1. Fill a container (measuring cylinder or graduated bucket) with a known volume of water.
  2. Fully submerge the irregular object.
  3. Read the new water level.
  4. Volume of object = New water level − Original water level (in the same volumetric units).

This method works for any solid object that is denser than water (so it sinks). For objects less dense than water (like wood), attach a sinker of known volume, measure the combined displacement, then subtract the sinker volume.

In engineering, irregular volumes are often calculated using 3D CAD software or by numerical integration of cross-sectional areas (the prismatoid rule). Medical imaging uses voxel counting on CT or MRI scans to calculate the volume of organs or tumours.

Practical Volume Applications

Volume calculations appear constantly in construction, home improvement, gardening, cooking, and daily life:

Surface Area vs Volume: The Ratio That Governs Nature

The surface area-to-volume ratio (SA:V) is one of the most important concepts in biology, chemistry, and engineering. As an object grows in size, its volume increases faster than its surface area (volume scales as r³, surface area as r²). This has profound implications:

Frequently Asked Questions

How do I calculate the volume of a cylinder?

V = π × r² × h, where r is the radius and h is the height. Example: cylinder with radius 4 cm and height 10 cm → V = π × 16 × 10 ≈ 502.7 cm³ ≈ 502.7 mL ≈ 0.503 litres.

How do I calculate the volume of a sphere?

V = (4/3) × π × r³. Example: sphere of radius 5 cm → V = (4/3) × π × 125 ≈ 523.6 cm³. For a sphere of diameter d: V = (π/6) × d³. Note that doubling the radius increases volume by a factor of 8.

How do I calculate the volume of an irregular shape?

Use water displacement: submerge the object in a measuring container of water and measure how much the water level rises. Volume displaced = volume of the object. Alternatively, use 3D scanning or CAD software for precise measurements.

What is the difference between volume and capacity?

Volume is the total 3D space occupied by an object (including the material itself). Capacity is how much a hollow container can hold. A thick-walled tank has more volume than capacity. In practice, both terms are often used interchangeably for containers.

How many litres are in a cubic metre?

Exactly 1,000 litres = 1 cubic metre. This is because 1 litre = 1 dm³ = 0.001 m³. Conversely, 1 m³ = 1,000 litres = 1,000,000 mL = 1,000,000 cm³.

How do I calculate how many cubic yards of concrete I need?

Measure length × width × thickness in feet, divide the total by 27 (since 1 cubic yard = 27 cubic feet). Add 5–10% waste. Example: 12 ft × 12 ft × 4 inches (0.333 ft) = 48 ft³ ÷ 27 ≈ 1.78 cubic yards → order 2 yards.

What is the volume of a cone compared to a cylinder of the same size?

A cone is exactly one-third the volume of a cylinder with the same base radius and height. V_cone = (1/3) × V_cylinder = (1/3) × π × r² × h. It takes exactly three conical fills to equal one cylindrical container of the same dimensions.

How do I find the volume of a box from its dimensions?

Multiply length × width × height. Ensure all three measurements use the same unit before multiplying. Example: 30 cm × 20 cm × 15 cm = 9,000 cm³ = 9 litres. If dimensions are in different units, convert first.

How many gallons are in a cubic foot?

1 cubic foot = 7.481 US gallons = 6.229 Imperial gallons. Conversely, 1 US gallon = 0.1337 cubic feet = 231 cubic inches = 3.785 litres.

What is the volume of the human body?

The average adult human body has a volume of approximately 62–74 litres (62,000–74,000 cm³), which can be measured by water displacement in a specially designed tank. Since the human body is close to the density of water (average ~985 kg/m³), this volume corresponds to a mass of roughly 61–73 kg.

Volume and Density: Connecting Mass, Volume, and Material Properties

Volume is only half the picture for many physical problems — the other half is density. Density = Mass / Volume (ρ = m/V). Knowing a material's density allows you to calculate its mass from its volume, or vice versa. This is essential for structural engineering (will this beam be strong enough for its weight?), shipping logistics (will this cargo exceed weight limits?), and everyday tasks like estimating whether a piece of furniture can be carried upstairs.

MaterialDensity (g/cm³)1 Litre WeightNote
Water1.001.00 kgDefinition of kg (historical)
Concrete (typical)2.302.30 kgVaries with mix
Aluminium2.702.70 kgLight structural metal
Steel7.857.85 kgStandard structural steel
Lead11.3511.35 kgRadiation shielding
Gold19.3219.32 kgDense precious metal
Dry soil1.20–1.601.2–1.6 kgDepends on compaction
Topsoil/compost blend0.80–1.000.8–1.0 kgLight, airy mix

Practical example: A cubic metre of concrete weighs 2,300 kg (2.3 tonnes). A driveway slab 10m × 4m × 0.1m has volume = 4 m³ and weight = 4 × 2,300 = 9,200 kg (9.2 tonnes). This calculation determines whether the existing sub-base and soil can support the structure without sinking or cracking.

Buoyancy: An object floats if its average density is less than the fluid it is placed in. A steel ship floats because the hull shape creates a large volume of air inside — the average density of the ship including the enclosed air is less than 1.0 g/cm³. Archimedes' principle states the buoyant force equals the weight of displaced fluid, which directly uses the volume of the submerged object. Hot air balloons float because the heated air inside has lower density than the cooler surrounding air — the balloon envelope encloses a fixed volume, and reducing the density of the air inside reduces the total mass below that of the displaced outside air, generating lift. The same principle explains why ships made of steel (density ~7.85 g/cm³) can float: the hollow hull design gives them an average density far below that of water.

Volume in Cooking and Baking

Cooking uses volume measurements as the primary unit for both wet and dry ingredients in the US and UK, while professional baking worldwide prefers weight (grams) for accuracy. Understanding volume-to-weight conversions is essential for recipe scaling and international recipe adaptation.

US volume measurements follow a consistent doubling pattern: 1 tablespoon = 3 teaspoons; 1 cup = 16 tablespoons = 8 fluid ounces; 2 cups = 1 pint; 2 pints = 1 quart; 4 quarts = 1 gallon.

US VolumeMetric (approx.)UK EquivalentCommon Use
1 teaspoon (tsp)4.93 mLSpices, baking powder
1 tablespoon (tbsp)14.79 mLButter, oil
¼ cup59.15 mLNuts, chocolate chips
1 cup236.6 mLFlour, sugar, liquids
1 fluid ounce29.57 mL28.41 mL (UK)Cocktails, medicine
1 US pint473.2 mL568 mL (UK pint)Beer, ice cream
1 US gallon3.785 L4.546 L (UK gallon)Fuel, paint, milk

The UK pint is about 20% larger than the US pint — a source of confusion when using international recipes. A UK pint of beer is 568 mL; a US pint is 473 mL. When an American recipe calls for a pint of cream and you're in the UK, use 473 mL (not 568 mL) for accuracy.

Professional bakers measure by weight (grams) rather than volume because ingredient density varies: 1 cup of all-purpose flour can weigh anywhere from 120 to 145 grams depending on how it is measured (scooped vs sifted vs spooned). Weight measurements eliminate this variability entirely.

<h2>Volume Calculations for Construction and DIY Projects</h2>
<p>Accurate volume calculation is essential for construction planning and materials purchasing. Common applications include concrete, fill dirt, mulch, and pool water:</p>
<p><strong>Concrete:</strong> Ordered in cubic yards (US) or cubic metres (EU). Calculate the volume of the form, then add 10% waste. For a rectangular slab: V = L × W × D. For a cylindrical footing: V = π × r² × D. A standard 4-inch driveway (4ft wide, 20ft long) uses approximately: V = 4 × 20 × 0.333 = 26.6 ft³ = 0.99 cubic yards ≈ 1 yard.</p>
<p><strong>Swimming pool volume:</strong> Important for chemical dosing, heating costs, and pump sizing. A rectangular pool (12m × 5m × 1.5m deep) holds 12 × 5 × 1.5 = 90 m³ = 90,000 litres. A round above-ground pool (diameter 4m, depth 1.2m) holds π × 2² × 1.2 ≈ 15.1 m³ ≈ 15,100 litres.</p>
<p><strong>Raised garden bed:</strong> To fill a 4ft × 8ft × 12-inch bed: V = 4 × 8 × 1 = 32 ft³. At a typical bulk density of 80 lbs/ft³, you need about 2,560 lbs of soil mixture. In cubic yards: 32/27 ≈ 1.2 cubic yards of soil/compost blend.</p>
},{"@type":"Question","name":"What is the difference between volume and capacity?","acceptedAnswer":{"@type":"Answer","text":"Volume is the amount of space an object occupies. Capacity is the amount a container can hold. For practical purposes they are often the same, but technically a thick-walled container has a larger volume than capacity."}},{"@type":"Question","name":"How many liters in a cubic meter?","acceptedAnswer":{"@type":"Answer","text":"Exactly 1,000 liters = 1 cubic meter. This makes conversion easy: divide liters by 1,000 to get cubic meters, multiply cubic meters by 1,000 to get liters."}}]}