Home › Calculators › Volume Calculator

Volume Calculator

Choose a 3D shape, enter its dimensions in any unit and get the volume instantly in cubic units, liters and US or imperial gallons. The formula is worked out with your numbers, and the surface area comes along as a bonus.

Last updated:

I know the

Distance between the centers of the two hemispheres

Enter your values to see the result.
Advertisement
Advertisement

How to use the Volume Calculator

  1. Choose the shape that matches your object or container.
  2. Pick the length unit you measured in.
  3. Enter the dimensions. For round shapes choose whether you know the radius or the diameter.
  4. Read the volume in cubic units, liters and gallons.
  5. Use the table for other units, or copy the results.

Volume formulas

All lengths must use the same unit. The result is in that unit cubed (cm³, ft³…), which the calculator then converts to liters and gallons.

ShapeVolumeExample
CubeV = s³s = 10 cm → 1,000 cm³ = 1 L
Box (rectangular prism)V = l × w × h60 × 30 × 35 cm → 63,000 cm³ = 63 L
CylinderV = π r² hr = 10, h = 25 cm → 7,853.98 cm³ ≈ 7.85 L
SphereV = 4/3 π r³r = 12 cm → 7,238.23 cm³ ≈ 7.24 L
ConeV = ⅓ π r² hr = 3, h = 4 → 37.70
Rectangular pyramidV = ⅓ l w h4 × 4 × 6 → 32
CapsuleV = π r² a + 4/3 π r³r = 1, a = 2 → 10.47

Volume unit conversions

UnitLitersOther equivalents
1 cubic centimeter (cm³)0.001 L1 milliliter
1 cubic inch (in³)0.016387 L16.387 mL
1 US gallon3.785412 L231 in³ · 4 US quarts · 128 US fl oz
1 imperial gallon (UK)4.54609 L1.20095 US gallons
1 cubic foot (ft³)28.316847 L1,728 in³ · 7.48052 US gallons
1 cubic yard (yd³)764.554858 L27 ft³ · 201.97 US gallons
1 cubic meter (m³)1,000 L35.3147 ft³ · 264.172 US gallons

Tip: measure containers on the inside to get their real capacity. Wall thickness can easily take 5–10% off the volume of a small tank.

Frequently asked questions

How do you calculate volume?

Volume is the space inside a 3D object, measured in cubic units. For prisms and cylinders multiply the base area by the height (box: l × w × h, cylinder: π × r² × h). Cones and pyramids hold exactly one third of the matching prism. A sphere is 4/3 × π × r³.

How many liters are in a cubic foot or cubic meter?

One cubic meter is exactly 1,000 liters, one liter is 1,000 cubic centimeters (1 cm³ = 1 mL), and one cubic foot is about 28.317 liters or 7.48 US gallons.

How do I find the volume of a tank in gallons?

Measure the tank in inches or feet, calculate the volume with the matching shape (box for rectangular tanks, cylinder for round ones), then convert. One US gallon is 231 cubic inches (3.785 L); one imperial gallon is 4.546 L. The calculator does the conversion for you.

What is the difference between radius and diameter?

The diameter is the full width of a circle through its center; the radius is half of that. Formulas use the radius, so if you measured across the object choose “Diameter” and the calculator halves it.

Why is a cone one third of a cylinder?

A cone with the same base and height as a cylinder holds exactly one third of the cylinder's volume. The same is true of a pyramid and a prism with the same base and height, which calculus (or Cavalieri's principle) proves.

What is a capsule shape?

A capsule is a cylinder with a hemisphere on each end, like a pill or a propane tank. Its volume is the cylinder part (π r² a, where a is the straight length) plus one whole sphere (4/3 π r³).

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Surface Area CalculatorSurface area of a cube, box, cylinder, sphere, cone or pyramid, with lateral and base areas.Area CalculatorFind the area of squares, rectangles, triangles, circles, trapezoids, ellipses and sectors.Cubic Yard CalculatorConvert length, width and depth in any unit to cubic yards, cubic feet, m³ and material weight.Concrete CalculatorEstimate concrete volume, bags and cost.Air Changes per Hour CalculatorCalculate ACH from CFM and room size, CFM for a target ACH, ACH50 or ASHRAE ventilation.Cake Batter CalculatorCups of batter for any cake pan, how much to multiply your recipe, and an adjusted bake time.Candle Wax CalculatorWax and fragrance oil weights for a batch of candles from jar volume or size, plus a wick hint.Caulk CalculatorCaulk volume and number of 10.1 oz cartridges or squeeze tubes from joint length and size.Roofing Calculator (Roof Squares)Estimate roof area, squares, shingle bundles and cost from pitch.Square Root CalculatorFind square, cube and nth roots with simplified radical form and steps.Body Surface Area CalculatorCalculate body surface area in m² with the Du Bois, Mosteller, Haycock and other formulas.Pythagorean Theorem CalculatorSolve for the hypotenuse or a missing leg of a right triangle, with a diagram and steps.Circle CalculatorEnter a circle's radius, diameter, circumference or area and get all the others.Triangle CalculatorSolve any triangle from SSS, SAS, ASA, AAS or right-triangle values: sides, angles, area, type.Slope CalculatorSlope, angle, line equation y = mx + b and distance from two points, with a graph.Midpoint CalculatorFind the midpoint of two points in 2D or 3D, or the missing endpoint from a midpoint.Distance Formula CalculatorDistance between two points in 2D or 3D with step-by-step work and an exact radical answer.Vector Calculator2D and 3D vectors: add, subtract, dot and cross product, magnitude, angle, unit vector, projection.Pascal's Triangle GeneratorGenerate Pascal's triangle up to row 30, highlight a row and expand (ax + by)ⁿ.Trigonometry CalculatorSin, cos, tan, csc, sec, cot and inverses in degrees or radians, with exact values.Arc Length CalculatorArc length, sector area and chord from radius and angle, or solve for the radius or angle.Cylinder Volume CalculatorCylinder volume in liters, gallons and cubic units from radius or diameter, plus surface area.Regular Polygon CalculatorArea, perimeter, apothem, radius and angles of a regular polygon from any one measurement.Aquarium Volume CalculatorFish tank gallons, liters and water weight: rectangle, cylinder, bow-front and hexagon tanks.Tank Volume CalculatorTotal and filled volume of cylinder, rectangular and capsule tanks in gallons and liters.Circle Skirt CalculatorWaist radius, fabric yardage and cutting layout for full, half or quarter circle skirts.Ellipse CalculatorArea, perimeter (Ramanujan), eccentricity, foci and equation of an ellipse from its axes.Camera Field of View CalculatorAngle of view and frame size from focal length, sensor size and subject distance.Law of Sines and Cosines CalculatorSolve SSS, SAS, ASA, AAS and SSA triangles with the laws of sines and cosines, steps shown.Miter Angle CalculatorMiter saw angle for any polygon or corner, plus crown molding miter and bevel settings.Simplify Square Root CalculatorSimplify square, cube and nth roots to simplest radical form a√b, with steps.Interactive Unit CircleDrag an angle on the unit circle to see degrees, radians and exact sin, cos and tan. Printable chart.Cone Volume CalculatorVolume, slant height and surface area of a right cone from its radius and height.Perimeter CalculatorPerimeter of a square, rectangle, triangle, circle, trapezoid, polygon or sector, with a diagram.Point Slope Form CalculatorLine equation in point-slope form from a point and slope or two points, plus y = mx + b.Polar to Cartesian ConverterConvert polar coordinates (r, θ) to rectangular (x, y) with steps, a plot and bulk lists.Right Triangle CalculatorSolve a right triangle from any two values: sides, angles, area, perimeter and altitude.Slope Intercept Form CalculatorGet y = mx + b from two points, a point and slope, or standard form, with steps and a graph.Sphere Volume CalculatorVolume and surface area of a sphere from radius, diameter or circumference, or the reverse.Trapezoid Area CalculatorArea, perimeter, median and missing base or height of a trapezoid, with a diagram.30-60-90 Triangle CalculatorEnter one side of a 30-60-90 triangle to get the other sides, area and perimeter in exact radical form.45-45-90 Triangle CalculatorSolve an isosceles right triangle from a leg or hypotenuse, with sides in exact √2 form.Complementary and Supplementary Angle CalculatorComplement, supplement and explement of any angle in degrees or radians, with diagrams.Coordinate Plane PlotterPlot points, segments and polygons on an interactive coordinate grid, or print blank planes.Coterminal Angle CalculatorList positive and negative coterminal angles and the principal angle, in degrees and radians.Heron's Formula CalculatorFind a triangle's area from its three sides with Heron's formula, semi-perimeter and steps.Implicit Differentiation CalculatorFind dy/dx for any equation in x and y with steps, plus the slope and tangent at a point.Inverse Trig Calculatorarcsin, arccos, arctan, arcsec, arccsc and arccot in degrees and radians, with exact values.Polygon Area from CoordinatesArea, perimeter and centroid of any polygon from its vertex coordinates (shoelace formula).Reference Angle CalculatorFind the reference angle and quadrant of any angle in degrees or radians, with a unit circle sketch.Tangent Line CalculatorFind the tangent and normal line to f(x) at a point, with the derivative, slope and a graph.
See all 46 Geometry & Trigonometry Calculators →