Comprehensive Volume Calculator: Cube, Cylinder, Cone, Sphere | Free Online Tool

Effortlessly calculate the volume of a cube, cylinder, cone, or sphere with our free online tool. Ideal for students, engineers, and anyone who needs.

cm

Results

Calculated
Result
—

What this calculator does and when to use it

This tool finds the volume of four common solids — a cube, cylinder, cone, or sphere — from a small number of linear measurements, then converts that volume into liters, US gallons, and cubic feet automatically. Volume calculations come up constantly outside a classroom: figuring out how much water a tank holds, how much concrete a cylindrical footing needs, how much soil fills a planter, or how much a shipping container can carry.

Pick the shape that matches what you're measuring, choose the unit your measurements are already in (millimeters through feet), and enter the dimensions. Because the calculator re-expresses the result in three different volume units at once, it's also a fast way to sanity-check a supplier's spec sheet or convert between metric and US customary volumes without hunting for a separate conversion factor.

The formulas

Each shape uses a standard geometric volume formula, applied to whatever unit you selected (so results are in that unit cubed until converted):

  • Cube: V = s³, where s is the side length.
  • Cylinder: V = πr²h, where r is the base radius and h is the height.
  • Cone: V = (1⁄3)πr²h, where r is the base radius and h is the height — exactly one-third of a cylinder with the same base and height.
  • Sphere: V = (4⁄3)πr³, where r is the radius.

After computing volume in the input unit, the calculator converts to cubic meters using the unit's length-to-meter factor cubed, then multiplies to get liters (×1000), US gallons (×264.172052), and cubic feet (÷0.0283168466).

Worked example

Take a cylindrical container with radius 5 cm and height 15 cm. Volume = π × 5² × 15 = π × 25 × 15 = 375π ≈ 1,178.097 cm³. Converting: 1,178.097 cm³ = 0.001178097 m³, so that's about 1.178 liters, 0.311 US gallons, and 0.042 cubic feet — matching what the calculator displays for those inputs.

Common mistakes and how to interpret results

  • Entering diameter instead of radius. The cylinder, cone, and sphere fields all ask for radius, not diameter — using diameter will overstate volume by a factor of 8 for a sphere (since r³ is cubed) or 4 for a cylinder/cone.
  • Mixing units within one shape. If you measure height in inches but radius in centimeters, convert one of them first — the calculator applies a single selected unit to every dimension for that shape.
  • Forgetting the cone's one-third factor. A cone is easy to overestimate because it's tempting to compute it like a cylinder; the true volume is exactly a third of a cylinder sharing the same base and height.
  • Reading the wrong equivalent unit. Double-check whether you need liters, US gallons, or cubic feet — US and Imperial gallons differ, and this calculator reports the US gallon.

Related calculators

Volume unit conversion table

Use this table to convert between common US customary and metric volume units at a glance.

Unit fl oz cups pints quarts gallons liters mL
1 fl oz10.1250.06250.031250.00780.0295729.57
1 cup810.50.250.06250.2366236.6
1 pint16210.50.1250.4732473.2
1 quart324210.250.9464946.4
1 gallon128168413.7853785
1 liter33.814.2272.1131.0570.26411000
1 mL0.03380.004230.002110.001060.0002640.0011

Cooking measurement quick reference

Handy equivalents for US cooking measurements — tablespoons, cups, fluid ounces, and milliliters.

Measurement Equivalent
1 tablespoon3 teaspoons = ½ fl oz = 14.8 mL
¼ cup4 tablespoons = 2 fl oz = 59.1 mL
⅓ cup5 tbsp + 1 tsp = 78.9 mL
½ cup8 tablespoons = 4 fl oz = 118.3 mL
¾ cup12 tablespoons = 6 fl oz = 177.4 mL
1 cup16 tablespoons = 8 fl oz = 236.6 mL

Liters to gallons conversion table

Quick reference for converting liters (1–20) to both US gallons (1 US gal = 3.785 L) and Imperial gallons (1 imp gal = 4.546 L).

Liters US Gallons Imperial Gallons
1 L0.264 gal0.220 gal
2 L0.528 gal0.440 gal
3 L0.793 gal0.660 gal
4 L1.057 gal0.880 gal
5 L1.321 gal1.100 gal
6 L1.585 gal1.320 gal
7 L1.849 gal1.540 gal
8 L2.113 gal1.760 gal
9 L2.378 gal1.980 gal
10 L2.642 gal2.200 gal
11 L2.906 gal2.420 gal
12 L3.170 gal2.641 gal
13 L3.434 gal2.861 gal
14 L3.698 gal3.081 gal
15 L3.963 gal3.301 gal
16 L4.227 gal3.521 gal
17 L4.491 gal3.741 gal
18 L4.755 gal3.961 gal
19 L5.020 gal4.181 gal
20 L5.283 gal4.402 gal

Frequently Asked Questions

How do I convert diameter to radius for these formulas?
Divide the diameter by 2. If you measured a cylindrical pipe's width as 10 cm across, the radius to enter is 5 cm. Entering the diameter directly instead of the radius will overstate the volume by a factor of 4 for cylinders and cones, and by a factor of 8 for spheres.
Why is a cone's volume exactly one-third of a cylinder's?
This is a geometric identity: for the same base radius and height, a cone's cross-sectional area shrinks linearly from the base to a point, and integrating that shrinking area over the height yields exactly one-third of the constant cross-sectional area of a matching cylinder. It holds for any radius and height, not just specific values.
Why do the liter and gallon figures look like rounded numbers?
The geometric volume in your chosen unit (cm³, in³, etc.) is exact given your inputs, but liters, US gallons, and cubic feet come from conversion factors that don't divide evenly (1 m³ = 264.172052 US gallons, for example). The displayed figures are simply rounded for readability — the underlying conversion is mathematically exact.
Does this calculator use US gallons or Imperial gallons?
US gallons. A US gallon (about 3.785 liters) is smaller than an Imperial gallon (about 4.546 liters) used in the UK and some other countries. To get an Imperial gallon figure, take the liters result and divide by 4.546 instead of using the US gallon value shown.
How many cups are in a gallon?
There are 16 cups in a US gallon. The breakdown follows the US customary chain: 1 gallon = 4 quarts, each quart = 2 pints, each pint = 2 cups — so 4 × 2 × 2 = 16 cups. In metric terms, 1 US gallon ≈ 3,785 mL and 1 cup = 236.6 mL, which confirms 3785 ÷ 236.6 ≈ 16 cups.
How many ml in a cup?
One US customary cup equals exactly 236.588 mL, commonly rounded to 236.6 mL. In many recipe contexts it is approximated as 240 mL for convenience. Note that Australian and Canadian recipes sometimes use a metric cup of 250 mL — if precision matters, check which standard the recipe follows before measuring.
How many liters in a gallon?
One US gallon equals approximately 3.785 liters (the exact value is 3.785411784 L). The Imperial gallon used in the UK is larger at approximately 4.546 liters. To convert: multiply US gallons by 3.785 to get liters, or divide liters by 3.785 to get US gallons. For Imperial gallons, use 4.546 as the factor.
How many tablespoons in a cup?
There are 16 tablespoons in 1 US cup. Each tablespoon is about 14.8 mL, so 16 × 14.8 ≈ 236.8 mL — essentially 1 cup. Common fractions: ¼ cup = 4 tablespoons, ⅓ cup = 5 tablespoons + 1 teaspoon, ½ cup = 8 tablespoons, ¾ cup = 12 tablespoons. One tablespoon is also equal to 3 teaspoons or ½ fluid ounce.