{
  "version": "v1",
  "source": "https://craftquantities.com",
  "licence": "CC BY 4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Craft Quantities — craftquantities.com",
  "documentation": "https://craftquantities.com/api/",
  "versioning": "Fields are added, never removed or repurposed, within a version. A breaking change becomes /api/v2/ and v1 keeps being built.",
  "slug": "running-cost-to-kwh-calculator",
  "category": "financial-adjacent",
  "title": "Running Cost to kWh Calculator",
  "description": "Work backwards from money spent to energy used — turn a bill figure into the kilowatt-hours behind it.",
  "url": "https://craftquantities.com/calculators/financial-adjacent/running-cost-to-kwh-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/running-cost-to-kwh-calculator.json",
  "inputCount": 2,
  "testCaseCount": 4,
  "sourceCount": 1,
  "lastVerified": "2026-09-16",
  "citation": {
    "author": "Craft Quantities",
    "title": "Running Cost to kWh Calculator",
    "version": "1.1.0",
    "sourcesChecked": "2026-09-16",
    "url": "https://craftquantities.com/calculators/financial-adjacent/running-cost-to-kwh-calculator/",
    "accessDate": null,
    "accessDateNote": "Add the date you retrieved this. It is deliberately absent: a static file cannot know when you read it, and the build date would be wrong.",
    "permanentVersionedUrl": null,
    "permanentVersionedUrlNote": "Not offered. This site keeps no archive of previous builds, so any such URL would resolve to the current page or to nothing. The version and sourcesChecked fields identify the calculation instead.",
    "formats": {
      "plain": "Craft Quantities. Running Cost to kWh Calculator. Version 1.1.0. Sources checked 2026-09-16. https://craftquantities.com/calculators/financial-adjacent/running-cost-to-kwh-calculator/",
      "apa": "Craft Quantities. (2026). Running Cost to kWh Calculator (Version 1.1.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/financial-adjacent/running-cost-to-kwh-calculator/",
      "harvard": "Craft Quantities (2026) Running Cost to kWh Calculator (Version 1.1.0). Available at: https://craftquantities.com/calculators/financial-adjacent/running-cost-to-kwh-calculator/",
      "bibtex": "@misc{craftquantities-calculators-financial-adjacent-running-cost-to-kwh-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Running Cost to kWh Calculator},\n  version      = {1.1.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/financial-adjacent/running-cost-to-kwh-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "cost",
      "label": "Amount spent",
      "type": "number",
      "defaultValue": 100,
      "min": 0,
      "max": 1000000,
      "step": 1,
      "help": "The amount from the bill, in whatever currency you are billed in.",
      "money": {
        "role": "amount"
      }
    },
    {
      "id": "ratePerKwh",
      "label": "Unit rate (per kWh)",
      "type": "number",
      "defaultValue": "",
      "min": 0.001,
      "max": 10,
      "step": 0.001,
      "help": "The price of one kWh on the same bill.",
      "money": {
        "role": "rate",
        "bookKey": "electricity"
      }
    }
  ],
  "sources": [
    {
      "label": "Arithmetic only: energy = amount spent ÷ your unit rate. No tariff data is published here."
    }
  ],
  "testCases": [
    {
      "name": "100 at 0.25 per kWh is 400 kWh",
      "inputs": {
        "cost": 100,
        "ratePerKwh": 0.25
      },
      "expected": 400,
      "toleranceDecimalPlaces": 2,
      "unit": "kWh",
      "confidence": "high",
      "steps": [],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "25 at 0.25 per kWh is 100 kWh",
      "inputs": {
        "cost": 25,
        "ratePerKwh": 0.25
      },
      "expected": 100,
      "toleranceDecimalPlaces": 2,
      "unit": "kWh",
      "confidence": "high",
      "steps": [],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "A 1,200 annual bill at 0.30 per kWh",
      "inputs": {
        "cost": 1200,
        "ratePerKwh": 0.3
      },
      "expected": 4000,
      "toleranceDecimalPlaces": 2,
      "unit": "kWh",
      "confidence": "high",
      "steps": [],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "Nothing spent is nothing used",
      "inputs": {
        "cost": 0,
        "ratePerKwh": 0.2
      },
      "expected": 0,
      "toleranceDecimalPlaces": 8,
      "unit": "kWh",
      "confidence": "high",
      "steps": [],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
