molecalculator

Moles & Molar Mass

EV to Gas Calculator: Compare Driving Costs

Calculator No. 01-3343 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

An EV-to-gas calculator compares the cost of driving an electric vehicle with the fuel cost of a gasoline vehicle over the same distance. Enter distance, the EV’s energy use and electricity price, plus the gas car’s fuel economy and gasoline price; the calculator estimates each cost and the difference.

Formula

For a distance D, EV energy use E, electricity price P, gas-car fuel economy F, and gasoline price G:

  • EV charging cost = D × E ÷ 100 × P.
  • Gasoline cost = D × F ÷ 100 × G.
  • EV savings = gasoline cost − EV charging cost.

D is distance in kilometres; E is kilowatt-hours per 100 km; P is currency per kWh; F is litres per 100 km; and G is currency per litre. The factor 100 converts each per-100-km rate to the distance entered. A positive savings result means the EV’s estimated energy cost is lower; a negative result means the gasoline car’s fuel cost is lower. The currency label is whatever currency your price inputs use.

Worked Example

Using the defaults: D = 100 km, E = 18 kWh/100 km, P = 0.15 currency/kWh, F = 8 L/100 km, and G = 1.60 currency/L.

  • EV energy: 100 × 18 ÷ 100 = 18 kWh.
  • EV charging cost: 18 × 0.15 = 2.70 currency.
  • Gasoline used: 100 × 8 ÷ 100 = 8 L.
  • Gasoline cost: 8 × 1.60 = 12.80 currency.
  • EV savings: 12.80 − 2.70 = 10.10 currency.

The calculator displays costs to two decimal places. This example estimates 10.10 currency lower energy cost for the EV over 100 km, before other ownership expenses.

Assumptions

  • The vehicle energy-use figures represent the distance and driving conditions being compared.
  • Electricity and gasoline prices are per unit of energy carrier and use the same currency.
  • The EV figure is the electricity drawn for charging as represented by the entered efficiency value; the calculator does not add charging losses separately.
  • The comparison covers energy or fuel only, not purchase price, depreciation, maintenance, insurance, taxes, or charging equipment.

How to Choose Inputs

Use a realistic distance for the question you want answered: a typical commute, a month of driving, or a planned trip. Keep distance units consistent with both consumption figures. This calculator uses kilometres and rates per 100 km. If your records use miles, convert the distance to kilometres (1 mile = 1.609344 km) and convert miles-per-gallon economy to litres per 100 km before entering it. Do not enter a miles-per-gallon number directly into the fuel-economy field.

For the EV, use the vehicle’s energy consumption in kWh/100 km, ideally from your own driving records or a figure that matches your climate, route, and speed. Published figures may be measured under a test cycle and can differ from real-world use. Some vehicle displays report energy drawn from the battery, while household or public charging records may include electricity lost during charging. Avoid adding losses twice: choose a consumption figure that corresponds to the electricity cost you intend to estimate.

Use the price you actually pay. A home electricity bill may include a variable per-kWh charge and other fees; a flat energy price is only an estimate if the bill also includes time-of-use rates, fixed charges, or demand charges. For public charging, use the applicable energy price and consider any session or connection fee separately. For gasoline, use a recent local price per litre. Prices change, so label estimates with the date and location if you are comparing them later.

What the Result Includes—and Leaves Out

The first output is the EV’s charging cost for the entered distance, followed by the gasoline cost and their difference. It is a direct operating-cost comparison, not a complete cost-of-ownership calculation. It can help answer questions such as whether a commute is cheaper to power electrically, or how changing energy prices affects the comparison.

To estimate a year, enter annual kilometres and representative prices and consumption. For example, multiplying a 100-km result by 150 gives an approximate 15,000-km annual energy comparison, provided the prices and driving conditions remain similar. It is often more useful to calculate separate cases for home charging and public charging, or for city and highway driving, rather than treating one average as exact.

The calculator does not account for purchase price, financing, resale value, registration, maintenance, repairs, battery replacement, insurance, taxes, or incentives. It also does not assign a monetary value to emissions. Those factors require location-specific costs and assumptions. A lower energy cost alone does not prove that one vehicle will be cheaper overall.

Common Problems and Limits

  • Mixing units: L/100 km is not the same as km/L or mpg. Convert before entering values.
  • Using the wrong electricity rate: the marginal cost of charging may differ from the average amount on a bill, especially with time-based pricing.
  • Ignoring charging losses: if the EV consumption figure describes battery energy rather than electricity purchased, the actual billed amount can be higher.
  • Comparing unlike driving: a small efficient gas car and a large EV, or different routes and seasons, may not represent a fair vehicle-to-vehicle comparison.
  • Reading savings as guaranteed: the result depends on the inputs; it is an estimate, not a promise of future costs.

Rounding also matters over long distances. The calculator rounds displayed costs to cents, but its calculations use the entered values. Keep unrounded consumption and price data when available, and treat tiny differences as less meaningful than changes in weather, driving style, or actual tariffs.

Frequently Asked Questions

How do I compare an electric car’s cost per kilometre with gas?
Calculate EV cost per kilometre as kWh/100 km × electricity price per kWh ÷ 100. Calculate gas cost per kilometre as L/100 km × gasoline price per litre ÷ 100. Compare the results using the same currency.

Does an EV cost less to fuel than a gas car?
It depends on the vehicles’ energy consumption and local electricity and gasoline prices. Enter your own rates to estimate the difference; the result covers energy costs, not total vehicle ownership.

Should I include charging losses?
Include them if your consumption figure measures energy stored in the battery but your price applies to electricity drawn from the grid. If the figure already reflects charging energy purchased, do not add a second loss adjustment.

Can I use miles per gallon in this calculator?
No. Convert the gas vehicle’s economy to litres per 100 km and the distance to kilometres first. The MPG-to-L/100-km conversion depends on whether the original gallon is a US gallon or an imperial gallon.

Does the estimate include maintenance or vehicle purchase cost?
No. It compares charging electricity with gasoline only. A broader ownership comparison also needs vehicle price, financing, maintenance, insurance, taxes, incentives, and resale assumptions.

Related

Formula used
in d | Distance driven | km | 100 | 0
in e | EV energy use | kWh/100 km | 18 | 0.001
in p | Electricity price | currency/kWh | 0.15 | 0
in f | Gas-car fuel economy | L/100 km | 8 | 0.001
in g | Gasoline price | currency/L | 1.60 | 0
out ec | EV charging cost | currency | d * e / 100 * p | 2
out gc | Gasoline cost | currency | d * f / 100 * g | 2
out s | Savings with EV | currency | gc - ec | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →