Volume Converter

Convert between different volume units including liters, milliliters, gallons, cups, and more.

Volume Converter
ready
$ convert --from [unit] --to [unit] --value [number]
$
>
formulas.ts

// Common Volume Converter Formulas

1const1 liter = 1000 milliliters
2const1 cubic meter = 1000 liters
3const1 gallon (US) ≈ 3.785 liters
4const1 gallon (UK) ≈ 4.546 liters
5const1 cubic foot ≈ 28.317 liters
references.json

// Common Volume Converter References

{
"Standard Water Bottle":"500ml",
"Milk Carton":"1L",
"Car Gas Tank":"50-70L",
"Olympic Swimming Pool":"2,500,000L",
"World Ocean Volume":"1.335×10⁹ km³"
}
guide.md

Liquid volume and why gallons disagree

Volume measures capacity or three-dimensional space. Cooking and fuel often use liters, milliliters, cups, and gallons. A critical detail: the US gallon and the UK (imperial) gallon are different sizes. This converter uses distinct factors so a “gallon” is never ambiguous in the calculation path.

method.ts

How we convert

  1. Normalize liquid volumes to liters (or cubic meters for large SI volumes).
  2. Apply the target unit factor, choosing US or imperial gallon/fluid ounce when those units appear.
  3. Treat “cup” carefully: a US customary cup is 240 mL in nutrition labeling contexts and about 236.588 mL historically; this tool documents the factor it applies.
sources.md

Sources

  • - SI Brochure: liter as a special name for cubic decimeter (1 L = 0.001 m³).
  • - NIST SP 811: US gallon = 3.785411784 L; imperial gallon = 4.54609 L.
examples.md

Worked examples

Recipe: 2 US cups to milliliters

  1. Using 1 US cup ≈ 236.588 mL.
  2. 2 × 236.588 = 473.176 mL.

Result: 2 US cups ≈ 473 mL

Fuel: 40 L to US gallons

  1. 1 US gal = 3.785411784 L.
  2. 40 / 3.785411784 ≈ 10.567 gallons.

Result: 40 L ≈ 10.57 US gal

Common traps

  • US fluid ounce ≠ UK fluid ounce; recipes from different countries can diverge.
  • Fluid ounces measure volume; ounces on a kitchen scale measure mass.
  • Dry cups and liquid cups are not always interchangeable for dense ingredients like flour.

Where this helps

  • - Adapting baking recipes between metric and US customary measures.
  • - Comparing fuel economy figures that mix L/100 km and mpg.
  • - Sizing aquariums or containers sold with mixed unit labels.
FAQ.md

Volume FAQ

01 Q: Which gallon does “mpg” usually mean?

US miles per gallon typically uses the US gallon. UK mpg historically used the imperial gallon—about 20% larger—so the numbers are not directly comparable.

02 Q: Is 1 mL the same as 1 cm³?

Yes for practical purposes. By definition 1 L = 1 dm³, so 1 mL = 1 cm³.