This comparator puts four fuels side by side — petrol, diesel, LPG, and electric — on the two metrics that matter for running costs and policy: cost per mile and CO2e per mile. You enter each vehicle’s efficiency, the relevant prices, and a distance, and it ranks them with a UK fuel-duty and VAT breakdown.
How it works
For liquid fuels, miles per gallon is converted to miles per litre, then cost and CO2 follow from price and emission factor per litre. The EV works from miles per kWh and the grid carbon intensity:
mpl = mpg / 4.546 (UK gallon = 4.546 L)
cost_per_mile = price_per_litre / mpl
co2_per_mile = factor_per_litre / mpl
EV: cost_per_mile = price_per_kWh / miles_per_kWh
co2_per_mile = grid_factor / miles_per_kWh
DEFRA tailpipe factors are about 2.31 kg CO2 per litre of petrol, 2.51 for diesel, and 1.51 for LPG. The tax line splits the pump price into fuel duty plus 20 percent VAT charged on top of the duty-inclusive price.
Tips and example
A 45 mpg petrol car at 1.45 per litre costs about 14.6p per mile and emits roughly 234 g CO2 per mile, while an EV doing 3.5 miles per kWh charged at 0.10 per kWh costs under 3p per mile. Over a 10,000-mile year the EV saves well over a thousand in fuel. Remember the EV’s carbon depends on your grid mix, so set the intensity to match your real tariff before comparing emissions.