{
  "id": "pool-volume",
  "version": "cfa2d264b864",
  "status": "published",
  "name": "Pool Volume Calculator",
  "question": "What is my pool’s volume?",
  "summary": "Computes the water volume of a rectangular, round or oval pool from its length, width or diameter and its shallow and deep end depths, in US gallons, litres, cubic feet and cubic metres.",
  "category": "construction",
  "url": "https://www.acalculator.org/construction/pool-volume-calculator",
  "markdown": "https://www.acalculator.org/construction/pool-volume-calculator.md",
  "kind": "function",
  "method": "volume = surface area × (shallow depth + deep depth) ÷ 2; rectangle: length × width; round: π × diameter² ÷ 4; oval: π × length × width ÷ 4",
  "assumptions": [
    "The floor slopes evenly from the shallow end to the deep end, so the average depth is the mean of the two. A hopper or a sharp break in the floor changes the volume.",
    "An oval is a true ellipse. Pools with straight sides and round ends hold more.",
    "Sizes are inside the walls, and depths are to the water line, not the top of the wall.",
    "Gallons are US gallons of 231 cubic inches."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "shape": {
        "title": "Shape",
        "description": "The shape of the pool from above.",
        "type": "string",
        "enum": [
          "rectangle",
          "round",
          "oval"
        ]
      },
      "len": {
        "title": "Length",
        "description": "The inside length of the pool.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 1000
      },
      "wid": {
        "title": "Width",
        "description": "The inside width of the pool.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 1000
      },
      "dia": {
        "title": "Diameter",
        "description": "The inside diameter of the round pool.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 1000
      },
      "shallow": {
        "title": "Shallow end depth",
        "description": "The water depth at the shallow end.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 1000
      },
      "deep": {
        "title": "Deep end depth",
        "description": "The water depth at the deep end. Enter the same depth for a pool with a flat floor.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 1000
      }
    }
  },
  "outputs": {
    "gallons": {
      "label": "Water",
      "description": "The volume of water in US gallons.",
      "format": "quantity",
      "unit": "gal"
    },
    "liters": {
      "label": "Litres",
      "description": "The volume of water in litres.",
      "format": "quantity",
      "unit": "L"
    },
    "cubicFeet": {
      "label": "Cubic feet",
      "description": "The volume of water in cubic feet.",
      "format": "quantity",
      "unit": "ft3"
    },
    "cubicMeters": {
      "label": "Cubic metres",
      "description": "The volume of water in cubic metres.",
      "format": "quantity",
      "unit": "m3"
    },
    "averageDepth": {
      "label": "Average depth",
      "description": "The mean of the shallow and deep end depths.",
      "format": "quantity",
      "unit": "ft"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "shape": "rectangle",
      "len": 9.7536,
      "wid": 4.8768,
      "dia": 7.315200000000001,
      "shallow": 1.0668,
      "deep": 1.8288000000000002
    },
    "outputs": {
      "gallons": 68.866570911744,
      "liters": 68.866570911744,
      "cubicFeet": 68.866570911744,
      "cubicMeters": 68.866570911744,
      "averageDepth": 1.4478
    },
    "text": "The pool holds about 18,193 gal of water."
  },
  "examples": [
    {
      "given": {
        "shape": "rectangle",
        "len": 9.7536,
        "wid": 4.8768,
        "shallow": 1.0668,
        "deep": 1.8288000000000002
      },
      "expect": {
        "cubicFeet": 68.866570911744,
        "gallons": 68.86657091174399
      },
      "source": "hand calculation in content.mdx: 32 × 16 × (3.5 + 6) ÷ 2 = 2,432 ft³ × 1,728 ÷ 231 = 18,193 gal"
    },
    {
      "given": {
        "shape": "round",
        "dia": 7.315200000000001,
        "shallow": 1.2192,
        "deep": 1.2192
      },
      "expect": {
        "cubicFeet": 51.24095840232368
      },
      "source": "hand calculation in content.mdx: π × 24² ÷ 4 × 4 = 576π = 1,809.6 ft³ = 13,536 gal"
    },
    {
      "given": {
        "shape": "oval",
        "len": 9.144,
        "wid": 4.572,
        "shallow": 1.3716000000000002,
        "deep": 1.3716000000000002
      },
      "expect": {
        "cubicFeet": 45.03599859579229
      },
      "source": "hand calculation in content.mdx: π × 30 × 15 ÷ 4 × 4.5 = 1,590.4 ft³ = 11,897 gal"
    },
    {
      "given": {
        "shape": "rectangle",
        "len": 10,
        "wid": 5,
        "shallow": 1.2,
        "deep": 1.8
      },
      "expect": {
        "cubicMeters": 75,
        "liters": 75,
        "gallons": 75
      },
      "source": "hand calculation in content.mdx: 10 × 5 × (1.2 + 1.8) ÷ 2 = 75 m³ = 75,000 L = 19,813 gal",
      "tolerance": 1e-12
    }
  ],
  "sources": [
    "NIST SP 811 (2008), Appendix B: 1 US gallon = 231 in³ = 3.785411784 L exactly; 1 ft = 0.3048 m exactly."
  ],
  "related": [
    "cubic-feet",
    "cubic-yards"
  ],
  "changelog": []
}
