Volume Calculator

Calculate the volume of twelve common solids: sphere, hemisphere, cube, tank, cylinder, cone, square pyramid, capsule, spherical cap, frustum, ellipsoid, and tube. Enter the measurements and get the volume and surface area in any unit, including litres and gallons.

https://hexacalculator.com/calculators/mathematics/geometry/volume-calculator

Mathematics

Geometry

Volume Calculator

Calculate the volume of twelve common solids: sphere, hemisphere, cube, tank, cylinder, cone, square pyramid, capsule, spherical cap, frustum, ellipsoid, and tube. Enter the measurements and get the volume and surface area in any unit, including litres and gallons.

Volume Calculator

Choose a solid

Choose the 3D solid whose volume you want to find.

Enter the measurements

Only the boxes for the solid you picked are shown. Set each field's unit with the switch on its right; the volume updates as you type.

Result

Surface area
cm²

A sphere's volume is four thirds of pi times the radius cubed. With a radius of 5 cm, it holds 523.6 cm³ and its outer surface measures 314.16 cm².

Loading calculator…

Volume is the measure of space occupied by a three-dimensional object or how much it can hold. This calculator allows you to calculate volume for twelve common geometric shapes. Select a shape and enter dimensions to see its volume instantly. The total surface area of the object will also be shown at the same time.

Since volume is a three-dimensional measurement, it will always be expressed in cubic units, such as cubic centimeters or cubic feet. For liquids, liters and gallons are commonly used. By changing the unit of measure in either field, the tool will convert so that you can measure a storage tank in feet and read the volume in gallons or liters, for example.

Here's how to use this calculator:

First select the desired geometric shape in the Shape menu. The input fields will change accordingly and only show the dimensions actually required for that shape.

Enter each dimension and set the unit of measure. The volume will update instantly as you type in anything, and it will show up both in a large easy to see main display and also in a field that can be copied. The surface area is shown next to it. To try out another shape just select a new shape from the menu.

Formulas for calculating volume for each geometric shape.

Each geometric shape has its own formula. This calculator uses the following formulas. Pi is approximately 3.14159. The total surface area is also shown, which is the sum of all surfaces, both flat and curved. If a base exists, it is also taken into account.

Solid

You enter

Volume

Surface area

Sphere

radius

four thirds pi r cubed

4 pi r squared

Hemisphere

radius

two thirds pi r cubed

3 pi r squared

Cube

edge

edge cubed

6 times edge squared

Rectangular tank

length, width, height

length times width times height

2 times (lw + lh + wh)

Cylinder

radius, height

pi r squared times h

2 pi r times (r + h)

Cone

radius, height

one third pi r squared h

pi r times (r + slant)

Square pyramid

base edge, height

one third base squared times h

base plus four triangles

Capsule

radius, side length

cylinder plus a sphere

4 pi r squared + 2 pi r h

Spherical cap

sphere radius, cap height

pi h squared over 3 times (3R minus h)

dome plus flat base

Conical frustum

two radii, height

pi h over 3 times (R squared + Rr + r squared)

two circles plus a slanted band

Ellipsoid

three semi-axes

four thirds pi a b c

close approximation

Tube or pipe

outer radius, inner radius, length

pi times (R squared minus r squared) times length

outer and inner walls plus two rings

The volume increases cubically depending on the dimensions.

If all sides of a geometric shape are doubled, the volume is multiplied by eight instead of just doubling. This is because volume is the product of three sides. If you multiply two by two and then again by two, it becomes eight. The surface area however only changes by a factor of four since it depends on two sides.

For this reason, a small change in dimensions can lead to a large change in volume. Also, it is apparent that cubic units cannot be converted directly into linear units. One meter is approximately 3.28 feet, while one cubic meter is more than 35 cubic feet. This is because the ratio must be raised to the third power.

The one-third rule for cones and pyramids

The volume of a cone is one-third the volume of a cylinder that exactly encloses it, i.e., a cylinder with the same base and height. Similarly, the volume of a pyramid is one-third the volume of an enclosing prism with the same base and height.

Vcone=13πr2hVpyramid=13a2hV_{cone} = \tfrac{1}{3}\pi r^2 h \qquad V_{pyramid} = \tfrac{1}{3}a^2 h

So the volume of a cone with radius 3 and height 4 is one-third the product of π and the product of 9 and 4, which is about 37.7 units cubed. The volume of a full cylinder surrounding the cone would be three times that number. To calculate surface area, you also need the slant height, which is measured along the inclined face. You can find the slant height using the Pythagorean theorem with the vertical height and the radius of the base.

A sphere has the largest volume of any shape with the same surface area, which is why bubbles and water droplets naturally form into a spherical shape. The volume of a sphere is determined by its radius alone.

Vsphere=43πr3Vhemisphere=23πr3V_{sphere} = \tfrac{4}{3}\pi r^3 \qquad V_{hemisphere} = \tfrac{2}{3}\pi r^3

A hemisphere has half the volume of a full sphere. A capsule is a cylinder with hemispheres at either end. Since the two hemispheres together make one sphere, the volume of the capsule is equal to the sum of the volumes of the cylinder and the sphere. A spherical cap is a portion of a sphere that is cut off by a plane. If the plane cuts the sphere such that the height of the cap is exactly half the diameter of the sphere, then it is called a hemisphere.

Volume of tubes and pipes

A pipe (also called a tube) is a hollow cylinder. To calculate the volume of the pipe wall, first find the volume of the outer complete cylinder and then subtract the volume of the inner hollow cylinder that goes through it.

Vtube=π(R2r2)hV_{tube} = \pi\left(R^2 - r^2\right)h

Where R is the outer radius, r is the inner radius and h is the length. If you know the diameter, divide it by two to get the radius. When a value for the inner radius (0) is entered, this equates to a solid bar, or normal cylinder, so both values are identical.

Examples of calculations:

Since these examples use predefined dimensions, all of the examples can be reproduced. The method for calculating volume varies depending on the shape.

Solid

Measurements

Volume

Surface area

Sphere

radius 5 cm

523.60 cu cm

314.16 sq cm

Hemisphere

radius 4 cm

134.04 cu cm

150.80 sq cm

Cube

edge 4 cm

64 cu cm

96 sq cm

Rectangular tank

6 by 4 by 5 cm

120 cu cm

148 sq cm

Cylinder

radius 3 cm, height 7 cm

197.92 cu cm

188.50 sq cm

Cone

radius 3 cm, height 4 cm

37.70 cu cm

75.40 sq cm

Square pyramid

base 6 cm, height 4 cm

48 cu cm

96 sq cm

Capsule

radius 3 cm, side 4 cm

226.19 cu cm

188.50 sq cm

Spherical cap

sphere 5 cm, cap 3 cm

113.10 cu cm

160.22 sq cm

Conical frustum

radii 4 and 2 cm, height 6 cm

175.93 cu cm

182.05 sq cm

Ellipsoid

axes 6, 4, 3 cm

301.59 cu cm

231.28 sq cm

Tube or pipe

outer 4, inner 3 cm, length 6 cm

131.95 cu cm

307.88 sq cm

Volume, capacity, liters, gallons:

Volume and capacity are nearly the same thing. Volume is the space occupied by an object while capacity is how much a container can hold. For thin-walled containers, both values will be almost equal.

It is useful to remember the relationship between cubic units and everyday liquid measures. One litre is exactly one thousand cubic centimetres, so a cube with sides of ten centimetres will hold exactly one litre. A cubic metre is one thousand litres, and a US gallon is about 3.785 litres. If you select litres or gallons in the Volume field, the tool will automatically convert.

Areas of application for volume calculation:

Volume is used to determine how much a container can hold or the amount of material that will be required to fill a space. It is used to determine the amount of water in aquariums and swimming pools, the amount of soil needed for flower beds, the amount of concrete for foundations, and the amount of fuel or liquid in storage tanks.

In shipping and storage, costs are often calculated by volume rather than weight. So knowing the volume of boxes and their contents is important for efficient packing. In cooking and medicine, quantities and dosages are often given in terms of volume. And in science, determining an object's volume is the first step to calculating its density, which is mass divided by volume.

Determination of volume for irregular objects:

If the object does not fit into one of these regular geometric shapes, there are two options. You can break up the object into several regular parts and then calculate and add the volume of each part. For example, a grain silo is a cylinder with a cone or dome on top.

Alternatively, the volume can be measured directly by the displacement method. The object is placed in a container of water and it is measured how much the water level rises or how much water overflows. The volume of displaced water equals the volume of the object. This method was developed more than two thousand years ago by Archimedes.

Tips for accurate results:

Before reading the results, make sure all dimensions of the same body are in the same unit. When measuring the height of a cone or pyramid, measure along the centerline and not along the slanted surface. This is because vertical height is used for volume.

Since volume changes in proportion to the third power of length, small errors in measurement lead to much larger errors in the result. If accuracy is required, measure twice.

This tool is for general educational purposes and everyday planning. For technical applications, construction or other high risk work these values should be checked against the standards and tolerances required by your project.

Frequently asked questions

What is the difference between volume and capacity?

Volume is the amount of space an object takes up while capacity is the amount a container can hold. For containers with thin walls, both values are practically equal. Volume is expressed in cubic units such as cubic centimeters whereas capacity is usually expressed in liters or gallons. This calculator allows you to convert between these two values.

How is volume stated?

You can use any cubic units you want. For solids, these include millimeters, centimeters and meters cubed. In the US system, they are inches, feet and yards cubed. For liquids or volumes, liters and gallons are often used. One liter is equal to one thousand cubic centimeters, and a US gallon is about 3.785 liters. The tool will automatically convert it if you select a unit in the "volume" field.

How do you calculate volume of an irregular object?

There are two methods. Either break the object down into simple geometric shapes for which this calculator provides formulas, calculate the volume of each of those shapes and add up the results. Alternatively use the displacement method: place the object in water and measure how much the water level rises. The volume of displaced water is equal to the volume of the object.

Can this calculator also calculate surface area?

Yes. Besides the volume it also shows the total surface area of the body, that is to say the sum of all surfaces, both flat and curved. If the object has a base, this will be taken into account as well. This is useful if you need both the internal volume and the amount of material required to enclose the object.

How to calculate volume of pipes or tubes?

A pipe is a hollow cylinder. You first calculate the volume of the outer complete cylinder and then subtract the volume of the inner hollow cylinder. This means you multiply pi by the difference between the square of the outside radius and the square of the inside radius, and then by the length. When you select the shape of the pipe and enter the outside radius, inside radius, and length, the tool calculates the result.

Related calculators

Disclaimer: This calculator is provided for general informational and educational purposes only. Our calculators are under active development, and results may be inaccurate, incomplete, or unsuitable for your situation. Always verify the figures independently and seek advice from a qualified professional before relying on them. We make no warranties and accept no liability for any loss or decision arising from use of this tool.

References

  1. Wikipedia: Volume

    Definition of volume and the formulas for common solids.

  2. Wikipedia: Frustum

    Volume of a conical frustum, a cone with its tip cut off.

  3. Math is Fun: Volume

    Plain-language volume formulas for spheres, boxes, cylinders, cones, and more.