{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/us/ev-vs-petrol/schema.json",
  "title": "EV Versus Petrol Cost Calculator — United States inputs",
  "description": "Compare an EV purchase-price difference with energy and maintenance scenarios for equal annual driving. USD planning view; stated limitations apply.",
  "type": "object",
  "properties": {
    "unitSystem": {
      "title": "Measurement system",
      "type": "string",
      "default": "imperial",
      "enum": [
        "imperial",
        "metric"
      ],
      "x-optionLabels": {
        "imperial": "Imperial (US gallons / short tons where relevant)",
        "metric": "Metric"
      }
    },
    "annualDistance": {
      "title": "Annual driving distance",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 12427.423844746678,
      "minimum": 0,
      "maximum": 621371192237.334,
      "x-suffix": "mi"
    },
    "evConsumption": {
      "title": "Vehicle battery consumption",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 28.968192000000002,
      "minimum": 0.01609344,
      "maximum": 1609344000000,
      "x-suffix": "kWh/100 mi"
    },
    "chargeEfficiency": {
      "title": "Wall-to-battery charging efficiency",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 90,
      "minimum": 0,
      "maximum": 100,
      "x-step": 0.1,
      "x-unit": "percent"
    },
    "electricityRate": {
      "title": "Electricity price per wall kWh",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 0.2,
      "minimum": 0,
      "maximum": 1000000000000,
      "x-step": 0.01,
      "x-prefix": "USD",
      "x-unit": "currency"
    },
    "fuelConsumption": {
      "title": "Comparison fuel consumption",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 2.976005952011904,
      "minimum": 0.0042514370743027205,
      "maximum": 425143707430.27203,
      "x-suffix": "US gal/100 mi"
    },
    "fuelPrice": {
      "title": "Fuel price per volume unit",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 6.0566588544,
      "minimum": 0,
      "maximum": 3785411784000,
      "x-prefix": "USD",
      "x-suffix": "/US gal",
      "x-unit": "currency"
    },
    "evPurchase": {
      "title": "EV purchase price after confirmed incentives",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 40000,
      "minimum": 0,
      "maximum": 1000000000000,
      "x-step": 0.01,
      "x-prefix": "USD",
      "x-unit": "currency"
    },
    "fuelPurchase": {
      "title": "Comparison vehicle purchase price",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 30000,
      "minimum": 0,
      "maximum": 1000000000000,
      "x-step": 0.01,
      "x-prefix": "USD",
      "x-unit": "currency"
    },
    "evMaintenance": {
      "title": "Annual EV maintenance assumption",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 500,
      "minimum": 0,
      "maximum": 1000000000000,
      "x-step": 0.01,
      "x-prefix": "USD",
      "x-unit": "currency"
    },
    "fuelMaintenance": {
      "title": "Annual comparison maintenance assumption",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 800,
      "minimum": 0,
      "maximum": 1000000000000,
      "x-step": 0.01,
      "x-prefix": "USD",
      "x-unit": "currency"
    },
    "years": {
      "title": "Comparison horizon, years",
      "type": "number",
      "description": "Illustrative starting value; replace with your own evidence.",
      "default": 8,
      "minimum": 1,
      "maximum": 50,
      "x-step": 1,
      "multipleOf": 1
    }
  },
  "required": [
    "annualDistance",
    "evConsumption",
    "chargeEfficiency",
    "electricityRate",
    "fuelConsumption",
    "fuelPrice",
    "evPurchase",
    "fuelPurchase",
    "evMaintenance",
    "fuelMaintenance",
    "years"
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "20.16.0",
    "calculatorUrl": "https://askcalculators.com/us/ev-vs-petrol/",
    "queryExample": "https://askcalculators.com/us/ev-vs-petrol/?unitSystem=imperial&annualDistance=12427.423844746678&evConsumption=28.968192000000002&chargeEfficiency=90&electricityRate=0.2&fuelConsumption=2.976005952011904&fuelPrice=6.0566588544&evPurchase=40000&fuelPurchase=30000&evMaintenance=500&fuelMaintenance=800&years=8",
    "migrationStatus": "new",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "formula": {
      "expression": "annual saving = comparison energy + maintenance − EV energy − maintenance.",
      "note": "Inputs are converted to canonical units before evaluating this stated formula."
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/v20-us-ev-vs-petrol.json",
      "qualifiedReview": "pending",
      "qualifiedReviewer": null,
      "qualifiedReviewDate": null,
      "formulaVersion": "20.16.0",
      "referenceCoverage": "references-listed",
      "releaseTestScope": "Catalog and regression checks are not a professional formula audit; consult release evidence.",
      "historicalMetadataDate": "",
      "historicalMetadataNotice": "The imported date is not evidence of a completed human review."
    },
    "outputs": {
      "evEnergyCost": {
        "title": "Annual EV energy spending",
        "type": "number",
        "x-format": "currency",
        "x-currency": "USD",
        "x-digits": 2
      },
      "fuelEnergyCost": {
        "title": "Annual comparison fuel spending",
        "type": "number",
        "x-format": "currency",
        "x-currency": "USD",
        "x-digits": 2
      },
      "extraCapital": {
        "title": "Extra EV purchase cost",
        "type": "number",
        "x-format": "currency",
        "x-currency": "USD",
        "x-digits": 2
      },
      "annualSaving": {
        "title": "Annual energy and maintenance saving",
        "type": "number",
        "x-format": "currency",
        "x-currency": "USD",
        "x-digits": 2
      },
      "payback": {
        "title": "Simple purchase-premium payback, years",
        "type": "number",
        "x-format": "number",
        "x-digits": 2
      },
      "horizonSaving": {
        "title": "Energy/maintenance saving less purchase premium",
        "type": "number",
        "x-format": "currency",
        "x-currency": "USD",
        "x-digits": 2,
        "x-primary": true
      }
    }
  }
}
