Back to calculator
EV & CarsGenerated accuracy model review: 2026-05-06

EV vs Hybrid vs Gas Cost Calculator accuracy and testing

This page documents how Calwarden builds trust for this calculator: source notes, regression-style default tests, limitations, assumptions, unit handling, rounding, and visible change history.

Formula source

  • EV cost = annual miles / mi per kWh / (1 - loss) * electricity price. Fuel costs = annual miles / MPG * gas price.

Test cases

Default input regression check

Generated from the checked-in default inputs and calculate function.

Inputs

  • Annual Miles: 12,000 mi/yr
  • EV Efficiency Preset: tesla_model_y_long_range
  • EV Efficiency: 3.5 mi/kWh
  • Hybrid MPG Preset: epa_2026_toyota_camry_hybrid_le
  • Hybrid MPG: 48 MPG
  • Gas MPG Preset: epa_2026_honda_crv_fwd
  • Gas Vehicle MPG: 28 MPG
  • Electricity Rate Preset: eia_us_residential_average
  • Electricity Price: 0.16 $/kWh
  • Fuel Price Preset: eia_us_regular_gasoline_2026_05_04
  • Gas Price: 3.8 $/gal
  • Charging Loss: 10%

Expected outputs

  • Cheapest Option: EV is cheapest
  • EV Annual Energy Cost: $578.25
  • Hybrid Annual Fuel Cost: $1,047.53
  • Gas Annual Fuel Cost: $1,780.80
  • EV Savings vs Gas: $1,202.55
  • Hybrid Savings vs Gas: $733.27

Known limitations

  • This page documents the checked-in calculator logic and does not certify results for every real-world edge case.
  • Use the result as a planning estimate unless the calculator page states a stricter purpose.

Assumptions

  • All prices and vehicle assumptions are user-entered.
  • Charging loss is modeled as a simple percentage.
  • Calculations run locally in your browser and are not stored by Calwarden.
  • Results are planning estimates, not financial, tax, insurance, legal, or mechanical advice.

Unit handling

  • Annual Miles accepts values in mi/yr.
  • EV Efficiency Preset accepts one of the configured options.
  • EV Efficiency accepts values in mi/kWh.
  • Hybrid MPG Preset accepts one of the configured options.
  • Hybrid MPG accepts values in MPG.
  • Gas MPG Preset accepts one of the configured options.
  • Gas Vehicle MPG accepts values in MPG.
  • Electricity Rate Preset accepts one of the configured options.
  • Electricity Price accepts values in $/kWh.
  • Fuel Price Preset accepts one of the configured options.
  • Gas Price accepts values in $/gal.
  • Charging Loss accepts values in %.
  • EV Annual Energy Cost is displayed as currency.
  • Hybrid Annual Fuel Cost is displayed as currency.
  • Gas Annual Fuel Cost is displayed as currency.
  • EV Savings vs Gas is displayed as currency.
  • Hybrid Savings vs Gas is displayed as currency.

Rounding rules

  • Number displays use up to 2 decimal places in the calculator UI.
  • Currency outputs are displayed with standard US dollar formatting.
  • Input precision follows configured step values where provided.

Version history

1.0.0 - 2026-05-06

Generated accuracy and testing page from the current ev-vs-hybrid-vs-gas-cost-calculator calculator definition.

Change log

2026-05-06

Published default regression test documentation and metadata fallbacks for EV vs Hybrid vs Gas Cost Calculator.

Calculator transparency

Accuracy pages are generated from checked-in calculator definitions and can be upgraded with curated review metadata over time.

Use calculator