Fuel Cost Calculator
Fuel Cost Calculator lets you fuel used equals distance divided by kilometres per litre. Enter your own values or load the worked example.
- Copy or download the computed result
- Adjust distance (km)
- See the processing method and limits
Method and calculation
Fuel used equals distance divided by kilometres per litre.
Inputs and settings
Fuel Cost Calculator accepts Distance (km) (minimum 0); Efficiency (km/L) (minimum 0.000001); Fuel price per litre (minimum 0).
Worked example
Fuel Cost Calculator example — Distance (km): 500; Efficiency (km/L): 15; Fuel price per litre: 100. Computed output: { "litres": 33.333333333333336, "cost": 3333.3333333333335 }
Output and limitations
Fuel Cost Calculator: Use finite inputs. Results use double-precision arithmetic.
Technical references: JavaScript numerical operations
Fuel Cost Calculator FAQs
Fuel Cost Calculator applies the following rule to your input: Fuel used equals distance divided by kilometres per litre. The worked example on this page uses the same processor as the result button.
Fuel Cost Calculator has these boundaries: Use finite inputs. Results use double-precision arithmetic. Start by checking the distance (km) field against the units or format shown.
Fuel Cost Calculator provides this sample: { "litres": 33.333333333333336, "cost": 3333.3333333333335 }. Use the sample button to reproduce it, then replace the inputs with your own values.