{
  "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": "generator-fuel-runtime-calculator",
  "category": "electrical",
  "title": "Generator Fuel Runtime Calculator",
  "description": "Estimate how long a generator will run on a tank of fuel at a given load.",
  "url": "https://craftquantities.com/calculators/electrical/generator-fuel-runtime-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/generator-fuel-runtime-calculator.json",
  "inputCount": 2,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-02",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/electrical/generator-fuel-runtime-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Generator Fuel Runtime Calculator",
    "version": "1.1.1",
    "sourcesChecked": "2026-09-02",
    "url": "https://craftquantities.com/calculators/electrical/generator-fuel-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. Generator Fuel Runtime Calculator. Version 1.1.1. Sources checked 2026-09-02. https://craftquantities.com/calculators/electrical/generator-fuel-runtime-calculator/",
      "apa": "Craft Quantities. (2026). Generator Fuel Runtime Calculator (Version 1.1.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/electrical/generator-fuel-runtime-calculator/",
      "harvard": "Craft Quantities (2026) Generator Fuel Runtime Calculator (Version 1.1.1). Available at: https://craftquantities.com/calculators/electrical/generator-fuel-runtime-calculator/",
      "bibtex": "@misc{craftquantities-calculators-electrical-generator-fuel-runtime-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Generator Fuel Runtime Calculator},\n  version      = {1.1.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/electrical/generator-fuel-runtime-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "tankGallons",
      "label": "Fuel Tank Capacity",
      "type": "number",
      "dimension": "volume",
      "defaultValue": 18.92705892,
      "min": 1.892705892,
      "max": 757.0823568,
      "step": 1.892705892,
      "help": "The generator's fuel tank size."
    },
    {
      "id": "fuelConsumptionGph",
      "label": "Fuel Consumption Rate",
      "type": "number",
      "dimension": "fuelrate",
      "defaultValue": 2.839058838,
      "min": 0.3785411784,
      "max": 75.70823568,
      "step": 0.1892705892,
      "help": "Check the manufacturer's fuel consumption chart at your expected load percentage."
    }
  ],
  "sources": [
    {
      "label": "Runtime (hours) = fuel tank capacity (gallons) / fuel consumption rate (gallons per hour) at the expected load"
    }
  ],
  "testCases": [
    {
      "name": "5 gal (18.93 L) tank, 0.75 gal/hr (2.84 L/hr)",
      "inputs": {
        "tankGallons": 18.92705892,
        "fuelConsumptionGph": 2.839058838
      },
      "expected": 6.667,
      "toleranceDecimalPlaces": 3,
      "unit": "hours",
      "confidence": "medium",
      "steps": [],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "8 gal (30.28 L) tank, 1.0 gal/hr (3.79 L/hr)",
      "inputs": {
        "tankGallons": 30.283294272,
        "fuelConsumptionGph": 3.785411784
      },
      "expected": 8,
      "toleranceDecimalPlaces": 0,
      "unit": "hours",
      "confidence": "medium",
      "steps": [],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
