How to use the EV vs petrol calculator
Pick your units first. Metric uses kilometres, kWh per 100 km and litres per 100 km. US uses miles, miles per kWh and US miles per gallon. UK uses miles, miles per kWh and imperial miles per gallon.
Then enter how far you drive in a year, the electric car's efficiency, your electricity price, the petrol or gas car's fuel economy and the fuel price. The calculator shows the cost per km or mile for each car, the yearly fuel cost for each and your yearly saving. Prices appear in your local currency, and the share link saves your inputs.
Where to find the numbers
Your electricity price per kWh is on your energy bill. If you are on a tariff with a cheaper overnight rate and will charge at night, use that rate. Fuel prices are on the pump or a local price tracker.
For efficiency, use real-world figures rather than the best case. Official test ratings are a good start, but EVs use more energy in cold weather, at motorway speeds and with the heating on. Many owners find winter efficiency is well below summer, so test both.
Worked examples in three unit systems
The prices below are round assumptions for illustration. Replace them with your own.
- Metric: 15,000 km a year. An EV using 17 kWh per 100 km at €0.30 per kWh costs €0.051 per km, or €765 a year. A petrol car using 6.5 L per 100 km at €1.75 per litre costs about €0.114 per km, or €1,706 a year. Saving: about €941.
- US: 12,000 miles a year. An EV doing 3.5 miles per kWh at $0.17 per kWh costs about 4.9 cents a mile, or $583 a year. A 30 mpg car at $3.10 a gallon costs about 10.3 cents a mile, or $1,240. Saving: about $657.
- UK: 8,000 miles a year. An EV doing 3.5 miles per kWh at 25p per kWh costs about 7.1p a mile, or £571. A 45 mpg car with petrol at £1.35 a litre costs about 13.6p a mile, or £1,091. Saving: about £520.
Home charging versus public charging
Where you charge decides most of the result. Home charging is usually the cheapest, especially on an overnight tariff. Public rapid chargers can cost two or three times as much per kWh.
Run the US example again at $0.48 per kWh, a price you may see at a fast charger. The EV now costs about 13.7 cents a mile, more than the 10.3 cents of the gas car. In the UK at 79p per kWh on a rapid charger, the EV costs about 22.6p a mile against 13.6p for petrol. If you cannot charge at home, enter a blended price that matches your real mix of home and public charging.
Also allow for charging losses. Some energy is lost between the wall and the battery, often around 10%, so the energy you pay for is a little more than the energy the car reports using.
US gallons, UK gallons and litres
A US gallon is 3.785 litres. An imperial gallon, used for UK mpg figures, is 4.546 litres. That makes a UK mpg figure look about 20% better than the same car's US figure: 40 UK mpg is only about 33.3 US mpg.
To turn mpg into litres per 100 km, divide 235.2 by a US mpg figure, or 282.5 by a UK mpg figure. So 40 UK mpg is about 7.1 L per 100 km. The calculator does this for you once you choose the unit system, so never mix a UK mpg rating with US prices per gallon.
What fuel costs leave out
This calculator compares energy costs only. A full comparison also includes the purchase price, financing, insurance, servicing, tyres, road tax or registration fees and resale value. EVs usually need less routine servicing, while their insurance and tyres can cost more.
Use the yearly saving to judge payback. If an EV costs $5,000 more up front and saves $657 a year on fuel, the fuel saving alone takes about seven and a half years to cover the gap.





















