{
  "slug": "volume",
  "title": "Volume Calculator",
  "heading": "Volume Calculator",
  "category": "math",
  "url": "https://www.revenuelab.fyi/toolbox/volume",
  "summary": "Box, cylinder, or sphere.",
  "description": "Computes volume for the three most common 3-D shapes.",
  "formula": null,
  "dateModified": "2026-10-03",
  "run_url": "https://www.revenuelab.fyi/api/public/calc?tool=volume",
  "inputs": [
    {
      "id": "shape",
      "label": "Shape",
      "kind": "select",
      "hint": null,
      "default": "box",
      "options": [
        {
          "value": "box",
          "label": "Rectangular box"
        },
        {
          "value": "cylinder",
          "label": "Cylinder"
        },
        {
          "value": "sphere",
          "label": "Sphere"
        }
      ]
    },
    {
      "id": "a",
      "label": "Dim 1 (length / radius)",
      "kind": "number",
      "hint": null,
      "default": 5,
      "unit": null,
      "min": null,
      "max": null
    },
    {
      "id": "b",
      "label": "Dim 2 (width / height, sphere ignores)",
      "kind": "number",
      "hint": null,
      "default": 3,
      "unit": null,
      "min": null,
      "max": null
    },
    {
      "id": "c",
      "label": "Dim 3 (height for box)",
      "kind": "number",
      "hint": null,
      "default": 2,
      "unit": null,
      "min": null,
      "max": null
    }
  ],
  "outputs": [
    {
      "id": "volume",
      "label": "Volume",
      "format": "decimal",
      "hint": null,
      "primary": true
    }
  ],
  "worked_example": {
    "inputs": [
      "Shape: Rectangular box",
      "Dim 1 (length / radius): 5",
      "Dim 2 (width / height, sphere ignores): 3",
      "Dim 3 (height for box): 2"
    ],
    "outputs": [
      "Volume: 30"
    ]
  },
  "how_to": {
    "title": "How to use this",
    "steps": [
      "Enter shape.",
      "Enter dim 1 (length / radius).",
      "Enter dim 2 (width / height, sphere ignores).",
      "Enter dim 3 (height for box).",
      "Read your volume on the right — it updates as you type.",
      "Hit Share to keep the scenario or send it to someone."
    ]
  },
  "scenarios": [
    {
      "name": "Conservative",
      "description": "Lower-end numbers — what if things land soft?",
      "values": {
        "shape": "box",
        "a": 3,
        "b": 1.7999999999999998,
        "c": 1.2
      }
    },
    {
      "name": "Typical",
      "description": "Defaults — the most common real-world setup.",
      "values": {
        "shape": "box",
        "a": 5,
        "b": 3,
        "c": 2
      }
    },
    {
      "name": "Ambitious",
      "description": "Higher-end numbers — what if things really pop?",
      "values": {
        "shape": "box",
        "a": 8,
        "b": 4.800000000000001,
        "c": 3.2
      }
    }
  ],
  "limitations": [
    "Results are rounded for display; the underlying calculation keeps full precision.",
    "Very large or very small inputs may hit floating-point limits in the browser.",
    "Inputs outside the accepted range are clamped rather than rejected."
  ],
  "faq": [
    {
      "q": "How does the volume calculator work?",
      "a": "Computes volume for the three most common 3-D shapes."
    },
    {
      "q": "What do I need to enter?",
      "a": "4 values: shape, dim 1 (length / radius), dim 2 (width / height, sphere ignores), and dim 3 (height for box). Each field starts with a sensible default, so you can change one number at a time and watch the result move."
    },
    {
      "q": "What does the volume result mean?",
      "a": "It is returned as a decimal number and updates live as you edit the inputs, so you can compare two or three versions of a scenario in a few seconds."
    },
    {
      "q": "Is this calculator free, and do I need an account?",
      "a": "Yes, it's free, and no account is required. Nothing you type is stored on our servers — the maths runs entirely in your browser."
    },
    {
      "q": "How accurate is the result?",
      "a": "It applies the standard formula exactly, so the arithmetic is precise. Results are rounded for display; the underlying calculation keeps full precision."
    },
    {
      "q": "Who is this tool for?",
      "a": "It's built for students, developers, and anyone who needs the answer right now without setting up a spreadsheet."
    }
  ],
  "related": [
    "https://www.revenuelab.fyi/toolbox/area"
  ],
  "license": "CC-BY-4.0",
  "citation": "RevenueLab — Volume Calculator (https://www.revenuelab.fyi/toolbox/volume)"
}