What this calculator does
Convert liquid and solid volume across metric, US customary, and cubic units.
How it works
The calculator evaluates liters = value × liters-per-source-unit; result = liters ÷ liters-per-target-unit. Inputs are checked before calculation, and invalid values such as zero denominators or out-of-range selections produce a clear error instead of a misleading result.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
3-
?value=VolumeNumber · Required · Default: 1
-
?fromUnit=From unitChoice · Required · Default: gal · Accepted values: ml, l, m3, tsp, tbsp, floz, cup, pt, qt, gal, in3, ft3, yd3
-
?toUnit=To unitChoice · Required · Default: l · Accepted values: ml, l, m3, tsp, tbsp, floz, cup, pt, qt, gal, in3, ft3, yd3
Outputs
2-
resultConverted volumeNumber · Primary output
-
litersEquivalent litersNumber
Inputs and results
The inputs are Volume, From unit, To unit. Results include Converted volume, Equivalent liters.