What this calculator does
The Electric vs Gas Car Cost Calculator compares the per-mile fuel cost of a gasoline vehicle with the per-mile energy cost of an electric vehicle (EV), then projects how much you would save (or lose) over a year of driving. It is jurisdiction-neutral — just enter prices in your own currency and units (US gallons and dollars are used in the labels, but any consistent currency works).
How to use it
Enter four numbers about your gas car and your EV: the price of gasoline per gallon, the car's fuel economy in MPG, your electricity rate in $/kWh, and the EV's efficiency in kWh per mile (typical EVs use 0.25–0.35 kWh/mile). Add your annual mileage and the calculator returns the cost per mile for each option plus the total yearly savings.
The formula explained
Gas cost per mile is the fuel price divided by miles per gallon: $$\text{GasCPM} = \frac{\text{GasPrice}}{\text{MPG}}$$ EV cost per mile is the energy consumed each mile times the electricity rate: $$\text{EVCPM} = \text{kWh/mile} \times \text{ElecPrice}$$ The annual savings is the difference multiplied by miles driven: $$(\text{GasCPM} - \text{EVCPM}) \times \text{Miles}$$ A positive result means the EV is cheaper to fuel.
Worked example
Suppose gas is $3.50/gallon at 30 MPG, electricity is $0.15/kWh, the EV uses 0.30 kWh/mile, and you drive 12,000 miles. Gas CPM = \(3.50 \div 30 = \$0.1167\). EV CPM = \(0.30 \times 0.15 = \$0.045\). Savings per mile = \(\$0.0717\), so annual savings = $$\$0.0717 \times 12{,}000 \approx \$860$$
Fuel prices this week: United States
Average retail prices of regular gasoline and diesel across the United States, week of 2026-11-09, taxes included, as published by the U.S. Energy Information Administration. Use them as the fuel price in the calculator above.
- Regular gasoline (2026-11-09)
- $3.995/gal +30.7% since 2025-11-10
- Diesel (2026-11-09)
- $6.127/gal +59.7% since 2025-11-10
World crude oil prices, October 2026
World market prices of crude oil in U.S. dollars per barrel, monthly averages from the World Bank. These are commodity prices, not pump prices: the price at the pump also includes refining, distribution and taxes, and it differs from country to country.
- Crude oil, average of Brent, Dubai and WTI (2026-10)
- $108.50/bbl +72.2% since 2025-10
- Brent (2026-10)
- $125.00/bbl +93.2% since 2025-10
- WTI (2026-10)
- $97.70/bbl +62.3% since 2025-10
- Dubai (2026-10)
- $102.70/bbl +59.7% since 2025-10
Pump prices in the EU, week of 2026-11-09
Pump prices of petrol (Euro-super 95) and diesel by EU country, week of 2026-11-09, taxes included. Use them as the fuel price in the calculator above.
- EU average (petrol)
- 1.877 €/L
| Country | Petrol 95 (€/L) | Diesel (€/L) |
|---|---|---|
| Denmark | 2.391 | 2.435 |
| Netherlands | 2.196 | 2.361 |
| Finland | 2.144 | 2.485 |
| France | 2.088 | 2.178 |
| Germany | 2.067 | 2.253 |
| Greece | 2.042 | 2.099 |
| Italy | 1.995 | 2.218 |
| Ireland | 1.958 | 2.119 |
| Portugal | 1.922 | 2.135 |
| Latvia | 1.846 | 2.083 |
| Romania | 1.844 | 2.033 |
| Belgium | 1.844 | 2.357 |
| Lithuania | 1.843 | 2.225 |
| Estonia | 1.805 | 2.084 |
| Croatia | 1.749 | 2.025 |
| Spain | 1.730 | 1.898 |
| Cyprus | 1.699 | 2.000 |
| Slovakia | 1.691 | 1.965 |
| Hungary | 1.673 | 1.985 |
| Austria | 1.670 | 2.087 |
| Czechia | 1.653 | 1.899 |
| Slovenia | 1.634 | 1.950 |
| Luxembourg | 1.627 | 1.987 |
| Bulgaria | 1.582 | 1.896 |
| Sweden | 1.437 | 1.954 |
| Poland | 1.384 | 1.753 |
| Malta | 1.340 | 1.210 |
Latest figure: 2026-11-09 Data last updated 2026-11-11 · current
Source: U.S. Energy Information Administration (EIA), Gasoline and Diesel Fuel Update Public domain (U.S. government work); World Bank, Commodity Markets (Pink Sheet), modified CC BY 4.0; © European Union, Weekly Oil Bulletin (European Commission) CC BY 4.0
Prices per litre are converted by CalculatorLib from the bulletin's prices per 1,000 litres. Changes over one year are computed by CalculatorLib.
Source details and methodology
- U.S. Energy Information Administration (EIA), Gasoline and Diesel Fuel Update — Weekly retail gasoline and diesel prices
- World Bank, Commodity Markets (Pink Sheet), modified — Commodity Markets (Pink Sheet), monthly prices
- © European Union, Weekly Oil Bulletin (European Commission)
FAQ
Does this include the car's purchase price? No — it compares fuel/energy operating cost only. Total cost of ownership also depends on price, depreciation, maintenance and incentives.
What if my EV efficiency is shown in miles per kWh? Convert it: \(\text{kWh/mile} = 1 \div (\text{miles per kWh})\). For example \(3.5 \text{ mi/kWh} = 0.286 \text{ kWh/mile}\).
Why is my savings negative? If electricity is expensive or gas is very cheap, the gas car can cost less per mile, producing a negative (unfavorable) savings figure.