Skip to content
Home » Math » Volume Calculator and Volume Formulas

Volume Calculator and Volume Formulas

🧮 Understanding Volume Formulas

Volume formulas are used to calculate the amount of three-dimensional space occupied by an object or shape. The correct formula depends on the shape and its dimensions.

Common volume formulas include:

  • Cube: V = s³
  • Rectangular prism: V = l × w × h
  • Cylinder: V = πr²h
  • Cone: V = ⅓πr²h
  • Sphere: V = ⁴⁄₃πr³
  • Pyramid: V = ⅓Bh

In this guide, you will find the most common volume formulas, explanations of each formula, examples of how to calculate volume, and the units used for measuring three-dimensional space.

Whether you need to calculate the volume of a cube, cylinder, cone, sphere, rectangular prism, or another 3D shape, this guide provides the formula and steps you need.

What Is Volume?

Volume is the amount of three-dimensional space that an object or substance occupies. It is commonly measured in cubic units, such as cubic meters (m³), cubic centimeters (cm³), or cubic inches (in³).

The formula used to calculate volume depends on the shape of the object. For example, the volume of a rectangular box is calculated by multiplying its length × width × height, while the volume of a cylinder is calculated using its radius and height.

Understanding how to calculate volume is useful in math, geometry, engineering, construction, science, and everyday life. Use our volume formulas and calculators to quickly find the volume of common 3D shapes.


How to Calculate Volume

To calculate the volume of a three-dimensional object, first identify its shape and then use the appropriate volume formula. Make sure all measurements use the same unit before calculating. The result will always be expressed in cubic units, such as cm³, m³, in³, or ft³.

1. Identify the shape

Determine whether you’re working with a cube, rectangular prism, cylinder, cone, sphere, pyramid, or another 3D shape.

2. Find the required measurements

Depending on the shape, you may need the length, width, height, radius, diameter, or base area.

Important: If you’re given a diameter but the formula requires a radius:
Radius = Diameter ÷ 2

3. Choose and apply the formula

For example, the volume of a rectangular prism is:
V = l × w × h

If a box is 10 cm long, 5 cm wide, and 4 cm high:
V = 10 × 5 × 4 = 200 cm³

4. Include the correct cubic unit

Because volume measures three-dimensional space, the answer is always expressed in cubic units.
For example:

centimeters → cm³
meters → m³
inches → in³
feet → ft³

Example: Calculating the Volume of a Cylinder

Suppose you have a cylinder with a radius of 5 cm and a height of 12 cm.

Step 1: Write the formula
V = πr²h

Step 2: Insert the measurements
V = π × 5² × 12

Step 3: Calculate
V = π × 25 × 12
V ≈ 942.48 cm³

Therefore, the volume of the cylinder is approximately 942.48 cm³.


Volume Formulas for Common 3D Shapes

The volume of a three-dimensional shape describes how much space the object occupies. Different shapes require different volume formulas based on their dimensions.

ShapeVolume FormulaDescription
CubeV = s³Side × side × side
Rectangular PrismV = l × w × hLength × width × height
CylinderV = πr²hBase area × height
ConeV = ⅓πr²hOne-third of the cylinder volume with the same base and height
SphereV = ⁴⁄₃πr³Based on the radius of the sphere
PyramidV = ⅓BhOne-third of the prism volume with the same base and height
Triangular PrismV = ½bh × lTriangular base area × length

What Do the Variables Mean?

The letters used in volume equations represent different measurements:

  • V = volume
  • s = side length
  • l = length
  • w = width
  • h = height
  • r = radius
  • B = area of the base
  • b = base of a triangle
  • π = approximately 3.14159

The result of a volume calculation is always expressed in cubic units, such as cubic centimeters (cm³), cubic meters (m³), or cubic inches (in³).

How to Choose the Right Volume Formula

To calculate volume, first identify the three-dimensional shape and then determine which measurements are known.

For example, a rectangular prism uses its length, width, and height, while a cylinder uses its radius and height. A sphere only requires its radius.

Once the required measurements are known, substitute them into the appropriate volume formula and calculate the result.


How to Calculate Volume for Common Shapes

Volume of a Cube

The volume of a cube is calculated by multiplying the side length by itself three times.

Formula:

V = s³

Where s is the length of one side.

Example:

If a cube has a side length of 5 cm:

V = 5³ = 5 × 5 × 5 = 125 cm³

The volume of the cube is 125 cubic centimeters.


Volume of a Rectangular Prism

A rectangular prism, also called a cuboid or rectangular box, uses its length, width, and height to calculate volume.

Formula:

V = l × w × h

Where:

  • l = length
  • w = width
  • h = height

Example:

A rectangular prism is 10 cm long, 4 cm wide, and 3 cm high:

V = 10 × 4 × 3 = 120 cm³

The volume is 120 cubic centimeters.


Volume of a Cylinder

The volume of a cylinder is calculated by multiplying the area of its circular base by its height.

Formula:

V = πr²h

Where:

  • r = radius of the circular base
  • h = height
  • π ≈ 3.14159

Example:

If a cylinder has a radius of 3 cm and a height of 10 cm:

V = π × 3² × 10

V = π × 9 × 10

V ≈ 282.74 cm³

The volume of the cylinder is approximately 282.74 cubic centimeters.


Volume of a Cone

A cone has one-third the volume of a cylinder with the same base radius and height.

Formula:

V = ⅓πr²h

Where:

  • r = radius of the base
  • h = height
  • π ≈ 3.14159

Example:

For a cone with a radius of 3 cm and a height of 10 cm:

V = ⅓ × π × 3² × 10

V ≈ 94.25 cm³

The volume is approximately 94.25 cubic centimeters.


Volume of a Sphere

The volume of a sphere is calculated using its radius.

Formula:

V = ⁴⁄₃πr³

Where:

  • r = radius of the sphere
  • π ≈ 3.14159

Example:

If a sphere has a radius of 5 cm:

V = ⁴⁄₃ × π × 5³

V = ⁴⁄₃ × π × 125

V ≈ 523.60 cm³

The volume of the sphere is approximately 523.60 cubic centimeters.


Volume of a Pyramid

The volume of a pyramid is one-third of the area of its base multiplied by its height.

Formula:

V = ⅓Bh

Where:

  • B = area of the base
  • h = perpendicular height of the pyramid

Example:

If a pyramid has a rectangular base measuring 6 cm by 4 cm and a height of 9 cm:

B = 6 × 4 = 24 cm²

V = ⅓ × 24 × 9

V = 72 cm³

The volume of the pyramid is 72 cubic centimeters.


Volume of a Triangular Prism

The volume of a triangular prism is found by multiplying the area of the triangular base by the length of the prism.

Formula:

V = ½bh × l

Where:

  • b = base of the triangle
  • h = height of the triangle
  • l = length of the prism

Example:

A triangular prism has a triangular base with a base of 6 cm and a height of 4 cm. The prism is 10 cm long.

First calculate the area of the triangular base:

A = ½ × 6 × 4 = 12 cm²

Then calculate the volume:

V = 12 × 10 = 120 cm³

The volume of the triangular prism is 120 cubic centimeters.


Why Are Volume Formulas Different?

Each three-dimensional shape has a different geometric structure, so the volume formula depends on the shape’s base and dimensions.

Many volume formulas can be understood as:

Volume = Base Area × Height

For example, a cylinder uses the area of a circular base multiplied by its height, while a prism uses the area of its base multiplied by its length or height.

Shapes such as cones and pyramids use one-third of the corresponding prism or cylinder volume because of their tapered shape.


Volume Units

Volume can be measured in different units. Some examples are:

UnitSymbol
Cubic meterm³
Cubic centimetercm³
LiterL
MillilitermL
Cubic footft³
Cubic inchin³

Common Volume Calculation Mistakes

Using diameter instead of radius
For cylinders and spheres, remember that the radius is half the diameter.

Mixing measurement units
Convert all measurements to the same unit before calculating.

Forgetting cubic units
Volume isn’t measured in cm or m. It is measured in cm³, m³, etc.

Using the wrong height
For cones and pyramids, use the perpendicular height, not the slanted side.


Frequently Asked Questions

What is volume?

Volume is the amount of three-dimensional space occupied by an object or shape. It is usually measured in cubic units, such as cubic meters (m³), cubic centimeters (cm³), or cubic inches (in³).

How do you calculate volume?

The formula for calculating volume depends on the shape. For example, the volume of a rectangular prism is calculated by multiplying length × width × height. Different 3D shapes have different volume formulas.

What is the basic volume formula?

There is no single formula that works for every shape. Common volume formulas include V = l × w × h for a rectangular prism, V = πr²h for a cylinder, and V = ⅓πr²h for a cone.

What are the units used for volume?

Volume is measured in cubic units because it measures length, width, and height. Common units include cubic meters (m³), cubic centimeters (cm³), cubic feet (ft³), and cubic inches (in³).

How do you find the volume of a cube?

To calculate the volume of a cube, multiply the side length by itself three times: V = s³, where s is the length of one side.

How do you find the volume of a cylinder?

The volume of a cylinder is calculated using the formula V = πr²h, where r is the radius of the circular base and h is the height of the cylinder.

What is the difference between volume and surface area?

Volume measures the space inside a three-dimensional object, while surface area measures the total area of its outside surfaces. Volume is measured in cubic units, while surface area is measured in square units.

Can volume formulas be used for irregular shapes?

Regular 3D shapes have specific volume formulas, but irregular objects can often be measured using methods such as water displacement. For complex shapes, the object may also be divided into smaller shapes with known volume formulas.


Volume Converter

Need to convert volume measurements?

Use our Volume Converter to convert between liters, milliliters, cubic meters, cubic centimeters and other volume units.