Volume Calculator

Solid shapes are assumed to be filled with the material.

Volume
—
Surface area
—
Weight
—
UnitVolume
Ellipsoid surface area uses an approximation (about 1% accuracy); all other values are exact formulas. Gallons are US gallons. Weight is an estimate from typical densities. For educational and general use; verify critical measurements.

A volume calculator helps you find the amount of three-dimensional space occupied by an object or the capacity of a container. Whether you need to calculate the volume of a cylinder, rectangular tank, sphere, cube, cone, or tube, the right formula makes the process straightforward.

Enter the required dimensions, select the appropriate units, and calculate the volume. You can use the result for geometry problems, construction measurements, liquid storage, aquarium planning, and other everyday calculations.

This volume calculator can help with measurements in cubic meters (m³), cubic feet, liters, gallons, and other common units. For a rectangular object, use the length × width × height formula. For a cylinder, use its radius and height.

You can also use this Limit Calculator.

What Is Volume?

Volume is the amount of three-dimensional space occupied by a solid or enclosed by a container. It is measured in cubic units, such as cubic meters, cubic centimeters, or cubic feet.

The SI unit of volume is the cubic meter, written as m³. Liquid capacity is often expressed in liters or gallons.

For example, a rectangular box with a length of 4 feet, width of 3 feet, and height of 2 feet has a volume of:

[
V=l\times w\times h
]

[
V=4\times3\times2=24\text{ ft}^3
]

The box has a volume of 24 cubic feet.

Volume formulas vary depending on the shape. Some objects can be calculated using a single formula, while more complex shapes may be divided into smaller solids. If the density of a material is known, its volume can also be calculated from its mass.

How to Use the Volume Calculator

Follow these steps to calculate the volume of a shape or container:

  1. Choose the shape you want to calculate, such as a sphere, cylinder, cube, or rectangular tank.
  2. Enter the required measurements, including radius, height, length, width, or diameter.
  3. Select the measurement unit for each dimension.
  4. Click Calculate to find the volume.
  5. Review the result in the displayed cubic unit.
  6. Convert the result to liters, gallons, m³, or another unit if needed.

Use consistent measurements when calculating volume manually. If dimensions are entered in different units, convert them to the same unit before applying the formula.

Volume Calculator Formulas for Common Shapes

The following formulas are used to calculate the volume of common three-dimensional shapes.

ShapeVolume Formula
Sphere(V=\frac43\pi r^3)
Cone(V=\frac13\pi r^2h)
Cube(V=a^3)
Cylinder(V=\pi r^2h)
Rectangular prism or tank(V=lwh)
Capsule(V=\pi r^2h+\frac43\pi r^3)
Spherical cap(V=\frac13\pi h^2(3R-h))
Conical frustum(V=\frac13\pi h(r^2+rR+R^2))
Ellipsoid(V=\frac43\pi abc)
Square pyramid(V=\frac13a^2h)
Hollow tube(V=\frac{\pi}{4}(d_1^2-d_2^2)l)

Here, (r) is the radius, (h) is the height, (a) is an edge length, (l) is length, and (R) represents the larger radius where applicable.

Sphere Volume Calculator

A sphere is a perfectly round three-dimensional shape. Every point on its surface is the same distance from its center. A ball is a familiar example of a spherical object.

The volume of a sphere is calculated using its radius:

[
V=\frac43\pi r^3
]

Where:

  • (V) = volume
  • (r) = radius
  • (\pi) ≈ 3.14159

Example: Calculate the Volume of a Sphere

A spherical water balloon has a radius of 0.15 feet. Find its volume.

[
V=\frac43\pi(0.15)^3
]

[
V\approx0.01414\text{ ft}^3
]

The volume is approximately 0.01414 cubic feet.

Remember that the radius is half the diameter. If you know the diameter, divide it by 2 before using the formula.

Cone Volume Calculator

A cone has a circular base and tapers to a single point called the apex. Ice cream cones and some funnels are common examples.

The volume of a right circular cone is:

[
V=\frac13\pi r^2h
]

Where:

  • (r) = radius of the circular base
  • (h) = perpendicular height of the cone

Example: Find the Volume of a Cone

A cone has a radius of 1.5 inches and a height of 5 inches.

[
V=\frac13\pi(1.5)^2(5)
]

[
V\approx11.781\text{ in}^3
]

The cone has a volume of approximately 11.781 cubic inches.

Cube Volume Calculator

A cube is a solid with six equal square faces. All its edges have the same length.

The volume formula is:

[
V=a^3
]

Where (a) is the length of one edge.

Example: Calculate Cube Volume

A cube has an edge length of 2 feet.

[
V=2^3=8\text{ ft}^3
]

Its volume is 8 cubic feet.

Cylinder Volume Calculator

A cylinder has two parallel circular bases connected by a curved surface. Cylindrical tanks, cans, and pipes are common examples.

The cylinder volume formula is:

[
V=\pi r^2h
]

Where:

  • (r) = radius of the base
  • (h) = perpendicular height of the cylinder

Example: Cylinder Volume Calculation

A cylindrical tank has a radius of 3 feet and a height of 4 feet.

[
V=\pi(3)^2(4)
]

[
V=36\pi
]

[
V\approx113.097\text{ ft}^3
]

The cylinder has a volume of approximately 113.097 cubic feet.

Volume Calculator in Litres of a Cylinder

To calculate the volume of a cylinder in liters, first calculate its volume in cubic centimeters or cubic meters.

If the radius and height are measured in centimeters:

[
V=\pi r^2h
]

The result is in cubic centimeters. Convert it to liters using:

[
1\text{ L}=1,000\text{ cm}^3
]

For example, a cylinder with a radius of 10 cm and a height of 50 cm has a volume of:

[
V=\pi(10)^2(50)
]

[
V\approx15,707.96\text{ cm}^3
]

[
V\approx15.708\text{ L}
]

Rectangular Volume Calculator

A rectangular prism is a three-dimensional shape with six rectangular faces. Boxes, rooms, and rectangular storage containers can be measured using this formula:

[
V=l\times w\times h
]

Where:

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

Example: Length × Width × Height Volume Calculator

A rectangular container measures 4 feet long, 3 feet wide, and 2 feet high.

[
V=4\times3\times2
]

[
V=24\text{ ft}^3
]

The container has a volume of 24 cubic feet.

Although people sometimes refer to this as a rectangle volume calculator, the formula calculates the volume of a rectangular prism. A rectangle itself is a two-dimensional shape and has area, not volume.

Rectangular Tank Volume Calculator

A rectangular tank is a container with a length, width, and height. Its capacity can be calculated using the same formula as a rectangular prism:

[
V=lwh
]

Example: Tank Volume Calculation

A rectangular water tank has these dimensions:

  • Length = 5 meters
  • Width = 2 meters
  • Height = 1.5 meters

[
V=5\times2\times1.5
]

[
V=15\text{ m}^3
]

The tank's full geometric capacity is 15 cubic meters.

To convert this volume into liters:

[
1\text{ m}^3=1,000\text{ L}
]

[
15\times1,000=15,000\text{ L}
]

The tank can hold 15,000 liters when filled to its full internal dimensions.

For an actual tank, use its internal measurements. If the tank is only partially filled, calculate the volume using the current liquid height rather than the full tank height.

Tank Volume Calculator for Different Shapes

Tank volume depends on its shape. The formulas below can help calculate the capacity of common tanks.

Tank ShapeFormula
Rectangular tank(V=lwh)
Cylindrical tank(V=\pi r^2h)
Horizontal cylinderDepends on liquid depth and tank radius
Spherical tank(V=\frac43\pi r^3)
Conical tank(V=\frac13\pi r^2h)

For a tank that is not filled to the top, the liquid volume may be different from the tank's total capacity. For horizontal cylindrical tanks, the liquid depth must be considered to calculate the amount of liquid inside accurately.

Capsule Volume Calculator

A capsule consists of a cylinder with two hemispherical ends. Its volume is the sum of the cylindrical section and the two hemispheres, which together form one sphere.

[
V=\pi r^2h+\frac43\pi r^3
]

Where:

  • (r) = radius of the hemispherical ends
  • (h) = length of the cylindrical section

Example: Capsule Volume

A capsule has a radius of 1.5 feet and a cylindrical section height of 3 feet.

[
V=\pi(1.5)^2(3)+\frac43\pi(1.5)^3
]

[
V\approx21.206+14.137
]

[
V\approx35.343\text{ ft}^3
]

The capsule volume is approximately 35.343 cubic feet.

Spherical Cap Volume Calculator

A spherical cap is the part of a sphere separated by a plane. A hemisphere is a special case of a spherical cap.

The volume formula is:

[
V=\frac13\pi h^2(3R-h)
]

Where:

  • (h) = height of the cap
  • (R) = radius of the original sphere

The base radius (r), sphere radius (R), and cap height (h) are related by:

[
r=\sqrt{2Rh-h^2}
]

If the base radius and cap height are known, the sphere radius can be calculated using:

[
R=\frac{h^2+r^2}{2h}
]

Example: Spherical Cap Volume

A spherical cap has a sphere radius of 1.68 inches and a height of 0.3 inches.

[
V=\frac13\pi(0.3)^2(3(1.68)-0.3)
]

[
V\approx0.447\text{ in}^3
]

The cap's volume is approximately 0.447 cubic inches.

Conical Frustum Volume Calculator

A conical frustum is the part of a cone that remains after it is cut by a plane parallel to its base. Buckets, lampshades, and some drinking glasses have this shape.

The volume formula is:

[
V=\frac13\pi h(r^2+rR+R^2)
]

Where:

  • (r) = smaller base radius
  • (R) = larger base radius
  • (h) = height of the frustum

Example: Conical Frustum Volume

A frustum has a height of 4 inches and base radii of 1.5 inches and 0.2 inches.

[
V=\frac13\pi(4)(0.2^2+0.2(1.5)+1.5^2)
]

[
V\approx10.849\text{ in}^3
]

The volume is approximately 10.849 cubic inches.

Ellipsoid Volume Calculator

An ellipsoid is a three-dimensional shape similar to a stretched or compressed sphere. It has three principal axes, which may have different lengths.

Its volume is:

[
V=\frac43\pi abc
]

Where (a), (b), and (c) are the three semi-axis lengths.

Example: Ellipsoid Volume

An ellipsoid has semi-axis lengths of 1.5 inches, 2 inches, and 5 inches.

[
V=\frac43\pi(1.5)(2)(5)
]

[
V\approx62.832\text{ in}^3
]

The volume is approximately 62.832 cubic inches.

Square Pyramid Volume Calculator

A square pyramid has a square base and triangular faces that meet at an apex. Its volume is one-third of the base area multiplied by its perpendicular height.

[
V=\frac13a^2h
]

Where:

  • (a) = base edge length
  • (h) = perpendicular height

Example: Square Pyramid Volume

A square pyramid has a base edge of 5 feet and a height of 12 feet.

[
V=\frac13(5)^2(12)
]

[
V=\frac13(25)(12)
]

[
V=100\text{ ft}^3
]

The pyramid has a volume of 100 cubic feet.

For a pyramid with a different base shape, use the general formula:

[
V=\frac13Bh
]

Here, (B) is the area of the base.

Tube Volume Calculator

A tube is a hollow cylinder. Its volume is calculated by subtracting the inner cylindrical space from the outer cylindrical volume.

Using the outer diameter, inner diameter, and length:

[
V=\frac{\pi}{4}(d_1^2-d_2^2)l
]

Where:

  • (d_1) = outer diameter
  • (d_2) = inner diameter
  • (l) = tube length

Example: Tube Volume

A tube has an outer diameter of 3 feet, an inner diameter of 2.5 feet, and a length of 10 feet.

[
V=\frac{\pi}{4}(3^2-2.5^2)(10)
]

[
V=\frac{\pi}{4}(9-6.25)(10)
]

[
V\approx21.598\text{ ft}^3
]

The material volume is approximately 21.598 cubic feet.

This formula calculates the volume of the tube material, not the amount of liquid that can flow through its hollow interior.

Volume Calculator in m³

Cubic meters are the standard SI unit for volume. The symbol is m³, which means a cube measuring one meter on each side.

To calculate volume in m³, use dimensions measured in meters.

For a rectangular object:

[
V=lwh
]

If the length is 2 meters, width is 3 meters, and height is 4 meters:

[
V=2\times3\times4=24\text{ m}^3
]

If your measurements are in centimeters, convert them to meters before calculating:

[
100\text{ cm}=1\text{ m}
]

For example, 200 cm × 300 cm × 400 cm becomes 2 m × 3 m × 4 m, giving a volume of 24 m³.

Volume Calculator in Feet and Inches

You can calculate volume using feet, inches, or a combination of both. However, convert all measurements to the same unit before applying the formula.

For example:

  • Length = 5 feet 6 inches
  • Width = 3 feet
  • Height = 2 feet

Convert 5 feet 6 inches to feet:

[
5+\frac{6}{12}=5.5\text{ ft}
]

Then calculate:

[
V=5.5\times3\times2
]

[
V=33\text{ ft}^3
]

If you prefer cubic inches, convert every dimension to inches:

[
66\times36\times24=57,024\text{ in}^3
]

Both results represent the same volume.

Volume Calculator Litres, Gallons, and Other Units

Volume can be expressed in different units depending on the application. Liters and gallons are commonly used for liquid capacity, while cubic feet and cubic meters are often used for larger objects and tanks.

Common Volume Unit Conversions

UnitEquivalent in m³Equivalent in liters
1 milliliter (mL)0.0000011
1 cubic centimeter (cm³)0.0000011
1 cubic inch (in³)0.00001638716.387
1 US pint0.000473176473.176
1 US quart0.000946353946.353
1 liter (L)0.0011,000
1 US gallon0.0037854123,785.412
1 cubic foot (ft³)0.02831684728.316847
1 cubic yard (yd³)0.764554858764.555
1 cubic meter (m³)11,000,000

Important: These gallon conversions use the US liquid gallon. The imperial gallon used in the UK is different:

[
1\text{ US gallon}\approx3.785\text{ L}
]

[
1\text{ imperial gallon}\approx4.546\text{ L}
]

Convert Cubic Feet to Liters

To convert cubic feet to liters, multiply by 28.316847.

[
\text{Liters}=\text{ft}^3\times28.316847
]

For example:

[
10\text{ ft}^3\times28.316847
\approx283.168\text{ L}
]

Convert Cubic Meters to Liters

One cubic meter equals 1,000 liters.

[
\text{Liters}=\text{m}^3\times1,000
]

For example:

[
2.5\text{ m}^3\times1,000=2,500\text{ L}
]

Convert Liters to US Gallons

To convert liters to US gallons, divide by approximately 3.785412.

[
\text{US gallons}=\frac{\text{Liters}}{3.785412}
]

For example:

[
20\text{ L}\div3.785412\approx5.283\text{ US gallons}
]

Volume Calculator for Aquarium

An aquarium's capacity can be calculated using its internal length, width, and height. For a rectangular aquarium:

[
V=lwh
]

If the measurements are in centimeters, the volume will be in cubic centimeters. Divide by 1,000 to convert the result to liters.

Example: Aquarium Volume

An aquarium measures 80 cm long, 35 cm wide, and 40 cm high.

[
V=80\times35\times40
]

[
V=112,000\text{ cm}^3
]

Convert to liters:

[
112,000\div1,000=112\text{ L}
]

The aquarium's geometric capacity is 112 liters.

The actual water volume may be lower because of gravel, decorations, equipment, and the space left above the waterline. Use the internal dimensions for a more accurate capacity estimate.

Volume Calculator Radiology

In radiology, volume calculations may be used to estimate the size of organs, lesions, or other structures from imaging measurements. The appropriate method depends on the shape and the imaging technique.

For example, if a structure is approximated as an ellipsoid, its volume can be estimated using:

[
V=\frac43\pi abc
]

Here, (a), (b), and (c) represent the semi-axis measurements.

This is a geometric estimate, not a substitute for a radiologist's interpretation. Actual radiology volume measurements may use image segmentation or specialized clinical software, particularly when the structure does not have a regular shape.

Volume, Area, and Density: What Is the Difference?

Volume, area, and density are related measurements, but they describe different properties.

MeasurementWhat it describesCommon units
VolumeThree-dimensional space occupiedm³, cm³, L, ft³
AreaTwo-dimensional surface sizem², cm², ft²
DensityMass per unit volumekg/m³, g/cm³

An area calculator finds the surface size of a two-dimensional shape. A volume calculator finds the space occupied by a three-dimensional object.

A density calculator can help determine density when mass and volume are known:

[
\rho=\frac{m}{V}
]

Where (\rho) is density, (m) is mass, and (V) is volume.

If density and mass are known, volume can be calculated using:

[
V=\frac{m}{\rho}
]

This method is useful when the material has a known, uniform density.

Frequently Asked Questions

How do I calculate volume?

Choose the formula that matches the shape. For a rectangular object, multiply length by width by height. For a cylinder, multiply (\pi) by the square of its radius and its height.

What is the formula for volume?

The formula depends on the shape. Common examples include:

[
V=lwh
]

for a rectangular prism,

[
V=\pi r^2h
]

for a cylinder, and

[
V=\frac43\pi r^3
]

for a sphere.

How do I calculate volume in liters?

First calculate the volume in cubic centimeters or cubic meters. Then convert the result:

[
1\text{ L}=1,000\text{ cm}^3
]

[
1\text{ m}^3=1,000\text{ L}
]

How do I calculate the volume of a cylinder?

Use:

[
V=\pi r^2h
]

Measure the cylinder's radius and perpendicular height in the same unit, then substitute the values into the formula.

How do I calculate the volume of a rectangular tank?

Multiply its internal length, width, and height:

[
V=lwh
]

If the dimensions are measured in meters, the answer will be in m³. Multiply cubic meters by 1,000 to convert to liters.

How do I calculate volume in cubic feet?

Use dimensions measured in feet. For a rectangular object:

[
V=lwh
]

The result will be in cubic feet. If the dimensions are in inches, convert them to feet first or calculate in cubic inches and convert afterward.

Can I use a volume calculator for an aquarium?

Yes. For a rectangular aquarium, multiply its internal length, width, and height. Convert the result to liters if needed. The actual water volume may be less than the full geometric capacity.

What is the difference between volume and capacity?

Volume describes the three-dimensional space occupied by an object. Capacity usually refers to how much a container can hold, such as water or another liquid. For a container, capacity is commonly calculated from its internal dimensions.

Does this calculator work for irregular shapes?

Regular shapes can be calculated using established formulas. Irregular objects may need to be divided into simpler shapes, measured using another method, or analyzed using numerical techniques. A single standard formula may not be sufficient.