# Volume of solids > How much does this shape hold? Volume and surface area of boxes, cylinders, spheres, cones and seven more solids, in litres and gallons too. Volume and surface area of a box, cylinder, sphere, cone, pyramid, torus and more, with the capacity in litres and gallons and a sketch to scale. - Page: https://how.box/shape-volume/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/shape-volume/?s={s}&a={a}&b={b}&c={c}&u={u} - `s` (cuboid, cube, cylinder, sphere, cone, pyramid, frustum, hemisphere, capsule, torus or ellipsoid): Solid: cuboid, cube, cylinder, sphere, cone, pyramid, frustum, hemisphere, capsule, torus or ellipsoid. Example: `cuboid`. - `a` (number 0.000001 to 100000): First length in metres (length, side, radius, ring radius or semi-axis). Example: `4`. - `b` (number 0.000001 to 100000): Second length in metres (width, height, top radius, straight length, tube radius or semi-axis). Example: `3`. - `c` (number 0.000001 to 100000): Third length in metres (height or semi-axis). Example: `2`. - `u` (mm, cm, m, in, ft or yd): Length unit shown: mm, cm, m, in, ft or yd. Example: `m`. Example answer: https://how.box/shape-volume/?s=cuboid&a=4&b=3&c=2&u=m A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `shape_volume_calculate`: Volume and total surface area of a solid (CRC Standard Mathematical Tables §4.7–4.8; ellipsoid surface by Knud Thomsen's approximation, within 1.1 %). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"shape_volume_calculate","arguments":{"solid":"cuboid","a":4,"b":3,"c":2,"unit":"m"}}}` - GET: https://how.box/mcp/run/shape_volume_calculate?solid=cuboid&a=4&b=3&c=2&unit=m ## How it works Volume is how much space a solid fills, counted in cubes of the length unit: a box 4 m long, 3 m wide and 2 m high holds 4 × 3 × 2 = 24 cubes of 1 m × 1 m × 1 m, so 24 m³. A cubic metre is 1 000 litres, so that box holds 24 000 litres of water. The surface area is the total area of its faces, what you would paint or wrap. Solids with a constant cross-section, such as a box or a cylinder, are the base area times the height: a cylinder is π × r² × h. Pointed solids hold a third of that: a cone is π × r² × h / 3 and a pyramid l × w × h / 3. A sphere is 4/3 × π × r³; a sphere 1 m across (r = 0.5 m) holds about 0.52 m³, or 524 litres. Source: CRC Standard Mathematical Tables and Formulae. Every volume here is exact for the ideal shape. The ellipsoid's surface has no simple formula and uses Knud Thomsen's approximation, within about 1 %. Real containers have walls, sloping floors and rounded corners, so measure the inside and use an average depth. ## FAQ **How many litres are in a cubic metre?** Exactly 1 000. A litre is a cube 10 cm on each side, and ten of those fit along each edge of a cubic metre. **How do I work out the volume of a pool with a sloping floor?** Use the average depth: add the shallow and the deep end and halve it. For a pool 1 m deep at one end and 2 m at the other, use 1.5 m. **Why is a cone a third of a cylinder?** A cone narrows to a point, so its slices shrink with the square of the height; adding them up gives exactly one third of the cylinder with the same base and height. **Is a US gallon the same as an imperial gallon?** No. A US gallon is 3.785 litres and an imperial (UK) gallon 4.546 litres, so the same tank holds fewer imperial gallons. **Should I measure the inside or outside of a container?** Use inside measurements for capacity. Outside measurements include the walls and can overestimate how much the container holds. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)