EV vs Gas Car Cost Calculator
Compare five-year EV and gas spending using purchase prices, driving needs, energy prices and maintenance budgets.
How to calculate ev vs gas car cost
- Purchase cost sets the starting gap before either vehicle moves. A more efficient vehicle can have lower operating costs without recovering a higher purchase price within five years. Keep these two facts separate when evaluating a dealer offer or comparing a used gas car with a new electric model.
- To use the EV vs Gas Car Cost Calculator, review miles / year, ev purchase, gas purchase, kwh / 100 mi, electricity / kwh, gas mpg, gas / gallon, ev upkeep / yr, gas upkeep / yr. The initial values are illustrative so that a result appears immediately, but they are not a quote or a recommendation. Replace them with amounts from your own records and keep the time periods consistent. Changing one assumption at a time makes it easier to see which part of this particular decision is driving the result.
- Read the ev five-year total result first, then check the supporting breakdown rather than relying on one headline number. Five years at constant mileage and prices. Excludes resale, depreciation credits, insurance, registration, financing and chargers. Add charging losses to kWh per 100 miles. These are user-chosen estimates, not market quotes. Empty or invalid entries show N/A instead of silently substituting zero. Arithmetic is performed locally in your browser, and these inputs are not sent to a server. Displayed amounts are rounded for readability only, so a hand calculation with unrounded values may differ slightly from adding displayed lines.
Formula: ev total = purchase + 5 * (annual miles * kWh per 100 miles / 100 * electricity price + annual maintenance) gas total = purchase + 5 * (annual miles / MPG * gasoline price + annual maintenance) ev savings = gas total - ev total
Formula
ev total
Where:
- miles
- = Miles / year
- evPrice
- = EV purchase
- gasPrice
- = Gas purchase
- kwhPer100
- = kWh / 100 mi
- electricity
- = Electricity / kWh
- mpg
- = Gas MPG
- gasPerGallon
- = Gas / gallon
- evMaintenance
- = EV upkeep / yr
- gasMaintenance
- = Gas upkeep / yr
Worked example
An EV costs $40,000 and a gas car costs $30,000. At 12,000 miles a year, 30 kWh per 100 miles and $0.15 per kWh, EV electricity costs $540 a year, or $2,700 across five years. With $400 yearly maintenance, the EV total is $44,700.
The gas car gets 30 MPG with gasoline at $3.50 per gallon. Its annual fuel bill is $1,400 and five-year fuel is $7,000. Adding $900 maintenance each year gives a $41,500 total. EV savings are negative $3,200, meaning the gas option costs less in this limited comparison.
Use realistic driving and charging assumptions
Home charging and public fast charging can have very different costs. A blended electricity price should reflect how much energy you expect to buy at each location. If the efficiency figure describes energy delivered to the wheels or battery, add an allowance for charging losses before entering consumption.
Five years is a comparison window, not a claim about how long either vehicle will last. Resale can materially change an ownership decision, but this model deliberately excludes it. Keep a separate list of omitted costs such as insurance differences, installation work and registration fees rather than treating the displayed result as a complete ownership appraisal.
Frequently asked questions
The purchase premium is paid up front while operating savings build gradually. Within this fixed five-year window, cheaper electricity may not offset a larger starting price.
Related calculators
Five years at constant mileage and prices. Excludes resale, depreciation credits, insurance, registration, financing and chargers. Add charging losses to kWh per 100 miles. These are user-chosen estimates, not market quotes.