{
  "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": "battery-backup-runtime-calculator",
  "category": "solar-energy",
  "title": "Battery Backup Runtime Calculator",
  "description": "Estimate how long a battery backup system will power a load before depleting.",
  "url": "https://craftquantities.com/calculators/solar-energy/battery-backup-runtime-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/battery-backup-runtime-calculator.json",
  "inputCount": 3,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-02",
  "citation": {
    "author": "Craft Quantities",
    "title": "Battery Backup Runtime Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-02",
    "url": "https://craftquantities.com/calculators/solar-energy/battery-backup-runtime-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. Battery Backup Runtime Calculator. Version 1.0.1. Sources checked 2026-09-02. https://craftquantities.com/calculators/solar-energy/battery-backup-runtime-calculator/",
      "apa": "Craft Quantities. (2026). Battery Backup Runtime Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/solar-energy/battery-backup-runtime-calculator/",
      "harvard": "Craft Quantities (2026) Battery Backup Runtime Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/solar-energy/battery-backup-runtime-calculator/",
      "bibtex": "@misc{craftquantities-calculators-solar-energy-battery-backup-runtime-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Battery Backup Runtime Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/solar-energy/battery-backup-runtime-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "batteryCapacityWh",
      "label": "Battery Capacity (Wh)",
      "type": "number",
      "defaultValue": 2000,
      "min": 50,
      "max": 50000,
      "step": 50,
      "help": "The total energy storage capacity of the battery bank."
    },
    {
      "id": "loadWatts",
      "label": "Connected Load",
      "type": "number",
      "defaultValue": 300,
      "min": 1,
      "max": 10000,
      "step": 10,
      "help": "The total wattage of everything running off the battery."
    },
    {
      "id": "systemEfficiencyPercent",
      "label": "System Efficiency (%)",
      "type": "number",
      "defaultValue": 85,
      "min": 30,
      "max": 100,
      "step": 1,
      "help": "Inverter losses AND the battery usable depth of discharge, multiplied together."
    }
  ],
  "sources": [
    {
      "label": "Runtime (hours) = (battery capacity in watt-hours x system efficiency) / load in watts"
    }
  ],
  "testCases": [
    {
      "name": "2000Wh battery, 300W load, 85% efficiency",
      "inputs": {
        "batteryCapacityWh": 2000,
        "loadWatts": 300,
        "systemEfficiencyPercent": 85
      },
      "expected": 5.667,
      "toleranceDecimalPlaces": 3,
      "unit": "hours",
      "confidence": "medium",
      "steps": [
        {
          "label": "Usable energy",
          "value": 1700,
          "unit": "Wh"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "5000Wh battery, 500W load, 90% efficiency",
      "inputs": {
        "batteryCapacityWh": 5000,
        "loadWatts": 500,
        "systemEfficiencyPercent": 90
      },
      "expected": 9,
      "toleranceDecimalPlaces": 0,
      "unit": "hours",
      "confidence": "medium",
      "steps": [
        {
          "label": "Usable energy",
          "value": 4500,
          "unit": "Wh"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
