Compare EV charging cost with gasoline cost per mile, per month, and per year using your electricity rate, EV efficiency, MPG, and gas price.
Formula reviewed September 1, 2026 · Runs locally in your browser
Quick answer
EV vs Gas Cost Calculator quick answer
Formula: EV wall energy = miles × kWh/100mi ÷ 100 ÷ charging efficiency. Gas gallons = miles ÷ MPG.
Example: At 1,000 miles per month, 30 kWh/100mi, $0.18/kWh and 90% charging efficiency, the EV uses about 333 kWh from the wall. A 30 MPG gas car uses about 33.3 gallons.
At 1,000 miles per month, 30 kWh/100mi, $0.18/kWh and 90% charging efficiency, the EV uses about 333 kWh from the wall. A 30 MPG gas car uses about 33.3 gallons.
What to do with the result
Use your actual electricity tariff, realistic EV consumption, and real-world MPG. This compares energy/fuel cost only, not insurance, depreciation, maintenance, financing, or charging installation.