How much space does an object occupy? How much water can a tank hold? What size container do you need to store a particular item? These questions all involve volume, but the calculation depends on the shape and its dimensions.
This Volume Calculator helps you find the volume of six common three-dimensional shapes: spheres, cylinders, rectangular prisms, cones, pyramids, and capsules. Enter the required measurements for your selected shape to calculate its volume, total surface area, and approximate liquid capacity in gallons.
Whether you are measuring a storage box, estimating the capacity of a cylindrical container, or working through a geometry problem, the calculator gives you a way to obtain these measurements without working through every formula manually.
Which Shape Should You Select in the Volume Calculator?
Before entering measurements, identify the basic shape of the object. Two objects can have similar dimensions but require different volume formulas because their geometry is different.
Here is how to recognise the six shapes available in the calculator.
Sphere: For Completely Round Objects
A sphere is a perfectly round three-dimensional solid. Every point on its surface is the same distance from its centre. Balls, globes, and spherical decorative objects are familiar examples.
To calculate the volume of a sphere, you need its radius, which is the distance from the centre to the outer surface. If you only know the diameter, divide it by two to get the radius.
For example, a ball with a radius of 3 inches has a volume of approximately 113.10 cubic inches.
Cylinder: For Objects With Circular Ends
A cylinder has two equal, parallel circular bases connected by a curved surface. Water tanks, cans, drums, and many pipes have a cylindrical shape.
Its volume depends on two measurements:
A wider cylinder can hold considerably more than a narrow one, even when both have the same height, because the radius is squared in the formula.
Rectangular Prism: For Boxes and Storage Containers
A rectangular prism, also called a cuboid, has six rectangular faces. It is one of the most common shapes encountered in everyday measurements.
Cardboard boxes, storage containers, cupboards, and rectangular tanks are typical examples.
You need three dimensions:
Multiplying these measurements gives the volume in cubic units. For example, a box measuring 8 inches long, 5 inches wide, and 4 inches high has a volume of 160 cubic inches.
Cone: For Objects That Narrow to a Point
A cone has a circular base and a curved surface that narrows towards a single point, called the apex. Funnels, traffic cones, and ice-cream cones are familiar examples.
The volume calculation requires the radius of the circular base and the perpendicular height from the base to the apex.
A cone does not have the same volume as a cylinder with an identical base and height. It holds exactly one-third as much because its sides taper towards a point.
Pyramid: For Solids With a Polygonal Base
A pyramid has a flat polygonal base and triangular faces that meet at a common point. A square-based pyramid is one of the easiest examples to recognise.
For a square pyramid, the volume depends on the side length of the base and the perpendicular height from the base to the apex.
Do not confuse perpendicular height with slant height. Perpendicular height runs straight from the apex to the base at a right angle, while slant height follows one of the triangular side faces.
Capsule: For Rounded, Cylinder-Like Objects
A capsule has a straight cylindrical section with a rounded hemispherical end on each side. Its overall appearance resembles a medicine capsule.
This shape is useful when measuring certain rounded containers, components, and manufactured objects.
A capsule’s volume combines the volume of its cylindrical middle section with the volume of its two rounded ends. Together, the two hemispheres make one complete sphere.
Volume vs Total Surface Area: Understanding Both Results
The calculator provides two measurements that are related but describe different properties of an object. Understanding the difference helps you choose the right result for your project.
Volume measures the three-dimensional space occupied by a solid. It is expressed in cubic units, such as cubic centimetres (cm³), cubic inches (in³), cubic feet (ft³), or cubic metres (m³).
Total surface area measures the combined area of all the outside surfaces of a three-dimensional object. It is expressed in square units, such as square centimetres (cm²) or square feet (ft²).
Consider a rectangular box measuring 4 feet long, 3 feet wide, and 2 feet high.
Its volume is:
[
4\times3\times2=24\text{ ft}^3
]
Its total surface area is:
[
2(4\times3+4\times2+3\times2)
]
[
=2(12+8+6)=52\text{ ft}^2
]
The volume is 24 cubic feet, while the total surface area is 52 square feet.
These results answer different questions:
-
Use volume to understand how much space the object occupies.
-
Use surface area to estimate how much material would cover its outside.
-
Use internal volume when estimating how much a hollow container can hold.
For example, if you are buying material to cover a box, its external surface area is relevant. If you are filling the box with items, its internal capacity matters instead. Wall thickness and construction details can make the two measurements different.
Volume Formulas for the Six Supported 3D Shapes
Each shape has its own volume formula. Some calculations use a base area multiplied by height, while others involve a radius and the constant π.
The following formulas explain how the calculator determines the volume of each standard shape.
| Shape |
Volume formula |
| Sphere |
(V=\frac{4}{3}\pi r^3) |
| Cylinder |
(V=\pi r^2h) |
| Rectangular prism |
(V=lwh) |
| Cone |
(V=\frac{1}{3}\pi r^2h) |
| Square pyramid |
(V=\frac{1}{3}s^2h) |
| Capsule |
(V=\pi r^2h+\frac{4}{3}\pi r^3) |
Here is what the symbols mean:
-
(V) = volume
-
(r) = radius
-
(h) = perpendicular height or cylindrical section length, depending on the shape
-
(l) = length
-
(w) = width
-
(s) = side length of a square pyramid’s base
-
(\pi) = approximately 3.14159
Why Do Cones and Pyramids Have a One-Third Factor?
A cone and a cylinder with the same circular base radius and perpendicular height do not hold the same volume. The cone occupies one-third of the cylinder’s volume.
The same relationship applies to a square pyramid and a rectangular prism with matching base area and perpendicular height.
This is why the volume formulas for cones and pyramids contain the fraction one-third. Leaving it out would make the calculated volume three times too large.
Worked Examples: Calculating Volume and Surface Area
The following examples show how different measurements produce different volume and surface-area results. They also demonstrate why selecting the correct shape matters.
Example 1: Calculate the Volume of a Cylinder
Suppose a cylindrical container has a radius of 4 inches and a height of 10 inches.
Use the cylinder volume formula:
[
V=\pi r^2h
]
Substitute the measurements:
[
V=3.14159\times4^2\times10
]
[
V\approx502.65\text{ in}^3
]
The cylinder has a volume of approximately 502.65 cubic inches.
Its total surface area, including both circular ends, is:
[
SA=2\pi r(r+h)
]
[
SA=2\times3.14159\times4(4+10)
]
[
SA\approx351.86\text{ in}^2
]
The volume tells you how much space the cylinder occupies, while its surface area describes the total outside area.
Example 2: Find the Volume of a Sphere
Imagine a spherical object with a radius of 3 centimetres.
The formula is:
[
V=\frac{4}{3}\pi r^3
]
Substitute the radius:
[
V=\frac{4}{3}\times3.14159\times3^3
]
[
V\approx113.10\text{ cm}^3
]
The sphere occupies approximately 113.10 cubic centimetres.
Its total surface area is:
[
SA=4\pi r^2
]
[
SA=4\times3.14159\times3^2
]
[
SA\approx113.10\text{ cm}^2
]
Notice that the numerical values are the same in this particular example, but their units and meanings are different.
Example 3: Calculate the Volume of a Rectangular Box
A storage box measures 8 inches in length, 5 inches in width, and 4 inches in height.
Use:
[
V=l\times w\times h
]
[
V=8\times5\times4=160\text{ in}^3
]
Its volume is 160 cubic inches.
To calculate the total surface area:
[
SA=2(lw+lh+wh)
]
[
SA=2(40+32+20)
]
[
SA=184\text{ in}^2
]
If these are internal dimensions, the volume can help estimate the usable space inside the box. If they are external dimensions, the result describes the space occupied by the box’s outer shape.
Example 4: Calculate the Volume of a Cone
A cone has a base radius of 3 centimetres and a perpendicular height of 8 centimetres.
Its volume formula is:
[
V=\frac{1}{3}\pi r^2h
]
Substitute the measurements:
[
V=\frac{1}{3}\times3.14159\times3^2\times8
]
[
V\approx75.40\text{ cm}^3
]
The cone’s volume is approximately 75.40 cubic centimetres.
For total surface area, the slant height is also needed. It can be calculated using the radius and perpendicular height:
[
l=\sqrt{r^2+h^2}
]
[
l=\sqrt{3^2+8^2}=\sqrt{73}\approx8.54
]
The total surface area is:
[
SA=\pi r(r+l)
]
[
SA\approx108.85\text{ cm}^2
]
Example 5: Find the Volume of a Square Pyramid
Consider a square pyramid with a base side length of 6 centimetres and a perpendicular height of 4 centimetres.
The volume formula is:
[
V=\frac{1}{3}s^2h
]
[
V=\frac{1}{3}\times6^2\times4
]
[
V=48\text{ cm}^3
]
Its volume is 48 cubic centimetres.
For the total surface area, first calculate the slant height of a triangular face:
[
l=\sqrt{h^2+\left(\frac{s}{2}\right)^2}
]
[
l=\sqrt{4^2+3^2}=5\text{ cm}
]
The four triangular faces have a combined area of 60 cm². Adding the 36 cm² square base gives:
[
SA=60+36=96\text{ cm}^2
]
The total surface area is 96 square centimetres.
Example 6: Calculate the Volume of a Capsule
A capsule has a radius of 2 centimetres and a straight cylindrical section measuring 6 centimetres long.
Its volume combines a cylinder and a sphere:
[
V=\pi r^2h+\frac{4}{3}\pi r^3
]
Substitute the measurements:
[
V=\pi(2)^2(6)+\frac{4}{3}\pi(2)^3
]
[
V=24\pi+\frac{32}{3}\pi
]
[
V\approx58.64\text{ cm}^3
]
The capsule occupies approximately 58.64 cubic centimetres.
For its total surface area, the two hemispherical ends form one complete sphere, so:
[
SA=2\pi rh+4\pi r^2
]
[
SA=2\pi(2)(6)+4\pi(2)^2
]
[
SA=40\pi\approx125.66\text{ cm}^2
]
This calculation assumes the height entered represents only the straight cylindrical middle section, excluding the rounded ends.
How Is Volume Converted Into Gallons?
Volume and liquid capacity are closely related, but they are not expressed in the same units. Volume is commonly measured in cubic inches, cubic feet, or cubic metres, while liquid capacity is often measured in gallons or litres.
For example, a cylindrical water container may have a volume calculated in cubic inches, but you may find it easier to understand its capacity in gallons.
For US liquid gallons, the conversion is:
[
1\text{ US gallon}=231\text{ in}^3
]
To convert cubic inches into US gallons, divide the volume by 231.
Imagine the cylindrical container from the earlier example has an internal volume of approximately 502.65 cubic inches.
[
502.65\div231\approx2.18
]
Its approximate capacity is 2.18 US gallons.
Another useful conversion is:
[
1\text{ ft}^3\approx7.48052\text{ US gallons}
]
And for litres:
[
1\text{ litre}=1,000\text{ cm}^3
]
[
1\text{ m}^3=1,000\text{ litres}
]
Be aware that US and Imperial gallons are different units. One US liquid gallon is approximately 3.785 litres, while one Imperial gallon is approximately 4.546 litres.
A note about container capacity: Use internal dimensions when calculating how much liquid a hollow tank or container can hold. Also, check which measurement unit the calculator assumes for its gallon result. A cubic-inch measurement and a cubic-foot measurement require different conversion factors.
How Changing Dimensions Affects Volume
A small change in one measurement can have a significant effect on the volume of an object. The exact relationship depends on the shape and the number of dimensions involved.
Take a rectangular prism as an example:
| Length × Width × Height |
Volume |
| 2 × 2 × 2 |
8 cubic units |
| 4 × 2 × 2 |
16 cubic units |
| 4 × 4 × 2 |
32 cubic units |
| 4 × 4 × 4 |
64 cubic units |
Notice what happens:
-
Doubling one dimension doubles the volume.
-
Doubling two dimensions makes the volume four times larger.
-
Doubling all three dimensions makes the volume eight times larger.
Spheres behave differently in appearance but follow a related scaling rule. Their volume depends on the cube of the radius. If the radius doubles, the sphere’s volume becomes eight times greater.
This is worth remembering when comparing containers, storage spaces, or manufactured components. An object that looks only slightly larger may occupy considerably more space if several of its dimensions have increased.
Where Volume Calculations Are Used in Everyday Projects
Volume is not limited to school geometry problems. It is a practical measurement used whenever the amount of three-dimensional space matters.
Storage and shipping
The volume of a rectangular box helps determine how much space it occupies and whether it will fit into a storage area or shipping container. When comparing boxes, calculate their volumes using the same unit to make the comparison meaningful.
For example, a box measuring 20 × 15 × 10 inches has a volume of 3,000 cubic inches. A larger volume does not necessarily mean an item will fit more conveniently, because the shape and orientation of the available space also matter.
Water tanks and liquid containers
A cylindrical or rectangular tank’s volume can help estimate its water capacity. For a realistic capacity estimate, use the internal dimensions and account for any space that cannot be filled.
A tank’s advertised capacity may also differ from its geometric volume because manufacturers may allow for a safe filling limit or internal fittings.
Construction and building materials
Volume calculations are useful when estimating how much concrete, filling material, or other bulk material is required.
For a simple rectangular section of concrete measuring 2 metres long, 1 metre wide, and 0.15 metres deep:
[
2\times1\times0.15=0.3\text{ m}^3
]
The required geometric volume is 0.3 cubic metres. Actual ordering may need to account for site conditions, wastage, and the supplier’s minimum quantities.
Manufacturing and product design
Manufacturers use volume measurements when designing components, comparing product sizes, and estimating material requirements. A capsule-shaped component, cylindrical part, or rectangular housing can each be evaluated using its appropriate geometric formula.
Science and education
Students use volume formulas to compare solid shapes, solve geometry questions, and understand how dimensions influence the space occupied by an object. Calculating both volume and surface area also helps explain why a larger object does not necessarily have a proportionally larger outside surface.
Common Mistakes When Calculating Volume
Even when the correct formula is used, entering the wrong measurement or mixing units can produce an inaccurate result.
Entering diameter instead of radius
The radius is half the diameter. If a cylindrical tank has a diameter of 8 inches, its radius is 4 inches. Entering 8 as the radius instead would calculate a much larger volume.
Mixing measurement units
Do not multiply a length in metres by a width in centimetres and a height in inches without converting the measurements first. Use one consistent unit for all dimensions.
Confusing square units with cubic units
Surface area is measured in square units because it covers a two-dimensional surface. Volume is measured in cubic units because it describes three-dimensional space.
Forgetting the one-third factor
The formulas for cones and pyramids include one-third. Leaving out this factor produces a result three times larger than the correct volume.
Using external measurements for liquid capacity
The external dimensions of a tank include the material used to construct its walls. For a better estimate of the amount of liquid it can hold, use its internal dimensions.
Rounding measurements too early
Keep the original measurements as precise as practical during the calculation. Round the final result to a sensible number of decimal places rather than rounding every intermediate step.
Confusing perpendicular height with slant height
A cone’s perpendicular height runs from its apex to the centre of its circular base. Its slant height follows the curved side. These measurements are not interchangeable.
When a Standard Volume Calculator May Not Be Enough
The six supported shapes cover many common geometric solids, but real objects do not always match a single standard shape perfectly.
A few examples illustrate where additional measurements or methods may be necessary:
-
Irregular stones and objects: Their volume may be estimated using water displacement, provided the material is suitable for submersion.
-
Hollow pipes: To calculate the space inside a pipe, use its internal radius and length. To calculate the material in the pipe wall, both the inner and outer radii are needed.
-
Tapered water tanks: A tank that narrows or widens along its height may need to be divided into simpler geometric sections.
-
Objects made from multiple solids: Calculate the volume of each separate section, then add the volumes if the sections do not overlap.
-
Containers with thick walls: External dimensions alone cannot tell you the exact usable capacity.
For an irregular object that can safely be submerged, water displacement provides another way to estimate its volume. Measure the water level before and after placing the object in the water. The increase in water volume is equal to the object’s displaced volume.
For example, if the water level rises from 500 ml to 620 ml, the submerged object’s volume is approximately 120 cm³, assuming it is fully submerged and does not absorb or react with the water.