EV vs. Gas Calculator

Compare electricity and gasoline expense for the same annual miles. Enter outlet-based EV consumption, gasoline MPG and your own prices. Positive annual savings means lower EV energy cost; negative savings means higher EV energy cost.

Inputs

Result

EV energy cost per mile
0.0480 $/mi
Gasoline cost per mile
0.1167 $/mi
Annual EV electricity cost
$576.00
Annual gasoline cost
$1,400.00
Annual energy savings with EV
$824.00

How it is calculated

  1. Outlet kWh per 100 miles ÷ 100 × electricity price per kWh.
  2. Gasoline price per US gallon ÷ miles per US gallon.
  3. Annual miles × unrounded EV electricity cost per mile.
  4. Annual miles × unrounded gasoline cost per mile.
  5. Annual gasoline cost minus annual EV electricity cost; negative means the EV costs more for energy.

Resources for your next step

Helpful downloads

View all auto & transportation downloads
Store coming soon

We are preparing practical spreadsheets, planners, and guides. Explore the store page for what is next.

Compare the same distance with matching units

Enter the annual miles you want both vehicles to cover. The electricity side needs kilowatt-hours per 100 miles measured at the outlet or source. The gasoline side needs miles per US gallon. Electricity price is dollars per kWh and gasoline price is dollars per US gallon. Keeping those units consistent is essential because the two fuels are sold and described differently.

Do not enter miles per kWh into the kWh-per-100-miles field, or an EV's MPGe rating into the gasoline MPG field. These are different quantities. Find the correct consumption entry for the exact vehicle and model year, or use a documented consumption assumption that matches your scenario. The calculator does not retrieve vehicle specifications or select a comparable model for you.

Keep charging losses inside the right boundary

FuelEconomy.gov explicitly states that its plug-in vehicle kWh-per-100-mile estimates include charging losses. EPA's testing explanation places the relevant electricity accounting at the wall outlet, including charging equipment and onboard conversion losses. An outlet-based consumption figure therefore represents electricity purchased for the distance, rather than just energy leaving the battery.

This form applies no additional charging-efficiency factor. Adding another loss adjustment to an already outlet-based value would count the same allowance twice. If a dashboard figure describes battery energy only, obtain a consistent source-energy estimate before using it here. Keep the electricity price and the consumption measure on the same energy basis when interpreting the result.

Read cost per mile before annual savings

EV energy cost per mile is the entered kWh per 100 miles divided by 100, multiplied by electricity price. Gasoline cost per mile is price per gallon divided by MPG. Each annual cost multiplies its unrounded per-mile figure by the same annual mileage. This places both options on a common driving-distance basis.

Annual energy savings is gasoline cost minus electricity cost. A positive number means the EV uses fewer dollars of energy in the entered scenario. A negative number means it uses more dollars of energy. Neither result establishes which vehicle is cheaper to own. The output retains a negative difference rather than concealing a scenario in which electricity is more expensive.

Worked example using editable assumptions

The example covers 12,000 miles per year. The EV uses 30 kWh per 100 miles from the outlet at $0.16 per kWh, giving $0.0480 per mile and $576.00 per year. The gasoline vehicle gets 30 US mpg with gasoline at $3.50 per gallon, giving about $0.1167 per mile and $1,400.00 per year.

The annual energy difference is $824.00 in favor of the EV under those assumptions. Annual costs use the underlying values, not the rounded four-decimal per-mile displays. The example prices and mileage are demonstration inputs, not statements of current averages, live tariffs or an individual's likely spending. Replace them with values appropriate to the vehicles and driving being compared.

Choose prices for the scenario you actually want

Use the electricity price that applies to the charging energy being considered. If you charge at different prices, you can calculate separate scenarios or prepare an energy-weighted price outside this form. A simple average of two rates is appropriate only when equal amounts of energy are bought at each rate. No home-versus-public charging mix is inferred automatically.

Keep gasoline price and electricity price on a comparable planning basis. A price from one date and a forecast for another answer a different question from two prices paid during the same period. The calculator holds both inputs fixed for the annual estimate. It does not predict changing tariffs, inflation, seasonal consumption or the effects of weather and driving conditions.

Add ownership costs separately

The comparison covers electricity and gasoline only. Purchase price, financing, depreciation, insurance, maintenance, registration, charger installation and tax incentives are outside the outputs. Separate charging-session fees and subscriptions are also excluded unless you have deliberately represented an applicable variable amount in the entered energy price.

Use the energy difference as one component of a broader vehicle decision. A lower annual energy bill does not by itself show that a purchase premium has been recovered. This form does not report a payback period, value a trade-in or recommend buying either vehicle. For a fuller budget, keep the energy assumptions with separate ownership-cost estimates so the boundaries remain visible.

Limits, zero values and precision

Annual miles accept zero through 1,000,000. EV consumption and gasoline MPG must be greater than zero and no more than 1,000. Both prices accept zero through $100 in their labeled units. These broad bounds support arithmetic scenarios and do not describe typical vehicles or rates. Zero mileage makes annual costs and savings zero while leaving each per-mile calculation defined.

Per-mile amounts display four decimal places, and annual amounts display dollars and cents. Intermediate values remain unrounded. Zero prices are allowed for a hypothetical free-energy scenario, but missing, negative or out-of-range input clears every output. Reset to example restores all five defaults, and valid edits or Calculate update the current comparison without sending your entries to a server.

Frequently asked questions

Does this compare total vehicle ownership cost?

No. It compares electricity and gasoline expense for the same distance. Purchase price, depreciation, financing, insurance, maintenance, taxes, charging equipment and separate fixed fees require their own estimates before making a complete ownership comparison.

Should I add charging losses to the EPA consumption figure?

No. FuelEconomy.gov states that its plug-in kWh-per-100-mile estimates already include charging losses. This calculator expects that outlet-based figure and applies no second efficiency factor. A battery-only dashboard reading is a different measurement.

What does negative annual energy savings mean?

The EV's calculated annual electricity expense is greater than the gasoline vehicle's annual fuel expense for the entered assumptions. It is a valid comparison result, not an error. Check the prices, consumption figures and units before interpreting it.

Can I enter miles per kWh instead?

This field requires kWh per 100 miles. Convert a miles-per-kWh figure before entry or obtain the matching consumption figure from the vehicle's documentation. Do not paste the same number into a field with different units.

Why do annual costs differ from rounded cost per mile times mileage?

The displayed per-mile figures round to four decimals. Annual costs use the unrounded underlying calculation, which avoids accumulating display-rounding differences across many miles. The annual currency results then round to cents.

Are the example gasoline and electricity prices current averages?

No. They are editable worked-example values, and the page retrieves no current prices. Use your own relevant per-gallon and per-kWh assumptions, and recalculate when those inputs or the driving scenario change.

Sources

Energy-cost scenario only, using the rates, distance and consumption you enter. Not a tariff quote, purchase recommendation or total ownership-cost comparison. Other vehicle and charging costs are excluded.

All auto & transportation tools