EV Charging vs Gas Cost Calculator

Compare electric vehicle charging costs with gasoline using charging losses, home/public charging rates, annual mileage and upfront charger or vehicle costs.

Your comparison inputs
Change the example values to match your situation, then calculate.

Battery-side consumption. If your efficiency already includes wall losses, enter 0% losses below.

Grid energy = battery energy ÷ (1 − loss fraction).

The remaining share uses the public charging price.

Use an effective per-kWh price including session fees if relevant.

Enter 0 if a suitable charger is already installed.

Additional upfront cost compared with the gasoline vehicle.

Your results
Estimates based on your inputs and the assumptions below.

Enter your details and select Calculate, or load the worked example to see a complete result.

How this calculator works

Battery kWh per mile are increased for charging losses. The price per kWh is weighted by your home/public energy split.

Multiply charging cost per mile by annual mileage. Gasoline cost per mile is dollars per gallon ÷ MPG. Subtract the EV energy cost from gasoline cost to calculate annual energy savings.

Simple payback divides additional upfront costs by positive annual energy savings. Five-year net savings subtract those upfront costs from five years of energy savings. If electricity costs more, no energy-savings payback is shown.

Worked example

At 12,000 miles/year, 30 battery kWh/100 miles and 10% charging losses, grid use is 4,000 kWh/year. An 80% home share at $0.18 and 20% public share at $0.45 costs $936/year. A 30-MPG car using $3.50 gasoline costs $1,400/year, so energy savings are $464/year.

Assumptions and sources

Energy costs only. Maintenance, insurance, financing, depreciation, road fees, incentives and battery replacement are excluded. Prices and efficiency are user inputs, not live quotes. Charging-loss estimates should not be added twice to wall-rated efficiency. Payback ignores discounting and future energy-price changes.

Frequently Asked Questions