The formula
US: gallons = miles ÷ mpg(US); cost = gallons × price per gallon
UK: litres = miles ÷ mpg(UK) × 4.54609; cost = litres × price per litre
Metric: litres = km × (L/100 km) ÷ 100; cost = litres × price per litre
Round trip doubles the distance.
Worked example
- A 300-mile trip in a car that does 30 mpg (US), with gas at $3.50 a gallon.
- Fuel used = 300 ÷ 30 = 10 gallons (about 37.9 litres).
- Cost = 10 × $3.50 = $35.00, or about $0.117 per mile.
- Round trip: 600 miles, 20 gallons, $70.00. Split between 2 people, that's $35.00 each.
- Metric example: 500 km at 7 L/100 km uses 35 litres. At €1.80 a litre, that's €63.00.
How trip fuel cost is calculated
The cost of fuel for a journey depends on three things: how far you drive, how efficient your vehicle is, and the price of fuel. The calculator first works out how much fuel the trip will use, then multiplies by the price. It supports the three common ways of measuring fuel economy: miles per US gallon (US), miles per imperial gallon (UK) and litres per 100 kilometres (Canada, Australia, Europe, India and most other countries).
Note that UK and US mpg figures aren't the same. An imperial gallon is about 20% bigger than a US gallon, so the same car shows a higher mpg figure in the UK. A car rated 36 mpg (UK) does about 30 mpg (US). And in the UK, fuel is sold by the litre even though economy is quoted in mpg, which is why the UK option uses a price per litre.
Converting between fuel economy units
- US mpg to L/100 km: 235.215 ÷ mpg. For example, 30 mpg ≈ 7.84 L/100 km.
- UK mpg to L/100 km: 282.481 ÷ mpg. For example, 45 mpg ≈ 6.28 L/100 km.
- UK mpg to US mpg: multiply by 0.8327.
With mpg, a higher number is better. With L/100 km, a lower number is better. Also note that improving a thirsty car saves far more fuel than improving an efficient one. Going from 15 to 20 mpg saves more fuel per mile than going from 40 to 60 mpg.
Getting an accurate fuel economy figure
Official ratings (EPA in the US, WLTP in the UK, EU and elsewhere) are measured in controlled tests and are often better than real-world results, especially at motorway speeds, in cold weather, with roof boxes or heavy loads, or with air-conditioning running. For the most accurate estimate, use your car's own trip computer average, or measure it: fill the tank, reset the trip meter, drive normally, then refill and divide the distance by the fuel added.
Ways to cut fuel costs
- Drive smoothly. Gentle acceleration and braking, and anticipating traffic, can improve economy noticeably.
- Watch your speed. Aerodynamic drag rises steeply with speed, and most cars use noticeably more fuel at 75 mph (120 km/h) than at 60–65 mph (100–105 km/h).
- Check tyre pressure monthly. Under-inflated tyres increase rolling resistance.
- Remove extra weight and roof racks when you're not using them.
- Plan routes and combine errands to avoid short trips with a cold engine.
- Compare fuel prices. Motorway and highway service stations are often more expensive.
- Share the ride. Use the passenger field to split costs fairly.
Fuel is only part of the cost of driving. Insurance, maintenance, tyres, depreciation, tolls and parking can add significantly more per mile.
Comparing fuel and electric vehicles
If you're comparing a petrol or diesel car with an electric vehicle (EV), work out the cost per mile or kilometre for each. For an EV, multiply its efficiency by your electricity price. For example, an EV using 0.30 kWh per mile with electricity at $0.16 per kWh costs about $0.048 per mile to drive. A 30 mpg petrol car at $3.50 per gallon costs about $0.117 per mile, more than twice as much. Results vary a lot depending on whether you charge at home on an off-peak tariff or at public rapid chargers, which can cost three or four times as much per kWh. Charging losses (typically 10–15%) and cold weather also increase real-world EV energy use. For a fuller comparison, include purchase price, insurance, maintenance (EVs usually need less) and expected resale value over the years you plan to keep the car.