Fuel Cost Calculator

Estimate fuel use and trip cost from distance, efficiency, and fuel price.

How to use

These are example steps; replace the values for your task.

  1. Select km/L and enter 300, 15 and 180.
  2. Check both fuel quantity and cost.

Enter values

Result

—

Keep distance, efficiency, and price in one unit system

For km/L, a 300 km trip at 15 km/L uses about 20 litres. The tool multiplies that fuel amount by the price per litre. L/100 km uses the same kilometre-and-litre system.

Selecting US MPG changes the inputs to miles and price per US gallon. It does not mix miles with Imperial gallons or convert currencies.

About this tool

km/L and L/100 km use kilometres, a price per litre, and litres. US MPG uses miles, a price per US gallon, and US gallons, so the unit systems are not mixed.

Real fuel use changes with traffic, load, weather, and driving style. The result is an estimate based only on the values you enter.

Try a use case and check the result

Estimate fuel volume and cost using a consistent fuel-efficiency unit.

Example buttons replace the inputs and settings above and calculate. Restore previous input returns to the state before the latest example.

After trying multiple examples, repeat Restore previous input to return to your original input. History is kept only in this page; restore any input you need before closing it.

Travel 100 km at 20 km/L

Input and settings

Mode: km/L / Distance: 100 km
Efficiency: 20 km/L / Price: 160 per litre

Expected result

Cost: 800
Estimated fuel: 5 L

Use the equivalent 5 L/100 km rate

Input and settings

Mode: L/100 km / Distance: 100 km
Consumption: 5 L/100 km / Price: 160 per litre

Expected result

Cost: 800
Estimated fuel: 5 L

How to read the result

20 km/L and 5 L/100 km represent the same efficiency here, so both volume and cost agree. A larger km/L value uses less fuel; a smaller L/100 km value uses less. Example buttons set the unit mode before entering numbers.

Scope and limits

Manually changing mode clears existing numbers; it does not convert them. US mpg uses miles, US miles per gallon and price per US gallon, not imperial gallons. Efficiency must be positive; distance and price non-negative. Traffic, load, price changes and tolls are excluded. Sample prices are illustrative, not current prices.

Verification: existing calculateFuelCost checks cover 100÷20=5 L, 100×5÷100=5 L, 5×160=800 and rejection of zero efficiency. Browser checks cover entry after mode changes and restoration of an original US mpg setup.

Continue with the next task

Fuel for a 300 km trip

At 300 km, 15 km/L and 180 per litre, the estimate is 20 L and 3,600.

In km/L mode, fuel is distance divided by efficiency; cost is fuel multiplied by price.

Changing units clears the inputs rather than converting them. Re-enter values in the selected units.

Frequently asked questions

Does it fetch current fuel prices?

No. It uses only the price you enter and makes no external request.

Which MPG does it use?

The MPG option uses US gallons, not Imperial gallons.

Can I enter distance in miles?

Yes. Select US MPG to enter distance in miles and fuel price per US gallon.

Related tools

Inputs and storage

Keep any content you need before clearing. This tool does not autosave inputs or results. Reloading or closing the page, clearing inputs or resetting may discard your work.

Favorites and language preferences are stored separately and may be lost when site data is cleared. Tool resets and site-data deletion do not delete files already downloaded to your device.

Explore tools & games

All 120 tools · 16 games

All 120 tools · 16 games

Text & writing 26

Calculators & converters 22

Date & time 12

Images & PDF 26

Data & web 28

Random & handy 6

Games 16