Volume Calculator
Calculate volume of 3D shapes: box, sphere, cylinder, cone, and pyramid. Convert between cubic units, liters, and gallons.
Formula
Box: V = L×W×H | Sphere: V = (4/3)πr³
Volume formulas vary by shape. Results given in multiple units including cubic cm, liters, and gallons.
Worked Examples
Example 1: Rectangular Tank
Problem:Calculate the volume and capacity of a tank 2m × 1.5m × 1m.
Solution:Volume = L × W × H V = 2 × 1.5 × 1 = 3 m³ Capacity in liters: 3 m³ × 1000 = 3000 liters In gallons: 3000 × 0.264 = 792 gallons
Result:3 m³ = 3000 liters
Example 2: Basketball Volume
Problem:A basketball has diameter 24 cm. Find its volume.
Solution:Radius = 24/2 = 12 cm V = (4/3)πr³ V = (4/3) × π × 12³ V = (4/3) × π × 1728 V = 7238.2 cm³ V = 7.24 liters
Result:7238 cm³ (7.24 L)
Example 3: Ice Cream Cone
Problem:Cone: radius 3cm, height 12cm. How much ice cream fits?
Solution:V = (1/3)πr²h V = (1/3) × π × 3² × 12 V = (1/3) × π × 9 × 12 V = (1/3) × 339.3 V = 113.1 cm³ ≈ 113 mL
Result:113 cm³ (113 mL)
Frequently Asked Questions
How do I calculate volume of a box?
Volume = Length × Width × Height. For a box 10cm × 8cm × 6cm: V = 10 × 8 × 6 = 480 cm³ = 0.48 liters.
What is the formula for sphere volume?
V = (4/3)πr³. For a sphere with radius 5cm: V = (4/3) × π × 5³ = 523.6 cm³. The radius is half the diameter.
How do I find cylinder volume?
V = πr²h. For a cylinder with radius 4cm and height 10cm: V = π × 4² × 10 = 502.7 cm³. Think of it as base area × height.
What's the difference between volume and capacity?
Volume is the space an object occupies. Capacity is how much a container can hold. They're equivalent but capacity usually refers to liquids (liters, gallons).
How do I convert cubic centimeters to liters?
1 liter = 1000 cm³. Divide cm³ by 1000. 5000 cm³ = 5 liters. Also, 1 mL = 1 cm³.
How do I calculate cone volume?
V = (1/3)πr²h. A cone is 1/3 the volume of a cylinder with same base and height. For r=3cm, h=9cm: V = (1/3) × π × 9 × 9 = 84.8 cm³.
What is a cubic meter in liters?
1 cubic meter = 1000 liters. Also 1 m³ = 1,000,000 cm³. A cubic meter is a very large volume—about 264 gallons.
How do I calculate pyramid volume?
V = (1/3) × base area × height. For rectangular pyramid: V = (1/3) × length × width × height. Pyramids are 1/3 of a prism volume.
What's the volume of a swimming pool?
Rectangular pool: L × W × average depth. For 10m × 5m × 1.5m deep: V = 75 m³ = 75,000 liters = ~20,000 gallons.
How do I calculate irregular shape volume?
Use water displacement: submerge object, measure water displaced. Or break into regular shapes, calculate each, and sum. Integration for complex shapes.
Background & Theory
Volume is the measure of three-dimensional space enclosed by or occupied by an object. Unlike area (which measures a flat, two-dimensional surface), volume accounts for all three spatial dimensions — length, width, and depth. Volume is expressed in cubic units: cubic centimeters (cm³), cubic meters (m³), cubic inches (in³), cubic feet (ft³), liters (L), or gallons (gal), depending on the context and the measurement system used.
Fundamental Volume Formulas:
Rectangular Prism (Box or Cuboid):
V = length × width × height
The most common shape for rooms, boxes, tanks, and shipping containers. All three dimensions must be in the same unit before multiplying.
Sphere:
V = (4/3) × π × r³
The sphere formula was derived by Archimedes. The radius r is half the diameter. Because radius is cubed, small changes in radius produce large changes in volume — doubling the radius increases volume by a factor of 8.
Cylinder:
V = π × r² × h
A cylinder is essentially a circle (base area = πr²) extruded along its height. Useful for calculating the volume of pipes, tanks, cans, and columns.
Cone:
V = (1/3) × π × r² × h
A cone holds exactly one-third the volume of a cylinder with the same base radius and height. This relationship was proven by Archimedes and Euclid.
Pyramid (Rectangular Base):
V = (1/3) × length × width × height
Similarly, a pyramid contains one-third the volume of a rectangular prism (box) with the same base dimensions and height. This applies to pyramids with any polygonal base when the appropriate base area is used.
Hemisphere:
V = (2/3) × π × r³
Half a sphere. A hemisphere with radius r holds exactly half the volume of a full sphere.
Understanding the Formulas Geometrically:
The factor of 1/3 in the cone and pyramid formulas can be understood intuitively: you can fit exactly 3 cones (or pyramids) worth of material into the corresponding cylinder (or prism) of the same base and height. This is demonstrated by filling a cone with water and pouring it into an equal-base cylinder exactly three times to fill it.
Unit Conversions:
Volume units are cubic, meaning conversion factors are cubed: 1 foot = 12 inches, so 1 cubic foot = 12³ = 1,728 cubic inches. 1 meter = 100 centimeters, so 1 m³ = 100³ = 1,000,000 cm³ = 1,000 liters. The US liquid gallon equals 231 cubic inches = 3.785 liters. The imperial (UK) gallon equals 4.546 liters — about 20% larger than the US gallon.
Key equivalencies: 1 mL = 1 cm³ (exactly, by definition). 1 liter = 1,000 mL = 1,000 cm³. 1 m³ = 1,000 liters = 1 kiloliter. 1 US gallon = 3.785 liters. 1 ft³ = 28.317 liters. 1 in³ = 16.387 cm³.
Practical Applications:
Volume calculations are essential for: determining how much concrete, water, or fill material a container holds; calculating shipping dimensions and freight class; dosing medications (ml and mg/ml); sizing HVAC systems (room air volume); designing tanks, pools, and reservoirs; and solving chemistry problems involving molar volume and concentration. The displacement method — measuring volume by submerging an object in water and measuring the displaced volume — extends these techniques to irregular shapes that have no simple geometric formula.