How the Fuel Economy Converter Works
AnyTool Fuel Economy Converter performs every calculation in the browser. The crucial detail is that fuel economy is not a single linear factor: economy units (distance per fuel) and consumption units (fuel per distance) are reciprocal, so converting between the families inverts the value. Each unit declares an affine round-trip to a shared litres-per-100-km base. Litres per 100 km is the identity base; US mpg uses L/100km = 235.214583 ÷ mpg and Imperial mpg uses 282.480936 ÷ mpg; kilometres per litre uses 100 ÷ value; miles per litre uses 100 ÷ (value × 1.609344); and US gallons per 100 miles scale by 3.785411784 ÷ 1.609344. The two famous constants come straight from the definitions: 235.214583 = 100 × 3.785411784 ÷ 1.609344 and 282.480936 = 100 × 4.54609 ÷ 1.609344.
- Six units: mpg (US), mpg (UK), km/L, mi/L, L/100km and US gal/100mi
- L/100km is the shared base; economy units are reciprocals (K ÷ x)
- Economy is higher-is-better; consumption is lower-is-better
- Constants 235.214583 (US) and 282.480936 (UK) derive from exact gallon/mile sizes
- All arithmetic is client-side JavaScript — no server round-trip
