Volume Calculator: Master Every 3D Shape Formula in Seconds
Learn how to calculate the volume of a box, cube, cylinder, sphere, cone, and pyramid with the free online Volume Calculator — instant results in cm³, m³, in³, ft³, liters, and US gallons.
Table of Contents
How much water fits in that aquarium? How many cubic feet of shipping space does your box occupy? How much concrete do you need to fill a conical footing? These questions all come down to one thing: volume. And while the formulas themselves are simple, unit confusion and mental arithmetic are where most mistakes happen.
The Volume Calculator removes all of that friction. Pick a shape — box, cube, cylinder, sphere, cone, or pyramid — enter your dimensions in metric or imperial units, and get the volume instantly in six units at once: cm³, m³, in³, ft³, liters, and US gallons. The tool even shows the formula with your actual numbers substituted in, so you can see exactly how the result was computed.
Best of all, every calculation runs 100% client-side in your browser. Nothing is uploaded, nothing is logged — which makes it safe for proprietary dimensions, client projects, or classroom use.
Why Use the Volume Calculator?
- Six shapes in one place. Box, cube, cylinder, sphere, cone, and pyramid — no need to hunt for a separate calculator for each solid.
- Dual unit systems. Toggle between Metric (centimeters) and Imperial (inches) inputs. The output converts automatically, so 40 cm and 15.748 in produce identical results.
- Six simultaneous outputs. See cm³, m³, in³, ft³, liters, and US gallons side by side — perfect when a spec sheet mixes units.
- Transparent formulas. The tool displays the exact formula with your values substituted (e.g., V = π × 5² × 10 = 785.4 cm³), turning every calculation into a mini lesson.
- Copy-ready results. One click copies the full result summary — every unit, formatted and ready to paste into an email, quote, or report.
- Private by design. All math happens locally in your browser. Sensitive dimensions never leave your machine.
Key Features
| Feature | What It Does |
|---|---|
| Shape selector | Choose from 6 common 3D solids |
| Unit system toggle | Enter dimensions in Metric (cm) or Imperial (in) |
| Live formula display | Shows the substituted formula with your actual numbers |
| 6-unit output grid | cm³, m³, in³, ft³, liters, and US gallons at once |
| Copy to clipboard | Copies a formatted summary of every result unit |
| Client-side engine | Instant results with zero network calls |
The conversion chain is worth understanding: dimensions are converted to cubic centimeters internally, then converted out to every display unit. A US liquid gallon is defined as exactly 3.785411784 liters, and the tool uses that exact factor — no rounded approximations that drift over large tanks.
The formula display updates live as you type. If you're teaching or double-checking homework, you can read off each intermediate step instead of trusting a black box.
How to Use the Volume Calculator
- Choose your shape from the selector: Box, Cube, Cylinder, Sphere, Cone, or Pyramid. The input fields adapt to the shape you pick.
- Pick a unit system — Metric (cm) or Imperial (in). All dimension inputs follow this setting.
- Enter the dimensions. A box needs length, width, and height; a sphere only needs a radius; a cylinder needs radius and height.
- Read your results. The primary result appears in your active unit system, with the full 6-unit grid (cm³, m³, in³, ft³, liters, US gallons) right below.
- Copy the summary with the copy button when you need the numbers in a document, email, or spreadsheet.
Volume Formulas Explained
Rectangular Solids: Box and Cube
A box (rectangular prism) is the workhorse of shipping and storage:
V = length × width × height
A box measuring 30 × 20 × 15 cm has a volume of 9,000 cm³ — exactly 9 liters. A cube is the special case where all three dimensions are equal: V = s³. A 12-inch cube is 1,728 in³, and since 1 ft³ = 1,728 in³, that cube is exactly 1 cubic foot. That's not a coincidence — the cubic-foot definition comes from 12³.
Circular Solids: Cylinder, Sphere, and Cone
A cylinder multiplies the circular base area by height:
V = π × r² × h
A cylinder with radius 5 cm and height 10 cm: π × 5² × 10 = 785.4 cm³ ≈ 0.785 liters. Cylinders dominate real-world capacity questions because tanks, pipes, and cans are all cylindrical.
A sphere uses a different relationship — volume scales with the cube of the radius:
V = (4/3) × π × r³
A sphere with a 10 cm radius: (4/3) × π × 10³ ≈ 4,188.8 cm³. Because r is cubed, doubling the radius multiplies the volume by 8 — a common trap when sizing balls, domes, or spherical tanks.
A cone is exactly one-third of the cylinder that contains it:
V = (1/3) × π × r² × h
The same r = 5, h = 10 cylinder above holds 785.4 cm³; the matching cone holds 261.8 cm³. That 1:3 ratio is one of the most elegant results in classical geometry.
Pyramids
A pyramid follows the same one-third rule, with a rectangular base instead of a circular one:
V = (1/3) × length × width × height
A pyramid with a 10 × 10 cm base and 12 cm height: (1/3) × 10 × 10 × 12 = 400 cm³. Like cones, a pyramid fills exactly one-third of the prism around it.
Practical Use Cases
Aquarium and Tank Sizing
Fish tank capacities are quoted in liters or gallons, but dimensions are usually listed in centimeters or inches. Enter the interior dimensions as a box — say 80 × 35 × 40 cm — and read the liter output directly (112 L). Subtract 10–15% for substrate and headroom to get realistic water volume, which determines filter flow rate, heater wattage, and stocking levels.
Shipping and Freight
Carriers charge by dimensional weight, which is derived from the package volume in cubic inches or cubic feet. A 24 × 18 × 12-inch box is 5,184 in³ = 3 ft³. Having all units on screen at once lets you compare against a carrier's rate table without a second conversion step.
Concrete and Construction
Concrete is ordered in cubic meters or cubic yards, but forms are often built in mixed units. Pouring a cylindrical footing with a 20 cm radius and 60 cm depth? π × 20² × 60 = 753,982 cm³ ≈ 0.754 m³ — and the tool shows the m³ value directly, so you can order by the truckload fraction with confidence. Always add 5–10% for spillage and uneven subgrade.
HVAC and Room Volume
Air conditioner sizing depends on room volume. A 4 × 3 × 2.6-meter room is 31.2 m³ — a number that feeds directly into air-change-per-hour calculations and BTU estimates. The m³ output saves you from juggling meter-to-feet conversions when comparing equipment specs quoted in different units.
Best Practices
- Measure interior dimensions for capacity questions — tank walls and packaging material can shave off several percent.
- Keep the unit system consistent. Enter everything in cm or everything in inches; mixing units is the single most common source of errors.
- Double-check radius vs. diameter. Tanks are usually quoted by diameter; the formula needs the radius. Halve it before entering.
- Use the shown formula to sanity-check. If π × r² × h displays a number that looks off, verify the inputs — not the math.
- Watch the metric prefix jumps. 1 m³ = 1,000,000 cm³ = 1,000 liters. Large numbers in cm³ are easy to misread; the tool's m³ and liter columns exist for exactly this reason.
- Add a margin for real-world materials. Concrete, soil, and water treatments all need headroom — order 5–10% above the calculated volume.
Conclusion
Volume math is simple until units and shape variety get in the way. The Volume Calculator handles all six common solids, converts between metric and imperial automatically, and shows its work with live substituted formulas. Whether you're sizing a fish tank, quoting freight, or ordering concrete, you get every unit you need in one screen — privately, instantly, and for free.
Give it a try with your next project measurement and see how much time you save.
Related Tools You Might Like
- Unit Converter — convert length, weight, and capacity units when a spec sheet doesn't match your dimensions.
- Surface Area Calculator — compute the surface area of the same six shapes, ideal for paint, coating, and material estimates.
- Triangle Calculator — solve 2D triangle sides, angles, and area when your geometry problem stays flat instead of volumetric.
Happy calculating!