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.