Volume Calculator
Use this Volume Calculator to enter values, adjust options, and review results in a compact responsive workspace.
Results are calculated automatically as you enter data.
▼ See explanations and tips below ▼
Related Calculators
What Is Volume?
Volume is the amount of three-dimensional space a solid occupies or can contain. A flat shape has area, but a solid shape has volume because it has depth as well as length and width.
Volume is measured in cubic units. A cube that is \(1\) unit long, \(1\) unit wide, and \(1\) unit high has a volume of \(1\) cubic unit. If the dimensions are measured in centimeters, the volume is in cubic centimeters, written as \(\text{cm}^3\). If the dimensions are measured in feet, the volume is in cubic feet, written as \(\text{ft}^3\).
This matters because volume answers questions such as:
- How much space is inside a box?
- How much material would fill a container-shaped object?
- How much three-dimensional space does a sphere, cone, cylinder, or pyramid occupy?
- What unit should the final answer use?
Volume is different from surface area. Surface area measures the outside covering of a solid and uses square units, while volume measures the space inside or occupied by the solid and uses cubic units.
Why Volume Matters
Volume is useful anywhere objects have three dimensions. Students use volume formulas in geometry, science, and measurement problems. Teachers use them to connect formulas with real shapes. Practical users may estimate storage space, packaging size, container capacity, or the amount of material needed for a simple shape.
For example, a rectangular prism formula can estimate the space inside a box, a cylinder formula can estimate the volume of a can-like shape, and a sphere formula can estimate the space occupied by a ball-shaped object. These formulas are most reliable when the object closely matches the ideal geometric solid being used.
Key Terms to Know
- Solid: A three-dimensional shape, such as a cube, cylinder, cone, sphere, or pyramid.
- Volume: The amount of space a solid occupies, measured in cubic units.
- Surface area: The total area of the outside surface of a solid, measured in square units.
- Cubic unit: A unit for volume, such as \(\text{cm}^3\), \(\text{m}^3\), \(\text{in}^3\), or \(\text{ft}^3\).
- Base area: The area of the base of a solid. In formulas, it is often represented by \(B\).
- Height: The perpendicular distance from the base of a solid to its opposite face, tip, or top.
- Radius: The distance from the center of a circle or sphere to its edge. In formulas, it is often represented by \(r\).
- Diameter: The distance across a circle or sphere through its center. The diameter is twice the radius, so \(r = \frac{d}{2}\).
- Pi: The constant \(\pi\), used in formulas for round shapes such as cylinders, cones, and spheres.
- Exact form: A result that keeps \(\pi\) as a symbol, such as \(72\pi\).
- Decimal approximation: A rounded numeric version of an exact value, such as \(72\pi \approx 226.194671\).
How Volume Works
Most basic volume formulas come from multiplying a base area by a height. A rectangular prism, for example, has a rectangular base with area \(l \times w\), and multiplying that base area by height gives the volume.
Where:
- \(V\) = volume
- \(l\) = length
- \(w\) = width
- \(h\) = height
The supported solid shapes use these formulas:
| Solid | Required measurements | Volume formula |
|---|---|---|
| Rectangular prism | length \(l\), width \(w\), height \(h\) | \(V = lwh\) |
| Cube | side length \(s\) | \(V = s^3\) |
| Cylinder | radius \(r\), height \(h\) | \(V = \pi r^2h\) |
| Cone | radius \(r\), height \(h\) | \(V = \frac{\pi r^2h}{3}\) |
| Sphere | radius \(r\) | \(V = \frac{4}{3}\pi r^3\) |
| Pyramid | base area \(B\), height \(h\) | \(V = \frac{Bh}{3}\) |
A cube is a special rectangular prism where all three dimensions are equal, so the volume is the side length cubed. A cylinder uses the area of its circular base, \(\pi r^2\), multiplied by height. A cone with the same radius and height as a cylinder has one third of that cylinder's volume. A pyramid has one third of the volume of a prism with the same base area and height.
A sphere is different because it has no flat base or height in the same way a prism does. Its volume depends only on the radius, and because the radius is cubed, small changes in radius can make a large difference in volume.
Some results may also include surface area for comparison. Common surface area formulas include:
| Solid | Surface area formula |
|---|---|
| Rectangular prism | \(S = 2(lw + lh + wh)\) |
| Cube | \(S = 6s^2\) |
| Cylinder | \(S = 2\pi r(r + h)\) |
| Sphere | \(S = 4\pi r^2\) |
Surface area is helpful, but it answers a different question. It measures covering, wrapping, or outside exposure, not the amount of space inside the solid.
Examples of Volume in Practice
Example 1: Rectangular Prism
Suppose a box is \(6\,\text{cm}\) long, \(4\,\text{cm}\) wide, and \(5\,\text{cm}\) high.
Use the rectangular prism formula:
Substitute the measurements:
Multiply:
The box occupies \(120\,\text{cm}^3\) of space.
Example 2: Cylinder with an Exact Pi Form
Suppose a cylinder has radius \(3\,\text{in}\) and height \(8\,\text{in}\).
Use the cylinder formula:
Substitute the measurements:
Simplify:
The exact volume is \(72\pi\,\text{in}^3\). As a decimal approximation:
So the cylinder's volume is about \(226.194671\,\text{in}^3\).
Example 3: Pyramid Using Base Area
Suppose a pyramid has a base area of \(30\,\text{ft}^2\) and a height of \(7\,\text{ft}\).
Use the pyramid formula:
Substitute the values:
Simplify:
The important point is that \(30\,\text{ft}^2\) is already an area. It is not a side length. If you only know the side lengths of the base, find the base area first, then use the pyramid volume formula.
How to Interpret the Result
The main result is the volume of the selected solid. It tells you how much three-dimensional space the solid occupies, using cubic versions of the selected unit.
For example:
- If the input unit is centimeters, the volume is shown in \(\text{cm}^3\).
- If the input unit is meters, the volume is shown in \(\text{m}^3\).
- If the input unit is inches, the volume is shown in \(\text{in}^3\).
- If the input unit is feet, the volume is shown in \(\text{ft}^3\).
- If the generic unit option is used, the volume is shown in cubic units.
A larger volume means the solid occupies more space. For ordinary displayed results, a volume of \(0\) means at least one required measurement is zero, such as a height of \(0\) or a radius of \(0\). With extremely small positive measurements, the mathematical volume can be too small for an ordinary decimal number; the calculator labels that case as positive and shows it in scientific notation rather than treating it as a zero input.
For cylinders, cones, and spheres, a nonzero result may show both an exact \(\pi\) form and a decimal approximation. The exact form keeps the mathematical constant \(\pi\) visible, while the approximation gives a practical decimal value.
If a surface area detail appears, remember that it is not the volume. Surface area uses square units such as \(\text{cm}^2\) or \(\text{ft}^2\), while volume uses cubic units such as \(\text{cm}^3\) or \(\text{ft}^3\).
For a pyramid, a base area detail repeats the base area used in the calculation. It is not the pyramid's total surface area.
Any solid preview should be treated as an illustration. It can help identify the shape and dimensions, but it is not a precise scale drawing.
Common Mistakes and Misconceptions
- Entering diameter instead of radius: Cylinder, cone, and sphere formulas use radius. If you know the diameter, divide it by \(2\) before using the formula.
- Mixing units: Do not use radius in centimeters and height in meters in the same calculation unless you convert them first.
- Expecting unit labels to convert values: Changing a unit label does not automatically convert numbers. A value of \(5\) remains \(5\); only the displayed unit label changes.
- Using a pyramid base side length as base area: The pyramid formula here uses base area. If you know base side lengths, calculate the base area first.
- Confusing surface area with volume: Surface area uses square units and measures outside covering. Volume uses cubic units and measures space.
- Rounding too early: For multi-step work, keep extra precision until the final answer.
- Using negative dimensions: Basic geometric volume formulas assume zero or positive measurements.
- Treating an illustration as a technical drawing: A preview can help with understanding, but exact scaling requires a separate scaled diagram.
When to Use Volume
Use volume when you need to estimate or calculate three-dimensional space for simple solids, such as:
- Finding the space inside a box-shaped container.
- Comparing the size of cube-shaped or rectangular objects.
- Estimating the capacity of a cylinder-shaped can or tube.
- Finding the volume of a cone-shaped object when radius and height are known.
- Estimating the space occupied by a ball-shaped object using its radius.
- Finding the volume of a pyramid when its base area and height are known.
- Checking homework or teaching examples for common geometry solids.
Volume formulas are best for idealized shapes. If an object is irregular, hollow, tapered in a nonstandard way, dented, rounded at the edges, or made of multiple combined solids, a single basic formula may only give an estimate.
Limitations and Things to Keep in Mind
Volume formulas depend on accurate measurements and the correct shape choice. A rectangular prism formula should not be used for a cylinder, and a sphere formula should not be used for an oval or irregular object.
Keep these limitations in mind:
- All dimensions for one calculation should use the same length unit.
- The unit label should match the numbers you entered.
- Mixed-unit calculations are not supported unless you convert the measurements first.
- Negative dimensions do not make sense for ordinary geometric solids.
- Decimal values are valid, but the final display may be rounded.
- Very large or extremely small values may be displayed with a limited number of significant digits. If a positive result is below the ordinary numeric range, the calculator identifies it and preserves a scientific-notation value; a secondary detail that is outside the numeric range is marked unavailable rather than shown as a normal value.
- Cone surface area and slant height are separate concepts and are not part of the cone volume result.
- A pyramid result based on base area and height does not identify the exact shape of the base unless that information is known separately.
- Basic formulas assume ideal solids with clean geometric dimensions.
For schoolwork, measurement checks, and rough planning, these formulas are usually enough. For engineering, construction, manufacturing, safety-critical design, legal records, or high-cost material decisions, double-check measurements and consult a qualified professional when needed.
How to Use This Calculator
- Select the solid shape: rectangular prism, cube, cylinder, cone, sphere, or pyramid.
- Choose the input unit label: units, \(\text{cm}\), \(\text{m}\), \(\text{in}\), or \(\text{ft}\).
- Enter every measurement shown for the selected shape.
- For a cylinder, cone, or sphere, enter the radius, not the diameter.
- For a pyramid, enter the base area, not a base side length.
- Use zero or positive numeric values. Decimals are allowed.
- Read the main volume result and its cubic unit.
- For cylinder, cone, or sphere results, compare the exact \(\pi\) form with the decimal approximation.
- Review any detail rows, such as formula substitution, surface area, or base area.
- Use the preview as a visual guide, not as an exact scale drawing.
Frequently Asked Questions
What unit should a volume answer use?
Volume should use cubic units based on the length unit. If the measurements are in centimeters, the volume is in \(\text{cm}^3\). If the measurements are in feet, the volume is in \(\text{ft}^3\).
Is volume the same as surface area?
No. Volume measures three-dimensional space and uses cubic units. Surface area measures the outside covering of a solid and uses square units.
Why do some answers include \(\pi\)?
Cylinders, cones, and spheres are based on circles or curved geometry, so their formulas include \(\pi\). Keeping \(\pi\) in the answer gives an exact form, while the decimal approximation is easier to use in practical calculations.
What should I do if I know the diameter instead of the radius?
Divide the diameter by \(2\) to get the radius. For example, if a sphere has diameter \(10\,\text{cm}\), its radius is \(5\,\text{cm}\).
Why are cone and pyramid volumes divided by \(3\)?
A cone has one third of the volume of a cylinder with the same circular base area and height. A pyramid has one third of the volume of a prism with the same base area and height.
Does changing the unit selector convert the measurements?
No. The selected unit changes the labels on the inputs and results, but it does not convert the numbers. If you need to change from centimeters to meters, inches to feet, or another unit pair, convert the measurements before entering them.
Sources and References
Books
- Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis. Prealgebra 2e. OpenStax, 2020. Chapter 9.6, “Solve Geometry Applications: Volume and Surface Area,” and Chapter 9 Key Concepts. https://openstax.org/books/prealgebra-2e/pages/9-6-solve-geometry-applications-volume-and-surface-area
- Donna Kirk. Contemporary Mathematics. OpenStax, 2023. Section 10.7, “Volume and Surface Area.” https://openstax.org/books/contemporary-mathematics/pages/10-7-volume-and-surface-area
- Gilbert Strang and Edwin “Jed” Herman. Calculus Volume 1. OpenStax, 2016. Section 6.2, “Determining Volumes by Slicing,” especially the pyramid volume derivation. https://openstax.org/books/calculus-volume-1/pages/6-2-determining-volumes-by-slicing
Online and Official Sources
- National Institute of Standards and Technology. “SI Units – Volume.” NIST Office of Weights and Measures, last updated August 1, 2011. https://www.nist.gov/pml/owm/si-units-volume
- National Institute of Standards and Technology. “NIST Guide to the SI, Chapter 8: Comments on Some Quantities and Their Units.” NIST, last updated January 28, 2016. https://www.nist.gov/pml/special-publication-811/nist-guide-si-chapter-8