Volume Calculator
Volume calculator. Choose a shape, enter its dimensions in inches, feet, centimeters, or meters, and get the volume instantly. Results convert to cubic feet, cubic meters, liters, and US gallons, and each shape shows its formula. Handy for tanks, planters, boxes, and homework.
How to use
- Choose a cube, rectangular box, cylinder, sphere, cone, square pyramid, or rectangular pyramid.
- Pick one unit for every dimension: inches, feet, yards, centimeters, or meters.
- Enter the side, radius, base, and height the shape asks for. Every input has to be greater than zero.
- Read the volume in that cubic unit, plus cubic feet, cubic meters, liters, US gallons, and the formula.
Formula
Cube: V = s³. Rectangular box: V = l × w × h. Cylinder: V = π × r² × h. Sphere: V = 4/3 × π × r³. Cone: V = 1/3 × π × r² × h. Square pyramid: V = 1/3 × a² × h. Rectangular pyramid: V = 1/3 × l × w × h. Results use Math.PI. One cubic foot is 7.48052 US gallons, and one cubic meter is 1,000 liters.
Example. A cube with a 2 ft side has volume 2³ = 8 ft³. A 2 × 3 × 4 in box is 24 in³. A cylinder with radius 1 ft and height 2 ft is π × 1² × 2 = 6.2831853 ft³ (about 6.2832).
Example. A sphere of radius 3 is 4/3 × π × 3³ = 113.09734 (about 113.097). A cone with radius 2 and height 3 is 1/3 × π × 2² × 3 = 12.566371 (about 12.566).
Frequently asked questions
How do you calculate volume?
Volume depends on the shape. A box is length x width x height, a cylinder is pi x r^2 x h, and a sphere is 4/3 x pi x r^3.
How do I find the volume of a cylinder in gallons?
Compute pi x r^2 x h in cubic inches and divide by 231, or in cubic feet and multiply by 7.48.
What units can I use?
Enter inches, feet, yards, centimeters, or meters. Results show in cubic units, liters, and gallons.
How do I find the volume of a cone?
Volume = 1/3 x pi x r^2 x h, which is one third of a cylinder with the same base and height.
Can I mix units?
Pick one unit for all inputs; the tool converts the result into every output unit.
Related tools
- Building / DIYSquare Footage CalculatorLength × width for rooms in feet, inches, or meters, plus sq ft ↔ sq m.
- Building / DIYConcrete CalculatorCubic yards, cubic feet, and 60- or 80-lb bag counts for slabs, footings, and columns.
- SchoolDensity CalculatorSolve for density, mass, or volume from the other two, with unit conversion.
- Building / DIYTile CalculatorTile count and square footage from room size, tile size, grout, and waste.
- Building / DIYCarpet CalculatorTurn room dimensions into square yards of carpet and padding, with waste and cost.
- Building / DIYMulch CalculatorCubic yards and bag counts from bed area and mulch depth.