{
  "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": "pipe-volume-calculator",
  "category": "plumbing-hvac",
  "title": "Pipe Volume Calculator",
  "description": "Calculate the water volume held inside a length of pipe, based on its inside diameter.",
  "url": "https://craftquantities.com/calculators/plumbing-hvac/pipe-volume-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/pipe-volume-calculator.json",
  "inputCount": 2,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-02",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/plumbing-hvac/pipe-volume-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Pipe Volume Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-02",
    "url": "https://craftquantities.com/calculators/plumbing-hvac/pipe-volume-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. Pipe Volume Calculator. Version 1.0.1. Sources checked 2026-09-02. https://craftquantities.com/calculators/plumbing-hvac/pipe-volume-calculator/",
      "apa": "Craft Quantities. (2026). Pipe Volume Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/plumbing-hvac/pipe-volume-calculator/",
      "harvard": "Craft Quantities (2026) Pipe Volume Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/plumbing-hvac/pipe-volume-calculator/",
      "bibtex": "@misc{craftquantities-calculators-plumbing-hvac-pipe-volume-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Pipe Volume Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/plumbing-hvac/pipe-volume-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "innerDiameter",
      "label": "Inside Diameter",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.01905,
      "min": 0.00254,
      "max": 0.6096,
      "step": 0.00127,
      "help": "The pipe's inside diameter, not the nominal or outside size."
    },
    {
      "id": "pipeLength",
      "label": "Pipe Length",
      "type": "number",
      "dimension": "length",
      "defaultValue": 10,
      "min": 0.01,
      "max": 1000,
      "step": 0.5,
      "help": "The total length of pipe run."
    }
  ],
  "sources": [
    {
      "label": "Standard cylinder volume formula: V = pi x r² x length"
    }
  ],
  "testCases": [
    {
      "name": "0.75in ID, 10m length",
      "inputs": {
        "innerDiameter": 0.01905,
        "pipeLength": 10
      },
      "expected": 0.75,
      "toleranceDecimalPlaces": 1,
      "unit": "gallons",
      "confidence": "high",
      "steps": [
        {
          "label": "Volume (liters)",
          "value": 2.850229569923426,
          "unit": "liters"
        },
        {
          "label": "Volume (in³)",
          "value": 173.931679886246,
          "unit": "in³"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "2in ID, 5m length",
      "inputs": {
        "innerDiameter": 0.0508,
        "pipeLength": 5
      },
      "expected": 2.68,
      "toleranceDecimalPlaces": 1,
      "unit": "gallons",
      "confidence": "high",
      "steps": [
        {
          "label": "Volume (liters)",
          "value": 10.134149581949954,
          "unit": "liters"
        },
        {
          "label": "Volume (in³)",
          "value": 618.4237507066522,
          "unit": "in³"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
