Whether sizing a fish tank, a concrete footing, or a shipping box, volume is the three-dimensional space inside — length times width times height for a cube, but π×r²×h for a cylinder and 4/3×π×r³ for a sphere. Getting the shape and units wrong by one conversion (feet vs inches) throws the result off by 1,728× (12³), and ordering concrete or water capacity with the wrong units wastes hundreds of dollars. A volume calculator that handles cubes, spheres, cylinders, cones, pyramids, and more with any unit (feet, inches, meters, gallons, liters) does the math and converts units in one view, per NIST.
This expanded A-to-Z guide explains how to calculate the volume of any shape — the formulas by shape with derivations, step-by-step calculation, unit conversions (cubic feet, cubic meters, liters, gallons, cubic yards), real-world examples for aquariums, concrete, and shipping, common mistakes, and how to use the calculator for any unit — with references to NIST Handbook 44, Maths is Fun: Volume, and Wikipedia: Volume.
What Is Volume?
Volume is the three-dimensional space enclosed by a shape — measured in cubic units (cubic feet, cubic inches, cubic meters) and convertible to capacity (liters, gallons) for liquids. Per NIST and Wikipedia: Volume, volume is length cubed for a cube, and the base area times height for prisms and cylinders. One cubic foot is 1,728 cubic inches (12³), 7.48052 US gallons, 28.3168 liters, and 0.037037 cubic yards (1 ÷27). A 12×12×12 inch cube is 1,728 cu in =1 cu ft =7.48 gallons =28.32 liters — the same space in four units, which is why unit handling matters.
Volume appears in construction (concrete in cubic yards), aquariums (gallons), shipping (cubic feet for dimensional weight), HVAC (room volume in cu ft for BTU), and science (liters). The same 10×12×8 ft room is 960 cu ft for HVAC, but the concrete for its 4-inch slab is 960×0.33=317 cu ft ÷27=11.74 yd³ — different formulas for different contexts, but the same unit conversions.
Volume Formulas — By Shape (With Derivations)
| Shape | Formula | Example | Use For |
|---|---|---|---|
| Cube / Rectangular Prism | L × W × H | 12×12×12 in =1,728 cu in =1 cu ft | Box, room, slab, footing |
| Cylinder | π × r² × h | r=6in, h=12in → 3.14×36×12=1,357 cu in =0.785 cu ft | Pipe, tank, column, sonotube |
| Sphere | 4/3 × π × r³ | r=6in → 4/3×3.14×216=904 cu in =3.91 gal | Ball, tank, dome |
| Cone | 1/3 × π × r² × h | r=6in, h=12in → 452 cu in =1.96 gal | Funnel, conical pile |
| Pyramid (square base) | 1/3 × base² × h | 6×6 base, h=12 → 144 cu in | Pyramid, hopper |
| Triangular Prism | 1/2 × base × height × length | Base 6, height 4, length 10 →120 cu in | Wedge, prism |
Why these formulas? Cube is base area (L×W) times height; cylinder is circular base area (πr²) times height; sphere is 4/3 the cylinder that encloses it (Archimedes); cone is 1/3 the cylinder with same base and height; pyramid is 1/3 the prism. Understanding the derivation helps remember: volume is always base area × height (with 1/3 for pointed tops and 4/3 for spheres). Per Maths is Fun, this intuition prevents mixing up cylinder and cone.
How to Calculate Volume — Step-by-Step
- Pick the shape and measure: Cube: L×W×H in consistent units (all inches or all feet); Cylinder: diameter (÷2 for r) and height; Sphere: diameter (÷2 for r); Cone/Pyramid: base and height. Measure in the unit that matches the tape — e.g., 10ft 6in → 10.5 ft, not 10.6. For a cylinder tank, measure inner diameter for capacity, outer for displacement.
- Apply the formula: The calculator does L×W×H, π×r²×h, etc., with π=3.14159265. For a 10×12×8 ft room, volume is 960 cu ft — useful for HVAC sizing (BTU per cu ft, typically 20 BTU/cu ft for heating). For a 4ft diameter, 4ft tall cylindrical tank, r=2ft, volume is 3.14×4×4=50.27 cu ft =376 gallons.
- Convert units: The result is shown in cubic feet, cubic inches (×1,728), cubic yards (÷27), cubic meters (÷35.3147), liters (cu ft×28.3168), US gallons (cu ft×7.48052), and UK gallons (÷1.20095). For shipping, cubic feet determines dimensional weight (e.g., FedEx: (L×W×H)/139 for domestic US); for aquariums, US gallons (cu ft×7.48) determines stocking and filtration; for concrete, cubic yards (cu ft÷27) determines truck order.
Unit handling example: A 12×12×12 inch cube is 1,728 cu in =1 cu ft =0.0283 cu m =28.32 liters =7.48 US gallons =6.23 UK gallons. Entering 12in, 12in, 12in yields all six at once — no manual 1,728 or 28.32 multiplication.
Unit Conversions — Cubic and Capacity
| From | To | Multiply By | Example |
|---|---|---|---|
| Cubic feet | Cubic inches | 1,728 | 1 cu ft =1,728 cu in |
| Cubic feet | Cubic yards | 0.037037 (÷27) | 27 cu ft =1 cu yd (concrete) |
| Cubic feet | Liters | 28.3168 | 1 cu ft =28.32 L |
| Cubic feet | US gallons | 7.48052 | 1 cu ft =7.48 gal (aquarium) |
| Cubic meters | Cubic feet | 35.3147 | 1 cu m =35.31 cu ft |
Per NIST, these are exact conversion factors. The calculator handles any input unit (feet, inches, yards, meters, cm) and shows all outputs, so a European design in meters and a U.S. order in cubic yards match without manual tables.
Common Examples — Real Life
- Fish tank 48×18×21 in (L×W×H): 48×18×21=18,144 cu in ÷1,728=10.5 cu ft ×7.48052=78.5 US gallons (÷231 for gallons via cubic inches: 18,144÷231=78.5 — both give the same). Stocking rule: 1 inch of fish per gallon — 78 gallons → ~78 inches of fish.
- Concrete footing 40ft×16in×8in (L×W×D): Convert to feet: 40×1.333×0.667=35.56 cu ft ÷27=1.317 cu yd +10% waste (0.13) →1.45 yd³, order 1.5 yd³. For bags: 35.56 cu ft ÷0.6 (80lb bag) =59.3 →60×80lb bags.
- Shipping box 12×12×12 in: 1,728 cu in =1 cu ft =0.0283 cu m. Dimensional weight (FedEx US: L×W×H÷139) =1,728÷139=12.43 lb DIM — chargeable if DIM > actual weight. The calculator shows both cu ft and DIM.
- Cylindrical water tank, 4ft dia, 4ft tall: r=2ft, π×4×4=50.27 cu ft ×7.48=376 US gallons capacity. Fill to 90% for expansion →338 gallons usable.
- Room for HVAC: 10×12×8 ft: 960 cu ft ×20 BTU/cu ft (rule of thumb, varies by climate and insulation) =19,200 BTU → ~1.6 tons (12,000 BTU/ton) → 2-ton unit recommended. Volume, not just square footage, drives HVAC sizing for high ceilings.
Common Mistakes and How to Avoid Them
- Mixing units: Feet × inches (without converting inches to feet) yields 12× too large. Convert inches to feet first: 12ft ×6in →12×0.5=6 sq ft per linear foot of area, and for volume 12×0.5×8=48 cu ft, not 12×6×8=576. The calculator enforces consistent units per field.
- Forgetting to halve diameter: Cylinder uses radius (÷2), not diameter — 12in diameter is r=6in, not 12. Using diameter doubles the volume (4× for area).
- Confusing cubic and square: 12×12×12 in is 1,728 cu in (cubic), not 144 sq in (square). Cubic is 12³, square is 12².
- Not converting for capacity: Cubic feet to gallons is ×7.48, not 1:1. A 10 cu ft tank is 74.8 gallons, not 10.
Tips — When to Use Which Unit
- Construction (concrete): Cubic yards (truck order, 1 yd³ minimum). Add 10% waste for slabs/footings.
- Aquariums and tanks: US gallons (7.48 per cu ft) or liters (28.32 per cu ft) — stocking and filtration are per gallon.
- Shipping: Cubic feet and dimensional weight (DIM) — carriers charge by greater of actual vs DIM.
- Science and metric: Cubic meters and liters — 1 cu m =1,000 liters exactly per SI.
- HVAC: Cubic feet (room volume) for BTU, not just square feet — high ceilings increase volume without increasing floor area.
FAQs About Calculating Volume
How do you calculate the volume of a cube?
Length × Width × Height in the same units — e.g., 12×12×12 in =1,728 cu in =1 cu ft =7.48 gallons. For a rectangular prism, the same L×W×H applies.
How do you calculate the volume of a cylinder?
π × radius² × height — e.g., r=6in, h=12in → 3.14×36×12=1,357 cu in =0.785 cu ft. Measure diameter and halve for radius.
How do you convert cubic feet to gallons?
Multiply by 7.48052 for US gallons — e.g., 1 cu ft =7.48 US gal, 10 cu ft =74.8 gal. For UK gallons, divide US gallons by 1.20095; for liters, multiply cu ft by 28.3168.
How do you calculate the volume of a sphere?
4/3 × π × r³ — e.g., r=6in → 4/3×3.14×216=904 cu in =3.91 US gallons. Diameter ÷2 = radius.
What is the difference between volume and capacity?
Volume is cubic units (cu ft); capacity is liquid units (gallons, liters) for the same space. They convert via 1 cu ft =7.48 US gal =28.32 L per NIST.
How do you calculate volume for an irregular shape?
Split into cubes, cylinders, and spheres, calculate each volume, and sum. For complex shapes, water displacement (submerge and measure overflow in liters) is the practical method per Archimedes.
Conclusion
Calculating volume is the shape's formula with consistent units — L×W×H for cubes, πr²h for cylinders, 4/3πr³ for spheres — then converting cubic units to the capacity unit needed (gallons for tanks, cubic yards for concrete, cubic feet for shipping) via NIST factors. A calculator that handles any shape and any input unit does the math and conversions in one view, preventing the 1,728× error of mixing feet and inches.
Enter the dimensions in any unit — feet, inches, meters, or a mix — to get volume in cubic feet, cubic inches, cubic meters, cubic yards, liters, US gallons, and UK gallons instantly.