... LIVE

🎯 Select a shape to calculate its volume:

V = s³
All dimension inputs use this unit
Volume
💡
ℹ️ Results assume perfect geometric shapes. Real-world objects may have irregular dimensions. For construction or engineering applications, add a waste factor of 5-10%.
Sources & Methodology
🛡️All volume formulas are classical geometric results verified against NIST mathematical references and standard geometry textbooks.
📖
NIST Handbook of Mathematical Functions (Digital Library of Mathematical Functions)
Authoritative reference for geometric formulas and mathematical constants including π = 3.14159265358979. dlmf.nist.gov
🏛️
Archimedes — On the Sphere and Cylinder (c. 225 BC)
Original derivation of sphere volume V = (4/3)πr³ and the sphere-cylinder relationship. One of the most important geometric discoveries in history. The result: sphere volume is exactly 2/3 of its circumscribed cylinder.
📊
Euclid — Elements, Book XII (c. 300 BC) & Stewart, James — Calculus: Early Transcendentals, 8th Ed.
Rigorous proofs that cone and pyramid volumes equal 1/3 of their corresponding prism/cylinder. Calculus-based derivations of all volume formulas via integration.
All volumes calculated using exact formulas with π = 3.14159265358979 (JavaScript Math.PI).
Input dimensions converted to centimeters for calculation. Results displayed in cm³, then converted:
Liters = cm³ ÷ 1000  •  US Gallons = cm³ ÷ 3785.41  •  Cubic feet = cm³ ÷ 28316.8
Cubic meters = cm³ ÷ 1,000,000  •  Cubic inches = cm³ ÷ 16.3871

Last reviewed: April 2026

All 10 Volume Formulas — Complete Reference Guide

Volume is the measure of three-dimensional space occupied by or enclosed within an object. It is always expressed in cubic units: cubic centimeters (cm³), cubic meters (m³), cubic feet (ft³), liters, or gallons. Below are the exact formulas for every shape in this calculator, with variables defined, worked examples, and the mathematical reasoning behind each formula.

🟫CUBE
V = s³
s = side length (all sides equal)
s=4 cm: V = 64 cm³ = 0.064 L
📦RECTANGULAR BOX (CUBOID)
V = l × w × h
l=length, w=width, h=height
5×3×2 cm: V = 30 cm³ = 0.03 L
🔴SPHERE
V = (4/3) × π × r³
r = radius (diameter ÷ 2)
r=5 cm: V = 523.6 cm³ = 0.5236 L
🛢️CYLINDER
V = π × r² × h
r = base radius, h = height
r=3 cm, h=10: V = 282.7 cm³ = 0.2827 L
📌CONE
V = (1/3) × π × r² × h
r = base radius, h = vertical height
r=4 cm, h=9: V = 150.8 cm³ = 0.1508 L
📐TRIANGULAR PRISM
V = (1/2) × b × h × L
b=triangle base, h=triangle height, L=prism length
b=6, h=4, L=10: V = 120 cm³ = 0.12 L
🏛️SQUARE PYRAMID
V = (1/3) × s² × h
s = base side length, h = vertical height
s=6, h=9: V = 108 cm³ = 0.108 L
🌍HEMISPHERE
V = (2/3) × π × r³
r = radius (exactly half a sphere)
r=5 cm: V = 261.8 cm³ = 0.2618 L
🧲CONICAL FRUSTUM
V = (πh/3)(R² + Rr + r²)
R=large radius, r=small radius, h=height
R=5,r=2,h=8: V = 326.7 cm³
💊CAPSULE
V = πr²(h + 4r/3)
r = radius, h = cylinder height (between hemispheres)
r=3, h=8: V = 339.3 cm³

Why Does a Cone Hold Exactly 1/3 of a Cylinder?

One of the most beautiful relationships in geometry: a cone and a cylinder with the same base radius and height are related by a factor of exactly 1/3. This can be proven with calculus (by integrating the area of circular cross-sections from the apex to the base), but it was also demonstrated experimentally by Euclid around 300 BC. Pour water from a cone into a cylinder of the same dimensions — it takes exactly three cones to fill the cylinder. The same 1/3 relationship holds for a triangular pyramid and a triangular prism.

💡 Archimedes’ Greatest Discovery: Archimedes proved that a sphere fits inside a cylinder of height 2r and radius r, and the sphere’s volume is exactly 2/3 of the cylinder’s volume. Since the cylinder has V = πr² × 2r = 2πr³, the sphere has V = (2/3) × 2πr³ = (4/3)πr³. He was so proud of this discovery that he requested a sphere-inscribed-in-a-cylinder be carved on his tombstone. The cone, hemisphere, and cylinder with equal radius and height r are in the beautiful volume ratio of 1 : 2 : 3.

Volume vs. Capacity vs. Surface Area

These three related concepts are often confused. Volume is the total 3D space a solid object occupies, including the material it is made of. Capacity is the volume of the interior space of a hollow container — how much it can hold. For a solid metal ball, volume ≠ capacity (capacity is zero). For a hollow tank, volume ≈ capacity (assuming thin walls). Surface area is the total area of all outer faces — it is a 2D measurement (m², cm²) that describes how much material wraps the outside of the shape.

When Volume Is Not in Cubic Units — Liquids and Gases

Volume is expressed in cubic units for solids (cm³, m³, ft³). For liquids, it is more commonly expressed in liters (L), milliliters (mL), US gallons, or fluid ounces. These are simply alternative names for specific cubic volumes: 1 liter = 1000 cm³ = 1 dm³. For gases, volume depends on pressure and temperature (ideal gas law: PV = nRT). This calculator gives geometric volume — actual liquid or gas volume filling that shape may differ if the shape is a container at specific conditions.

Volume Unit Conversions — Complete Reference

Volume appears in many different units depending on the field: cubic centimeters in chemistry, liters in everyday use, gallons for fuel and fluids, cubic feet for construction and HVAC, and cubic meters for large-scale engineering. Knowing how to convert between these is essential for practical volume calculations.

🔄 Volume Conversion Factors
1 L = 1,000 cm³ = 1 dm³
1 m³ = 1,000 L = 264.17 US gal
1 US gal = 3,785.41 mL = 3.785 L
1 ft³ = 28,316.8 cm³ = 28.317 L
1 in³ = 16.387 cm³ = 0.01639 L
1 UK gal = 4,546.09 mL = 1.201 US gal
1 yd³ = 764,555 cm³ = 764.6 L
1 bbl (oil) = 158,987 mL = 42 US gal

Cylinder Volume in Liters and Gallons

A common practical need is calculating how many liters or gallons a cylindrical tank holds. The process: calculate V = πr²h in cubic centimeters (using cm), then divide by 1000 for liters or 3785.41 for US gallons. Example: a cylindrical water tank with diameter 60 cm (r=30 cm) and height 120 cm: V = π × 900 × 120 = 339,292 cm³ = 339.3 liters = 89.6 US gallons.

Cubic Feet to Cubic Yards in Construction

Concrete, soil, gravel, and mulch are commonly ordered by the cubic yard (yd³). 1 cubic yard = 27 cubic feet. For a rectangular concrete slab 20 ft × 10 ft × 0.333 ft (4 inches thick): V = 66.7 ft³ ÷ 27 = 2.47 cubic yards. This is the standard calculation for ordering concrete for a patio or driveway. Always add a 10% waste factor for concrete pours.

ShapeDimensionscm³LitersUS Gallonsft³
Cubes = 10 cm1,0001.0000.2640.0353
Spherer = 10 cm4,1894.1891.1060.1479
Cylinderr=10, h=20 cm6,2836.2831.6600.2219
Coner=10, h=20 cm2,0942.0940.5530.0740
Box30×20×15 cm9,0009.0002.3780.3178
Tri. Prismb=10, h=8, L=20 cm8000.8000.2110.0283
Pyramids=10, h=15 cm5000.5000.1320.0177
Hemispherer = 10 cm2,0942.0940.5530.0740

How Volume Calculations Are Used in Real Life

Construction — Concrete, Soil, and Gravel

Volume calculation is fundamental to construction materials estimation. Concrete for a rectangular foundation, soil for a landscaping project, or gravel for a driveway all require accurate volume calculations to determine how much material to order. The standard approach: calculate volume in cubic feet, convert to cubic yards (divide by 27), then add a 10% waste factor. For cylindrical columns or round footings, use V = πr²h. A cylindrical concrete column 12 inches in diameter and 8 feet tall requires V = π × 0.25 × 8 = 6.28 ft³ = 0.233 cubic yards of concrete.

Pool and Tank Capacity — Water Volume in Liters and Gallons

Swimming pool volume determines the amount of chemicals needed for treatment, the cost of filling the pool, and the pump sizing for filtration. A rectangular pool 12 m × 5 m × 1.5 m depth: V = 90 m³ = 90,000 liters = 23,775 US gallons. A cylindrical hot tub with diameter 2 m and depth 0.9 m: V = π × 1 × 0.9 = 2.827 m³ = 2,827 liters = 747 gallons. Pool chemical dosing is calculated per 1,000 liters or per 10,000 gallons, so accurate volume is essential to avoid over- or under-treatment.

Shipping and Logistics — Box and Container Volume

Freight volume determines shipping costs and container utilization. The rectangular box formula V = l × w × h gives the volume of a shipping carton. A 40-foot shipping container has interior dimensions approximately 12.03 m × 2.35 m × 2.39 m = 67.6 m³ of cargo volume. Freight carriers use the concept of “volumetric weight” (dimensional weight): package volume (cm³) ÷ 5000 gives the chargeable weight in kg. If this exceeds the actual weight, the dimensional weight is billed.

Medicine and Pharmacy — Dosage and Syringe Volume

In medicine, volume is critical for drug dosing. Medication concentrations are expressed in mg/mL, and the dose volume is calculated as (dose in mg) ÷ (concentration in mg/mL). Syringe and vial volumes are in milliliters (mL), where 1 mL = 1 cm³. An IV bag labeled 500 mL contains 500 cm³ of fluid. The flow rate through an IV is measured in mL/hour or drops/minute, and calculating how long a bag will last requires knowing the volume precisely.

Science — Density, Mass, and Moles

Volume connects mass, density, and amount of substance. Density = mass ÷ volume, so volume = mass ÷ density. A block of aluminum weighing 500 g with density 2.7 g/cm³ has volume = 500 ÷ 2.7 = 185.2 cm³. In chemistry, molarity = moles ÷ liters of solution. Volume is the denominator in the most fundamental concentration calculation in analytical chemistry. Archimedes’ famous bathtub discovery used volume displacement to determine the density of the king’s crown without melting it down.

💡 The Surface Area to Volume Ratio — Why Size Matters in Biology: As an object gets larger, its volume grows faster than its surface area. A cube with side 1 cm has SA:V ratio of 6:1. A cube with side 10 cm has SA:V ratio of 0.6:1 (ten times smaller). This is why small animals can survive on very little food (high SA:V means rapid heat loss, requiring more energy per gram), while large animals are more metabolically efficient. Cells must remain small because nutrients and waste must diffuse through the cell membrane (surface area) to supply the entire cell (volume) — if cells get too large, the center starves.
Frequently Asked Questions
V = s³, where s is the side length. All sides of a cube are equal. Example: s = 4 cm gives V = 64 cm³ = 0.064 liters. A cube is a special case of the rectangular box where length = width = height.
V = (4/3) × π × r³. Example: sphere with radius 5 cm: V = (4/3) × 3.14159 × 125 = 523.6 cm³ = 0.524 liters. If you know the diameter d, use r = d/2. The sphere has the maximum volume for any given surface area.
V = π × r² × h. r = base radius, h = height. Example: r = 3 cm, h = 10 cm: V = π × 9 × 10 = 282.7 cm³ = 0.283 liters. To find capacity in gallons: divide cm³ by 3785.41.
V = (1/3) × π × r² × h. A cone holds exactly 1/3 the volume of a cylinder with the same base and height. Example: r = 4 cm, h = 9 cm: V = (1/3) × π × 16 × 9 = 150.8 cm³.
V = l × w × h (length × width × height). The simplest volume formula. Example: box 5 × 3 × 2 cm = 30 cm³. A cube (all sides equal) is a special case where V = s³.
V = (1/2) × b × h_triangle × L. b = triangle base, h = triangle height, L = prism length. Example: b=6, h=4, L=10 cm: V = 0.5 × 6 × 4 × 10 = 120 cm³.
Area measures 2D space (flat surfaces) in square units (cm², m²). Volume measures 3D space (solid objects) in cubic units (cm³, m³). There is no “volume of a rectangle” — rectangles are 2D. There is a volume of a rectangular box (3D). Volume = cross-section area × depth.
Divide by 1000. 1 liter = 1000 cm³ = 1 dm³. Example: 523.6 cm³ = 0.5236 liters. For US gallons: divide cm³ by 3785.41. For cubic feet: divide cm³ by 28,316.8.
For a square pyramid: V = (1/3) × s² × h. For any pyramid: V = (1/3) × base area × height. A pyramid is always 1/3 the volume of a prism with the same base and height. Example: 6 cm square base, 9 cm height: V = (1/3) × 36 × 9 = 108 cm³.
A frustum is a cone with the top cut off by a plane parallel to the base. It has two circular bases of different sizes. Formula: V = (πh/3)(R² + Rr + r²), where R is the large base radius, r is the small top radius, and h is the height. Examples: drinking cups, buckets, lampshades, cooling towers.
V = π × r² × h (in cm). Divide by 3785.41 for US gallons. Example: cylindrical tank r=30 cm, h=120 cm: V = π × 900 × 120 = 339,292 cm³ = 89.6 US gallons. For meters: V = π × r² × h in m³, multiply by 264.17 for gallons.
With the same radius r and equal height r: cone:hemisphere:cylinder = 1:2:3. A full sphere V = (4/3)πr³. A cylinder (height 2r) V = 2πr³. Ratio = 2:3. Archimedes discovered this and considered it his greatest achievement. He requested a sphere-in-cylinder carved on his tombstone.
Concrete = V = l × w × h in cubic feet, divide by 27 for cubic yards. Example: 20 ft × 10 ft × 0.33 ft (4 inch slab) = 66.7 ft³ ÷ 27 = 2.47 cubic yards. Add 10% waste factor. Cylindrical columns: V = πr²h. Always convert to the unit your supplier uses (yd³ or m³).
Related Calculators
Popular Calculators
🧮

Missing a Math Calculator?

Can’t find the geometry or math calculator you need? Tell us — we build new ones every week.