# Tank volume > How much liquid is in my tank? Capacity and partial fill for rectangular and cylindrical tanks. Calculate capacity, liquid volume and remaining space in a horizontal cylinder, vertical cylinder or rectangular tank from internal dimensions and fill depth. - Page: https://how.box/tank-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/tank-volume/?shape={shape}&length={length}&diameter={diameter}&width={width}&height={height}&depth={depth} - `shape` (horizontal, vertical or rectangular): Tank shape: horizontal, vertical, rectangular. Example: `horizontal`. - `length` (number 0.01 to 100): Axial length / vertical cylinder height, m, 0.01 to 100. Example: `2`. - `diameter` (number 0.01 to 100): Internal diameter, m, 0.01 to 100. Example: `1`. - `width` (number 0.01 to 100): Internal width, m, 0.01 to 100. Example: `1`. - `height` (number 0.01 to 100): Internal height, m, 0.01 to 100. Example: `1`. - `depth` (number 0 to 100): Liquid depth from bottom, m, 0 to 100. Example: `0.5`. Example answer: https://how.box/tank-volume/?shape=horizontal&length=2&diameter=1&width=1&height=1&depth=0.5 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `tank_volume_calculate`: Calculate capacity, liquid volume and remaining space in a horizontal cylinder, vertical cylinder or rectangular tank from internal dimensions and fill depth. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"tank_volume_calculate","arguments":{"shape":"horizontal","length":2,"diameter":1,"width":1,"height":1,"depth":0.5}}}` - GET: https://how.box/mcp/run/tank_volume_calculate?shape=horizontal&length=2&diameter=1&width=1&height=1&depth=0.5 ## How it works A rectangular tank holds length × width × depth. A vertical cylinder holds πr²d. For a horizontal cylinder, the liquid cross-section is a circular segment: A = r² acos((r−d)/r) − (r−d)√(2rd−d²), then V = A × L. Here r is the internal radius, d is liquid depth and L is the axial length. Assumes a level tank with flat ends and constant cross-section. Dished ends, domes, cone bottoms, tilt, wall thickness and expansion are excluded. No printable calibration chart is included. ## FAQ **Is half the depth always half the volume?** It is for a rectangular or vertical cylindrical tank. A horizontal cylinder is nonlinear, though its halfway depth is also half its volume. **Should I measure outside dimensions?** Use internal dimensions. Outer dimensions would include the tank walls. **Where is the depth measured?** Vertically from the lowest inside point to the liquid surface. **Does this include rounded ends?** No. The cylindrical model has flat ends; rounded or dished heads need a different volume model. **Does remaining space mean safe usable capacity?** It is only geometric capacity minus liquid volume. Required freeboard and operating limits are outside this calculation. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)