{
  "id": "cubic-feet",
  "version": "27cc4601f23a",
  "status": "published",
  "name": "Cubic Feet Calculator",
  "question": "How many cubic feet is it?",
  "summary": "Computes the volume of a box or a cylinder, times how many, in cubic feet, with the same volume in cubic inches, cubic yards, cubic metres, US gallons and litres.",
  "category": "construction",
  "url": "https://www.acalculator.org/construction/cubic-feet-calculator",
  "markdown": "https://www.acalculator.org/construction/cubic-feet-calculator.md",
  "kind": "function",
  "method": "box: length × width × height; cylinder: π × diameter² ÷ 4 × height; × how many",
  "assumptions": [
    "Each size may be in any length unit, including feet and inches together; the volume uses 1 ft = 12 in = 0.3048 m exactly.",
    "Gallons are US liquid gallons of 231 cubic inches."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "shape": {
        "title": "Shape",
        "description": "A box (rectangular prism), or a cylinder.",
        "type": "string",
        "enum": [
          "box",
          "cylinder"
        ]
      },
      "len": {
        "title": "Length",
        "description": "The length of the box.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 100000
      },
      "wid": {
        "title": "Width",
        "description": "The width of the box.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 100000
      },
      "dia": {
        "title": "Diameter",
        "description": "The diameter of the cylinder.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 100000
      },
      "h": {
        "title": "Height",
        "description": "The height of the box or cylinder.",
        "type": [
          "number",
          "string"
        ],
        "x-quantity": "length",
        "exclusiveMinimum": 0,
        "maximum": 100000
      },
      "qty": {
        "title": "How many",
        "description": "How many of these shapes.",
        "type": "integer",
        "minimum": 1,
        "maximum": 1000000
      }
    }
  },
  "outputs": {
    "cubicFeet": {
      "label": "Volume",
      "description": "The total volume in cubic feet.",
      "format": "quantity",
      "unit": "ft3"
    },
    "cubicInches": {
      "label": "Cubic inches",
      "description": "The total volume in cubic inches (1,728 in a cubic foot).",
      "format": "quantity",
      "unit": "in3"
    },
    "cubicYards": {
      "label": "Cubic yards",
      "description": "The total volume in cubic yards (27 cubic feet each).",
      "format": "quantity",
      "unit": "yd3"
    },
    "cubicMeters": {
      "label": "Cubic metres",
      "description": "The total volume in cubic metres.",
      "format": "quantity",
      "unit": "m3"
    },
    "gallons": {
      "label": "US gallons",
      "description": "The total volume in US gallons (231 cubic inches each).",
      "format": "quantity",
      "unit": "gal"
    },
    "liters": {
      "label": "Litres",
      "description": "The total volume in litres.",
      "format": "quantity",
      "unit": "L"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "shape": "box",
      "len": 1.2192,
      "wid": 0.9144000000000001,
      "dia": 0.6096,
      "h": 0.6096,
      "qty": 1
    },
    "outputs": {
      "cubicFeet": 0.6796043182080002,
      "cubicInches": 0.6796043182080002,
      "cubicYards": 0.6796043182080002,
      "cubicMeters": 0.6796043182080002,
      "gallons": 0.6796043182080002,
      "liters": 0.6796043182080002
    },
    "text": "The volume is 24 ft³."
  },
  "examples": [
    {
      "given": {
        "shape": "box",
        "len": 1.2192,
        "wid": 0.9144000000000001,
        "h": 0.6096,
        "qty": 1
      },
      "expect": {
        "cubicFeet": 0.679604318208
      },
      "source": "hand calculation in content.mdx: 4 × 3 × 2 = 24 ft³ = 179.5 US gal"
    },
    {
      "given": {
        "shape": "box",
        "len": 0.4572,
        "wid": 0.30479999999999996,
        "h": 0.254,
        "qty": 5
      },
      "expect": {
        "cubicFeet": 0.1769802912
      },
      "source": "hand calculation in content.mdx: 18 × 12 × 10 = 2,160 in³ = 1.25 ft³; × 5 = 6.25 ft³"
    },
    {
      "given": {
        "shape": "cylinder",
        "dia": 0.6096,
        "h": 0.9144000000000001,
        "qty": 1
      },
      "expect": {
        "cubicFeet": 0.26687999167876914
      },
      "source": "hand calculation in content.mdx: π × 2² ÷ 4 × 3 = 3π = 9.425 ft³"
    }
  ],
  "sources": [
    "NIST SP 811 (2008), Appendix B: 1 ft = 12 in = 0.3048 m exactly; 1 US gallon = 231 in³ = 3.785411784 L exactly."
  ],
  "related": [
    "cubic-yards",
    "concrete",
    "pool-volume"
  ],
  "changelog": []
}
