tannerd.net
CALCULATORFREE TOOL
CALCULATOREV-VS-GAS-COST-CALCULATORCALCULATE · DECIDE · ACT
Energy & Driving

EV vs Gas Cost Calculator

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.

Reviewed September 1, 2026 · Methodology

Enter your numbers and calculate.

Worked 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.

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.

Public API & AI agent access

Yes — this calculator is callable programmatically. Use GET /api/v1/ev-vs-gas, the public calculator API, or tannerd.net's MCP, A2A and WebMCP agent interfaces. Results include a human-facing citation URL.

Frequently asked questions

Why include charging efficiency?

Some energy is lost between the wall and battery, so wall energy can be higher than the energy stored in the battery.

Does this prove an EV is cheaper overall?

No. It compares electricity and gasoline cost using your inputs, not total ownership cost.

Formula provenance

API identifier: ev-vs-gas · Formula version: tncalc.ev-vs-gas.1.0.0 · Engine release: 6.6.1. Build provenance · Public validation · Release history.