Gas vs Electric Car Calculator
Compare an electric car and a gas car over five years, in plain dollars: type your numbers below and the calculator updates as you type. This page includes the four lines most comparisons leave out: your charging mix, the EV registration surcharge, the home charger and installation, and the insurance difference.
Updated November 18, 2026. By Driveonomics.
Pre-filled for you. Fields marked typical start with typical national averages so you see a result right away, change any number you know to make it yours.
Go ahead, play with it. Change any number and watch the total move.
Electric EV
Gas Gas
The lines fuel math leaves out
Enter your numbers above to see the comparison.
Over 5 years, the EV costs $10,627 more than the gas car on these lines.
Your yearly cost lines
The five-year picture
The EV costs $10,000 more to buy, plus $1,500 for a home charger. Over five years you save $4,073 on fuel, and registration plus insurance add $3,200, so the EV is still $10,627 behind at five years.
CO2 per year
The EV figure uses the US average grid, 348 grams of CO2 per kWh (EPA eGRID2023). Gasoline is 8,887 grams per gallon (EIA). A cleaner local grid makes the EV better; a dirtier one narrows the gap.
Where the numbers come from: gas, EIA, week ending November 16, 2026, $3.805 a gallon · home electricity, EIA, June 2026, US residential average 18.34 cents a kWh (worked example) · state home electricity, EIA, Table 5.6.A, August 2026, US residential average 18.16 cents a kWh (table below) · public fast charging, Paren, Q3 2026, US average about 54 cents a kWh · fuel economy, EPA, model-year 2024 fleet average 27.2 mpg · EV registration surcharge, Tax Foundation, 2026 survey, median about $140 a year · extra EV insurance, Insurify, 2026, about $500 a year more for 2024-or-newer models · prices, Kelley Blue Book, July 2026, average new EV $56,126, average new vehicle $49,855 · CO2, EPA eGRID2023, US average 348 grams per kWh · gasoline CO2, EIA, 8,887 grams per gallon. Source links checked November 6, 2026; state table checked November 14, 2026; CO2 factors checked November 18, 2026.
How we calculate, and where every figure comes from: see our methodology and our sources.
Get the free Car Buyer’s Cheat Sheet, 7 things to know before you sign anything. The numbers that matter, in plain English, on one page.
Join the Driveonomics email list. Occasional useful updates, no spam, unsubscribe anytime.
How to use
- Enter the two prices. The EV and a comparable gas car. Typical national averages are in the footnote below the calculator.
- Set your charging mix. The share of charging you do at home, and the public fast-charging rate for the rest.
- Enter the gas car's mileage and your local gas price. The defaults are the national averages.
- Fill in the three extra lines. Registration surcharge, home charger and installation, and the insurance difference.
- Read the verdict. The net per year and the break-even tell you whether the fuel savings cover the extra cost.
Formula
- Blended charging rate: (share charged at home × home rate) + (share charged in public × public rate). With 80% home charging at 18 cents and 20% public at 54 cents, the blended rate is 25.2 cents per kWh.
- Electricity per mile: the blended rate divided by the EV's efficiency in miles per kWh. Gasoline per mile: the gas price divided by the gas car's miles per gallon.
- Fuel savings per year: (miles per year ÷ gas mpg × gas price) minus (miles per year ÷ EV miles per kWh × blended rate). The net per year is the fuel savings minus the EV registration surcharge and the extra EV insurance.
- Break-even years: the extra upfront cost (the EV price premium plus the home charger and installation) divided by the net per year. If the net per year is zero or negative, the EV does not break even on these lines.
- Break-even gas price: the gas price where the EV stops saving money per year after registration and insurance. It is (yearly charging cost + registration surcharge + extra insurance) × gas miles per gallon ÷ miles per year. With the worked example numbers that is ($864 + $140 + $500) × 27.2 ÷ 12,000 = about $3.41 a gallon. Above that price the EV saves money per year on these lines; below it the gas car wins on yearly running costs. This line does not count the price premium or the charger, so it is not the same as the break-even in years.
A worked example, using this calculator's own math
See the worked example, line by line
A $42,000 EV against a $32,000 gas car, both driven 12,000 miles a year. The EV uses 3.5 miles per kWh; the gas car gets the EPA model-year 2024 fleet average of 27.2 mpg. Home electricity is 18 cents a kWh (EIA, June 2026: 18.34 cents), public fast charging is 54 cents (Paren, Q3 2026), and 80% of the charging happens at home. Gas is $3.805 a gallon (EIA, week ending November 16, 2026). The federal $7,500 credit is $0: it ended for vehicles acquired after September 30, 2025.
The blended charging rate is (0.80 × $0.18) + (0.20 × $0.54) = $0.252 per kWh. The EV needs 12,000 ÷ 3.5 = 3,429 kWh a year, costing $864. The gas car needs 12,000 ÷ 27.2 = 441 gallons a year, costing $1,679. Fuel savings are $815 a year. Electricity costs 7.2 cents a mile; gasoline costs 14.0 cents a mile. On CO2, the same example puts the EV at about 1.2 tonnes a year against about 3.9 tonnes for the gas car, so the EV avoids about 2.7 tonnes a year, about 13.6 tonnes over five years.
The extra lines change the answer. The EV registration surcharge is $140 a year (the median among the 41 states that charge one) and the extra insurance is $500 a year (Insurify, 2026, for 2024-or-newer models). That is $640 a year of extra lines, leaving a net advantage of $175 a year.
Upfront, the EV costs $10,000 more, plus $1,500 for a home charger and installation, for $11,500 in all. At $175 a year, the break-even is $11,500 ÷ $175 = about 66 years, or about 790,000 miles. On fuel alone the break-even would be about 12 years; counting the charger it is about 14 years. The fuel savings are real, but the other lines take most of them back before the car is sold.
Worked example, line by line over 5 years
Each line uses the worked example numbers above. Totals are rounded to the nearest dollar.
See the 5-year lines, one by one
EV over 5 years
Price: $42,000
Charging: 12,000 miles a year ÷ 3.5 miles per kWh × $0.252 per kWh × 5 years = $4,320
Registration surcharge: $140 a year × 5 years = $700
Extra insurance: $500 a year × 5 years = $2,500
Home charger and installation: $1,500
EV total: $42,000 + $4,320 + $700 + $2,500 + $1,500 = $51,020
Gas car over 5 years
Price: $32,000
Fuel: 12,000 miles a year ÷ 27.2 mpg × $3.805 a gallon × 5 years = $8,393.38, shown as $8,393
Gas car total: $32,000 + $8,393 = $40,393
Gap: $51,020 - $40,393 = $10,627. Over 5 years, the EV costs $10,627 more than the gas car on these lines.
Check: fuel saved over 5 years is $8,393 - $4,320 = $4,073, and registration plus insurance over 5 years is $700 + $2,500 = $3,200.
How the EV vs. gas comparison works
The calculator compares the two cars on the same miles, then adds the lines most comparisons leave out. For one same-brand pair worked out in full, see Subaru Trailseeker vs Outback, the electric one against the gas one it mirrors.
- Blended charging rate. Your home rate and your public fast-charging rate are mixed by the share of charging you do at home. With 80% home charging at 18 cents and 20% public at 54 cents, the blended rate is 25.2 cents per kWh.
- Electricity per mile. The blended rate divided by the EV's efficiency in miles per kWh.
- Gasoline per mile. The gas price divided by the gas car's miles per gallon.
- Fuel savings per year. Gas cost minus electricity cost at your miles per year.
- The extra lines. The EV registration surcharge and the extra EV insurance come off the fuel savings every year; the home charger and installation are a one-time cost, counted with the price premium.
- Break-even. The extra upfront cost divided by the net per year. If the net per year is zero or negative, the EV does not break even on these lines.
- Break-even gas price. The gas price where the yearly fuel savings exactly cover the registration surcharge and the extra insurance. Above it the EV saves money per year; below it the gas car wins on running costs.
What makes the answer flip
- Home vs. public charging. Home charging at 18 cents per kWh is roughly a third of the 54-cent public fast-charging average. A driver who charges mostly at home saves far more than one who charges mostly on the road.
- The price gap. The average new EV cost $56,126 in July 2026, against $49,855 for the average new vehicle. A $6,271 gap takes years of fuel savings to close; a smaller gap closes much faster.
- Insurance and registration. An EV can cost about $500 a year more to insure for 2024-or-newer models, and 41 states charge an extra registration fee. Together they are $640 a year in the worked example, most of the $815 fuel savings.
- Miles per year. The more you drive, the more the fuel savings matter. At 20,000 miles a year the fuel savings rise by about two-thirds; at 6,000 miles they roughly halve, and the break-even stretches out.
Watch out for these assumptions
- The federal credit is gone. The $7,500 credit under section 30D ended for vehicles acquired after September 30, 2025. The calculator assumes $0. A state or local incentive is not in the inputs; subtract it from the EV price yourself if one applies to you.
- Your electricity rate is yours. The 18-cent default is the US residential average. Time-of-use plans, solar, and local rates can move it either way; the public rate matters just as much if you fast-charge often.
- Battery replacement is not in the math. Batteries typically carry 8-year or 100,000-mile warranties, and most last longer, but a replacement is expensive. The calculator does not price it in either direction.
- Maintenance and depreciation are separate. EVs have fewer moving parts and lower routine maintenance, but they can depreciate faster. Those lines are not in this calculator; they are covered in the sections below.
- Fuel is only one slice. AAA's 2026 Your Driving Costs study found EVs cost more than $3,000 extra per year to own than comparable gas models, because faster depreciation outweighed the cheaper fuel. This calculator isolates fuel, price, registration, charger and insurance so the energy economics stay visible on their own.
What the newest national data says
In September 2026, AAA published its annual Your Driving Costs analysis: 34 popular models across seven categories, assuming five years and 75,000 miles. The headline number is $12,863 per year, $1,071.92 a month, to own and operate a new vehicle. Depreciation alone averages $4,422 a year, roughly a third of the total. AAA's 2026 release has the full breakdown.
This year's study folded EVs and hybrids directly into the same categories as gas models for the first time, and the results surprised a lot of people: EV charging costs up to 70% less than gasoline, yet EVs cost more than $3,000 extra per year to own than comparable gas models, because they depreciate faster. Fuel savings could not overcome the value they lose.
The real winners were hybrids: meaningful fuel savings with smaller tradeoffs, costing less per year than gas-only models among medium sedans, compact SUVs, medium SUVs and pickup trucks. If your goal is the lowest total cost rather than a powertrain statement, a hybrid deserves a hard look: see whether hybrid cars are worth it.
One more input worth knowing: at the time of the study, regular gasoline averaged $4.15 per gallon (up nearly 32% from 2025) while home electricity averaged 18 cents per kWh (up under 8%). Energy prices move, rerun your numbers with today's local prices, not last year's article.
Start beyond the sticker price
Many electric vehicles carry a higher purchase price than a broadly similar gas vehicle, although that gap varies widely by size, brand and incentives. The EV may recover some of the difference through lower energy and maintenance costs, and whether it catches up during your ownership depends on how much you drive, where you charge and what each vehicle is worth when you sell it.
Leasing changes that comparison, because the battery warranty usually outlasts the lease and the lease ends as newer models arrive: should you lease or buy an EV.
Do not compare only the monthly payments: include the down payment, interest, taxes and any home-charging equipment, then subtract only an incentive you are confident you qualify for. A credit that arrives later does not reduce the amount financed unless the seller can legally apply it at the point of sale. Charging at home also means installing the charger itself, see how much it costs to install a home EV charger.
Home charging changes the calculation
Charging at home is usually the least expensive and most convenient pattern. Estimate energy use by dividing annual miles by the vehicle's miles per kilowatt-hour, then multiply by your utility's price per kilowatt-hour, and check whether your rate changes by time of day. Installation of a 240-volt outlet or charging unit can add an upfront cost, especially if the electrical panel needs work.
Public fast charging often costs more than home electricity. It can still be useful on road trips, but a driver who relies on it every week may give up much of the EV's fuel savings. Use your real mix: for example, 80% home charging and 20% public charging rather than assuming every mile receives the cheapest rate.
What home charging costs in your state
The table below uses this page's own worked example: 12,000 miles a year, an EV at 3.5 miles per kWh, so 3,429 kWh a year, against a gas car at 27.2 mpg and $3.805 a gallon (EIA, week ending November 16, 2026), so $1,679 of gas a year. The only thing that changes by state is the home electricity price, from EIA Table 5.6.A, August 2026. Public fast charging costs more, so a driver who charges mostly in public will save less than this table shows.
| State | Home electricity | Charging a year | Saved vs gas a year |
|---|---|---|---|
| United States (average) | 18.16 cents a kWh | $623 | $1,056 |
| Nevada | 12.72 cents a kWh | $436 | $1,243 |
| Louisiana | 12.87 cents a kWh | $441 | $1,238 |
| North Dakota | 13.31 cents a kWh | $456 | $1,223 |
| Utah | 13.31 cents a kWh | $456 | $1,223 |
| Idaho | 13.37 cents a kWh | $458 | $1,221 |
| Tennessee | 13.42 cents a kWh | $460 | $1,219 |
| Nebraska | 13.54 cents a kWh | $464 | $1,215 |
| Kentucky | 13.80 cents a kWh | $473 | $1,206 |
| Arkansas | 14.37 cents a kWh | $493 | $1,186 |
| Mississippi | 14.43 cents a kWh | $495 | $1,184 |
| Wyoming | 14.43 cents a kWh | $495 | $1,184 |
| Washington | 14.63 cents a kWh | $502 | $1,177 |
| Oklahoma | 14.82 cents a kWh | $508 | $1,171 |
| North Carolina | 14.95 cents a kWh | $513 | $1,166 |
| Florida | 14.99 cents a kWh | $514 | $1,165 |
| Arizona | 15.05 cents a kWh | $516 | $1,163 |
| South Dakota | 15.15 cents a kWh | $519 | $1,160 |
| Kansas | 15.47 cents a kWh | $530 | $1,149 |
| Montana | 15.57 cents a kWh | $534 | $1,145 |
| South Carolina | 15.76 cents a kWh | $540 | $1,139 |
| Texas | 15.91 cents a kWh | $545 | $1,134 |
| Oregon | 15.92 cents a kWh | $546 | $1,133 |
| Georgia | 15.90 cents a kWh | $545 | $1,134 |
| Missouri | 16.02 cents a kWh | $549 | $1,130 |
| West Virginia | 16.31 cents a kWh | $559 | $1,120 |
| Alabama | 16.33 cents a kWh | $560 | $1,119 |
| New Mexico | 16.51 cents a kWh | $566 | $1,113 |
| Indiana | 17.02 cents a kWh | $584 | $1,095 |
| Iowa | 17.06 cents a kWh | $585 | $1,094 |
| Colorado | 17.17 cents a kWh | $589 | $1,090 |
| Minnesota | 17.20 cents a kWh | $590 | $1,089 |
| Virginia | 17.64 cents a kWh | $605 | $1,074 |
| Delaware | 18.70 cents a kWh | $641 | $1,038 |
| Illinois | 19.32 cents a kWh | $662 | $1,017 |
| Ohio | 19.38 cents a kWh | $664 | $1,015 |
| Wisconsin | 19.41 cents a kWh | $665 | $1,014 |
| Maryland | 21.40 cents a kWh | $734 | $945 |
| Pennsylvania | 21.77 cents a kWh | $746 | $933 |
| Michigan | 22.99 cents a kWh | $788 | $891 |
| Vermont | 23.84 cents a kWh | $817 | $862 |
| Connecticut | 24.51 cents a kWh | $840 | $839 |
| New Jersey | 24.61 cents a kWh | $844 | $835 |
| District of Columbia | 25.98 cents a kWh | $891 | $788 |
| New Hampshire | 27.64 cents a kWh | $948 | $731 |
| Rhode Island | 28.18 cents a kWh | $966 | $713 |
| New York | 28.65 cents a kWh | $982 | $697 |
| Alaska | 29.41 cents a kWh | $1,008 | $671 |
| California | 29.75 cents a kWh | $1,020 | $659 |
| Massachusetts | 30.48 cents a kWh | $1,045 | $634 |
| Maine | 32.11 cents a kWh | $1,101 | $578 |
| Hawaii | 47.18 cents a kWh | $1,618 | $61 |
Every state saves money on home charging alone, from $61 a year in Hawaii to $1,243 in Nevada. The table leaves out the price premium, the charger, the registration surcharge, and insurance, the lines that decide whether the EV wins overall.
Maintenance is simpler, not zero
EVs do not need oil changes and have fewer moving powertrain parts, and regenerative braking may also reduce brake wear. They still need tires, cabin filters, alignments, suspension work and cooling-system service. Their weight and quick acceleration can wear tires faster for some drivers, so include a realistic tire allowance.
Battery degradation is normally gradual rather than a sudden failure: range may decline over time, with heat, charging habits and mileage affecting the pace. Full battery replacement is expensive, but it is not a routine ownership expense for most newer EVs during the typical factory battery-warranty period. Check the exact warranty, its capacity threshold and whether it transfers to a second owner, especially on a used EV.
Insurance and tax credits need current quotes
Some EVs cost more to insure because repair procedures, parts prices and replacement values can be higher. Others are competitive with gas models. The driver's record, location and trim can matter more than the power source, so compare matching quotes with the same limits and deductibles.
The former federal New Clean Vehicle Credit is not available for vehicles acquired after September 30, 2025: do not subtract it from a 2026 purchase. State, local and utility incentives may still exist, and eligibility can depend on the vehicle, battery sourcing, purchase price, income, location or whether the car is new or used. Check current official rules before buying, and never count a credit based on an old article or an advertisement that says only “up to.” For what ended, what the old rules were, and what remains, see EV tax credits in plain words.
A five-year example
Consider a $40,000 EV and a $34,000 gas car, each driven 12,000 miles a year. These are sample assumptions, not forecasts: suppose the EV averages 3.3 miles per kilowatt-hour and home electricity costs 18 cents per kilowatt-hour. Its five-year charging cost is roughly $3,270. A gas car averaging 30 mpg at $3.805 per gallon uses about $7,610 of fuel over the same 60,000 miles.
See the five-year example, line by line
- EV: $21,000 depreciation based on a $19,000 resale value, about $3,270 for home charging, $3,250 for maintenance and $12,000 for insurance totals roughly $39,520.
- Gas car: $17,000 depreciation based on a $17,000 resale value, $7,610 for fuel, $5,500 for maintenance and $10,500 for insurance totals roughly $40,610.
The EV comes out about $1,090 lower in this narrow example before taxes, financing or a charger, and the EV's $4,000 depreciation handicap mirrors what AAA found nationally. If public charging raises energy cost, the gas car may lead. Resale value is especially important: a few thousand dollars of difference there can outweigh years of fuel savings. And remember the hybrid middle ground: in AAA's data, hybrids beat gas-only models on annual cost in four of seven categories.
For two specific three-row electric SUVs priced the same way, see Hyundai Ioniq 9 vs Kia EV9: which 3-row electric SUV costs less.
Set the calculator to your real charging mix and the registration surcharge for your state, then run it again with the opposite mix: mostly home charging against mostly public charging. The difference between the two runs is the range your answer lives in. The worked example above uses 80% home charging, a $140 registration surcharge and $500 of extra insurance; change any of those to your own numbers before you count on the result.
Definitions
- Kilowatt-hour (kWh): the unit electricity is sold in, like a gallon of gas. One kWh is the energy of running a 1,000-watt appliance for one hour.
- Miles per kWh: how far an EV travels on one kilowatt-hour. A car at 3.5 miles per kWh uses about 29 kWh per 100 miles.
- Blended charging rate: the average price you pay per kilowatt-hour once your home and public charging are mixed together.
- Break-even: the point where the EV's savings have covered its extra upfront cost. After that point, the savings are ahead.
- Break-even gas price: the price of a gallon of gas where the EV's yearly fuel savings exactly cover its registration surcharge and extra insurance, so the net per year is zero. It leaves out the price premium and the charger.
- Section 30D credit: the federal clean-vehicle credit that ended for vehicles acquired after September 30, 2025. It is $0 in this calculator.
- EV registration surcharge: the extra annual fee 41 states and the District of Columbia charge electric vehicles to replace lost gas tax.
- Home charger: a Level 2 charger installed at home, with the installation work included in the one-time cost.
EV vs gas questions, answered
How much does it cost to charge an EV vs filling a gas car?
At 12,000 miles a year, the worked example uses about 3,429 kWh, costing about $864 at the blended 25-cent rate, against about 441 gallons and $1,679 of gasoline. That is about $815 a year saved on fuel, and the gap widens if you charge mostly at home and narrows if you charge mostly at public fast chargers.
Is an EV cheaper to own than a gas car over 10 years?
It depends on the price difference, how much of your charging happens at home, and whether the insurance is higher. If the EV is only a few thousand dollars more and you charge mostly at home, it can win; if the price gap is large and you charge mostly at public fast chargers, the gas car can still be cheaper at ten years. The calculator above gives you the break-even on your own numbers.
What numbers do I need for a fair EV vs gas comparison?
The two prices, the EV's efficiency and your charging mix, home and public charging rates, the gas car's mileage and gas price, your miles per year, the EV registration surcharge, the charger and installation cost, and the insurance difference. The calculator above asks for each one; leave the defaults in place if you are only testing the worked example.
Is the $7,500 federal EV tax credit still available?
No: the federal clean-vehicle credit under section 30D ended for vehicles acquired after September 30, 2025, when Public Law 119-21 terminated the credit, and the calculator assumes $0. State and local incentives are separate and vary by place, so check the current program for your state before counting on one.
How long does an EV take to pay back its higher price?
On fuel alone, the worked example pays back a $10,000 price premium in about 12 years; counting the $1,500 home charger, it is about 14 years, and counting the registration surcharge and insurance difference as well, about 66 years. That is the honest point of the calculator: electricity costs less per mile, but the other lines can take the savings back before the car is sold.
At what gas price does an EV stop saving money?
On the worked example numbers, about $3.41 a gallon: at that price the $640 a year of fuel savings exactly covers the $140 registration surcharge and the $500 of extra insurance, so the net per year is zero. Above $3.41 the EV saves money per year on these lines; below it the gas car wins on yearly running costs, and the calculator above works it out from your own numbers, leaving out the price premium and the charger, so it is not the same as the break-even in years.
How much does home charging cost in my state?
It depends on your state's residential electricity price. At 12,000 miles a year in an EV at 3.5 miles per kWh, home charging costs about $436 a year in Nevada, the cheapest state, and about $1,618 a year in Hawaii, the dearest, against about $1,679 of gas for a 27.2 mpg car at $3.805 a gallon. The national average is about $623 a year for charging, saving about $1,056 a year against gas. The table above lists every state.
How much CO2 does an EV save vs a gas car?
On the worked example, the EV puts out about 1.2 tonnes of CO2 a year against about 3.9 tonnes for the gas car, so it avoids about 2.7 tonnes a year, about 13.6 tonnes over five years. The calculator above works it out from your own miles and efficiency. The figures use the US average grid, 348 grams of CO2 per kWh (EPA eGRID2023), and 8,887 grams per gallon of gasoline (EIA). A cleaner local grid makes the EV better; a dirtier one narrows the gap.
Educational estimates only, not financial advice. This page includes the charging mix, the EV registration surcharge, the home charger and installation, and the insurance difference. It does not include maintenance differences, depreciation, battery replacement, or tax incentives. The federal $7,500 credit ended for vehicles acquired after September 30, 2025, so the calculator assumes $0. State and local incentives vary by place. Get a real quote for the exact cars and your own rates before you count on any figure here.
Was this page helpful?
Thanks for letting us know.