How Do You Calculate Volume?
The National Institute of Standards and Technology (NIST) defines volume as the measurement of the amount of space occupied inside the three-dimensional space, measured in cubic units. For a rectangular bin, NIST gives the capacity as length × width × depth, and when all dimensions are in the same unit, the computed volume is in the cube of that unit: lengths in feet give cubic feet. A box of 10 feet by 8 feet by 4 feet, the values filled in the calculator, is 10 × 8 × 4 = 320 cubic feet, the total the calculator shows.
By FiftyCalc · Updated November 10, 2026, first published November 10, 2026
How it is calculated
NIST notes that calculating volume is important when purchasing fuel, estimating beverages for a birthday celebration, planning hydration for a long hike, or selecting an appropriate storage container. Its tip is to express all dimensions in the same unit, so that the computed volume is in the cube of that unit, such as cubic meters. The calculator takes a shape and its dimensions in a single unit, inches, feet, centimeters or meters, and gives the volume in cubic units, liters and U.S. gallons.
For a cube, a rectangular solid whose sides are equal, the volume is side × side × side: a cube with sides of 3 feet has a volume of 3 × 3 × 3 = 27 cubic feet. NIST gives the volume of a cylinder as 0.7854 × diameter × diameter × height, the diameter being twice the radius. NIST's coefficient 0.7854 is an approximation of π/4: for a cylinder with a radius of 2 feet, so a diameter of 2 × 2 = 4 feet, and a height of 5 feet, it gives 0.7854 × 4 × 4 × 5 = 62.832 cubic feet. The calculator uses π and displays 62.8319 cubic feet for the same cylinder. For a square pyramid with a base side of 4 feet and a height of 6 feet, the calculator shows 32 cubic feet. For round solids, it shows 113.0973 cubic feet for a sphere with a radius of 3 feet, 56.5487 for a hemisphere of the same radius, and 25.1327 for a cone with a radius of 2 feet and a height of 6 feet.
NIST notes that the SI unit of volume is the cubic meter, and that the liter is a special name for the cubic decimeter. Its table of common units gives 1000 cubic centimeters as 1 cubic decimeter, and 1 cubic decimeter as 1 liter. A box of 20 by 10 by 5 centimeters is 20 × 10 × 5 = 1,000 cubic centimeters, which the calculator shows as 1 liter. In U.S. customary units, NIST's tables give 1 cubic yard as 27 cubic feet, and 1 U.S. gallon as exactly 231 cubic inches, or approximately 3.785 liters. A cube with sides of 12 inches, which is 1 cubic foot, has a volume of 12 × 12 × 12 = 1,728 cubic inches, and the calculator shows 28.3168 liters for it.
NIST gives the approximate capacity of a container having sloping sides as vertical height × one-half the sum of top area and bottom area; the calculator has no shape for such a container. It uses the dimensions you enter and does not subtract wall thickness; if those dimensions are outside measurements, the space inside can be smaller than the volume shown.
Worked example
Assumptions: a rectangular box of 10 feet by 8 feet by 4 feet, the values filled in the calculator. The volume is 10 × 8 × 4 = 320 cubic feet, the amount the calculator gives. The calculator converts this volume to 9,061.3909 liters, or 2,393.7662 U.S. gallons.
| Shape | Rectangular box (A × B × C) |
|---|---|
| Unit of the dimensions | Feet |
| Dimension A: side, length or radius | 10 |
| Dimension B: width or height | 8 |
| Dimension C: height (box only) | 4 |
| Volume (cubic units) | 320 |
|---|---|
| Volume (liters) | 9,061.3909 |
| Volume (US gallons) | 2,393.7662 |
Figures computed by this site's calculator from the inputs above. Run your own numbers: Volume Calculator
Frequently asked questions
How many gallons are in a cubic foot?
NIST's tables of equivalents give 1 cubic foot as about 7.481 gallons. For a cube with sides of 1 foot, the calculator shows 7.4805 gallons and 28.3168 liters.
What is the difference between volume and capacity?
NIST defines volume as the amount of space occupied inside the three-dimensional space, and capacity as the maximum amount that an object can contain, both measured in cubic units.
Is a liter the same as a cube of 10 centimeters?
Yes: NIST notes that a cube of 10 cm × 10 cm × 10 cm has a volume of 1 liter.
Sources
- Circumference, Area and Volume National Institute of Standards and Technology (NIST), Office of Weights and Measures checked on 2026-11-09
- SI Units – Volume National Institute of Standards and Technology (NIST), Office of Weights and Measures checked on 2026-11-09
- NIST Handbook 44 (2026), Appendix C, General Tables of Units of Measurement National Institute of Standards and Technology (NIST) checked on 2026-11-01
General information drawn from the official sources above, not tax or legal advice. Amounts change from year to year: check the source for your tax year.