Data sources
Everything on this site traces back to one of five public sources. We pin versions annually and note where numbers came from so you can verify anything that surprises you.
- EPA FuelEconomy.gov (fueleconomy.gov). Vehicle efficiency in kWh per 100 miles, EPA range rating, battery capacity, MPGe. Updated annually from the EPA Test Car List and the Green Vehicle Guide. This is the same data the window sticker on a new EV is built from.
- EIA residential electricity rates (eia.gov). Average residential cost per kilowatt-hour for each of the 50 states plus DC. The cents-per-kWh number you see in the state selector is a direct copy of the EIA average residential rate for the most recent full year, rounded to two decimals.
- AFDC incentive database (afdc.energy.gov). State and local EV incentives: rebates, tax credits, HOV access, charging install credits. We only list programs that are currently funded. Expired or paused programs are removed within one update cycle.
- Recurrent cold-weather retention data (recurrentauto.com). Temperature-versus-range curves from real-world telematics across tens of thousands of EVs. This powers the temperature penalty in the range and panic calculators.
- EPA CO2 emission factors and EIA grid mix. Gasoline emits 8,887 grams of CO2 per gallon burned (EPA 420-F-14-040a). Electricity emits a state-varying amount of CO2 per kWh based on the local grid mix. We use the 2024 US average of 0.86 lbs per kWh unless the state guide overrides it with a specific number.
Core formulas
Here are the four formulas that sit under almost every cost-related calculator on the site. If you want to sanity-check a result with a calculator app, these are the equations to use.
Annual energy used.We take your daily miles times 365, divide by 100, then multiply by the vehicle's EPA kWh per 100 miles. For a Tesla Model 3 at 25 kWh per 100 miles driven 35 miles per day, that is 35 times 365 divided by 100, times 25, equal to 3,194 kWh per year.
Annual electricity cost.Annual energy multiplied by your electricity rate in dollars per kWh. For the Tesla Model 3 at California's 27.57 cents per kWh, that is 3,194 times 0.2757, equal to 881 dollars per year.
Annual gas cost for comparison. Daily miles times 365, divided by MPG, times dollars per gallon. For a 28 MPG car at $3.50 per gallon driven 12,775 miles per year, that is 12,775 divided by 28 times $3.50, equal to $1,597 per year.
Annual savings. Annual gas cost minus annual electricity cost. In the example above, $1,597 minus $881, equal to $716. That is the number the homepage hero shows by default.
Cost per mile is just the annual cost divided by annual miles. For the same Tesla Model 3 in California, that is $881 divided by 12,775 miles, equal to about 6.9 cents per mile. A gas car at 28 MPG and $3.50 per gallon runs 12.5 cents per mile, so the EV is about 45 percent cheaper per mile under these assumptions.
Real-world range model
EPA range is a single number from a standardized dyno test at 73°F, no wind, no climate control, at an average speed around 48 mph. Real driving is not that. The range calculator and the will-i-make-it-home panic calculator both adjust EPA range by five multiplicative factors.
- Temperature.Curve fitted to Recurrent's 2023 cold-weather study. A battery retains about 100 percent of EPA range at 70°F, 92 percent at 60°F, 82 percent at 50°F, 68 percent at freezing, 59 percent at 0°F, and 50 percent at -10°F. Hot-weather range loss is smaller but non-zero: 97 percent at 90°F, 83 percent above 95°F.
- Speed. Aerodynamic drag rises with the square of speed, so highway efficiency drops off quickly past 60 mph. Our curve gives 100 percent at 60 mph, 96 percent at 65, 90 percent at 70, 83 percent at 75, 77 percent at 80. Tuned to Idaho National Lab and independent Bjorn Nyland 90 and 110 km/h tests.
- Cabin heat or AC. Cabin heat on a cold day draws 1.5 to 5 kW, which eats 8 to 17 percent of range for a typical commute. AC is much cheaper, around 5 percent. Seat warmers and heated steering wheels are near-free compared to full cabin heat.
- Terrain. Flat ground is the baseline. Hilly terrain costs roughly 10 percent through net elevation change and more time at load. Mountainous driving costs about 25 percent. Net-downhill highway driving can actually recover some range via regenerative braking but we do not model regen gains above EPA.
- Cargo and passengers. An extra two adults costs about 3 percent. A fully loaded car plus cargo costs about 8 percent. Towing is the most brutal, typically 40 to 50 percent range loss depending on trailer weight and frontal area. The towing calculator has its own dedicated model for that.
We multiply these five factors together, so a 70 mph highway run on a 30°F day with cabin heat on at 3 kW, flat terrain, driver only, gives 0.9 times 0.68 times 0.83 times 1.0 times 1.0, equal to about 51 percent of EPA. That is what the panic calculator returns for that input combination.
Solar and grid math
Solar calculators on this site use a flat annual-energy model: system size in kilowatts times state peak sun hours times 365, adjusted for a 0.8 performance ratio to account for real-world losses from inverter efficiency, wiring, panel soiling, and orientation. That gives annual kWh produced. We then subtract the EV's annual kWh need to get net-to-grid or net-from-grid energy.
Payback math uses cash basis, not levelized cost. System cost (after any available state-lease or PPA credit) divided by annual grid savings equals payback in years. We do not bake in ITC for owner-installed systems because Section 25D was repealed in 2025. See the tax-credits section below for the long version.
Tax credits after 30D and 25D
Two major federal EV-related credits changed dramatically in 2025. Our tax-credits calculator reflects the new reality. Most other sites do not.
Section 30D (new clean vehicle credit). Repealed for vehicles placed in service after September 30, 2025. If you bought or leased a new EV on or before that date, you may still claim up to $7,500 on your 2025 return. For anyone buying now, assume $0 federal credit on a new purchase. Some state credits still apply. Several states have their own point-of-sale rebates ranging from $1,000 to $7,500 for income-qualified buyers.
Section 25D (residential clean energy). Eliminated by the OBBBA (July 4, 2025) for homeowner-owned solar systems. The 30 percent federal credit is gone for cash or loan purchases placed in service in 2026 and later. Third-party owned systems (leases and PPAs) can still claim Section 48E through 2027 and are usually structured so the installer captures the credit and passes part of it back as a lower lease payment.
Section 30C (charger installation credit).Extended through 2032 by the IRA, but subject to census tract eligibility. Thirty percent of equipment plus installation, capped at $1,000 for residential. Check the IRS's census tract lookup before assuming you qualify.
Section 25E (used clean vehicle credit). Still alive. Thirty percent of the purchase price up to $4,000 on used EVs at least two model years old, with income caps of $75,000 single or $150,000 married filing jointly.
What we do not include
Every calculator on this site is an estimate. We exclude several line items that would move results one way or the other, on the theory that it is better to tell you what we left out than to make up numbers.
- Maintenance. EVs typically save $500 to $1,000 per year on maintenance (no oil changes, fewer brake pads, regen-assisted slowing). We do not bake that in. If you want to claim it, add it to the savings number you see.
- Insurance. EV insurance runs roughly 10 to 15 percent higher than comparable gas cars because repair costs are higher. We do not include this either.
- Battery replacement risk. Most modern EV batteries retain 90 percent or more of capacity after 200,000 miles. Out-of-warranty replacements cost $5,000 to $15,000 but are extremely rare on 2020-or-newer cars. We do not model this as a line item.
- Time-of-use electricity plans. Many utilities offer overnight rates 30 to 50 percent below the flat-rate average. We use the flat residential rate unless you override it with a custom cents-per-kWh input.
- Demand charges and solar net-metering buyback rates. We assume standard residential billing without special rate structures. If your utility has a heavy demand charge or a poor net-metering deal, the numbers shift.
- Depreciation. Only the Total Cost of Ownership calculator includes this. Every other calculator treats depreciation as out of scope.
Update cadence
Data refreshes annually. EIA electricity rates update in late Q1 each year when the latest full-year averages publish. Vehicle efficiency updates when the EPA publishes the new model year, in late Q3. State incentives update whenever legislation changes, usually Q1 and Q3. Tax-credit language updates whenever federal policy shifts.
Questions, corrections, or a number that feels wrong?
We publish our methodology precisely so you can challenge it. If a calculator returns a number you cannot reconcile with your own spreadsheet, or if you spot a stale data point, the fastest path to a fix is the About page, which has our contact details. We read every email.