EV vs Gas Calculator
Fuel cost = miles ÷ mpg × price per gallon. Charging cost = miles ÷ miles per kWh × electricity price, with public charging at 2.5 times the home rate. Add any maintenance saving to the difference for the yearly saving, then divide the EV's extra price after incentives by it to get the payback time.
Last updated by Ultra Calculator
EV vs Gas (Petrol)
How to calculate it
S = M ÷ mpg × P − M ÷ e × R × (h + 2.5 × (1 − h)) + K
- S
- yearly saving with the EV
- M
- miles driven a year
- mpg
- petrol car miles per gallon (US or UK gallons)
- P
- petrol price per gallon of the same kind (a UK price per litre × 4.546)
- e
- EV efficiency in miles per kWh
- R
- home electricity price per kWh
- h
- share of charging done at home, as a fraction
- K
- yearly maintenance saving with the EV
Price difference = EV price − incentives − petrol car price. Payback = price difference ÷ S when both are positive; it is immediate when the EV costs no more to buy, and never when the EV costs more to buy and does not save money each year. 5-year saving = 5 × S − price difference. CO₂ saved = litres of petrol × 2.35 kg − kWh charged × your grid factor, in metric tonnes.
Worked example
Commuter, 15,000 miles a year
A 30 mpg petrol car at 3.50 a US gallon costs 1,750 a year in fuel, while a 4 miles per kWh EV costs 597 to charge. With 800 less maintenance the EV saves 1,953 a year. With no incentive it costs 4,000 more to buy, so it pays back in 2.0 years and is 5,764 ahead after 5 years.
| Fuel Units | US: mpg (US Gallons), Price per Gallon |
|---|---|
| Miles per Year | 15,000 |
| Petrol Price per US Gallon | $3.50 |
| Home Electricity Price per kWh | $0.13 |
| Petrol Car MPG | 30 |
| EV Efficiency (Miles per kWh) | 4 |
| Petrol Car Price | $28,000.00 |
| Electric Car Price | $32,000.00 |
| EV Grants or Tax Credits | $0.00 |
| Share of Charging at Home (%) | 85.00% |
| Yearly Maintenance Saving with the EV | $800.00 |
| Grid CO₂ (kg per kWh) | 0.35 |
| Yearly Petrol Cost | $1,750.00 |
|---|---|
| Yearly Charging Cost | $597.19 |
| Yearly Fuel Saving | $1,152.81 |
| Yearly Saving Including Maintenance | $1,952.81 |
| EV Price Difference After Incentives | $4,000.00 more |
| Payback Period | 2.0 years |
| Net Saving After 5 Years | $5,764.06 |
| CO₂ Saved per Year | 3.1 tonnes |
How to use this calculator
- Choose the Fuel Units: US mpg with a price per US gallon, or UK mpg with a price per litre.
- Enter your Miles per Year, the petrol price, the Petrol Car MPG and your Home Electricity Price per kWh.
- Enter the EV Efficiency in miles per kWh and the Share of Charging at Home.
- Enter the Petrol Car Price, the Electric Car Price and any confirmed EV Grants or Tax Credits.
- Set the Yearly Maintenance Saving and the Grid CO₂ for your country, then compare the costs, payback, 5-year figure and CO₂.
Frequently asked questions
Is an electric car cheaper to run than a petrol car?
It depends on fuel and electricity prices and on where you charge. Per mile, a petrol car costs the fuel price ÷ mpg and an EV the electricity price ÷ miles per kWh. At 3.50 a US gallon and 30 mpg, petrol is about 0.117 a mile. At 0.13 per kWh and 4 miles per kWh, home charging is about 0.033.
How do I work out EV charging costs?
Divide your miles by the car's miles per kWh to get kWh, then multiply by your electricity price. The calculator prices the home share at your rate and the rest at 2.5 times it, standing in for public chargers. 15,000 miles at 4 miles per kWh is 3,750 kWh a year.
How long does an EV take to pay for itself?
Payback is the EV's extra price after incentives divided by the yearly saving. The commuter example costs 4,000 more and saves 1,953 a year, so it pays back in 2.0 years. If the EV costs no more to buy, payback is immediate; if it costs more and saves nothing each year, it never pays back.
Are there EV tax credits or grants?
The IRS says the US federal clean vehicle credit is not available for vehicles acquired after 30 September 2025. Grants and local schemes change often, so the calculator starts at 0; enter an amount only once you have confirmed it applies to the car you are buying.
Can I use it in the UK with petrol prices per litre?
Yes. Choose UK fuel units, enter the price per litre and the car's UK mpg, which uses the 4.546 litre imperial gallon. Miles stay as miles. For the CO₂ line, set the grid factor to the UK figure of 0.131 kg per kWh.
How is the CO₂ saving worked out?
Petrol is counted at 2.35 kg of CO₂ per litre, the EPA's 8,887 g per US gallon. Charging is counted at your grid factor: 0.348 kg per kWh for the US average (EPA eGRID 2023) or 0.131 for the UK (DESNZ 2026). The result is in metric tonnes a year and leaves out making the car and battery.
Learn more
Cost per mile
Running costs come down to cost per mile: fuel price ÷ mpg for petrol and electricity price ÷ miles per kWh for an EV. Multiply by your yearly miles and the gap between the two is your fuel saving.
Price difference and payback
EVs often cost more to buy. The calculator takes incentives off the EV price, compares it with the petrol car, and divides any extra cost by the yearly saving. Payback leaves out interest and insurance, and it ignores what each car will be worth when you sell it.
US and UK gallons
A US gallon is 3.785 litres and a UK (imperial) gallon is 4.546 litres, so the same car shows about 20% more mpg in UK figures. The calculator turns your mpg into litres with the gallon you choose, which keeps both the fuel cost and the CO₂ right.
- Deciding between an electric and a petrol version of the same model
- Checking whether your mileage is high enough for an EV to pay back
- Seeing how much a cheaper overnight tariff changes charging costs
- Testing how rising petrol prices affect the comparison
- Estimating the CO₂ saving of a switch for a work or school report
Counting an incentive that doesn't apply
Many EV grants and credits have ended or come with price and income limits. Only enter one you have confirmed for the car you are buying, or the EV looks cheaper than it is.
Mixing US and UK gallons
Choose the Fuel Units that match your mpg figure. UK mpg read as US mpg understates the fuel used by about a sixth, and US mpg read as UK mpg overstates it by about a fifth.
Leaving the US grid factor in place outside the US
Grids differ a lot: the UK's 0.131 kg per kWh is well under half the US average of 0.348. Use your own country's figure for a fair CO₂ comparison.
Comparing cars of different sizes
A small EV against a large petrol SUV flatters the EV. Compare cars of similar size and spec for a fair answer.
- Use your real mileage from MOT or service records rather than a guess.
- Check your tariff for a cheaper overnight rate, since most home charging can happen then.
- Run the comparison again with petrol 10% higher and lower to see how sensitive the answer is.
- Add insurance and any home charger installation cost to the EV price for a fuller comparison.
Methodology and sources
Fuel cost is miles ÷ mpg, converted to litres with the US or UK gallon you choose, × the petrol price. Charging cost is miles ÷ miles per kWh × your electricity price, with the public share charged at 2.5 times that price. The yearly saving adds your maintenance figure. The price difference takes incentives off the EV price and subtracts the petrol car price; payback divides it by the yearly saving. The 5-year figure is five years of savings minus the price difference, with no change in prices and no interest or resale value. CO₂ uses 2.35 kg per litre of petrol and your grid factor per kWh, in metric tonnes. Insurance, depreciation and charger installation are not included.