Skip to content

Math & Geometry

Volume Calculator

Find how much space a solid or container holds. Select its shape and measure the dimensions that belong to that shape.

Use calculator

Tool updated

Geometry Engine

Dimensions

Shape hint

Circular base extruded by height.

r = base radius, h = axis height

Results

62,831.8531 L

62.8319 m^3 (canonical SI)

mm^3

6.2832e+10

cm^3

62,831,853.0718

m^3

62.8319

L

62,831.8531

mL

62,831,853.0718

in^3

3,834,234.9229

ft^3

2,218.886

yd^3

82.181

US gal

16,598.4196

Input conversion summary

  • r = 2 m -> 2 m
  • h = 5 m -> 5 m

Formula

V=πr2hV = \pi r^2 h

Substitute the converted dimensions

V=π⋅22⋅5V = \pi \cdot 2^2 \cdot 5
Step-by-step breakdown
  1. 1. Convert dimensions to meters: r=2 m, h=5 m
  2. 2. Square the radius: r^2 = 4 m^2
  3. 3. Compute circular base area: pi x r^2 = 12.566371 m^2
  4. 4. Multiply by height: V = 62.831853 m^3

Worked example

Find the volume of a rectangular box

Choose the rectangular prism and enter 5 cm, 4 cm, and 3 cm.

V=5⋅4⋅3 cm3=60 cm3V=5\cdot4\cdot3\,\mathrm{cm}^3=60\,\mathrm{cm}^3

Use inside dimensions for container capacity. Outside dimensions include the material forming the walls.

Back to the calculator

How to use the calculator

  1. Select a 3D shape from the geometry engine library.
  2. Enter each required dimension and choose the correct unit for each field.
  3. Choose your output unit (m^3, L, ft^3, in^3, and more).
  4. Pick precision (2-8 decimals) for display and exports.
  5. Review converted-input summaries to confirm each value in meters.
  6. Read the formula, substitution, and step-by-step breakdown.
  7. Check the highlighted result and optional conversion cards.
  8. Use Compare Mode for Scenario A vs Scenario B.
  9. Export CSV or copy result/steps for reports.
  10. Use the share URL to preserve shape and input state.

Calculator Overview

A volume calculator finds the three-dimensional space enclosed by a geometric shape. Choose the shape that matches your object, enter its dimensions and select an output unit. This tool includes cubes, rectangular prisms, cylinders, cones, spheres, pyramids, triangular prisms, frustums, ellipsoids, hollow cylinders, spherical caps and tori.

The shape determines which measurements are required. A rectangular prism needs length, width and height. A cylinder needs radius and height. A sphere needs radius. Read the labels before measuring: radius is half the diameter, and using a diameter in a radius field makes a cylinder volume four times too large or a sphere volume eight times too large.

Each dimension has its own length unit. You can enter a radius in centimeters and a height in meters because the engine converts the dimensions to meters before applying the shape formula. After calculating the volume in cubic meters, it converts the result into your selected output unit. This avoids manually chaining several rounded conversions.

For example, a cylinder with radius 2 m and height 5 m has volume π × 2² × 5 = 20π m³. That is approximately 62.8319 m³, or 62,831.8531 liters at four decimal places. The large liter value follows from the meter-sized dimensions; it is not the capacity of a small household bottle. A cylinder with radius 2 cm and height 5 cm has the same numerical volume in cubic centimeters, which equals about 62.8319 milliliters.

Cubic units differ from length units. One meter is 100 centimeters, but one cubic meter is 1,000,000 cubic centimeters. One liter equals 1,000 cubic centimeters, and one cubic meter equals 1,000 liters. Use the output selector and conversion cards to compare capacity without treating a linear conversion factor as a volume factor.

For containers, enter internal measurements when estimating enclosed capacity. Outside dimensions include wall material and can overstate the space available for liquid or storage. Irregular objects are not always represented by a single supported shape. You may need to divide an object into simpler parts, calculate them separately and combine or subtract the volumes. State the approximation when reporting the result.

Compare Mode keeps two scenarios so you can compare shapes, dimensions or units. The result panel includes the selected volume, canonical cubic-meter value and alternative units. The input-conversion summary helps you check how each measurement was interpreted. Expand the calculation steps to review the formula and substitution. Copy or export the result when you need it in a worksheet, and use a share URL to retain the scenario inputs.

Display precision controls rounding, not measurement accuracy. If a dimension was measured only to the nearest centimeter, displaying eight decimal places does not make that measurement more exact. Keep enough digits while comparing calculations, then report a precision appropriate to the original measurements.

The displayed result is the full geometric volume of one modeled shape. There is no quantity or fill-percentage input in this interface. For several identical containers, multiply the single-container result by the count separately. For a planning allowance, multiply the geometric capacity by a chosen fraction separately and label that assumption. A safe operating fill limit depends on the actual container and application and cannot be established by this geometry tool.

Volume also differs from mass. To estimate mass, you need the material density as well as volume. Storage, construction and fluid-handling decisions can require other constraints such as load limits, tolerances, wall thickness or operating headroom. Treat the calculator as a transparent geometry step within that broader task.

Formulas and short notes

Jump to a formula

Cube

V=a3V = a^3
  • Measure one edge. All three dimensions are equal.
  • Doubling each edge multiplies the volume by eight.

Worked example

For a=4 cma=4\,\mathrm{cm}, V=43 cm3=64 cm3V=4^3\,\mathrm{cm}^3=64\,\mathrm{cm}^3.

Rectangular Prism (Cuboid)

V=l⋅w⋅hV = l \cdot w \cdot h
  • Measure the three perpendicular dimensions of the box.
  • Use inside dimensions for capacity. Convert mixed length units before multiplying.

Worked example

For sides of 55, 44 and 3 cm3\,\mathrm{cm}, V=5⋅4⋅3 cm3=60 cm3V=5\cdot4\cdot3\,\mathrm{cm}^3=60\,\mathrm{cm}^3.

Cylinder

V=πr2hV = \pi r^2 h
  • The base area is the area of the circular end.
  • Halve the diameter to obtain the radius. Height is measured along the axis between the ends.

Worked example

For r=3 cmr=3\,\mathrm{cm} and h=10 cmh=10\,\mathrm{cm}, V=90π cm3≈282.74 cm3V=90\pi\,\mathrm{cm}^3\approx282.74\,\mathrm{cm}^3.

Cone

V=13πr2hV = \frac{1}{3}\pi r^2 h
  • Measure the perpendicular height from the base plane to the apex.
  • A cone holds one third as much as a cylinder with the same base and height.

Worked example

For r=3 cmr=3\,\mathrm{cm} and h=10 cmh=10\,\mathrm{cm}, V=30π cm3≈94.25 cm3V=30\pi\,\mathrm{cm}^3\approx94.25\,\mathrm{cm}^3.

Sphere

V=43πr3V = \frac{4}{3}\pi r^3
  • Use the distance from the center to the surface.
  • Using the diameter in place of the radius multiplies the answer by eight.

Worked example

For r=3 cmr=3\,\mathrm{cm}, V=36π cm3≈113.10 cm3V=36\pi\,\mathrm{cm}^3\approx113.10\,\mathrm{cm}^3.

Hollow Cylinder (Pipe)

V=πh(Ro2−Ri2)V = \pi h(R_o^2 - R_i^2)
  • Subtract the inner cylindrical void from the outer cylinder to find the material volume.
  • For capacity of the opening, calculate a solid cylinder using only the inner radius.

Worked example

Outer radius 5 cm5\,\mathrm{cm}, inner radius 3 cm3\,\mathrm{cm}, length 10 cm10\,\mathrm{cm} gives 160π cm3160\pi\,\mathrm{cm}^3.

Triangular Prism

V=(12bh)LV = \left(\frac{1}{2}bh\right)L
  • Find the area of the triangular end using a base and its perpendicular height.
  • Multiply by the perpendicular distance between the two triangular faces.

Worked example

A base of 6 cm6\,\mathrm{cm}, triangle height 4 cm4\,\mathrm{cm}, and prism length 10 cm10\,\mathrm{cm} give V=120 cm3V=120\,\mathrm{cm}^3.

Pyramid (Square Base)

V=13a2hV = \frac{1}{3}a^2h
  • Square the side of the base, then use the vertical height to the apex.
  • The slanted face height is a separate measurement. A square pyramid holds one third as much as its matching prism.

Worked example

A square base of side 6 cm6\,\mathrm{cm} and height 9 cm9\,\mathrm{cm} give V=108 cm3V=108\,\mathrm{cm}^3.

Frustum of a Cone

V=πh3(R2+Rr+r2)V = \frac{\pi h}{3}(R^2 + Rr + r^2)
  • Use the radii of the two parallel circular faces and their perpendicular separation.
  • Equal radii give a cylinder. The calculation accounts for the radius changing across the height.

Worked example

For R=4R=4, r=2r=2, and h=6 cmh=6\,\mathrm{cm}, V=56π cm3V=56\pi\,\mathrm{cm}^3.

Frustum of a Pyramid

V=h3(A1+A2+A1A2)V = \frac{h}{3}(A_1 + A_2 + \sqrt{A_1A_2})
  • Use the areas of similar parallel bases. In this calculator, enter the two square side lengths.
  • The geometric mean of the two base areas accounts for the taper.

Worked example

Square sides 66 and 3 cm3\,\mathrm{cm} with height 4 cm4\,\mathrm{cm} give V=43(36+9+18) cm3=84 cm3V=\frac43(36+9+18)\,\mathrm{cm}^3=84\,\mathrm{cm}^3.

Ellipsoid

V=43πabcV = \frac{4}{3}\pi abc
  • Use the three semi-axes, measured from the center along perpendicular directions.
  • If you measured all three full widths, halve each one. Equal semi-axes give a sphere.

Worked example

For a=3a=3, b=2b=2, and c=1 cmc=1\,\mathrm{cm}, V=8π cm3V=8\pi\,\mathrm{cm}^3.

Spherical Cap

V=πh2(3R−h)3V = \frac{\pi h^2(3R - h)}{3}
  • Measure the radius of the original sphere and the cap height from the cutting plane to the top.
  • A cap height equal to the sphere radius gives a hemisphere. A height equal to the diameter gives the full sphere.

Worked example

For R=5 cmR=5\,\mathrm{cm} and h=2 cmh=2\,\mathrm{cm}, V=52π3 cm3V=\frac{52\pi}{3}\,\mathrm{cm}^3.

Torus

V=2π2Rr2V = 2\pi^2 Rr^2
  • The major radius runs to the center of the tube. The minor radius is the radius of the tube itself.
  • The tube’s cross-sectional area travels one full turn around the central axis.

Worked example

For R=5 cmR=5\,\mathrm{cm} and r=2 cmr=2\,\mathrm{cm}, V=40π2 cm3V=40\pi^2\,\mathrm{cm}^3.

Convert cubic units and capacity

1 m3=1000 L1\,\mathrm{m}^3=1000\,\mathrm{L}
1 cm3=1 mL1\,\mathrm{cm}^3=1\,\mathrm{mL}
  • Cube a length conversion factor when changing between cubic units. One meter contains one hundred centimeters, so one cubic meter contains one million cubic centimeters.
  • Choose an output that matches the task. Liters are convenient for capacity and cubic meters are useful for large solids.

Worked example

A 0.075 m30.075\,\mathrm{m}^3 container holds 75 L75\,\mathrm{L}.

Frequently asked questions

How do I calculate volume for different 3D shapes in one tool?

Select the shape, enter dimensions in one consistent unit, and the calculator applies the correct formula automatically. It then converts outputs into practical units like liters, gallons, and cubic feet.

Can this volume calculator convert cubic meters to liters and gallons instantly?

Yes. It computes base volume and provides converted outputs including cubic meters, liters, US gallons, and cubic feet in real time.

What units are supported in this volume calculator?

Length inputs support nm, mm, cm, m, km, in, ft, yd, and mi per field. Output units support mm^3, cm^3, m^3, L, mL, in^3, ft^3, yd^3, and US gallons.

How do I convert cubic units to liters quickly?

Convert to cubic meters first, then multiply by 1000 to get liters. The calculator performs this automatically and also shows mL and US-gallon equivalents.

What is the best way to calculate usable tank capacity instead of full geometric volume?

The tool shows full geometric volume. Use internal dimensions, then apply any chosen operating fraction separately. There is no fill-level input in this interface; a safe fill limit must come from the container and application guidance.

How do I calculate volume of a cylinder when I only know diameter?

Convert diameter to radius by dividing by 2, then enter radius and height. The calculator uses V = pi x radius^2 x height.

Can I estimate total volume for multiple containers at once?

Calculate one container, then multiply its volume by the number of identical containers separately. Compare Mode compares two individual scenarios; it is not a quantity multiplier.

Why is my calculated volume too large when using centimeters?

This usually happens when units are mismatched. Ensure the selected input unit matches your measurements before calculation.

Does this volume calculator work for triangular prism and rectangular pyramid formulas?

Yes. It supports both shapes and applies the corresponding formulas for prism and pyramid volume directly from your inputs.

What is the difference between a cone and a frustum?

A cone tapers to a single apex, while a frustum is a cone with the top sliced off, leaving two circular faces. Frustum formulas use both top and bottom radii.

How can I use a volume calculator for construction fill-material planning?

Choose a shape matching the void or form, measure its dimensions and select cubic meters or cubic feet. Combine repeated volumes and any material allowance separately, and document those assumptions.

What long-tail approach helps compare packaging capacity scenarios accurately?

Keep unit settings constant, change only one dimension set per scenario, and compare usable volume plus fill-loss outputs to choose the most efficient packaging option.

Is this calculator suitable for students learning geometry volume formulas?

Yes. It is useful for verifying homework and understanding how formula structure changes volume across different shapes.

Can I copy and share calculated volume results from mobile?

Yes. Result cards include copy actions and the page is mobile-friendly, so you can capture outputs during field or classroom use.

Is this an official engineering certification tool?

No. It is a planning and educational calculator. For critical compliance work, validate assumptions and outputs against project standards and official engineering documentation.

Understand your result

Volume Calculator guide

Volume measures three-dimensional space. A shape's dimensions must match its formula before a unit conversion can produce a meaningful capacity.

Cubic units and hollow spaces

A cuboid measuring 2 metres by 3 metres by 0.5 metres has volume 3 cubic metres. Since one cubic metre equals 1,000 litres, the equivalent geometric capacity is 3,000 litres. This conversion does not imply that a real container can be filled to the external dimensions used in the example.

Use internal dimensions for usable capacity and account for wall thickness, obstructions, and headroom separately. A hollow cylinder uses pi × height × (outer radius squared − inner radius squared) for material volume. Subtracting the radii before squaring would describe a different object. For a cylinder with radius 2 and height 5, full volume is 20pi cubic units; its circular base area is 4pi square units.

Keep volume conversion separate from dimension conversion

A rectangular box measuring 2 meters by 1 meter by 0.5 meter has volume 1 cubic meter. The equivalent dimensions in centimeters are 200, 100, and 50. Their product is 1,000,000 cubic centimeters, which represents the same space. Converting each dimension by a factor of one hundred changes the numerical volume by one hundred cubed.

This is why a linear conversion factor cannot be applied directly to a cubic measurement. One cubic meter is not one hundred cubic centimeters. Likewise, one cubic foot is 12³, or 1,728 cubic inches. Keep the exponent attached to the unit throughout the calculation so the measurement type remains clear.

For a container, distinguish external dimensions from internal usable dimensions. Wall thickness, a rounded base, a lid, and a fill line can reduce the capacity compared with an ideal outer solid. A geometry result calculated from external dimensions should not automatically be presented as a measured liquid capacity.

For a hollow shape, calculate the outer and inner volumes using consistent dimensions and subtract only when the two shapes describe the intended material. For a mixture or bulk material, volume also does not determine mass without density. Keep the geometric volume as its own result, then apply a separately identified density or fill factor when the next question requires it.

Continue with a related calculation

  • Circle Area Calculator

    A circle has one defining measurement: its radius. From that measurement you can find the surface inside the boundary and the distance around it. The examples below explain how to choose the correct measurement, keep units consistent, reverse a result, and apply circular geometry to a real project.

  • Area Calculator

    Area measures a two-dimensional surface. The right formula depends on the shape and the dimensions available. This guide walks through the supported geometry methods, explains unit conversion and measurement uncertainty, and shows how to combine simple shapes without confusing area with perimeter or volume.

  • Triangle Calculator

    A triangle is determined by a compatible set of sides and angles. Choose a method that matches the information supplied in the question.

  • Slope Calculator

    Slope measures vertical change divided by horizontal change. Keep the same point order in both subtractions.

Quick reference: Volume formulas with examples

Volume is in cubic units of your input unit.

Volume formulas with examples
SolidFormulaExampleVolume
Cubea³a = 464
Rectangular boxl × w × h3 × 4 × 560
Cylinderπ r² hr = 3, h = 10282.74
Sphere4/3 π r³r = 3113.10
Cone1/3 π r² hr = 3, h = 1094.25
Pyramid (square base)1/3 × base area × hbase 6 × 6, h 560

Read the complete Volume Calculator guide

See the longer walkthrough and reference notes for Volume Calculator.

Open Guide

Author & Formula Review

Author

Jitendra Kumar

Founder & Lead Developer

Reviewed by

OmniCalc Editorial Review

Formula QA, source review, and calculator maintenance

Last reviewed

Math & Geometry calculator

Formulas, rounding behavior, and worked examples are checked against hand calculations and calculator QA scenarios before publishing.

Primary Sources

Results are general-purpose estimates. Verify critical figures against official sources or a qualified professional. See our sources and methodology and editorial policy.

Explore more calculators