Math calculator

Free volume calculator

Calculate the volume of cubes, spheres, cylinders, cones, and rectangular prisms — enter any dimensions to see the result, updated live, as you type.

InputsLive
Shape
Side length
Result
Volume
125 cubic units
Formula:
Shapecube
Volume125 cubic units
Primary dimension5

Standard volume formulas for common 3D shapes.

Results are estimates. Consult a professional.

How it's calculated

How the volume calculator works

Volume measures the amount of three-dimensional space a solid occupies, expressed in cubic units (cm³, m³, ft³, litres, etc.). Each shape's formula is derived from its geometry — prisms multiply a base area by height, while spheres and cones use π and fractional coefficients.

Rectangular prism: V = l × w × h
Cube: V =
Cylinder: V = π r² h
Sphere: V = (4/3) π r³
Cone: V = (1/3) π r² h
Ellipsoid: V = (4/3) π a b c
Khan Academy — Volume and surface area
Example

Worked example: sphere r = 5 cm and cylinder r = 3 cm, h = 10 cm

Example: Sphere radius 5 cm; Cylinder radius 3 cm, height 10 cm

Two of the most common 3D shapes solved step by step. The sphere formula contains (4/3)π and cubes the radius; the cylinder formula squares the radius and multiplies by height.

Sphere: V = (4/3) × π ×
= (4/3) × π ×
= (4/3) × π × 125
≈ 523.60 cm³
Cylinder: V = π ×× h
= π ×× 10
= π × 9 × 10
≈ 282.74 cm³
523.60 · 282.74 cm³
Sphere ≈ 523.60 cm³ and cylinder ≈ 282.74 cm³. Note that the sphere holds about 85 % more volume despite having a smaller footprint.
Quick reference

Volume formulas for common 3D shapes

The table summarises six standard solids with their volume formulas and the inputs required. Cones and pyramids hold exactly one-third the volume of the corresponding prism or cylinder with the same base and height.

ShapeFormulaRequired inputs
Rectangular prismV = l × w × hl, w, h
CubeV = s³s = side length
CylinderV = π r² hr = radius, h = height
SphereV = (4/3) π r³r = radius
ConeV = (1/3) π r² hr = radius, h = height
Pyramid (square base)V = (1/3) × s² × hs = base side, h = height

Source: standard solid geometry formulas

Practical tips

Tips for calculating volume

Volume calculations appear in everyday tasks like filling a fish tank, estimating concrete for a pour, or determining how much liquid a container holds. These tips help avoid the most common errors.

  • Cube the radius for spheres — the sphere formula is (4/3)πr³, not (4/3)πr². Squaring instead of cubing the radius gives a result 1/r times smaller than the correct answer.
  • Convert units before calculating — mixing metres and centimetres in the same formula produces answers in non-standard units. Always use one unit throughout.
  • 1 litre = 1,000 cm³ — to convert a volume in cm³ to litres, divide by 1,000. For fluid-capacity problems (aquariums, tanks), this conversion is essential.
  • Hollow containers need subtraction — for a pipe or hollow cylinder, compute the outer volume and inner volume separately, then subtract to find the material or void volume.
  • Irregular objects: water displacement — if a shape is too complex for a formula, submerge it in a container of water and measure the rise in water level multiplied by the container's cross-sectional area.
Accuracy & limits

Accuracy and limitations

All calculations use IEEE 754 double-precision floating-point arithmetic with π accurate to 15+ significant digits. Results are reliable to roughly 15 significant digits, which exceeds the precision of any practical measurement. The formulas assume perfect geometric solids; real containers may have rounded corners, wall thickness, or irregular interiors not captured by these equations. For concrete, gravel, or soil estimates, add a 5–10 % overage for compaction and spillage.

Glossary

Key terms

The amount of 3D space a solid occupies, measured in cubic units (cm³, m³, ft³, in³, litres, gallons).
The distance from the centre of a circle or sphere to its boundary; half the diameter.
The perpendicular (vertical) distance between the base and the top of a solid.
The standard unit for volume; 1 m³ = 1,000,000 cm³; 1 ft³ ≈ 28.317 litres.
The mathematical constant ≈ 3.14159265, the ratio of a circle's circumference to its diameter; central to all round-solid formulas.
A solid with two identical parallel bases connected by rectangular faces; volume = base area × height for all prisms.
About

About this calculator

Part of our math calculators suite — explore all calculators.

Questions

Frequently asked questions about the free volume calculator

A volume calculator is a free online tool that helps you calculate volume of common 3D shapes. Standard volume formulas. It runs entirely in your browser with instant results and no sign-up.
JavaScript double-precision floating-point — accurate to about 15-17 significant digits. For arbitrary precision, use the Big Number calculator.
The statistics calculator computes population variance (divides by n). For sample variance, multiply variance by n/(n-1).

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.