molecalculator

Moles & Molar Mass

Calculator to Figure Volume: Formulas & How To Use

Calculator No. 01-7446 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This calculator works out the volume of a regular solid (box, cylinder, sphere, or cone) from the dimensions you enter, and returns the result in cubic meters, liters, and gallons. You choose the shape, type in the length, width, height, or radius, and the tool applies the standard geometric formula to give you the volume instantly.

Formula

The volume of a solid is the amount of three-dimensional space it occupies. The formula depends entirely on the shape:

  • Box (rectangular prism): V = length × width × height
  • Cylinder: V = π × r² × h (r = radius, h = height)
  • Sphere: V = (4/3) × π × r³ (r = radius)
  • Cone: V = (1/3) × π × r² × h

All lengths are in meters (m), so the volume comes out in cubic meters (m³). To convert to liters, multiply by 1000 (1 m³ = 1000 L). To convert to US gallons, multiply by 264.172 (1 m³ ≈ 264.172 gal). For imperial gallons, use 219.969 instead.

Worked Example

Using the default values: a cylinder with radius 1 m and height 1 m.

V = π × (1 m)² × 1 m = π × 1 m² × 1 m = 3.14159 m³

Rounded to 4 decimal places: 3.1416 m³

In liters: 3.14159 × 1000 = 3141.59 L

In US gallons: 3.14159 × 264.172 = 830.0 gal (rounded to 2 decimals: 830.00 gal)

Assumptions

  • The shape is perfectly regular (straight sides for box/cylinder, exact circular cross-section).
  • All dimensions are measured in the same unit (here meters).
  • The solid is not hollow; this is total volume, not capacity of a container’s interior.
  • For a cone, the height is measured perpendicular to the base, not along the slanted side.

When to Use This Calculator

You would use this when you need the volume of a geometric solid from its linear measurements. Common situations include:

  • Estimating the capacity of a cylindrical tank or pipe.
  • Finding the volume of a shipping box to calculate freight costs.
  • Working out the volume of a spherical ball or storage tank.
  • Calculating concrete or soil needed for a cone-shaped pile or a rectangular slab.
  • Converting volume to liters or gallons for liquid storage planning.

For irregular shapes (rocks, oddly shaped containers), this calculator won’t work directly. You would instead use water displacement: submerge the object in a graduated container and measure the volume of water displaced, which equals the object’s volume.

How to Read the Result

The first output is the raw volume in cubic meters. This is the standard SI unit. The second and third outputs convert it to liters and US gallons, which are more intuitive for everyday quantities. For example, a result of 0.5 m³ might not mean much until you see it is 500 liters or about 132 gallons. Note that US gallons differ from imperial gallons (used in the UK and Canada for fuel): 1 US gallon = 3.78541 liters, while 1 imperial gallon = 4.54609 liters. The calculator uses US gallons by default.

Common Mistakes

The most frequent error is mixing units. If you measure the radius in centimeters and the height in meters, the formula breaks. Always convert all dimensions to the same unit first. For example, a cylinder with radius 50 cm and height 1 m must be entered as r = 0.5 m and h = 1 m, not 50 and 1. Another common mistake is using the diameter instead of the radius in cylinder, sphere, and cone formulas. The radius is half the diameter. Finally, for a cone, people sometimes use the slant height instead of the perpendicular height. The slant height is measured along the side; the correct height is the straight vertical distance from the apex to the center of the base.

Limits of the Formula

These formulas assume perfect geometric shapes. Real objects have tolerances: a “cylinder” might have slightly oval cross-sections, a “box” might have bulging sides. For precise engineering or scientific work, you must measure the actual dimensions accurately and account for manufacturing tolerances. Also, for containers, the internal volume (capacity) is less than the external volume because of wall thickness. If you need the capacity of a tank, measure the inside dimensions, not the outside. The formulas also do not account for temperature expansion of solids or liquids; a liquid’s volume changes with temperature, so a tank that holds 1000 L at 20 °C might hold slightly more or less at other temperatures.

Alternatives to This Calculator

If you have the mass and density of a material, you can find volume without any geometric measurements: V = mass / density. This works for any shape, regular or irregular. For example, a block of aluminum with a mass of 2.7 kg and a density of 2700 kg/m³ has a volume of 0.001 m³ (1 liter). Another alternative is using a graduated cylinder or measuring cup for liquids. For large irregular volumes, like a lake or a pile of gravel, you might use survey methods or displacement in a large container. If you only need to compare volumes, you can sometimes use ratios without calculating absolute values.

Frequently Asked Questions

How do I calculate the volume of a cylinder in liters? First find the volume in cubic meters using V = πr²h, then multiply by 1000. For example, a cylinder with radius 0.5 m and height 2 m has V = π × 0.25 × 2 = 1.5708 m³, which is 1570.8 liters.

What is the volume of a sphere with a radius of 10 cm? Convert radius to meters first: 10 cm = 0.1 m. Then V = (4/3) × π × (0.1)³ = 0.00418879 m³, which is 4.18879 liters or about 1.106 US gallons.

Is volume the same as capacity? Not always. Volume is the space an object occupies; capacity is the amount a container can hold. For a hollow container, capacity is the internal volume, which is smaller than external volume due to wall thickness. For a solid object, there is no capacity.

How do I find the volume of an irregular object? Use water displacement. Fill a graduated cylinder with a known volume of water, note the level, then submerge the object completely. The new water level minus the original level equals the object’s volume. This works because the object displaces its own volume of water.

What is the difference between cubic meters and liters? One cubic meter is exactly 1000 liters. A liter is defined as one cubic decimeter (0.001 m³). So to convert m³ to liters, multiply by 1000; to convert liters to m³, divide by 1000.

Why does the calculator use US gallons instead of imperial? US gallons are the standard for most volume measurements in the United States, including fuel economy, milk, and many industrial applications. If you need imperial gallons, multiply the cubic meters by 219.969 instead of 264.172.

Related

Formula used
sel shape | Shape | Box=1, Cylinder=2, Sphere=3, Cone=4
in a | Length / radius | m | 1 | 0
in b | Width / height | m | 1 | 0
in c | Height (box only) | m | 1 | 0
out v | Volume | m³ | shape == 1 ? a*b*c : shape == 2 ? pi*a^2*b : shape == 3 ? (4/3)*pi*a^3 : (1/3)*pi*a^2*b | 4
out vl | Volume in liters | L | v * 1000 | 2
out vg | Volume in US gallons | gal | v * 264.172 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →