Math & Science

Volume Calculator

Instantly calculate the volume of 12 geometric shapes — cube, rectangular prism, sphere, hemisphere, cylinder, cone, pyramid, triangular prism, ellipsoid, capsule, torus and frustum. Results appear simultaneously in cubic metres, cubic centimetres, cubic feet, cubic inches, litres and US gallons with full step-by-step working.

Instant Results
12 Shapes
6 Unit Outputs
Step-by-Step
100% Free

Volume Calculator

Select a shape → choose units → enter dimensions → get volume in m³, cm³, ft³, litres and gallons instantly

🧊Cube Equal sides
📦Rect. Prism Box / Cuboid
🔵Sphere Ball / Globe
🌏Hemisphere Half sphere
🥫Cylinder Pipe / Tank
🍦Cone Ice cream / Funnel
🔺Pyramid Square base
📐Tri. Prism Wedge shape
🥚Ellipsoid Egg / Oval
💊Capsule Cylinder + 2 hemis
🍩Torus Donut / Ring
🪣Frustum Truncated cone
Error
✅ Volume Result
 
Volume in All Units
Step-by-Step Working
Share Result

What Is Volume? The Complete Guide

Definitions, units, the difference between volume and capacity, and why volume matters in science and everyday life

Volume: The Measurement of 3D Space

Volume is the measure of the three-dimensional space enclosed by or occupied by an object. It answers the question: how much space does this thing take up? Volume is fundamental to physics, chemistry, engineering, architecture, medicine, cooking and everyday life. It is always expressed in cubic units — cubic metres (m³), cubic centimetres (cm³), cubic feet (ft³) — because it is the product of three linear dimensions.

The concept of volume dates back to ancient times. Archimedes famously determined the volume of an irregular object by measuring water displacement — still a valid method today for objects too complex for formulae. For regular geometric solids, precise mathematical formulas exist for every shape, derived from calculus and geometry.

🔑 Key Insight: Volume scales with the cube of linear dimensions. If you double the side of a cube, its volume increases by 2³ = 8 times. If you double the radius of a sphere, volume increases by 8 times. This non-linear scaling is why small changes in size have dramatic effects on volume — critical knowledge for engineering design, packaging and architecture.

The relationship between volume and capacity is subtle but important. Volume measures the 3D space an object occupies (solid or hollow). Capacity refers specifically to how much liquid or gas a hollow container can hold. For practical purposes they are equal for thin-walled containers. The SI unit of capacity is the litre, where 1 litre = 1 cubic decimetre (dm³) = 1,000 cm³ = 0.001 m³.

📏
SI Unit: Cubic Metre (m³)
The official SI unit of volume is the cubic metre (m³). One m³ equals 1,000 litres, 35.315 cubic feet, or 264.17 US gallons. Derived units: 1 m³ = 1,000 dm³ = 1,000,000 cm³ = 10⁹ mm³. The litre (L) and millilitre (mL) are accepted non-SI units for everyday use.
🌊
Archimedes' Displacement Principle
For irregular shapes, volume equals the volume of fluid displaced when the object is fully submerged. This principle underpins buoyancy, naval architecture, and density measurement. It is still used in industry for measuring the volume of complex castings, aggregates and irregular solids.
⚗️
Volume in Chemistry
In chemistry, volume is used to measure amounts of liquids and gases. The molar volume of an ideal gas at STP (0°C, 1 atm) is 22.414 litres per mole. Volumetric analysis (titration) uses precise volume measurements to determine concentrations. Laboratory glassware (burettes, pipettes, volumetric flasks) is calibrated to micrometre precision.
🏗️
Volume in Engineering
Engineers calculate volume for concrete, earthwork, tanks, pipelines, reservoirs and structural members. Knowing volume enables calculation of mass (volume × density), cost of materials, load on structures and flow rates. CAD software automates volume calculation for complex 3D models, but manual formulas remain essential for quick estimates and checking.

Volume Formulas for All 12 Shapes — Complete Reference

Every formula with variables defined, worked examples and real-world applications

Master Reference: Volume Formulas at a Glance
ShapeFormulaVariablesWorked ExampleReal-World Use
🧊 CubeV = a³a = side lengtha=4 cm → 64 cm³Dice, sugar cubes, storage boxes
📦 Rectangular PrismV = l × w × hl=length, w=width, h=height4×3×2 m → 24 m³Rooms, swimming pools, tanks, packaging
🔵 SphereV = (4/3)πr³r = radiusr=5 cm → 523.6 cm³Balls, bubbles, planets, balloons
🌏 HemisphereV = (2/3)πr³r = radiusr=3 m → 56.55 m³Domes, bowls, half-sphere tanks
🥫 CylinderV = πr²hr=base radius, h=heightr=2, h=5 m → 62.83 m³Pipes, tanks, cans, columns
🍦 ConeV = (1/3)πr²hr=base radius, h=heightr=3, h=6 cm → 56.55 cm³Funnels, ice cream cones, conical silos
🔺 Square PyramidV = (1/3)a²ha=base side, h=heighta=6, h=9 m → 108 m³Egyptian pyramids, rooftops, hoppers
📐 Triangular PrismV = (1/2)b·t·lb=base, t=tri. height, l=lengthb=4, t=3, l=8 m → 48 m³Roofs, wedge ramps, Toblerone
🥚 EllipsoidV = (4/3)πabca,b,c = 3 semi-axesa=3,b=2,c=1 m → 25.13 m³Eggs, rugby balls, tanks, planets
💊 CapsuleV = πr²(h + 4r/3)r=radius, h=cylinder heightr=1, h=3 cm → 13.61 cm³Medicine capsules, tanks, submarines
🍩 TorusV = 2π²Rr²R=major radius, r=minor radiusR=4, r=1 cm → 78.96 cm³Donuts, rings, O-rings, tire tubes
🪣 FrustumV = (πh/3)(R²+Rr+r²)R=bottom radius, r=top, h=heightR=4,r=2,h=6 m → 263 m³Buckets, flower pots, cooling towers
💡 π (Pi) = 3.14159265… All formulas involving circles use π. For maximum precision, always use the full value of π rather than rounding to 3.14. This calculator uses JavaScript's built-in Math.PI = 3.141592653589793 for all calculations.

Visual Formula Cards — Shape by Shape

Each shape's formula with worked example, variable definitions and practical applications

Every Formula Explained with Examples
🧊 Cube
V = a³
a = length of any side (all equal)
Example: a = 5 cm → V = 5³ = 125 cm³
A cube is a special rectangular prism where l = w = h. Doubling a side multiplies volume by 8.
📦 Rectangular Prism
V = l × w × h
l = length, w = width, h = height
Example: 4m × 3m × 2m = 24 m³
Most common shape in construction and packaging. Also called a cuboid or box.
🔵 Sphere
V = (4/3) × π × r³
r = radius (= diameter ÷ 2)
Example: r = 5 cm → (4/3)π(125) = 523.6 cm³
A sphere has the smallest surface area for a given volume — nature's most efficient shape.
🌏 Hemisphere
V = (2/3) × π × r³
r = radius of the flat face
Example: r = 4 m → (2/3)π(64) = 134.04 m³
Exactly half a sphere's volume. Used for domes, bowls and half-sphere storage tanks.
🥫 Cylinder
V = π × r² × h
r = base radius, h = height
Example: r=3, h=8 cm → π×9×8 = 226.2 cm³
The most common shape for containers (cans, tanks, pipes). Prism with circular cross-section.
🍦 Cone
V = (1/3) × π × r² × h
r = base radius, h = perpendicular height
Example: r=3, h=9 cm → (1/3)π×9×9 = 84.82 cm³
Exactly ⅓ the volume of a cylinder with the same base and height.
🔺 Square Pyramid
V = (1/3) × a² × h
a = base side length, h = vertical height
Example: a=6m, h=9m → (1/3)×36×9 = 108 m³
Great Pyramid of Giza: base 230.4m, height 138.8m → V ≈ 2,459,712 m³!
📐 Triangular Prism
V = (1/2) × b × t × l
b = triangle base, t = triangle height, l = prism length
Example: b=4, t=3, l=10 m → ½×4×3×10 = 60 m³
Used for ramp volumes, roof structures, Toblerone-shaped packages.
🥚 Ellipsoid
V = (4/3) × π × a × b × c
a, b, c = three semi-axis lengths
Example: a=3,b=2,c=1.5 m → (4/3)π×9 = 37.70 m³
A sphere is a special ellipsoid where a=b=c=r. Earth is an oblate spheroid (a=b>c).
💊 Capsule
V = π × r² × (h + 4r/3)
r = radius, h = cylinder section height
Example: r=1cm, h=4cm → π×1×(4+1.33) = 16.76 cm³
Cylinder capped by two hemispheres. Used for pharmaceutical capsules and submarine hulls.
🍩 Torus
V = 2 × π² × R × r²
R = major radius (centre to tube centre), r = minor radius (tube radius)
Example: R=5, r=1.5 cm → 2π²×5×2.25 = 222.1 cm³
Donut shape. Used for O-rings, life preservers, architectural ring structures.
🪣 Frustum (Truncated Cone)
V = (πh/3) × (R² + Rr + r²)
R=bottom radius, r=top radius, h=height
Example: R=4,r=2,h=6 m → (π×6/3)×(16+8+4) = 175.9 m³
Buckets, conical hoppers, flower pots, cooling towers, wine glasses.

How to Use the Volume Calculator

Step-by-step guide for students, engineers, architects and everyday users

From Shape Selection to Answer in Seconds
  • 1
    Select Your Shape

    Click one of the 12 shape tiles. Each shape is illustrated with an emoji and labelled clearly. The input fields update automatically to show only the dimensions relevant to the selected shape — for example, selecting Cylinder shows radius and height fields; selecting Rectangular Prism shows length, width and height.

  • 2
    Choose Your Input Unit

    Select the unit your measurements are in: metres (m), centimetres (cm), millimetres (mm), feet (ft), inches (in) or yards (yd). You can mix shapes but must keep all dimensions in the same unit within one calculation. All output appears simultaneously in 6 different units regardless of input unit chosen.

  • 3
    Enter the Dimensions

    Type the measurements into the input fields. For a Cube: just one side length. For a Sphere: radius only. For a Cylinder: radius and height. For a Rectangular Prism: length, width and height. For complex shapes like Ellipsoid (3 semi-axes) or Torus (major and minor radius), more fields appear. Decimal values are fully supported.

  • 4
    Click Calculate Volume

    Press the green "Calculate Volume" button. The result hero panel shows the primary volume in cubic metres (m³). The "Volume in All Units" grid simultaneously displays the result in cm³, ft³, in³, litres and US gallons — saving you from manual unit conversions.

  • 5
    Review the Step-by-Step Working

    Click "Step-by-Step Working" to expand the full solution panel. It shows the formula name, variable substitutions with your actual values, intermediate calculations and the final result. This is particularly useful for students checking homework, teachers preparing examples, or engineers validating calculations.

💡 Pro Tip: Use the sidebar volume converter to convert any volume between units instantly — useful when you already know the volume in one unit and need it in another without recalculating. Calculation history in the sidebar stores your last 20 results for easy reference.

Volume in Science, Nature & Engineering — Key Facts

Fascinating applications of volume across physics, chemistry, biology and engineering

The Power of Volume in the Real World
🌍
Volume of the Earth

Earth is an oblate spheroid with an equatorial radius of 6,371 km. Using the sphere formula, V ≈ (4/3)π×(6.371×10⁶)³ ≈ 1.083 × 10²¹ m³ (1.083 trillion km³). The volume of all Earth's oceans combined is about 1.335 billion km³ — just 0.12% of Earth's total volume.

📦
The Sphere: Nature's Most Efficient Shape

Among all shapes with the same surface area, the sphere has the greatest volume (isoperimetric inequality). This is why bubbles, water droplets, and cells are spherical — nature minimises surface energy. A sphere with surface area 100 cm² has 29.6% more volume than a cube with the same surface area.

🏛️
The Great Pyramid's Volume

The Great Pyramid of Giza has a square base of 230.4 m and original height of 146.5 m. Volume = (1/3) × 230.4² × 146.5 = 2,592,276 m³ — enough to fill the Empire State Building almost twice. This is approximately 2.3 million cubic metres of limestone, granite and mortar.

🔬
Volume in Biochemistry

Human red blood cells are biconcave discs with a volume of approximately 90 fL (femtolitres = 10⁻¹⁵ L). An adult human body contains about 5 litres of blood with ~25 trillion red blood cells. The human cell nucleus has an average volume of ~500 µm³. DNA in a single nucleus, if stretched out, would be ~2 metres long — all packed into a 6 µm sphere.

🏗️
Volume Scaling in Engineering

When you scale a structure up by factor k, its volume (and mass) scales by k³ but its cross-sectional area (structural strength) scales by only k². This is why large animals need proportionally thicker bones than small animals (the square-cube law), and why you can't simply scale up a model bridge to full size without redesigning the structure.

🥤
Practical Volume: Containers

Standard volume benchmarks: 1 teaspoon = 5 mL. 1 cup = 250 mL. 1 litre bottle = 1,000 cm³ (10×10×10 cm cube). Standard bathtub ≈ 200–300 litres. Swimming pool (Olympic) = 2,500 m³ = 2.5 million litres. Fuel tanker ≈ 30,000 litres. Supertanker ≈ 500,000 m³.

🌡️
Volume and Temperature (Gases)

For ideal gases, volume is directly proportional to temperature (at constant pressure): V ∝ T (Charles's Law). A balloon that occupies 10 L at 20°C (293K) will shrink to 8.3 L when cooled to −20°C (253K). This is why car tyres appear deflated in cold weather and why hot air balloons rise — the heated air inside is less dense (larger volume per mole of gas).

🎲
Volume of Irregular Shapes

For complex irregular shapes, volume is calculated by: (1) Water displacement (Archimedes' method), (2) Numerical integration (breaking the shape into thin slices — used in CAD), (3) 3D scanning + mesh analysis (modern industrial method), or (4) Monte Carlo simulation (random point sampling — used in physics and finance). All ultimately reduce to summing infinitesimally small regular volumes.

Volume Unit Conversions — Complete Reference

Every volume unit conversion factor you need — from millilitres to cubic miles

From Millilitres to Cubic Miles

Volume units span an enormous range — from the femtolitre (10⁻¹⁵ L) used in cell biology to the cubic kilometre (10⁹ m³) used in oceanography. Understanding the conversion factors between the most common units is essential for science, engineering and everyday calculations.

UnitSymbolEquivalent in m³Equivalent in LitresCommonly Used For
Cubic millimetremm³10⁻⁹ m³0.000001 LEngineering tolerances, microfluidics
MillilitremL10⁻⁶ m³0.001 LMedicine, cooking, lab measurements
Cubic centimetrecm³10⁻⁶ m³0.001 LSame as millilitre — chemistry, medicine
Teaspoon (metric)tsp5 × 10⁻⁶ m³0.005 LCooking and recipes
Tablespoon (metric)tbsp15 × 10⁻⁶ m³0.015 LCooking and recipes
Fluid ounce (US)fl oz2.957 × 10⁻⁵ m³0.02957 LBeverages (USA)
Cup (US)cup2.366 × 10⁻⁴ m³0.2366 LCooking (USA)
Pint (US liquid)pt4.731 × 10⁻⁴ m³0.4731 LBeverages (USA)
LitreL0.001 m³1 LBeverages, fuel, everyday volumes
Quart (US)qt9.464 × 10⁻⁴ m³0.9464 LBeverages, paint (USA)
Gallon (US)gal0.003785 m³3.785 LFuel, paint, large liquids (USA)
Cubic footft³0.02832 m³28.32 LConcrete, lumber, gas (USA/UK)
Cubic yardyd³0.7646 m³764.6 LConcrete, soil, aggregates (USA)
Cubic metre1 m³1,000 LConstruction, engineering, SI standard
Cubic kilometrekm³10⁹ m³10¹² LOceans, glaciers, reservoirs
📌 Key anchors to memorise: 1 m³ = 1,000 litres = 35.315 ft³ = 1.308 yd³ = 264.17 US gallons. 1 litre = 1,000 cm³ = 1 dm³ = 0.264 US gallons = 0.035 ft³.

Frequently Asked Questions

Common questions about volume formulas, unit conversions and real-world applications

What is the formula for the volume of a cylinder?
Volume of a cylinder = π × r² × h, where r is the base radius and h is the height. Steps: (1) Square the radius: r². (2) Multiply by π (3.14159). (3) Multiply by the height. Example: Cylinder with r=3 cm and h=10 cm → π × 9 × 10 = 282.74 cm³. If you know the diameter, radius = diameter ÷ 2. This formula applies to all right circular cylinders — cans, tanks, pipes and columns.
How do you calculate the volume of a sphere?
Volume of a sphere = (4/3) × π × r³. Steps: (1) Cube the radius: r³. (2) Multiply by π. (3) Multiply by 4/3 (= 1.3333…). Example: Sphere with r = 5 cm → (4/3) × π × 125 = 523.6 cm³. If given diameter: r = d/2. The sphere has the largest volume-to-surface-area ratio of any shape — this is why bubbles, planets and soap films are spherical.
What is the volume of a cone and how does it relate to a cylinder?
Volume of a cone = (1/3) × π × r² × h. A cone holds exactly one-third the volume of a cylinder with the same base radius and height. This was proved by Archimedes and is one of the most elegant results in geometry. Example: Cone with r=3cm, h=9cm → (1/3)×π×9×9 = 84.82 cm³. The cone formula applies to any cone regardless of whether it is right-angled or oblique (h is always the vertical/perpendicular height, not the slant height).
How many litres are in 1 cubic metre?
1 cubic metre (m³) = exactly 1,000 litres. This is because 1 m³ = 1,000 dm³, and 1 litre = 1 dm³ by definition. Other conversions from 1 m³: 1,000,000 cm³ (millilitres) = 35.315 ft³ = 1.308 yd³ = 264.17 US gallons = 219.97 Imperial gallons = 1,000,000 mL. Conversely, 1 litre = 0.001 m³ = 1,000 cm³ = 0.0353 ft³ = 0.2642 US gallons.
How do I calculate the volume of a rectangular box or room?
Volume of a rectangular prism (box, cuboid, room) = Length × Width × Height. All dimensions must be in the same unit. Example 1: A room 5m × 4m × 3m = 60 m³ of air. Example 2: A shipping container 12m × 2.35m × 2.39m = 67.4 m³. Example 3: A fish tank 60cm × 30cm × 40cm = 72,000 cm³ = 72 litres. For an irregular room shape, divide it into rectangular sections and sum the volumes.
What is a frustum and when is its volume formula used?
A frustum is the portion of a cone or pyramid that remains after the apex (top) has been cut off by a plane parallel to the base. The formula is V = (πh/3) × (R² + Rr + r²) where R = bottom radius, r = top radius (smaller), h = height. If r = 0, this reduces to the cone formula. Used for: buckets, flower pots, conical hoppers in factories, wine glasses, cooling towers, grain silos and any tapered container. Example: Bucket with R=15cm, r=10cm, h=20cm → (π×20/3)×(225+150+100) = 31,416 cm³ = 31.4 litres.
What is the difference between volume and surface area?
Volume measures the 3D space inside a shape — how much it can hold. It is expressed in cubic units (cm³, m³). Surface area measures the total area of the outer surface — how much material is needed to cover it. It is expressed in square units (cm², m²). They scale differently: if you double all linear dimensions, volume increases by 2³=8 times but surface area only by 2²=4 times. This ratio is critical in biology (why small animals have relatively large surface areas for heat loss) and materials science (why nanoparticles are highly reactive — enormous surface-area-to-volume ratio).