Volume Formulas: Cube, Cylinder, Cone, Sphere and More (With Examples)

Volume formulas: cube V = s cubed; rectangular prism V = l times w times h; cylinder V = pi r squared h; cone V = one third pi r squared h; sphere V = four thirds pi r cubed; pyramid V = one third base area times h

Volume is the amount of space inside a 3D shape, measured in cubic units such as cm³ or m³. For a box (rectangular prism), volume = length × width × height, so a 5 cm × 3 cm × 2 cm box holds 30 cm³. A cylinder is V = πr²h, a cone is ⅓πr²h, and a sphere is ⁴⁄₃πr³.

In short: Prisms and cylinders: base area × height. Cones and pyramids: one third of that. Spheres: ⁴⁄₃πr³. 1 cm³ = 1 mL, and 1,000 cm³ = 1 litre.

In this guide
  1. All volume formulas
  2. Cubes and rectangular prisms
  3. Cylinders
  4. Cones and pyramids
  5. Spheres and hemispheres
  6. Triangular prisms
  7. Units: cm³, litres and gallons
  8. Finding a missing length
  9. What happens when you double the size
  10. Volume vs surface area
  11. Real-life examples
  12. Common mistakes
  13. Practice problems
  14. FAQ

Volume Formulas for Every 3D Shape

ShapeVolume formulaExampleAnswer
Cube (side s)V = s³s = 464
Rectangular prism (box)V = l × w × h5 × 3 × 230
CylinderV = πr²hr = 3, h = 10≈ 282.74
ConeV = ⅓πr²hr = 3, h = 10≈ 94.25
SphereV = ⁴⁄₃πr³r = 6≈ 904.78
HemisphereV = ⅔πr³r = 6≈ 452.39
Square pyramidV = ⅓ × base² × hbase 6, h = 896
Triangular prismV = ½ × b × h × lengthb = 4, h = 3, length 1060
Volume formulas: cube V = s cubed; rectangular prism V = l times w times h; cylinder V = pi r squared h; cone V = one third pi r squared h; sphere V = four thirds pi r cubed; pyramid V = one third base area times h
The main volume formulas, each with a worked number.

Every prism and cylinder follows one idea: volume = area of the base × height. If you know the area formulas for flat shapes, you can find the volume of any prism.

Volume of a Cube and a Rectangular Prism

Example: Cube with side 4 cm: V = 4³ = 4 × 4 × 4 = 64 cm³.

Example: Box 5 cm long, 3 cm wide and 2 cm high: V = 5 × 3 × 2 = 30 cm³. You could fit 30 one-centimetre cubes inside it.

Volume of a Cylinder

The base is a circle with area πr², so V = πr²h. If you are given the diameter, halve it first to get the radius.

Example: Cylinder with radius 3 cm and height 10 cm: V = π × 3² × 10 = 90π ≈ 282.74 cm³.

Volume of a Cone and a Pyramid

A cone holds exactly one third of the cylinder with the same base and height, and a pyramid holds one third of the matching prism.

Example: Cone with radius 3 cm and height 10 cm: V = ⅓ × π × 3² × 10 = 30π ≈ 94.25 cm³, one third of the cylinder above.

Example: Square pyramid with a 6 m by 6 m base and height 8 m: V = ⅓ × 36 × 8 = 96 m³.

Use the perpendicular height (straight up from the base to the tip), not the slant height along the side. If you only know the slant height, find the height with the Pythagorean theorem.

Volume of a Sphere and a Hemisphere

Example: Sphere with radius 6 cm: V = ⁴⁄₃ × π × 6³ = 288π ≈ 904.78 cm³.

Example: Hemisphere (half a sphere) with radius 6 cm: V = ⅔ × π × 6³ = 144π ≈ 452.39 cm³.

Volume of a Triangular Prism

The base is a triangle, so first find its area (½ × base × height), then multiply by the length of the prism.

Example: A tent-shaped prism with a triangle 4 m wide and 3 m tall, 10 m long: V = ½ × 4 × 3 × 10 = 60 m³.

Volume Units: cm³, Litres and Gallons

UnitEquals
1 cm³1 millilitre (mL)
1,000 cm³1 litre (L)
1 m³1,000 litres = 1,000,000 cm³
1 ft³1,728 in³ ≈ 7.48 US gallons

Because volume has three dimensions, a length conversion is cubed: 1 m = 100 cm, so 1 m³ = 100³ = 1,000,000 cm³. Convert all lengths to the same unit before you multiply.

Finding a Missing Length From the Volume

  • Cube with volume 125 cm³: s = ∛125 = 5 cm. See cube roots for numbers that are not perfect cubes.
  • Cylinder with volume 500 cm³ and radius 5 cm: h = V ÷ (πr²) = 500 ÷ (25π) ≈ 6.37 cm.
  • Box with volume 30 cm³, length 5 and width 3: h = 30 ÷ 15 = 2 cm.

Each is a one-step rearrangement; our guide to solving for x explains the method.

What Happens to Volume When You Double the Size?

If every length is doubled, the volume becomes 2³ = 8 times bigger. A cube with side 4 has volume 64; a cube with side 8 has volume 512 = 8 × 64. Tripling every length multiplies the volume by 27.

Volume vs Surface Area

VolumeSurface area
MeasuresSpace insideTotal area of the outside faces
Unitscm³, m³, litrescm², m²
Cube with side 44³ = 64 cm³6 × 4² = 96 cm²
Use it forHow much a tank holdsHow much paint or wrapping you need

Real-Life Volume Examples

  • Fish tank 60 cm × 30 cm × 40 cm: 72,000 cm³ = 72 litres of water.
  • Round water tank with radius 0.5 m and height 1.2 m: π × 0.5² × 1.2 ≈ 0.94 m³ ≈ 942 litres.
  • Ice-cream cone or a funnel: use the cone formula, ⅓πr²h.

Common Mistakes

  • Using the diameter instead of the radius in πr²h, which makes the answer 4 times too big.
  • Forgetting the ⅓ for cones and pyramids.
  • Using slant height instead of perpendicular height.
  • Writing cm² for a volume; volume is always cubic (cm³).
  • Mixing units, such as metres for the radius and centimetres for the height.

Practice Problems

1. Find the volume of a cube with side 7 cm.

7³ = 343 cm³.

2. A box is 8 cm by 5 cm by 3 cm. What is its volume in litres?

8 × 5 × 3 = 120 cm³ = 0.12 litres.

3. Find the volume of a cylinder with radius 2 m and height 10 m.

π × 2² × 10 = 40π ≈ 125.66 m³.

4. Find the volume of a sphere with radius 3 cm.

⁴⁄₃ × π × 27 = 36π ≈ 113.1 cm³.

5. A cone has radius 2 cm and height 9 cm. Find its volume.

⅓ × π × 2² × 9 = 12π ≈ 37.7 cm³.

6. A square pyramid has a 10 m by 10 m base and height 6 m. Find its volume.

⅓ × 100 × 6 = 200 m³.

FAQ

What is the formula for volume?

It depends on the shape. For a box, V = length × width × height. For any prism or cylinder, V = base area × height. Cones and pyramids are one third of that, and a sphere is ⁴⁄₃πr³.

How do you find the volume of a cylinder?

Multiply π by the radius squared and then by the height: V = πr²h. For radius 3 and height 10, V ≈ 282.74.

What is the volume of a sphere?

V = ⁴⁄₃πr³. A sphere with radius 6 cm has a volume of about 904.78 cm³.

How many litres are in a cubic metre?

1 cubic metre is 1,000 litres, and 1 litre is 1,000 cm³.

What is the difference between volume and capacity?

Volume is the space an object takes up; capacity is how much a container can hold. They use the same numbers, for example a 72,000 cm³ tank holds 72 litres.

Sources and Further Reading

Related: area and perimeter formulas, Pythagorean theorem, square roots and cube roots, exponent rules, the math glossary and all free math calculators.

Check your working in seconds

Type any problem from this guide into the free CalcSolver calculator and see the answer, with fractions, instantly.