Volume Calculator
Volume
Working, step by step
To find the area of a flat shape, use our Area Calculator. For concrete by volume, use our Concrete Calculator. For other unit conversions, use our Unit Converter. To work with fractional dimensions, use our Fraction Calculator.
Last reviewed: 20 November 2026. Reviewed every 180 days; next review due 19 May 2027.
How to use the Volume Calculator
Pick the shape at the top of the calculator: rectangular box, cylinder, sphere, or cone. Then pick the unit your measurements are in: inches, feet, yards, centimeters, or meters. Type the dimensions into the boxes, and the answer updates as you type, with the formula and every step shown below it.
A box needs three numbers: length, width, and height. A cylinder and a cone each need two: the radius and the height. A sphere needs only one: the radius. The radius is half the diameter, the distance straight across the circle, so if you measured across, divide by 2 before you type it in.
The headline answer is the volume in the unit you measured in, cubed: feet give cubic feet, inches give cubic inches, meters give cubic meters. Underneath, the calculator converts the same volume into cubic inches, cubic feet, cubic yards, cubic centimeters, cubic meters, liters, and US gallons, so you can read the answer in whichever unit your project needs. The card for your own unit is highlighted.
Try the default: a box 2 feet long, 3 feet wide, and 4 feet high. The calculator gives 24 cubic feet, which is 679.604 liters or 179.532 US gallons. Change any number and watch the conversions follow. Decimals are welcome: a box 2.5 feet by 1.5 feet by 4 feet holds 15 cubic feet.
Every dimension must be greater than zero, and no more than 10,000. A zero or negative dimension is not a shape at all, so the calculator says so plainly instead of returning a volume of zero. If a dimension is missing, the calculator tells you which one to fill in.
How it works
Volume is the amount of three-dimensional space something takes up, or the amount it can hold. Maths is Fun describes it the same way: imagine how much water could fit inside. Each shape has its own formula, and the calculator shows the formula, the substitution, and the arithmetic for the shape you picked, so you can check every step. Pi is used at full precision in every calculation, and displayed answers are rounded to 6 significant figures.
Rectangular box
The volume of a box is length times width times height: V = length × width × height. Multiply the three sides and the answer is in cubic units. A cube is the special case where all three sides are equal: a cube with 10 cm sides holds 10 × 10 × 10 = 1,000 cm³, which is exactly 1 liter.
Worked example: Maths is Fun gives a cuboid 10 m long, 4 m wide, and 5 m high. Its volume is 10 × 4 × 5 = 200 m³. That is 200,000 liters, since each cubic meter holds 1,000 liters, and 7,062.93 cubic feet.
Cylinder
The volume of a cylinder is the area of its circular base times its height: V = π × radius² × height. Square the radius first, then multiply by pi and by the height. The height is the straight distance between the two flat ends.
Worked example: a cylinder with a radius of 3 ft and a height of 10 ft. Square the radius: 3² = 9. Multiply by pi and the height: π × 9 × 10 = 282.743 ft³. In liters that is 8,006.4 L, and in US gallons it is 2,115.07 gal, enough to fill about 42 standard 50-gallon drums.
Sphere
The volume of a sphere is V = (4 ÷ 3) × π × radius³. Cube the radius, multiply by pi, then multiply by 4 and divide by 3. Because the radius is cubed, doubling the radius multiplies the volume by 8: a ball twice as wide holds eight times as much.
Worked example: a sphere with a radius of 5 ft. Cube the radius: 5³ = 125. Multiply: (4 ÷ 3) × π × 125 = 523.599 ft³. That is 14,826.7 liters, or 3,916.79 US gallons.
Cone
The volume of a cone is V = (1 ÷ 3) × π × radius² × height. It is the cylinder formula divided by 3, because a cone holds exactly one third of the cylinder with the same base and height. The height is the straight vertical height from the base to the tip, not the slanted side.
Worked example: a cone with a radius of 4 ft and a height of 9 ft. Square the radius: 4² = 16. Multiply: (1 ÷ 3) × π × 16 × 9 = 150.796 ft³. The matching cylinder would hold 452.389 ft³, exactly three times as much.
What your result means
The headline number is the volume of the shape you described, in the cube of your measuring unit. The conversion cards underneath are the same volume in seven units, so you can match the unit your supplier, recipe, or manual uses. Concrete and soil are sold by the cubic yard, fuel and paint by the US gallon, bottles and tanks by the liter, and rooms and moving boxes by the cubic foot.
A fish tank is a good test. A tank 24 inches long, 12 inches wide, and 16 inches high holds 24 × 12 × 16 = 4,608 in³. That is 2.66667 ft³, 75.5116 liters, or 19.9481 US gallons, which is why tanks of this size are sold as 20-gallon tanks. The small gap is real: gravel, decorations, and the space below the rim all take up room, so the water you actually pour in is a little less than the calculated volume.
A moving box 18 inches by 18 inches by 24 inches holds 7,776 in³, which is 4.5 ft³. Moving companies charge by the cubic foot, so a box this size is four and a half cubic feet of truck space. Ten of them are 45 ft³.
For soil, mulch, and concrete, the cubic yard is the unit that matters. One cubic yard is 27 cubic feet: a pile 3 feet long, 3 feet wide, and 3 feet high. Our Concrete Calculator works out concrete orders by volume, including bag counts and the waste allowance most pours need.
Two measurements matter for any container: the inside dimensions give capacity, the outside dimensions give the space it takes up. A storage box with thick walls holds less than its outside size suggests. Measure the inside when you want to know what fits in it, and the outside when you want to know whether it fits in the truck. For flat shapes, where you need area rather than volume, use our Area Calculator. For dimensions in fractions, such as 2 1/2 feet, our Fraction Calculator can turn them into decimals first. And for conversions this page does not cover, our Unit Converter handles length, weight, volume, temperature, area, speed, and data with exact NIST factors.
Volume units explained
Every conversion on this page comes from exact definitions published by NIST, the National Institute of Standards and Technology. In 1959 the English-speaking nations agreed to define their length units in metric terms: the inch is exactly 25.4 millimeters, the yard is exactly 0.9144 meters, and the foot is exactly 0.3048 meters. Because the length definitions are exact, the volume definitions built on them are exact too: a cubic inch is 2.54 × 2.54 × 2.54 = 16.387064 cubic centimeters, exactly.
The US gallon is defined as exactly 231 cubic inches, which works out to 3.785411784 liters. NIST prints the factor as 3.785 412 liters in its conversion tables, rounded to seven digits. One cubic foot is 1,728 cubic inches, so it holds 1,728 ÷ 231 = 7.48052 US gallons. One cubic yard is 27 cubic feet, so it holds 201.974 US gallons.
On the metric side the definitions are powers of ten. A liter is exactly 1 cubic decimeter, a cube 10 cm on each side, so 1 liter is 1,000 cm³ and 1 cubic meter is 1,000 liters. A cubic centimeter is exactly 1 milliliter. That is why metric conversions are simple multiplications by 1,000, while US conversions use 1,728, 27, and 231.
Watch out for the imperial gallon, used in the UK: it is 4.54609 liters, about 20 percent larger than the US gallon. This calculator uses US gallons only. If a British source gives gallons, convert with the imperial figure, not this page's.
| Unit | Exact size | Where you meet it |
|---|---|---|
| Cubic inch (in³) | 16.387064 cm³ | Small parts, engine displacement |
| Cubic foot (ft³) | 1,728 in³; 28.316846592 L | Rooms, fridges, moving boxes |
| Cubic yard (yd³) | 27 ft³; 764.554857984 L | Soil, mulch, concrete |
| Cubic centimeter (cm³) | 1 mL | Medicine doses, small volumes |
| Cubic meter (m³) | 1,000,000 cm³; 1,000 L | Shipping, large tanks, earthworks |
| Liter (L) | 1,000 cm³; 1 dm³ | Bottles, tanks, fuel |
| US gallon (gal) | 231 in³; 3.785411784 L | Fuel, paint, aquariums |
Common mistakes to avoid
Using the diameter as the radius. The formulas need the radius, half the diameter. If you type the diameter into the radius box, a cylinder or cone answer comes out 4 times too big, and a sphere answer 8 times too big, because the radius is squared or cubed. Always halve the across measurement first.
Mixing units. Length in feet and height in inches cannot be multiplied together until they share a unit: 2 feet by 12 inches is not 2 × 12 of anything until the 12 inches become 1 foot. This calculator uses one unit for every dimension, which removes the trap, but measure in that unit from the start.
Forgetting to cube the conversion factor. One foot is 12 inches, but one cubic foot is 12 × 12 × 12 = 1,728 cubic inches. One yard is 3 feet, but one cubic yard is 3 × 3 × 3 = 27 cubic feet. Every linear conversion factor gets cubed when the unit is a volume.
Confusing US and imperial gallons. A US gallon is 3.785411784 liters; an imperial gallon is 4.54609 liters. A tank quoted at 100 imperial gallons holds 454.609 liters, not 378.541 liters.
Rounding too early. Rounding the radius before cubing it, or rounding pi to 3.14 before multiplying, shifts the answer more than rounding once at the end. This calculator keeps full precision through every step and rounds only the displayed answer, to 6 significant figures.
Measuring the wrong side of the wall. Outside dimensions give the space an object takes up; inside dimensions give what it holds. For a tank, a planter, or a storage box, the inside measurement is the one that decides capacity, and thick walls can make the two answers differ by more than you expect.
Frequently asked questions
How do you calculate the volume of a box?
Multiply length times width times height, all in the same unit. A 2 ft by 3 ft by 4 ft box is 2 × 3 × 4 = 24 ft³. The answer is in cubic units: feet give cubic feet, inches give cubic inches, and meters give cubic meters.
What is the formula for the volume of a cylinder?
The volume of a cylinder is π × radius² × height. A cylinder with radius 3 ft and height 10 ft is π × 3² × 10 = π × 90 = 282.743 ft³. Use the radius, not the diameter: the diameter is twice the radius, so using it by mistake makes the answer 4 times too big.
How do you find the volume of a sphere?
The volume of a sphere is (4 ÷ 3) × π × radius³. A sphere with radius 5 ft is (4 ÷ 3) × π × 125 = 523.599 ft³. Only the radius is needed: cube it, multiply by pi, then multiply by 4 and divide by 3.
What is the volume formula for a cone?
The volume of a cone is (1 ÷ 3) × π × radius² × height. A cone with radius 4 ft and height 9 ft is (1 ÷ 3) × π × 16 × 9 = 150.796 ft³. A cone holds exactly one third of the cylinder with the same radius and height, so the cone formula is the cylinder formula divided by 3.
How many cubic feet are in a cubic yard?
There are 27 cubic feet in a cubic yard. A yard is 3 feet, and volume cubes the linear factor: 3 × 3 × 3 = 27. So 1 yd³ = 27 ft³, and a 2 yd³ load of soil is 54 ft³.
How many gallons are in a cubic foot?
There are 7.48052 US gallons in a cubic foot. A cubic foot is 1,728 cubic inches and a US gallon is 231 cubic inches, so 1,728 ÷ 231 = 7.48052. A 24 ft³ box therefore holds 179.532 US gallons.
How many liters are in a cubic meter?
There are exactly 1,000 liters in a cubic meter. A liter is 1 cubic decimeter, a cube 10 cm on each side, and a cubic meter holds 1,000 of those cubes. So 1 m³ = 1,000 L, and 1 L = 1,000 cm³.
Why is my volume in cubic inches so much bigger than in cubic feet?
Because the conversion factor is cubed along with the unit. One foot is 12 inches, so one cubic foot is 12 × 12 × 12 = 1,728 cubic inches. A 24 ft³ box is 41,472 in³: the same space, counted in much smaller cubes.
Sources
- NIST, SI Units – Length — the inch is exactly 25.4 mm; the yard is exactly 0.9144 m; the 1959 Federal Register notice unified the English-speaking length standards. Accessed 20 November 2026.
- NIST, SI Units – Volume — the liter is the cubic decimeter; 1 cm³ = 1 mL; 1,000 L = 1 m³; a 10 cm × 10 cm × 10 cm cube holds 1,000 cm³, or 1 L. Accessed 20 November 2026.
- NIST, Guide to the SI, Appendix B.8: Factors for Units Listed Alphabetically — gallon (U.S.) = 3.785 412 L; cubic foot = 2.831 685 E-02 m³; cubic inch = 1.638 706 E-05 m³; cubic yard = 7.645 549 E-01 m³; imperial gallon = 4.546 09 L; boldface factors are exact. Accessed 20 November 2026.
- Maths is Fun, Volume — volume is the amount of 3-dimensional space something takes up; cuboid 10 m × 4 m × 5 m = 200 m³; sphere V = 4/3 πr³; cone V = 1/3 πr²h; cylinder V = πr²h. Accessed 20 November 2026.