{
  "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": "rain-barrel-collection-calculator",
  "category": "plumbing-hvac",
  "title": "Rain Barrel and Rainwater Collection Calculator",
  "description": "Estimate how many gallons or litres of rainwater you can collect from your roof during a rainfall event.",
  "url": "https://craftquantities.com/calculators/plumbing-hvac/rain-barrel-collection-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/rain-barrel-collection-calculator.json",
  "inputCount": 2,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-02",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/plumbing-hvac/rain-barrel-collection-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Rain Barrel and Rainwater Collection Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-02",
    "url": "https://craftquantities.com/calculators/plumbing-hvac/rain-barrel-collection-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. Rain Barrel and Rainwater Collection Calculator. Version 1.0.1. Sources checked 2026-09-02. https://craftquantities.com/calculators/plumbing-hvac/rain-barrel-collection-calculator/",
      "apa": "Craft Quantities. (2026). Rain Barrel and Rainwater Collection Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/plumbing-hvac/rain-barrel-collection-calculator/",
      "harvard": "Craft Quantities (2026) Rain Barrel and Rainwater Collection Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/plumbing-hvac/rain-barrel-collection-calculator/",
      "bibtex": "@misc{craftquantities-calculators-plumbing-hvac-rain-barrel-collection-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Rain Barrel and Rainwater Collection Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/plumbing-hvac/rain-barrel-collection-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "roofArea",
      "label": "Roof Catchment Area",
      "type": "number",
      "dimension": "area",
      "defaultValue": 100,
      "min": 0.01,
      "max": 2000,
      "step": 5,
      "help": "The horizontal (footprint) area of roof draining to the collection point."
    },
    {
      "id": "rainfallIn",
      "label": "Rainfall Amount",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.0254,
      "min": 0.00254,
      "max": 0.254,
      "step": 0.00254,
      "help": "The rainfall depth for the event you're estimating."
    }
  ],
  "sources": [
    {
      "label": "Standard rainwater harvesting formula: gallons collected = roof catchment area (sq ft) x rainfall (inches) x 0.623"
    }
  ],
  "testCases": [
    {
      "name": "100m² roof, 1in rain",
      "inputs": {
        "roofArea": 100,
        "rainfallIn": 0.0254
      },
      "expected": 670.6,
      "toleranceDecimalPlaces": -1,
      "unit": "gallons",
      "confidence": "medium",
      "steps": [
        {
          "label": "Roof catchment area",
          "value": 1076.391041670972,
          "unit": "sq ft"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "150m² roof, 0.5in rain",
      "inputs": {
        "roofArea": 150,
        "rainfallIn": 0.0127
      },
      "expected": 502.9,
      "toleranceDecimalPlaces": -1,
      "unit": "gallons",
      "confidence": "medium",
      "steps": [
        {
          "label": "Roof catchment area",
          "value": 1614.5865625064582,
          "unit": "sq ft"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
