How trip fuel cost is calculated
The calculation has two steps. First work out how much fuel the trip burns, then multiply by the price:
Fuel used = Distance ÷ Fuel economy (distance per unit of fuel)
Cost = Fuel used × Price per unit of fuel
When economy is given as consumption (L/100 km), the first step becomes fuel = distance × L/100 km ÷ 100. The calculator converts everything to kilometers per liter internally using exact definitions: 1 mile = 1.609344 km, 1 US gallon = 3.785411784 L and 1 imperial (UK) gallon = 4.54609 L. So 1 mpg (US) = 0.4251 km/L, and L/100 km = 235.21 ÷ mpg (US).
If you change the economy unit or the price unit, the number is converted for you, so the trip cost stays the same.
Worked example
A 250-mile drive in a car that averages 28 mpg with gas at $3.25 per gallon, split between two people:
- Fuel used = 250 ÷ 28 = 8.93 US gallons (33.8 L).
- Cost = 8.93 × $3.25 = $29.02, or $14.51 each.
- That is about $0.116 per mile. At the EPA figure of 8,887 g of CO2 per gallon of gasoline, the trip emits about 79 kg (175 lb) of CO2.
In metric units: 400 km at 7.5 L/100 km uses 400 × 7.5 ÷ 100 = 30 L. At ¥7.80 per liter that costs ¥234, or ¥117 each for two people. Tick Round trip to double the distance.
Fuel economy units explained
| Unit | Used in | Better is |
|---|---|---|
| mpg (US) | United States | higher |
| mpg (UK) | United Kingdom | higher |
| L/100 km | Europe, China, Australia, Canada | lower |
| km/L | Japan, India, Latin America | higher |
A UK mpg figure is about 20% higher than the US mpg for the same car, because the imperial gallon is larger. Always check which gallon a figure uses. Because L/100 km measures consumption, improvements at the inefficient end save far more fuel. Going from 10 to 20 mpg saves more fuel per mile than going from 30 to 50 mpg.
Getting a realistic estimate
Official ratings (EPA window stickers in the US, WLTP in Europe, the CLTC cycle in China) are measured in controlled tests. Real-world consumption is often 10–25% worse, especially at high highway speeds, with heavy loads or roof boxes, in cold weather or with the air conditioning on. For the best estimate, use your own average from fill-up records: liters (or gallons) added ÷ distance since the last fill. Tolls, parking and wear are not included. For electric vehicles, use an electricity cost calculation instead.
Frequently asked questions
How do I convert mpg to L/100 km?
Divide 235.215 by the US mpg (or 282.481 by the UK mpg). For example, 30 mpg (US) = 7.84 L/100 km.
How do I split gas money fairly?
Divide the trip fuel cost by the number of people. Some groups also add tolls and parking, or a per-mile amount for wear on the driver's car.
Does the calculator include the return journey?
Only if you tick Round trip, which doubles the one-way distance.
How is CO2 estimated?
With US EPA factors: 8,887 g of CO2 per gallon of gasoline and 10,180 g per gallon of diesel (about 2.35 and 2.69 kg per liter). This covers tailpipe emissions only.
Sources & references
Last reviewed: