Free fuel cost calculator: enter distance, economy in MPG US, MPG UK, L/100 km or km/L and the pump price to get exact trip fuel cost and litres used.

Fuel Cost Calculator

Cost any trip exactly: distance, real economy in any unit system, and today’s pump price turned into dollars and litres.

Free to use MPG US · UK · L/100 km · km/L Return-trip multiplier Save PDF · PNG · Share

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for trip distance (one way as entered).

Enter a valid value for distance unit.

Enter a valid value for fuel economy value.

Enter the number matching the economy unit on the right.

Enter a valid value for economy unit.

$/unit

Enter a valid value for fuel price.

Enter a valid value for price is per.

Enter a valid value for number of journeys (2 = return trip).

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Fuel Cost Calculator tinyexe.comFree online calculators

TinyExe · Fuel Cost Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Trip distance (one way as entered)

—

Distance unit

—

Fuel economy value

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Fuel Cost Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      To calculate fuel cost, convert your economy to litres per hundred kilometres, multiply the trip distance in kilometres by that rate and divide by one hundred to get litres used, then multiply by the price per litre. A three-hundred-mile trip at thirty US miles per gallon uses ten US gallons, costing thirty-eight dollars fifty at $3.85 per gallon.

      • 1 US gallon = 3.785411784 litres; 1 UK gallon = 4.54609 litres
      • L/100 km = 235.214583 / MPG (US)
      • Cost = litres used x price per litre

      Economy conversions at a glance

      Reference values for this calculator.

      MPG (US)MPG (UK)L/100 kmkm/L
      2024.011.768.5
      3036.07.8412.8
      4048.15.8817.0
      5060.14.7021.3

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      Fuel used (litres) = total distance (km) x consumption (L/100 km) / 100, with MPG (US) converted by L/100 km = 235.214583 / MPG and MPG (UK) by 282.480936 / MPG; Cost = fuel used x price per litre (1 US gallon = 3.785411784 L, 1 UK gallon = 4.54609 L)

      Ideas enhancement: mixed-unit handling the old triangle kernel never had — distance in miles or km, economy in MPG US, MPG UK, L/100 km or km/L, price per US gallon, UK gallon or litre, and a journeys multiplier for return trips — all normalised to litres before costing.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Highway trip in US units

      300 miles, 30 MPG (US), $3.85 per US gallon, 1 journey

      CalculationSteps
      Total distance = 482.8 km. Economy converts to 7.84 L/100 km, so fuel used = 482.8 x 7.84 / 100 = 37.85 litres. Price per litre = 1.0171, so cost = 37.85 x 1.0171 = $38.5.$38.5 in fuel — The trip burns 37.85 litres (10 US gallons).

      Result

      Example 2

      Metric return trip

      250 km each way, 6.5 L/100 km, $1.72 per litre, 2 journeys

      CalculationSteps
      Total distance = 500 km. Economy converts to 6.5 L/100 km, so fuel used = 500 x 6.5 / 100 = 32.5 litres. Price per litre = 1.72, so cost = 32.5 x 1.72 = $55.9.$55.9 in fuel — The trip burns 32.5 litres (8.59 US gallons).

      Result

      Example 3

      UK economy figure

      180 miles, 45 MPG (UK), $1.45 per litre, 1 journey

      CalculationSteps
      Total distance = 289.68 km. Economy converts to 6.28 L/100 km, so fuel used = 289.68 x 6.28 / 100 = 18.18 litres. Price per litre = 1.45, so cost = 18.18 x 1.45 = $26.37.$26.37 in fuel — The trip burns 18.18 litres (4.8 US gallons).

      Result

      How to use this calculator

      Step 1

      Enter the one-way distance and pick miles or kilometres.

      Step 2

      Enter your vehicle economy and pick its unit — MPG US, MPG UK, L/100 km or km/L.

      Step 3

      Enter the pump price and pick whether it is per US gallon, UK gallon or litre.

      Step 4

      Set journeys to 2 for a return trip.

      Step 5

      Read the total fuel cost, litres burned and the converted economy figures.

      In short: Fuel cost is the money spent on fuel for a trip: fuel consumed (from distance and economy) multiplied by the unit fuel price.

      Frequently asked questions

      Why do US and UK MPG give different costs?

      A UK (imperial) gallon is 4.54609 litres but a US gallon is only 3.785 litres, so the same MPG number means better economy in the UK system. This calculator converts both properly instead of treating them as equal.

      How do I convert MPG to L/100 km?

      For US MPG, divide 235.215 by the MPG figure; for UK MPG divide 282.481. Lower L/100 km is better, while higher MPG is better — the two scales run in opposite directions.

      Should I use the manufacturer economy figure?

      Use your real-world figure if you track fill-ups: rated figures are typically 10-20% optimistic. Air conditioning, roof loads, cold starts and motorway speed all raise consumption, so add a margin for budgeting.

      How many litres are in a gallon?

      One US gallon is 3.785 litres and one UK imperial gallon is 4.546 litres. That difference is exactly why the price-per-unit selector matters when comparing US and UK fuel prices.

      Does this include wear, tolls or oil?

      No — it is fuel only. For full running cost per mile, add depreciation, insurance, maintenance and tolls separately; fuel is usually only a third to a half of true per-mile cost.

      About this calculator

      A fuel cost calculator works out what a journey costs in fuel alone. It takes the trip distance, your vehicle’s fuel economy in whichever unit system you know it — US or UK miles per gallon, litres per 100 km, or kilometres per litre — and the pump price in its own unit, converts everything to litres, and multiplies fuel used by price per litre. A journeys multiplier handles return trips without re-entering anything.

      Fuel economy units are a trap for mental arithmetic: MPG rewards bigger numbers, L/100 km rewards smaller ones, and the US and UK gallons hiding inside "MPG" differ by 20%. A single wrong assumption — treating a UK MPG figure as US, or pricing per US gallon when the pump sells litres — quietly moves the answer by a fifth. Converting everything to litres first, as this calculator does, removes all three traps at once.

      The arithmetic itself is a simple proportion: consumption per 100 km scaled to your distance gives litres, and litres times price per litre gives cost. The conversion constants are exact definitions, not estimates: the international mile is 1.609344 km, the US gallon is 3.785411784 litres and the imperial gallon is 4.54609 litres. The only genuinely uncertain input is your real-world economy, which is why your own fill-up records beat the brochure figure.

      Budgeting with a margin is wise: cold weather, roof boxes, towing, air conditioning and sustained high speed can each add 5-15% to consumption. Many drivers run this calculator at their tracked average economy and again at 15% worse, and budget for the higher figure so the trip fund is never short.

      Use it before a road trip to budget fuel, when splitting driving costs between passengers, when comparing two cars for a commute, when a delivery or sales route needs costing, or when checking whether a cheaper fuel station across town is actually worth the detour.

      How to calculate it yourself

      Step 1

      Convert the trip distance to kilometres (miles x 1.609344) and multiply by the number of journeys.

      Step 2

      Convert economy to L/100 km: 235.214583 / MPG (US), 282.480936 / MPG (UK), or 100 / (km per litre).

      Step 3

      Fuel used in litres = distance in km x L/100 km / 100.

      Step 4

      Convert the pump price to price per litre (divide a per-gallon price by 3.785 for US or 4.546 for UK gallons) and multiply by litres used.

      Real-life examples

      Family holiday drive

      A family drives 300 miles to a holiday rental in a car averaging 30 MPG (US), with fuel at $3.85 a gallon. They want the one-way fuel budget before deciding on toll roads.

      Total distance = 482.8 km. Economy converts to 7.84 L/100 km, so fuel used = 482.8 x 7.84 / 100 = 37.85 litres. Price per litre = 1.0171, so cost = 37.85 x 1.0171 = $38.5.

      $38.5 in fuel — The trip burns 37.85 litres (10 US gallons).

      Courier costing a return run

      A courier quotes a 250 km each-way delivery run. The van uses 6.5 L/100 km and diesel is $1.72 a litre, so the round trip is costed with journeys set to 2.

      Total distance = 500 km. Economy converts to 6.5 L/100 km, so fuel used = 500 x 6.5 / 100 = 32.5 litres. Price per litre = 1.72, so cost = 32.5 x 1.72 = $55.9.

      $55.9 in fuel — The trip burns 32.5 litres (8.59 US gallons).

      Ideas & use cases

      • Car comparison for a commute: run the same weekly distance at two cars’ economy figures and multiply the difference by 48 working weeks to get the true annual saving.
      • Fair passenger split: calculate the trip cost, then divide by occupants — combine with the journeys set to 2 so the driver is not subsidising the return leg.
      • Detour test: price a fill-up at the cheap station including the extra miles to reach it; if the detour fuel costs more than the per-litre saving on a tank, skip it.

      Limitations & sources

      • Fuel only — excludes tolls, wear, insurance and depreciation. Real consumption varies with speed, load, weather and driving style; rated economy figures are optimistic for most drivers.

      Sources: NIST SP 811 unit conversions: 1 US gallon = 3.785411784 L, 1 mile = 1.609344 km; UK imperial gallon = 4.54609 L (Weights and Measures Act) · US EPA fueleconomy.gov economy-unit conversion factors

      Fuel Cost Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results