Choosing between gas and electric deserves careful thought. This page explains who built the calculator, where every number comes from, how the math works, and what it leaves out.
Gas or Electric was built by a retiree with 46 years in the automotive parts business. The goal is simple: give people the most accurate information available to make an informed decision about their next vehicle, new or used, gas or electric.
I own one of each: a 2024 Toyota RAV4 Hybrid, bought new, and a 2023 Chevy Bolt, bought used as a low-cost experiment in EV ownership.
The RAV4 is comfortable on long trips, swallows a big warehouse-store run, and goes about 543 miles on a tank. The Bolt is small and basic inside, but comfortable enough, peppy when you need it, and easy to park. From an energy standpoint it is by far the cheaper of the two to run, and with rooftop solar at home, the EV is an easy choice for me.
But my situation isn't everyone's. If you can't charge at home, or you drive fewer than about 6,000 miles a year, your answer could be quite different. This calculator is built to show that honestly.
Some things matter that no calculator can price: comfort, cargo room, range for road trips, and how a car fits your daily life. Weigh those alongside the numbers.
It compares the cost to drive each car over 3, 5, 10 or 15 years:
It also shows each car's CO₂ from driving per year, for information only; it isn't part of the cost.
You can also add a home charger installation cost, which is counted in the EV total, and any rebates, which come off the purchase price.
Depreciation, without guessing. The calculator doesn't predict what a car will be worth later; EV values in particular have swung too much to predict honestly. Instead, it shows a break-even: how much more value the electric car could lose than the gas car and still come out even. If you enter both purchase prices, it also shows how long the running savings take to pay back any price difference. Enter each car's expected value at the end too, and you get the full cost of owning. If you pick an older model year, the calculator treats it as a used car and asks for a used price.
It does not include your regular registration (similar for both cars), loan interest, or possible battery replacement. (Federal EV tax credits ended September 30, 2025; some states and utilities still offer incentives.)
LIVE means looked up automatically from a government source. ESTIMATE means a fixed value we set and review by hand. Every number can be replaced with your own: tap the ✎.
| Number | Source | Type |
|---|---|---|
| Vehicle MPG and EV efficiency | U.S. EPA fuel economy ratings (fueleconomy.gov). The full EPA list is downloaded monthly. Gas and hybrid models from 1995, EVs from 2011. | LIVEUpdated monthly |
| VIN lookup | National Highway Traffic Safety Administration VIN decoder (NHTSA vPIC), matched to the EPA listing by engine size, cylinders, drive type and hybrid or EV status. | LIVEEach lookup |
| Gas price | U.S. Energy Information Administration (EIA) weekly average retail price for regular gasoline (all stations surveyed, not the lowest price). It uses the most local figure EIA publishes: your metro area (SF Bay Area, Los Angeles, Seattle, Denver, Houston, Chicago, Miami, Boston, Cleveland, New York City), otherwise your state (California, Colorado, Florida, Massachusetts, Minnesota, New York, Ohio, Texas, Washington), otherwise an estimate for your state: the weekly average for your region, adjusted by how your state's yearly average gas price compares with the rest of its region (from EIA's State Energy Data System, latest year available). The label under the price shows which one and which week. Your own pump price is always more accurate, so tap the price to enter it. | LIVEWeekly |
| Home electricity rate | EIA average residential price for your state, all utilities combined, from the latest month EIA has published (usually two to three months back). Pick your utility's rate plan in section 3 for a closer number. | LIVEMonthly |
| Utility rate plans | After you enter a ZIP code, your utility's current residential plans come from the U.S. Utility Rate Database (OpenEI), maintained with the National Laboratory of the Rockies. For time-of-use plans, the calculator reads the plan's own hour-by-hour schedule and shows its time windows (for example, PG&E EV2-A: midnight–3 PM, 3–4 PM and 9 PM–midnight, and 4–9 PM peak), each priced as a year-round average of summer and winter. You pick the window you'd mostly charge in; the cheapest is chosen to start. Weekday hours are used. It uses the first-tier price and leaves out fixed monthly charges, and it can lag recent rate changes. If your city buys power through a community energy program (such as Silicon Valley Clean Energy), your total price may differ slightly from the utility's standard rates. | LIVEEach lookup, cached 6 hours |
| Maintenance | What owners actually spend on maintenance and repairs, by type of car and by its miles, from Consumer Reports' 2020 owner survey, raised to today's dollars by the government's price index for vehicle maintenance and repair (+58% since 2019). Per mile today: electric 1.9¢ under 50,000 miles, 4.4¢ from 50,000 to 100,000, 6.8¢ above; plug-in hybrid 3.3¢, 4.9¢, 5.2¢; gas 4.4¢, 9.5¢, 12.5¢. Regular hybrids use the gas figures less 7%, the difference Argonne National Laboratory found for scheduled maintenance. Enter the miles on each car and the calculator averages the rates over the miles it will cover during your comparison; leave it blank for a new car. | ESTIMATEReviewed Oct 2026 |
| Extra state fees | The extra yearly registration fee your state charges electric cars, plug-in hybrids and hybrids, from the National Conference of State Legislatures' list (NCSL, updated July 2026). Where the fee depends on weight, the passenger-car amount is used; two-year fees are shown per year. Your regular registration isn't included, since it's similar for both cars. | ESTIMATEReviewed Oct 2026 |
| Purchase price & resale value | Only what you enter. For the value at the end, a car like yours that's that many years older on Kelley Blue Book or Edmunds is a good guide; try a low and a high number to see if the answer changes. | YOURS |
| Insurance | What you enter for each car. If you enter only the gas car's premium, the EV is estimated at that amount plus 18%: newer EVs (2024 and later) cost about 18%, or roughly $500 a year, more to insure than newer gas cars, according to Insurify's June 2026 analysis of over 235 million quotes. Type a real quote to replace the estimate. | YOURS |
| CO₂ from driving | Gas: 8.887 kg (19.6 lb) of CO₂ per gallon burned, from the EPA. Electric: each kWh times your state's power-plant CO₂ rate from the EPA's eGRID (2023 data, released 2025), plus 5% for power lost in the lines. Home charging covered by your solar share counts as zero. | ESTIMATEReviewed Nov 2026 |
| Public charging rate | $0.48 per kWh, a typical price at public fast chargers. Actual prices vary widely by network, location and membership. | ESTIMATEReviewed Oct 2026 |
| Miles per year | Filled in with 13,500 when you open the calculator (right after Start over, the box is empty with "e.g. 13,500" as a hint), close to the Federal Highway Administration's average of 13,482 miles per licensed driver (2022). Type your own. | ESTIMATEReviewed Oct 2026 |
| Starting values | Gas and electricity prices stay blank until you enter a ZIP code; there are no built-in prices. Before you choose cars, typical MPG and efficiency values are shown (labeled "Typical"). Results appear only once both cars are chosen and prices are filled in. If a price lookup fails, you'll be asked to type the price yourself. | ESTIMATE |
EPA's EV efficiency ratings are measured from the wall outlet, so they already include the energy lost while charging.
Here's an example: 13,500 miles a year, a 30 MPG car with gas at $4.00, and an EV that goes 3.5 miles per kWh, charged 90% at home ($0.30/kWh) and 10% in public ($0.48/kWh).
Gas: 13,500 ÷ 30 MPG = 450 gallons × $4.00 = $1,800 a year
Electric: 13,500 ÷ 3.5 mi/kWh = 3,857 kWh
Home: 90% = 3,471 kWh × $0.30 = $1,041
Public: 10% = 386 kWh × $0.48 = $185
Total = $1,227 a year
Difference: about $573 a year, or about $2,867 over 5 years.
With rooftop solar, the share of home charging covered by solar is counted at no cost; the rest is billed at the utility rate. The share starts at 50%, because many solar systems were sized before the household had an EV; slide it to match yours.
In the interest of full disclosure:
Spotted a wrong number, a VIN that matched the wrong car, or something unclear? Please write to [email protected]. If you're reporting a VIN problem, including the VIN helps.