HomeEveryday Numbers › Volume Calculator

Volume Calculator

Pick a solid and enter its dimensions: cube, cylinder, sphere, cone, rectangular tank, capsule, or square pyramid. The rectangular tank mode also takes an optional fill depth, returning the filled volume and fill percentage — handy for aquariums and storage tanks.

Example: with Solid Cube · Edge (a) 3 → Volume: 27 units³.

Computed by the calculator below using its default values. Change any input to see your own numbers.

Volume
Filled volume
Fill level
Formula

Substitution

Volume in three moves

Almost every volume formula is base area × height, sometimes with a correction. Prisms and cylinders take it literally: a box is l·w·h and a cylinder is πr²h. Pointed solids — cones and pyramids — hold exactly one third of their enclosing prism. The sphere stands alone at 4⁄3πr³, and a capsule is simply a cylinder plus the sphere formed by its two end caps. Because volume scales with the cube of size, doubling every dimension gives 8× the capacity — the reason small tanks fill so much faster than intuition expects.

How it’s calculated

Cube: a³. Cylinder: πr²h. Sphere: 4⁄3πr³. Cone: ⅓πr²h. Rectangular tank: l·w·h, with filled volume l·w·d for fill depth d ≤ h. Capsule: πr²(4⁄3·r + h), h = cylinder section. Square pyramid: ⅓a²h. Results are in your input unit cubed; 1 ft³ = 7.4805 US gallons, 1 m³ = 1,000 L.

Results update as you type and are for education, not professional advice — double-check any number that matters.

Common mistakes

  • Using the diameter as the radius — it inflates a cylinder volume 4× and a sphere volume 8×.
  • Forgetting the ⅓ on cones and pyramids — the most common volume error there is.
  • Mixing units — a radius in inches with a height in feet gives nonsense; convert first, then multiply.

Frequently asked questions

How do I convert the result to gallons or liters?

Multiply cubic feet by 7.4805 for US gallons, or cubic meters by 1,000 for liters. The 24 ft³ example tank holds about 180 gallons; filled to 9 ft³ it contains about 67 gallons.

How does the fill-depth option work?

For a rectangular tank, the contents form a smaller box: filled volume = length × width × depth, and fill percent = depth ÷ height. Enter a depth up to the tank height, in the same unit as the other dimensions.

Why are cones and pyramids exactly one third?

Slice a pointed solid into thin layers: each layer shrinks with the square of its distance from the apex, and summing that square factor over the height yields ⅓ — you can also dissect a cube into three identical pyramids to see it directly.

What height does the capsule formula want?

The cylinder section only. A capsule 9 units end-to-end with r = 2 has h = 9 − 2×2 = 5, giving π×4×(8/3 + 5) = 96.34.

Does this handle a horizontal cylindrical tank partially filled?

No — partial fills of a lying cylinder need a circular-segment formula, not covered here. The fill-depth option applies to rectangular (vertical-sided) tanks, where depth scales linearly.