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.
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:
| Shape | Formula | Key Dimensions | Example (units) |
|---|---|---|---|
| Cube | V = s³ | s = side length | s=5 → V=125 |
| Rectangular Box | V = l × w × h | length, width, height | 4×3×2 = 24 |
| Cylinder | V = π × r² × h | r = radius, h = height | r=3, h=10 → V≈283 |
| Sphere | V = (4/3) × π × r³ | r = radius | r=5 → V≈524 |
| Cone | V = (1/3) × π × r² × h | r = radius, h = height | r=3, h=10 → V≈94 |
| Pyramid | V = (1/3) × B × h | B = base area, h = height | B=25, h=6 → V=50 |
| Ellipsoid | V = (4/3) × π × a × b × c | a, b, c = semi-axes | a=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.
| Unit | Equivalent Metric | Equivalent US | Common Use |
|---|---|---|---|
| 1 cm³ | 1 mL | 0.0338 fl oz | Medicine dosing |
| 1 litre | 1,000 cm³ | 1.057 qt / 0.264 gal | Beverages, fuel |
| 1 m³ | 1,000 litres | 264.2 US gallons | Construction, water tanks |
| 1 ft³ | 28.317 litres | 7.481 US gallons | HVAC, shipping |
| 1 US gallon | 3.785 litres | 4 quarts / 128 fl oz | Fuel, paint |
| 1 cubic yard | 764.6 litres | 27 ft³ / 202 US gal | Concrete, 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.
- Standard room (4m × 3m × 2.5m): V = 30 m³ = 30,000 litres of air (important for HVAC sizing)
- 20-foot shipping container: ~33 m³ internal volume
- Standard aquarium (60cm × 30cm × 36cm): 64,800 cm³ = 64.8 litres
- Olympic swimming pool (50m × 25m × 2m): 2,500 m³ = 2.5 million litres
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.
| Object | Dimensions | Volume |
|---|---|---|
| Tennis ball | r = 3.25 cm | ~144 cm³ |
| Basketball | r = 12 cm | ~7,238 cm³ ≈ 7.2 L |
| Earth | r = 6,371 km | 1.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:
- Fill a container (measuring cylinder or graduated bucket) with a known volume of water.
- Fully submerge the irregular object.
- Read the new water level.
- 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:
- Concrete: Ordered in cubic yards. A 10ft × 10ft × 4-inch slab = 10 × 10 × 0.333 ft³ = 33.3 ft³ = 1.23 cubic yards. Always add 10% waste.
- Raised garden bed: 8ft × 4ft × 12-inch depth = 32 ft³ = 1.19 cubic yards of soil needed.
- Fish tank sizing: 1 inch of fish per gallon of water is a rough guideline. A 20-gallon tank can house ~20 inches of small fish (e.g., 10 two-inch fish).
- Mulch/topsoil delivery: Sold by the cubic yard. A 100 ft² garden bed with 3-inch mulch depth needs 100 × 0.25 ft = 25 ft³ ≈ 0.93 cubic yards ≈ 1 yard.
- Paint coverage: 1 gallon of paint typically covers 350–400 ft² with one coat. Calculate wall area, divide by coverage, account for multiple coats and waste.
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:
- Biology: Small cells have high SA:V ratios, allowing efficient gas exchange and nutrient diffusion. Larger organisms need specialised systems (lungs, circulatory system) to compensate for their lower SA:V.
- Cooking: Smaller pieces cook faster because they have more surface area relative to volume — the heat penetrates to the centre more quickly. Dicing vs. quartering a potato significantly changes cooking time.
- Chemical reactions: Catalysts with higher surface area (fine powders, porous materials) react faster. Explosives are dangerous partly because small particle size creates enormous reactive surface area.
- Heat loss: A sphere minimises SA:V ratio for a given volume — this is why soap bubbles are spherical and why penguins huddle in a ball shape to conserve heat.
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.
| Material | Density (g/cm³) | 1 Litre Weight | Note |
|---|---|---|---|
| Water | 1.00 | 1.00 kg | Definition of kg (historical) |
| Concrete (typical) | 2.30 | 2.30 kg | Varies with mix |
| Aluminium | 2.70 | 2.70 kg | Light structural metal |
| Steel | 7.85 | 7.85 kg | Standard structural steel |
| Lead | 11.35 | 11.35 kg | Radiation shielding |
| Gold | 19.32 | 19.32 kg | Dense precious metal |
| Dry soil | 1.20–1.60 | 1.2–1.6 kg | Depends on compaction |
| Topsoil/compost blend | 0.80–1.00 | 0.8–1.0 kg | Light, 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 Volume | Metric (approx.) | UK Equivalent | Common Use |
|---|---|---|---|
| 1 teaspoon (tsp) | 4.93 mL | — | Spices, baking powder |
| 1 tablespoon (tbsp) | 14.79 mL | — | Butter, oil |
| ¼ cup | 59.15 mL | — | Nuts, chocolate chips |
| 1 cup | 236.6 mL | — | Flour, sugar, liquids |
| 1 fluid ounce | 29.57 mL | 28.41 mL (UK) | Cocktails, medicine |
| 1 US pint | 473.2 mL | 568 mL (UK pint) | Beer, ice cream |
| 1 US gallon | 3.785 L | 4.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>