Volume Calculator

Calculate geometric volume for ten common solids, then compare liters, cubic meters, cubic feet, U.S. gallons, and Imperial gallons from one unrounded result. The workspace also reports surface area, base geometry, multiple identical solids, and an optional occupied-volume share without confusing volume percentage with liquid depth.

Calculation and content reviewed by EZ Calculators Editorial Team on .

Enter values

Change the fields below, then calculate to update the result.

Choose an ideal solid

The dimension fields update with the shape. Curved solids use radius, not diameter.

Measured dimensions

For container capacity, measure the usable inside dimensions in one common unit.
Box length, cube side, prism length, or rectangular-pyramid base length.
m
Box width, rectangular-pyramid base width, or one perpendicular leg of a right-triangle cross-section.
m
Use the perpendicular dimension, not a cone or pyramid slant height.
m

Quantity and occupied share

Quantity multiplies identical solids. Occupied share applies to volume directly and must not be treated as liquid depth in a curved horizontal tank.
Multiply one ideal solid without re-entering its dimensions.
A percentage of calculated volume, not a liquid-depth measurement.
%

What Is a Volume Calculator

A volume calculator measures the three-dimensional space inside or occupied by an ideal geometric solid. Volume is expressed in cubic units because three independent lengths are involved. A rectangular box uses length, width, and height; a cylinder uses the area of a circular base multiplied by perpendicular height; and a sphere depends on the cube of its radius.

This calculator keeps geometric volume, container capacity, and solid-material volume distinct. Box, cylinder, cone, sphere, hemisphere, prism, pyramid, and frustum modes describe complete solids. Tube mode subtracts an inner cylinder from an outer cylinder, so its answer is material volume rather than the empty space inside the tube.

How to Use the Volume Calculator

  1. Choose the ideal solid that most closely matches the object. Read the short shape description before entering dimensions.
  2. Select one dimension unit and use that same unit for every measurement. For a container, use inside dimensions when estimating usable capacity.
  3. Enter only the fields shown for the selected shape. Curved shapes require radius, not diameter, and pyramids and cones require perpendicular height, not slant height.
  4. Enter the number of identical solids. Leave quantity at one when calculating a single object.
  5. Optionally set an occupied-volume percentage. This multiplies volume directly; it is not a liquid-level or dip-depth model.
  6. Select Calculate volume, then review the formula, one-solid value, combined value, surface area, capacity conversions, and stated modeling limits.

Choose the Shape Before Measuring

The largest practical errors often come from the model rather than arithmetic. A storage bin with square corners can be approximated as a rectangular box, but a vessel with rounded ends, sloping walls, ribs, baffles, or an irregular bottom is not the same solid. Breaking a complex object into simpler parts can be better than forcing one formula onto the entire object.

A right triangular prism has a right-triangle cross-section extended along its length. A right rectangular pyramid places its apex above the center of a rectangular base. A conical frustum is a cone cut by a plane parallel to its base. The calculator's surface-area formulas rely on those right-solid assumptions.

Volume Formulas for the Supported Solids

Each formula uses perpendicular dimensions. The symbol V means volume, r is radius, R is the larger radius, h is perpendicular height, and l and w are linear dimensions. For the right triangular prism, b and t are perpendicular triangle legs and L is prism length.

Formula guide
  • Box: V = l x w x h; cube: V = a^3
  • Cylinder: V = pi x r^2 x h; cone: V = pi x r^2 x h / 3
  • Sphere: V = 4 x pi x r^3 / 3; hemisphere: V = 2 x pi x r^3 / 3
  • Right triangular prism: V = L x b x t / 2; rectangular pyramid: V = l x w x h / 3
  • Conical frustum: V = pi x h x (R^2 + R x r + r^2) / 3
  • Hollow cylinder material: V = pi x (R^2 - r^2) x h
Formulas used by each Volume Calculator mode
SolidRequired measurementsVolume formulaImportant boundary
Rectangular boxl, w, hV = lwhUse three inside dimensions for capacity
Cubeside aV = a^3All edges must have equal length
Cylinderr, hV = pi r^2 hh is perpendicular to circular base
Coner, hV = pi r^2 h / 3Do not enter slant height as h
SphererV = 4 pi r^3 / 3Radius is half the diameter
HemisphererV = 2 pi r^3 / 3Exactly half a sphere
Right triangular prismL, b, tV = Lbt / 2b and t meet at a right angle
Rectangular pyramidl, w, hV = lwh / 3Apex is above base center
Conical frustumR, r, hV = pi h(R^2 + Rr + r^2) / 3R is at least as large as r
Hollow cylinderR, r, hV = pi(R^2 - r^2)hReports material, not inner capacity

Geometric Volume and Container Capacity

Geometric volume describes an ideal mathematical boundary. Container capacity means the space available inside a real object. If outside dimensions are entered, the result includes wall material and usually overstates capacity. Inside ribs, fittings, rounded corners, domed ends, lining, and a required air gap can reduce usable space further.

For a practical capacity estimate, measure the internal dimensions at the relevant surfaces and document whether the container can actually be filled to the modeled boundary. A rated or certified capacity from the manufacturer remains more authoritative than a visual approximation.

Occupied Volume Is Not Fill Depth

The occupied-volume field applies a known percentage directly to the calculated volume. At 80%, the tool reports 0.8 times the full geometric volume and the remaining 20%. This is useful when the percentage itself is known, such as an inventory or packing assumption.

Do not enter an 80% liquid height and assume an 80% volume for a horizontal cylinder, sphere, cone, frustum, or other curved vessel. Cross-sectional area changes with depth, so liquid height and volume percentage are not generally equal. A dedicated partial-tank model needs orientation, fill depth, and shape-specific segment formulas.

Surface Area and Base Geometry

Surface area and volume answer different questions. Volume estimates space or capacity, while surface area can support preliminary coating, wrapping, heat-transfer, or material comparisons. The result reports total surface area for one ideal closed solid and for the selected quantity, plus a base or cross-section area.

Real fabrication estimates need seams, overlaps, openings, wall thickness, trim, waste, tolerances, and a drawing-specific definition of which faces are included. A hollow cylinder includes outer and inner curved surfaces and both annular ends in its total surface area.

Worked Volume Calculator Examples

For a rectangular box measuring 2 m by 1.5 m by 0.8 m, V = 2 x 1.5 x 0.8 = 2.4 m^3. Because one cubic meter equals 1,000 liters, the ideal internal capacity is 2,400 L. At an entered occupied share of 75%, occupied volume is 1,800 L and unoccupied volume is 600 L.

For a cylinder with radius 2 m and height 3 m, V = pi x 2^2 x 3 = 12 pi, or about 37.6991 m^3. That is about 37,699.1 L. Two identical cylinders at 80% occupied contain about 60,318.6 L together. The percentage describes volume directly; it does not mean liquid reaches 80% of the height in a horizontal cylinder.

For a tube with outer radius 5 cm, inner radius 4 cm, and height 100 cm, material volume is pi x (5^2 - 4^2) x 100 = 900 pi cm^3, about 2,827.43 cm^3. The inner empty capacity would be a different calculation based on the inner radius alone.

Cubic Units, Liters, and Gallons

The SI unit of volume is the cubic meter. NIST identifies the liter as a special name for the cubic decimeter, and one milliliter corresponds to one cubic centimeter. Cubic feet, cubic inches, and cubic yards are geometric customary units. Liquid capacity units require a named system.

Capacity labels are never collapsed into one generic gallon. The U.S. liquid definition corresponds to 3.785411784 liters; the Imperial definition corresponds to 4.54609 liters. The conversion table keeps both systems visible and derives every row from the same internal cubic-meter value instead of chaining rounded answers.

Measurement Precision and Error Growth

Volume can be highly sensitive to measurement error. In a box, relative errors from length, width, and height combine approximately for small errors. For a cylinder, radius is squared, and for a sphere it is cubed. A 1% radius error therefore produces roughly a 2% cylinder-volume error or a 3% sphere-volume error before considering other measurements.

Measure at several locations when a real object is not uniform, preserve unrounded values during calculation, and round the final answer to a precision justified by the measurements. More digits on screen do not make the original ruler, tape, sensor, or shape model more accurate.

Volume Calculator Features

  • Ten ideal-solid modes with shape-aware dimension fields.
  • Millimeter, centimeter, meter, inch, foot, and yard inputs.
  • One-solid, multiple-solid, occupied, and unoccupied volume results.
  • Total surface area, base area, diameter, circumference, slant height, or wall thickness when relevant.
  • Metric, cubic customary, U.S. liquid, and Imperial capacity conversions.
  • Explicit formula and reproducible calculation steps.
  • Validation for unsupported shapes, invalid radii, percentage limits, quantity limits, and numeric overflow.
  • Private browser calculation without an account.

Benefits of an Auditable Volume Calculation

A result is easier to trust when its shape, dimensions, boundary, formula, quantity, and unit system remain visible beside the answer. The workspace lets a student reproduce the algebra, a planner distinguish one object from a repeated group, and a container user see why ideal geometry may not equal rated capacity.

Showing surface area and several volume units from one internal value also reduces avoidable re-entry. More importantly, the warnings expose questions that arithmetic cannot answer: whether a radius was measured correctly, whether dimensions are internal, whether a real vessel matches the selected solid, and whether occupied percentage came from volume rather than depth.

Common Volume Calculator Use Cases

  • Estimate the internal capacity of a rectangular bin or vertical cylindrical vessel.
  • Check geometry homework for cubes, cones, spheres, prisms, pyramids, and frustums.
  • Compare liters, cubic feet, U.S. gallons, and Imperial gallons without a second conversion tool.
  • Estimate preliminary material volume for a straight hollow tube.
  • Combine repeated packages, molds, planters, containers, or manufactured parts.
  • Compare occupied and unoccupied space when the volume percentage is already known.
  • Estimate ideal surface area before adding openings, seams, waste, or fabrication allowances.

Accuracy, Privacy, and Important Limits

The arithmetic follows the displayed ideal-solid formulas and defined conversion factors. Inputs are processed in the current browser. The calculator does not inspect an object, infer whether measurements are internal or external, model partial liquid depth, include wall thickness automatically, or certify a container's rated capacity.

For engineering, structural, pressure-vessel, chemical, trade, shipping, medical, safety, or regulated work, use approved drawings, calibrated measurements, material specifications, tolerances, applicable standards, and qualified review. Treat this page as a transparent geometry aid rather than a substitute for design or certification.

Authoritative Volume and Geometry References

FAQ

How do I calculate the volume of a rectangular box?

Multiply inside length by inside width by inside height, using one common unit. A 2 m by 1.5 m by 0.8 m box has ideal volume 2.4 m^3, equal to 2,400 liters.

How do I calculate cylinder volume from diameter?

Divide the diameter by two to obtain radius, then use V = pi r^2 h. The calculator accepts radius because entering a diameter as radius would make the answer four times too large.

What is the difference between volume and capacity?

Volume is the space occupied or enclosed by an ideal solid. Capacity is usable internal space in a real container. Capacity should use inside measurements and may be reduced by walls, fittings, rounded corners, domed ends, or required freeboard.

Can this calculator convert cubic feet to gallons?

Yes. Every calculated result includes cubic feet, cubic inches, cubic yards, liters, U.S. liquid gallons, Imperial gallons, and other volume units in one conversion table.

Are U.S. gallons and Imperial gallons the same?

No. One U.S. liquid gallon is exactly 3.785411784 L, while one Imperial gallon is exactly 4.54609 L. The result labels and separates both systems.

Can I calculate a partially filled tank?

Only when you already know the occupied percentage of volume. The percentage field multiplies total volume directly. It does not convert liquid depth into volume for a horizontal cylinder, sphere, cone, frustum, tilted tank, or irregular vessel.

What dimensions should I use for container capacity?

Use usable inside dimensions measured in one common unit. Outside dimensions normally include wall material and can overstate capacity. Check the manufacturer's rated capacity when available.

What is a conical frustum volume formula?

For base radius R, top radius r, and perpendicular height h, V = pi h(R^2 + Rr + r^2) / 3. The calculator requires the base radius to be at least as large as the top radius.

What does hollow cylinder mode calculate?

It subtracts the inner cylinder from the outer cylinder using pi(R^2 - r^2)h. The answer is the ideal volume of tube material, not the empty capacity inside the tube.

Does the Volume Calculator show surface area?

Yes. It reports total closed-surface area for one ideal solid and the selected quantity, plus a base or cross-section area. Real material estimates still need openings, seams, overlaps, waste, and fabrication tolerances.